Documentation
¶
Index ¶
- Constants
- func DecodePrimitive(decoder *primitives.Decoder, value *gsrpcTypes.Si1TypeDefPrimitive, ...) error
- func GenericDoubleMapFetch[V any, K1 any, K2 any, S StorageDoubleMapT](blockStorage interfaces.BlockStorageT, mapKey1 K1, mapKey2 K2, storage S) (prim.Option[StorageEntryDoubleMap[K1, K2, V]], error)
- func GenericFetch[V any, S StorageT](blockStorage interfaces.BlockStorageT, storage S) (prim.Option[V], error)
- func GenericFetchDefault[V any, S StorageT](blockStorage interfaces.BlockStorageT, storage S) (V, error)
- func GenericMapFetch[V any, K any, S StorageMapT](blockStorage interfaces.BlockStorageT, mapKey K, storage S) (prim.Option[StorageEntry[K, V]], error)
- type AccountData
- type AddressedMessage
- type ArithmeticError
- type Balance
- func (this Balance) Add(v Balance) Balance
- func (this Balance) Add128(v uint128.Uint128) Balance
- func (this Balance) Add64(v uint64) Balance
- func (this Balance) Div(v Balance) Balance
- func (this Balance) Div128(v uint128.Uint128) Balance
- func (this Balance) Div64(v uint64) Balance
- func (this Balance) Mul(v Balance) Balance
- func (this Balance) Mul128(v uint128.Uint128) Balance
- func (this Balance) Mul64(v uint64) Balance
- func (this Balance) String() string
- func (this Balance) Sub(v Balance) Balance
- func (this Balance) Sub128(v uint128.Uint128) Balance
- func (this Balance) Sub64(v uint64) Balance
- func (this Balance) ToHuman() string
- func (this Balance) ToString() string
- type BlockLength
- type CommissionClaimPermission
- type DataProof
- type DispatchClass
- type DispatchError
- type DispatchFeeModifier
- type DispatchInfo
- type DispatchResult
- type FeeDetails
- type IdentityData
- type IdentityInfo
- type InclusionFee
- type Judgement
- type MessageFungibleToken
- type Metadata
- func (this *Metadata) DecodeEvent(palletIndex uint8, eventIndex uint8, decoder *primitives.Decoder) error
- func (this *Metadata) FindPalletMetadata(palletIndex uint8) *gsrpcTypes.PalletMetadataV14
- func (this *Metadata) GetTypeFromId(id int64) *gsrpcTypes.Si1Type
- func (this *Metadata) PalletCallName(palletIndex uint8, callIndex uint8) (string, string, error)
- func (this *Metadata) PalletEventName(palletIndex uint8, eventIndex uint8) (string, string, error)
- type ModuleError
- type Payload
- type Pays
- type PerDispatchClassU32
- type Perbill
- type PoolBondExtra
- type PoolClaimPermission
- type PoolCommission
- type PoolCommissionChangeRate
- type PoolRoleConfig
- type PoolRoles
- type PoolState
- type ProofResponse
- type ProxyType
- type Registration
- type RewardDestination
- type RuntimeDispatchInfo
- type SessionKeys
- type StorageDoubleMapT
- type StorageEntry
- type StorageEntryDoubleMap
- type StorageMapT
- type StorageT
- type TokenError
- type TransactionalError
- type Tuple2
- type TxDataRoots
- type ValidatorPrefs
- type VectorMessageKind
- type Weight
Constants ¶
const Blake2_128ConcatHasher = uint8(0)
const Twox64ConcatHasher = uint8(1)
Variables ¶
This section is empty.
Functions ¶
func DecodePrimitive ¶
func DecodePrimitive(decoder *primitives.Decoder, value *gsrpcTypes.Si1TypeDefPrimitive, isCompact bool) error
func GenericDoubleMapFetch ¶
func GenericDoubleMapFetch[V any, K1 any, K2 any, S StorageDoubleMapT](blockStorage interfaces.BlockStorageT, mapKey1 K1, mapKey2 K2, storage S) (prim.Option[StorageEntryDoubleMap[K1, K2, V]], error)
func GenericFetch ¶
func GenericFetch[V any, S StorageT](blockStorage interfaces.BlockStorageT, storage S) (prim.Option[V], error)
func GenericFetchDefault ¶
func GenericFetchDefault[V any, S StorageT](blockStorage interfaces.BlockStorageT, storage S) (V, error)
func GenericMapFetch ¶
func GenericMapFetch[V any, K any, S StorageMapT](blockStorage interfaces.BlockStorageT, mapKey K, storage S) (prim.Option[StorageEntry[K, V]], error)
Types ¶
type AccountData ¶
Do not add, remove or change any of the field members.
type AddressedMessage ¶
type ArithmeticError ¶
type ArithmeticError struct {
VariantIndex uint8
}
Do not add, remove or change any of the field members.
func (ArithmeticError) ToHuman ¶
func (this ArithmeticError) ToHuman() string
func (ArithmeticError) ToString ¶
func (this ArithmeticError) ToString() string
type Balance ¶
func NewBalanceFromBigInt ¶
func NewBalanceFromString ¶
type BlockLength ¶
type BlockLength struct { Max PerDispatchClassU32 Cols uint32 `scale:"compact"` Rows uint32 `scale:"compact"` ChunkSize uint32 `scale:"compact"` }
type CommissionClaimPermission ¶
func (*CommissionClaimPermission) Decode ¶
func (this *CommissionClaimPermission) Decode(decoder *prim.Decoder) error
func (*CommissionClaimPermission) EncodeTo ¶
func (this *CommissionClaimPermission) EncodeTo(dest *string)
func (CommissionClaimPermission) ToHuman ¶
func (this CommissionClaimPermission) ToHuman() string
func (CommissionClaimPermission) ToString ¶
func (this CommissionClaimPermission) ToString() string
type DispatchClass ¶
type DispatchClass struct {
VariantIndex uint8
}
Do not add, remove or change any of the field members.
func (DispatchClass) String ¶
func (this DispatchClass) String() string
func (DispatchClass) ToHuman ¶
func (this DispatchClass) ToHuman() string
func (DispatchClass) ToString ¶
func (this DispatchClass) ToString() string
type DispatchError ¶
type DispatchError struct { VariantIndex uint8 Module prim.Option[ModuleError] Token prim.Option[TokenError] Arithmetic prim.Option[ArithmeticError] Transactional prim.Option[TransactionalError] }
Do not add, remove or change any of the field members.
func (*DispatchError) EncodeTo ¶
func (this *DispatchError) EncodeTo(dest *string)
func (DispatchError) ToHuman ¶
func (this DispatchError) ToHuman() string
func (DispatchError) ToString ¶
func (this DispatchError) ToString() string
type DispatchFeeModifier ¶
type DispatchFeeModifier struct { WeightMaximumFee prim.Option[uint128.Uint128] WeightFeeDivider prim.Option[uint32] WeightFeeMultiplier prim.Option[uint32] }
Do not add, remove or change any of the field members.
type DispatchInfo ¶
type DispatchInfo struct { Weight Weight Class DispatchClass PaysFee Pays FeeModifier DispatchFeeModifier }
Do not add, remove or change any of the field members.
type DispatchResult ¶
type DispatchResult struct { VariantIndex uint8 Err prim.Option[DispatchError] }
func (*DispatchResult) EncodeTo ¶
func (this *DispatchResult) EncodeTo(dest *string)
func (DispatchResult) ToHuman ¶
func (this DispatchResult) ToHuman() string
func (DispatchResult) ToString ¶
func (this DispatchResult) ToString() string
type FeeDetails ¶
type FeeDetails struct {
InclusionFee prim.Option[InclusionFee]
}
type IdentityData ¶
type IdentityData struct { VariantIndex uint8 Raw0 prim.Option[[0]byte] Raw1 prim.Option[[1]byte] Raw2 prim.Option[[2]byte] Raw3 prim.Option[[3]byte] Raw4 prim.Option[[4]byte] Raw5 prim.Option[[5]byte] Raw6 prim.Option[[6]byte] Raw7 prim.Option[[7]byte] Raw8 prim.Option[[8]byte] Raw9 prim.Option[[9]byte] Raw10 prim.Option[[10]byte] Raw11 prim.Option[[11]byte] Raw12 prim.Option[[12]byte] Raw13 prim.Option[[13]byte] Raw14 prim.Option[[14]byte] Raw15 prim.Option[[15]byte] Raw16 prim.Option[[16]byte] Raw17 prim.Option[[17]byte] Raw18 prim.Option[[18]byte] Raw19 prim.Option[[19]byte] Raw20 prim.Option[[20]byte] Raw21 prim.Option[[21]byte] Raw22 prim.Option[[22]byte] Raw23 prim.Option[[23]byte] Raw24 prim.Option[[24]byte] Raw25 prim.Option[[25]byte] Raw26 prim.Option[[26]byte] Raw27 prim.Option[[27]byte] Raw28 prim.Option[[28]byte] Raw29 prim.Option[[29]byte] Raw30 prim.Option[[30]byte] Raw31 prim.Option[[31]byte] Raw32 prim.Option[[32]byte] BlakeTwo256 prim.Option[prim.H256] Sha256 prim.Option[prim.H256] Keccak256 prim.Option[prim.H256] ShaThree256 prim.Option[prim.H256] }
func (*IdentityData) EncodeTo ¶
func (this *IdentityData) EncodeTo(dest *string)
func (IdentityData) ToHuman ¶
func (this IdentityData) ToHuman() string
func (IdentityData) ToString ¶
func (this IdentityData) ToString() string
type IdentityInfo ¶
type IdentityInfo struct { Additional []Tuple2[IdentityData, IdentityData] Display IdentityData Legal IdentityData Web IdentityData Riot IdentityData Email IdentityData PgpFingerprint prim.Option[[20]byte] Image IdentityData Twitter IdentityData }
type InclusionFee ¶
type MessageFungibleToken ¶
type Metadata ¶
type Metadata struct {
Value gsrpcTypes.Metadata
}
func NewMetadata ¶
func (*Metadata) DecodeEvent ¶
func (*Metadata) FindPalletMetadata ¶
func (this *Metadata) FindPalletMetadata(palletIndex uint8) *gsrpcTypes.PalletMetadataV14
func (*Metadata) GetTypeFromId ¶
func (this *Metadata) GetTypeFromId(id int64) *gsrpcTypes.Si1Type
func (*Metadata) PalletCallName ¶
type ModuleError ¶
Do not add, remove or change any of the field members.
type Payload ¶
type Payload struct { Call primitives.Call // contains filtered or unexported fields }
func NewPayload ¶
func NewPayload(call primitives.Call, palletName string, callName string) Payload
func (*Payload) PalletName ¶
type Pays ¶
type Pays struct {
VariantIndex uint8
}
Do not add, remove or change any of the field members.
type PerDispatchClassU32 ¶
Do not add, remove or change any of the field members.
type PoolBondExtra ¶
func (*PoolBondExtra) EncodeTo ¶
func (this *PoolBondExtra) EncodeTo(dest *string)
func (PoolBondExtra) ToHuman ¶
func (this PoolBondExtra) ToHuman() string
func (PoolBondExtra) ToString ¶
func (this PoolBondExtra) ToString() string
type PoolClaimPermission ¶
type PoolClaimPermission struct {
VariantIndex uint8
}
func (*PoolClaimPermission) Decode ¶
func (this *PoolClaimPermission) Decode(decoder *prim.Decoder) error
func (*PoolClaimPermission) EncodeTo ¶
func (this *PoolClaimPermission) EncodeTo(dest *string)
func (PoolClaimPermission) ToHuman ¶
func (this PoolClaimPermission) ToHuman() string
func (PoolClaimPermission) ToString ¶
func (this PoolClaimPermission) ToString() string
type PoolCommission ¶
type PoolRoleConfig ¶
func (*PoolRoleConfig) EncodeTo ¶
func (this *PoolRoleConfig) EncodeTo(dest *string)
func (PoolRoleConfig) ToHuman ¶
func (this PoolRoleConfig) ToHuman() string
func (PoolRoleConfig) ToString ¶
func (this PoolRoleConfig) ToString() string
type ProofResponse ¶
type ProofResponse struct { DataProof DataProof Message prim.Option[AddressedMessage] }
type Registration ¶
type Registration struct { Judgements []Tuple2[uint32, Judgement] Deposit Balance Info IdentityInfo }
type RewardDestination ¶
Variant 0: Staked Variant 1: Stash Variant 2: Controller Variant 3: Account - Account field needs to be set up Variant 4 Nonce
func (*RewardDestination) Decode ¶
func (this *RewardDestination) Decode(decoder *prim.Decoder) error
func (*RewardDestination) EncodeTo ¶
func (this *RewardDestination) EncodeTo(dest *string)
func (RewardDestination) ToHuman ¶
func (this RewardDestination) ToHuman() string
func (RewardDestination) ToString ¶
func (this RewardDestination) ToString() string
type RuntimeDispatchInfo ¶
type RuntimeDispatchInfo struct { Weight Weight Class DispatchClass PartialFee Balance }
type SessionKeys ¶
type StorageDoubleMapT ¶
type StorageEntry ¶
func GenericMapKeysFetch ¶
func GenericMapKeysFetch[V any, K any, S StorageMapT](blockStorage interfaces.BlockStorageT, storage S) ([]StorageEntry[K, V], error)
type StorageEntryDoubleMap ¶
func GenericDoubleMapKeysFetch ¶
func GenericDoubleMapKeysFetch[V any, K1 any, K2 any, S StorageDoubleMapT](blockStorage interfaces.BlockStorageT, mapKey1 K1, storage S) ([]StorageEntryDoubleMap[K1, K2, V], error)
type StorageMapT ¶
type TokenError ¶
type TokenError struct {
VariantIndex uint8
}
Do not add, remove or change any of the field members.
func (TokenError) ToHuman ¶
func (this TokenError) ToHuman() string
func (TokenError) ToString ¶
func (this TokenError) ToString() string
type TransactionalError ¶
type TransactionalError struct {
VariantIndex uint8
}
Do not add, remove or change any of the field members.
func (TransactionalError) ToHuman ¶
func (this TransactionalError) ToHuman() string
func (TransactionalError) ToString ¶
func (this TransactionalError) ToString() string
type TxDataRoots ¶
type ValidatorPrefs ¶
type VectorMessageKind ¶
type VectorMessageKind struct { VariantIndex uint8 ArbitraryMessage prim.Option[[]byte] FungibleToken prim.Option[MessageFungibleToken] }
func (*VectorMessageKind) Decode ¶
func (this *VectorMessageKind) Decode(decoder *prim.Decoder) error
func (*VectorMessageKind) EncodeTo ¶
func (this *VectorMessageKind) EncodeTo(dest *string)
func (VectorMessageKind) ToHuman ¶
func (this VectorMessageKind) ToHuman() string
func (VectorMessageKind) ToString ¶
func (this VectorMessageKind) ToString() string