0.3.6 • Published 3 years ago
@hyunggyujang/typechain-polkadot-parser v0.3.6
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 methodgetTypethat takes type id as a parameter and returns aTypeInfoobject. Also it has public fieldtsTypesthat 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 value0.3.6
3 years ago