Versions in this module Expand all Collapse all v1 v1.2.26 May 18, 2022 v1.2.25 May 17, 2022 v1.1.24 May 17, 2022 Changes in this version + var KnownOrigins = map[string]string + var RuntimeCodecType []string + var TypeRegistry map[string]interface + var V14Types []map[string]source.TypeStruct + func ConvertType(name string, option ...interface{}) string + func RegCustomTypes(registry map[string]source.TypeStruct) + func TupleDisassemble(typeString string) []string + type AccountId struct + func (s *AccountId) Process() + type AccountIndex struct + type Address struct + AccountLength string + func (a *Address) Process() + type AuthoritiesChange struct + func (l *AuthoritiesChange) Init(data ScaleBytes, option *ScaleDecoderOption) + type AuthorityId struct + type BTreeMap struct + func (b *BTreeMap) Process() + type BTreeSet struct + type BabeBlockWeight struct + type Balance struct + Reader io.Reader + func (b *Balance) Process() + type BitVec struct + func (b *BitVec) Process() + type BlockNumber struct + type Bool struct + func (b *Bool) Process() + type BoundedVec struct + func (v *BoundedVec) Init(data ScaleBytes, option *ScaleDecoderOption) + type Box struct + func (b *Box) Process() + type BoxProposal struct + func (s *BoxProposal) Process() + type Bytes struct + func (b *Bytes) Init(data ScaleBytes, option *ScaleDecoderOption) + func (b *Bytes) Process() + type Call struct + func (s *Call) Process() + type CallIndex struct + Call MetadataCalls + Module MetadataModules + type ChangesTrieRoot struct + type Compact struct + CompactBytes []byte + CompactLength int + func (c *Compact) Process() + func (c *Compact) ProcessCompactBytes() + type CompactMoment struct + func (m *CompactMoment) Process() + type CompactU32 struct + Reader io.Reader + func (c *CompactU32) Encode(value int) ScaleBytes + func (c *CompactU32) Init(data ScaleBytes, option *ScaleDecoderOption) + func (c *CompactU32) Process() + type Consensus struct + func (s *Consensus) Init(data ScaleBytes, option *ScaleDecoderOption) + type Data struct + func (d *Data) Init(data ScaleBytes, option *ScaleDecoderOption) + func (d *Data) Process() + type EcdsaSignature struct + func (e *EcdsaSignature) Process() + type Enum struct + Index int + ValueList []string + func (e *Enum) Init(data ScaleBytes, option *ScaleDecoderOption) + func (e *Enum) Process() + type Era struct + func (e *Era) Process() + type EraExtrinsic struct + func (e *EraExtrinsic) Process() + type EraIndex struct + type EthereumAddress struct + func (e *EthereumAddress) Process() + type EventIndex struct + Call MetadataEvents + Module MetadataModules + type Exposure struct + func (s *Exposure) Init(data ScaleBytes, option *ScaleDecoderOption) + type ExtrinsicMetadata struct + SignedExtensions []SignedExtensions + SignedIdentifier []string + Type int + Version int + type ExtrinsicMetadataV12 struct + SignedExtensions []string + type ExtrinsicParam struct + Name string + Type string + Value interface{} + type FixedLengthArray struct + FixedLength int + SubType string + func (f *FixedLengthArray) Init(data ScaleBytes, option *ScaleDecoderOption) + func (f *FixedLengthArray) Process() + type GenericAddress struct + AccountLength string + func (a *GenericAddress) Process() + type GenericLookupSource struct + func (g *GenericLookupSource) Process() + type H160 struct + func (h *H160) Process() + type H256 struct + func (h *H256) Process() + type H512 struct + func (h *H512) Process() + type HexBytes struct + func (h *HexBytes) Process() + type IScaleDecoder interface + GetNextU8 func() int + Init func(data ScaleBytes, option *ScaleDecoderOption) + NextBytes func(int) []byte + Process func() + type Index struct + type IndividualExposure struct + func (s *IndividualExposure) Init(data ScaleBytes, option *ScaleDecoderOption) + type IntFixed struct + FixedLength int + Reader io.Reader + func (f *IntFixed) Init(data ScaleBytes, option *ScaleDecoderOption) + func (f *IntFixed) Process() + type Key struct + type LockIdentifier struct + func (l *LockIdentifier) Process() + type LogDigest struct + func (l *LogDigest) Init(data ScaleBytes, option *ScaleDecoderOption) + func (l *LogDigest) Process() + type MapType struct + Hasher string + IsLinked bool + Key string + Key2 string + Key2Hasher string + Value string + type MapTypeValue struct + Hasher string + Key int + Key2 int + Key2Hasher string + Value int + type MetadataCalls struct + Args []MetadataModuleCallArgument + Docs []string + Lookup string + Name string + type MetadataConstants struct + ConstantsValue string + Docs []string + Name string + Type string + TypeValue int + type MetadataEvents struct + Args []string + Docs []string + Lookup string + Name string + type MetadataModuleCall struct + Args []MetadataModuleCallArgument + Docs []string + Name string + func (m *MetadataModuleCall) Process() + type MetadataModuleCallArgument struct + Name string + Type string + func (m *MetadataModuleCallArgument) Process() + type MetadataModuleError struct + Doc []string + Name string + func (m *MetadataModuleError) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataModuleError) Process() + type MetadataModuleEvent struct + Args []string + Docs []string + Name string + func (m *MetadataModuleEvent) Process() + type MetadataModules struct + Calls []MetadataCalls + CallsValue *PalletLookUp + Constants []MetadataConstants + Errors []MetadataModuleError + ErrorsValue *PalletLookUp + Events []MetadataEvents + EventsValue *PalletLookUp + Index int + Name string + Prefix string + Storage []MetadataStorage + type MetadataStorage struct + Docs []string + Fallback string + Hasher string + Modifier string + Name string + Type StorageType + type MetadataStruct struct + CallIndex map[string]CallIndex + EventIndex map[string]EventIndex + Extrinsic *ExtrinsicMetadata + Lookup interface{} + Metadata MetadataTag + MetadataVersion int + type MetadataTag struct + Modules []MetadataModules + type MetadataV10Decoder struct + func (m *MetadataV10Decoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV10Decoder) Process() + type MetadataV11Decoder struct + func (m *MetadataV11Decoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV11Decoder) Process() + type MetadataV12Decoder struct + func (m *MetadataV12Decoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV12Decoder) Process() + type MetadataV12Module struct + CallIndex string + Calls []MetadataModuleCall + Constants []map[string]interface{} + Errors []MetadataModuleError + Events []MetadataEvents + HasCalls bool + HasEvents bool + HasStorage bool + Index int + Name string + Prefix string + Storage []MetadataStorage + func (m *MetadataV12Module) Process() + type MetadataV13Decoder struct + func (m *MetadataV13Decoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV13Decoder) Process() + type MetadataV13Module struct + CallIndex string + Calls []MetadataModuleCall + Constants []map[string]interface{} + Errors []MetadataModuleError + Events []MetadataEvents + HasCalls bool + HasEvents bool + HasStorage bool + Index int + Name string + Prefix string + Storage []MetadataStorage + func (m *MetadataV13Module) Process() + type MetadataV13ModuleStorage struct + Items []MetadataStorage + Prefix string + func (m *MetadataV13ModuleStorage) Process() + type MetadataV13ModuleStorageEntry struct + Docs []string + Fallback string + Hasher string + Modifier string + Name string + Type StorageType + func (m *MetadataV13ModuleStorageEntry) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV13ModuleStorageEntry) Process() + type MetadataV14Decoder struct + func (m *MetadataV14Decoder) Process() + type MetadataV14Module struct + CallIndex string + Calls []MetadataModuleCall + CallsValue map[string]interface{} + Constants []MetadataConstants + Errors []MetadataModuleError + ErrorsValue map[string]interface{} + Events []MetadataEvents + EventsValue map[string]interface{} + HasCalls bool + HasEvents bool + HasStorage bool + Index int + Name string + Prefix string + Storage []MetadataStorage + func (m *MetadataV14Module) Process() + type MetadataV14ModuleStorage struct + Items []MetadataStorage + Prefix string + func (m *MetadataV14ModuleStorage) Process() + type MetadataV14ModuleStorageEntry struct + Docs []string + Fallback string + Hasher string + Modifier string + Name string + Type StorageType + func (m *MetadataV14ModuleStorageEntry) Process() + type MetadataV6Decoder struct + func (m *MetadataV6Decoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV6Decoder) Process() + type MetadataV6Module struct + CallIndex string + Calls []MetadataModuleCall + Constants []map[string]interface{} + Events []MetadataEvents + HasCalls bool + HasEvents bool + HasStorage bool + Name string + Prefix string + Storage []MetadataStorage + func (m *MetadataV6Module) GetIdentifier() string + func (m *MetadataV6Module) Process() + type MetadataV6ModuleConstants struct + ConstantsValue string + Docs []string + Name string + Type string + func (m *MetadataV6ModuleConstants) Process() + type MetadataV6ModuleStorage struct + Docs []string + Fallback string + Hasher string + Modifier string + Name string + Type map[string]interface{} + func (m *MetadataV6ModuleStorage) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV6ModuleStorage) Process() + type MetadataV7Decoder struct + func (m *MetadataV7Decoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV7Decoder) Process() + type MetadataV7Module struct + CallIndex string + Calls []MetadataModuleCall + Constants []map[string]interface{} + Events []MetadataEvents + HasCalls bool + HasEvents bool + HasStorage bool + Name string + Prefix string + Storage []MetadataStorage + func (m *MetadataV7Module) Process() + type MetadataV7ModuleConstants struct + type MetadataV7ModuleStorage struct + Items []MetadataStorage + Prefix string + func (m *MetadataV7ModuleStorage) Process() + type MetadataV7ModuleStorageEntry struct + Docs []string + Fallback string + Hasher string + Modifier string + Name string + Type StorageType + func (m *MetadataV7ModuleStorageEntry) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV7ModuleStorageEntry) Process() + type MetadataV8Decoder struct + func (m *MetadataV8Decoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV8Decoder) Process() + type MetadataV8Module struct + CallIndex string + Calls []MetadataModuleCall + Constants []map[string]interface{} + Errors []MetadataModuleError + Events []MetadataEvents + HasCalls bool + HasEvents bool + HasStorage bool + Name string + Prefix string + Storage []MetadataStorage + func (m *MetadataV8Module) GetIdentifier() string + func (m *MetadataV8Module) Process() + type MetadataV9Decoder struct + func (m *MetadataV9Decoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (m *MetadataV9Decoder) Process() + type Moment struct + func (m *Moment) Process() + type NMapType struct + Hashers []string + KeyVec []string + KeysId int + Value string + ValueId int + type Null struct + type OpaqueCall struct + func (f *OpaqueCall) Process() + type Option struct + func (o *Option) Process() + type OriginCaller struct + Index int + Name string + type Other struct + type PalletConstantMetadataV14 struct + ConstantsValue string + Docs []string + Name string + Type string + func (m *PalletConstantMetadataV14) Process() + type PalletLookUp struct + Type int + type ParaId struct + type PortableType struct + Id int + Type SiType + type PreRuntime struct + func (s *PreRuntime) Init(data ScaleBytes, option *ScaleDecoderOption) + type PropIndex struct + type RawAuraPreDigest struct + func (s *RawAuraPreDigest) Init(data ScaleBytes, option *ScaleDecoderOption) + type RawBabeLabel struct + func (s *RawBabeLabel) Init(data ScaleBytes, option *ScaleDecoderOption) + type RawBabePreDigest struct + func (r *RawBabePreDigest) Init(data ScaleBytes, option *ScaleDecoderOption) + func (r *RawBabePreDigest) Process() + type RawBabePreDigestPrimary struct + func (r *RawBabePreDigestPrimary) Init(data ScaleBytes, option *ScaleDecoderOption) + type RawBabePreDigestSecondary struct + func (r *RawBabePreDigestSecondary) Init(data ScaleBytes, option *ScaleDecoderOption) + type RawBabePreDigestSecondaryVRF struct + func (r *RawBabePreDigestSecondaryVRF) Init(data ScaleBytes, option *ScaleDecoderOption) + type ReferendumIndex struct + type Results struct + func (b *Results) Process() + type RuntimeEnvironmentUpdated struct + type RuntimeType struct + Module string + func (r *RuntimeType) DecoderClass(typeString string, spec int) (reflect.Type, reflect.Value, string) + func (r RuntimeType) Reg() *RuntimeType + type ScaleBytes struct + Data []byte + Offset int + func (s *ScaleBytes) GetNextBytes(length int) []byte + func (s *ScaleBytes) GetRemainingLength() int + func (s *ScaleBytes) Reset() + func (s *ScaleBytes) String() string + type ScaleDecoder struct + Data ScaleBytes + Metadata *MetadataStruct + Module string + RawValue string + Spec int + SubType string + TypeMapping *TypeMapping + TypeString string + Value interface{} + func (s *ScaleDecoder) GetNextU8() int + func (s *ScaleDecoder) Init(data ScaleBytes, option *ScaleDecoderOption) + func (s *ScaleDecoder) NextBytes(length int) []byte + func (s *ScaleDecoder) Process() + func (s *ScaleDecoder) ProcessAndUpdateData(typeString string) interface{} + type ScaleDecoderOption struct + FixedLength int + Metadata *MetadataStruct + Module string + Spec int + SubType string + ValueList []string + type Seal struct + func (s *Seal) Init(data ScaleBytes, option *ScaleDecoderOption) + type SealV0 struct + func (s *SealV0) Init(data ScaleBytes, option *ScaleDecoderOption) + type SessionIndex struct + type Set struct + BitLength int + SetValue int + ValueList []string + func (s *Set) Init(data ScaleBytes, option *ScaleDecoderOption) + func (s *Set) Process() + type SiField struct + Docs []string + Name string + Type int + TypeName string + type SiType struct + Def SiTypeDef + Docs []string + Params []SiTypeParameter + Path []string + type SiTypeDef struct + Array *SiTypeDefArray + BitSequence *SiTypeDefBitSequence + Compact *SiTypeDefCompact + Composite *SiTypeDefComposite + HistoricMetaCompat string + Primitive *SiTypeDefPrimitive + Sequence *SiTypeDefSequence + SiTypeDefRange *SiTypeDefRange + Tuple *SiTypeDefTuple + Variant *SiTypeDefVariant + type SiTypeDefArray struct + Len int + Type int + type SiTypeDefBitSequence struct + BitOrderType int + BitStoreType int + type SiTypeDefCompact struct + Type int + type SiTypeDefComposite struct + Fields []SiField + type SiTypeDefPrimitive string + type SiTypeDefRange struct + End int + Inclusive bool + Start int + type SiTypeDefSequence struct + Type int + type SiTypeDefTuple []int + type SiTypeDefVariant struct + Variants []SiVariant + type SiTypeOption struct + Recursive bool + func RecursiveOption() SiTypeOption + type SiTypeParameter struct + Name string + Type int + type SiTypeWithName struct + Structure interface{} + TypeString string + type SiVariant struct + Docs []string + Fields []SiField + Index int + Name string + type Signature struct + func (s *Signature) Process() + type SignedExtensions struct + AdditionalSigned int + Identifier string + Type int + type SlotNumber struct + type Special struct + Registry interface{} + Version []int + type StorageHasher struct + func (s *StorageHasher) Init(data ScaleBytes, option *ScaleDecoderOption) + type StorageType struct + DoubleMapType *MapType + MapType *MapType + NMapType *NMapType + Origin string + PlainType *string + PlainTypeValue *int + type String struct + func (b *String) Process() + type Struct struct + func (s *Struct) Process() + type TypeMapping struct + Names []string + Types []string + type U128 struct + func (u *U128) Process() + type U16 struct + Reader io.Reader + func (u *U16) Process() + type U32 struct + Reader io.Reader + func (u *U32) Encode(value int) + func (u *U32) Process() + type U64 struct + Reader io.Reader + func (u *U64) Process() + type U8 struct + func (u *U8) Process() + type Vec struct + func (v *Vec) Init(data ScaleBytes, option *ScaleDecoderOption) + func (v *Vec) Process() + type VecU8FixedLength struct + FixedLength int + func (s *VecU8FixedLength) Process() + type Vote struct + type VoteOutcome struct + func (v *VoteOutcome) Process() + type WeakBoundedVec struct