1.0.2 • Published 10 months ago

@727-ventures/typechain-polkadot-parser v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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
1.0.2

10 months ago

1.0.1

11 months ago

1.0.0

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.1.3

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.1.2

1 year ago

0.1.1-beta.1

1 year ago

0.1.1-beta

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.1.0

1 year ago

0.2.0

2 years ago