1.0.0 • Published 9 months ago
@c-forge/typechain-polkadot-parser v1.0.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
1.0.0
9 months ago
0.2.0
12 months ago
0.2.3
11 months ago
0.2.2
11 months ago
0.2.4
11 months ago
0.0.60-experimental
1 year ago
0.0.60-experimental3
1 year ago
0.0.60-experimental2
1 year ago
0.0.57
1 year ago
0.0.58
1 year ago
0.0.59
1 year ago
0.1.0
1 year ago
0.0.56
1 year ago
0.0.55
1 year ago
0.0.54
1 year ago
0.0.53
1 year ago
0.0.52
1 year ago
0.0.51
1 year ago
0.0.50
1 year ago
0.0.49
1 year ago
0.0.48
1 year ago
0.0.47
1 year ago
0.0.46
1 year ago
0.0.45
1 year ago
0.0.44
1 year ago