MetadataMerkleizer class

Properties

base58Prefix → int?
final
decimals → int
final
digested ↔ Uint8List?
getter/setter pair
extraInfo ↔ ExtraInfo
latefinal
extrinsicMeta ↔ ExtrinsicInfo
latefinal
hashCode → int
The hash code for this object.
no setterinherited
lookup ↔ Lookup
latefinal
lookupEncoded ↔ List<Uint8List>
latefinal
metadata → RuntimeMetadata
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
specName → String?
final
specVersion → int?
final
tokenSymbol → String
final

Methods

blake3Hash(Uint8List input) → Uint8List
compactTypeRefs(dynamic primitive) → String
constructLookupTypeDef(Map<int, LookupValue> definitions, Map<int, int> accessibleTypes, int frameId) → List<LookupTypeDef>
decodeAndCollectKnownLeafs(Uint8List input, List<TypeRef> typeRefs) → List<int>
decodeArray(TypeDefArray def, Input input) → List
decodeComposite(TypeDefComposite def, Input input) → dynamic
decodeExtrinsic(Uint8List extrinsic) → (int, bool, Uint8List)
decodePrimitive(Primitive primitive, Input input) → dynamic
decodeSequence(TypeDefSequence def, Input input) → List
decodeTuple(TypeDefTuple def, Input input) → List?
decodeTypeDef(TypeDef def, Input input) → dynamic
digest() → Uint8List
generateProof(List<int> knownIndexes) → Uint8List
getAccessibleTypes(Map<int, LookupValue> definitions) → Map<int, int>
getAncestorIdx(int from, int nLevels) → int
getBitSequenceBytes(String primitive) → int
getHashTree() → List<Uint8List>
getLevelFromIdx(int idx) → int
getLookup(Map<int, LookupValue> definitions, Map<int, int> accessibleTypes) → Lookup
getPrimitive(Map<int, LookupValue> definitions, int frameId) → dynamic
getProofData(List<int> knownLeavesIdxs) → ({List<int> leafIndexes, List<Uint8List> leaves, List<int> proofIndexes})
getProofForExtrinsic(Uint8List transaction, Uint8List? txAdditionalSigned) → Uint8List
getProofForExtrinsicParts(Uint8List callData, Uint8List includedInExtrinsic, Uint8List includedInSignedData) → Uint8List
getProofForExtrinsicPayload(Uint8List payload) → Uint8List
getTypeRef(Map<int, LookupValue> definitions, Map<int, int> accessibleTypes, int frameId) → TypeRef
innerDecodeAndCollect(Input input, TypeRef typeRef, Map<int, List<int>> idToLookups, Set<int> collected) → void
jsShift(int value, int shift) → int
log2(int x) → double
mergeUint8(List<Uint8List> inputs) → Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
skipTypeRef(TypeRef ref, Input input) → void
toString() → String
A string representation of this object.
inherited
versionDecoder(Input extrinsic) → ({bool signed, int version})

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromMetadata(RuntimeMetadata metadata, {required int decimals, required String tokenSymbol, int? specVersion, String? specName, int? base58Prefix}) → MetadataMerkleizer