0.2.0 • Published 2 years ago
@supercolony/typechain-polkadot-parser v0.2.0
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 methodgetType
that takes type id as a parameter and returns aTypeInfo
object. Also it has public fieldtsTypes
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.1.10
2 years ago
0.1.11
2 years ago
0.1.12
2 years ago
0.1.14
2 years ago
0.2.0
2 years ago
0.1.4-beta.2
2 years ago
0.1.5-beta.1
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.9
2 years ago
0.1.6
2 years ago
0.1.4-beta.1
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago