0.0.43 • Published 2 months ago

wookashwackomytest-typechain-polkadot-parser v0.0.43

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Typechain-polkadot-parser


Utility package for parsing ABIs of Polkadot smart contracts.

Types


  • class TypeParser - Parser for ABIs of Polkadot smart contracts. It contains only one public method getType that takes type id as a parameter and returns a TypeInfo object. Also it has public field tsTypes that contains a map of all parsed types.

  • class TypeInfo - Contains information about a type.

	id: number; // - type id
	tsArgType: string; // - TypeScript type for function arguments
	tsReturnType: string; // - TypeScript type for function return value
	tsArgTypePrefixed: string; // - TypeScript type for function arguments with prefix (for imports)
	tsReturnTypePrefixed: string; // - TypeScript type for function return value with prefix (for imports)
	typeDescription: TypeTS; // - type description in TypeScript
	// For enums and composites
	bodyArgType ?: string; // - TypeScript type for function arguments
	bodyReturnType ?: string; // - TypeScript type for function return value
0.0.40

2 months ago

0.0.41

2 months ago

0.0.42

2 months ago

0.0.43

2 months ago

0.0.39

2 months ago

0.0.38

3 months ago

0.0.37

3 months ago

0.0.25

3 months ago

0.0.30

3 months ago

0.0.31

3 months ago

0.0.32

3 months ago

0.0.33

3 months ago

0.0.34

3 months ago

0.0.35

3 months ago

0.0.36

3 months ago

0.0.26

3 months ago

0.0.24

3 months ago

0.0.23

4 months ago

0.0.22

4 months ago

0.0.20

4 months ago

0.0.21

4 months ago

0.0.10

4 months ago

0.0.11

4 months ago

0.0.12

4 months ago

0.0.13

4 months ago

0.0.14

4 months ago

0.0.15

4 months ago

0.0.9

4 months ago

0.0.16

4 months ago

0.0.17

4 months ago

0.0.18

4 months ago

0.0.19

4 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago