Documentation
¶
Index ¶
- Variables
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)deprecated
- func (x *Balance) GetAssetTransfer() *Balance_AssetTransfer
- func (x *Balance) GetBatchAssetTransfer() *Balance_BatchAssetTransfer
- func (x *Balance) GetBatchTransfer() *Balance_BatchTransfer
- func (x *Balance) GetMessageOneof() isBalance_MessageOneof
- func (x *Balance) GetTransfer() *Balance_Transfer
- func (*Balance) ProtoMessage()
- func (x *Balance) ProtoReflect() protoreflect.Message
- func (x *Balance) Reset()
- func (x *Balance) String() string
- type Balance_AssetTransfer
- func (*Balance_AssetTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *Balance_AssetTransfer) GetAssetId() uint32
- func (x *Balance_AssetTransfer) GetCallIndices() *CallIndices
- func (x *Balance_AssetTransfer) GetFeeAssetId() uint32
- func (x *Balance_AssetTransfer) GetToAddress() string
- func (x *Balance_AssetTransfer) GetValue() []byte
- func (*Balance_AssetTransfer) ProtoMessage()
- func (x *Balance_AssetTransfer) ProtoReflect() protoreflect.Message
- func (x *Balance_AssetTransfer) Reset()
- func (x *Balance_AssetTransfer) String() string
- type Balance_AssetTransfer_
- type Balance_BatchAssetTransfer
- func (*Balance_BatchAssetTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *Balance_BatchAssetTransfer) GetCallIndices() *CallIndices
- func (x *Balance_BatchAssetTransfer) GetFeeAssetId() uint32
- func (x *Balance_BatchAssetTransfer) GetTransfers() []*Balance_AssetTransfer
- func (*Balance_BatchAssetTransfer) ProtoMessage()
- func (x *Balance_BatchAssetTransfer) ProtoReflect() protoreflect.Message
- func (x *Balance_BatchAssetTransfer) Reset()
- func (x *Balance_BatchAssetTransfer) String() string
- type Balance_BatchAssetTransfer_
- type Balance_BatchTransfer
- func (*Balance_BatchTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *Balance_BatchTransfer) GetCallIndices() *CallIndices
- func (x *Balance_BatchTransfer) GetTransfers() []*Balance_Transfer
- func (*Balance_BatchTransfer) ProtoMessage()
- func (x *Balance_BatchTransfer) ProtoReflect() protoreflect.Message
- func (x *Balance_BatchTransfer) Reset()
- func (x *Balance_BatchTransfer) String() string
- type Balance_BatchTransfer_
- type Balance_Transfer
- func (*Balance_Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Balance_Transfer) GetCallIndices() *CallIndices
- func (x *Balance_Transfer) GetMemo() string
- func (x *Balance_Transfer) GetToAddress() string
- func (x *Balance_Transfer) GetValue() []byte
- func (*Balance_Transfer) ProtoMessage()
- func (x *Balance_Transfer) ProtoReflect() protoreflect.Message
- func (x *Balance_Transfer) Reset()
- func (x *Balance_Transfer) String() string
- type Balance_Transfer_
- type CallIndices
- func (*CallIndices) Descriptor() ([]byte, []int)deprecated
- func (x *CallIndices) GetCustom() *CustomCallIndices
- func (x *CallIndices) GetVariant() isCallIndices_Variant
- func (*CallIndices) ProtoMessage()
- func (x *CallIndices) ProtoReflect() protoreflect.Message
- func (x *CallIndices) Reset()
- func (x *CallIndices) String() string
- type CallIndices_Custom
- type CustomCallIndices
- func (*CustomCallIndices) Descriptor() ([]byte, []int)deprecated
- func (x *CustomCallIndices) GetMethodIndex() int32
- func (x *CustomCallIndices) GetModuleIndex() int32
- func (*CustomCallIndices) ProtoMessage()
- func (x *CustomCallIndices) ProtoReflect() protoreflect.Message
- func (x *CustomCallIndices) Reset()
- func (x *CustomCallIndices) String() string
- type Era
- type RewardDestination
- func (RewardDestination) Descriptor() protoreflect.EnumDescriptor
- func (x RewardDestination) Enum() *RewardDestination
- func (RewardDestination) EnumDescriptor() ([]byte, []int)deprecated
- func (x RewardDestination) Number() protoreflect.EnumNumber
- func (x RewardDestination) String() string
- func (RewardDestination) Type() protoreflect.EnumType
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetBalanceCall() *Balance
- func (x *SigningInput) GetBlockHash() []byte
- func (x *SigningInput) GetEra() *Era
- func (x *SigningInput) GetGenesisHash() []byte
- func (x *SigningInput) GetMessageOneof() isSigningInput_MessageOneof
- func (x *SigningInput) GetMultiAddress() bool
- func (x *SigningInput) GetNetwork() uint32
- func (x *SigningInput) GetNonce() uint64
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetSpecVersion() uint32
- func (x *SigningInput) GetStakingCall() *Staking
- func (x *SigningInput) GetTip() []byte
- func (x *SigningInput) GetTransactionVersion() uint32
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningInput_BalanceCall
- type SigningInput_StakingCall
- type SigningOutput
- func (*SigningOutput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningOutput) GetEncoded() []byte
- func (x *SigningOutput) GetError() common.SigningError
- func (x *SigningOutput) GetErrorMessage() string
- func (*SigningOutput) ProtoMessage()
- func (x *SigningOutput) ProtoReflect() protoreflect.Message
- func (x *SigningOutput) Reset()
- func (x *SigningOutput) String() string
- type Staking
- func (*Staking) Descriptor() ([]byte, []int)deprecated
- func (x *Staking) GetBond() *Staking_Bond
- func (x *Staking) GetBondAndNominate() *Staking_BondAndNominate
- func (x *Staking) GetBondExtra() *Staking_BondExtra
- func (x *Staking) GetChill() *Staking_Chill
- func (x *Staking) GetChillAndUnbond() *Staking_ChillAndUnbond
- func (x *Staking) GetMessageOneof() isStaking_MessageOneof
- func (x *Staking) GetNominate() *Staking_Nominate
- func (x *Staking) GetRebond() *Staking_Rebond
- func (x *Staking) GetUnbond() *Staking_Unbond
- func (x *Staking) GetWithdrawUnbonded() *Staking_WithdrawUnbonded
- func (*Staking) ProtoMessage()
- func (x *Staking) ProtoReflect() protoreflect.Message
- func (x *Staking) Reset()
- func (x *Staking) String() string
- type Staking_Bond
- func (*Staking_Bond) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_Bond) GetCallIndices() *CallIndices
- func (x *Staking_Bond) GetController() string
- func (x *Staking_Bond) GetRewardDestination() RewardDestination
- func (x *Staking_Bond) GetValue() []byte
- func (*Staking_Bond) ProtoMessage()
- func (x *Staking_Bond) ProtoReflect() protoreflect.Message
- func (x *Staking_Bond) Reset()
- func (x *Staking_Bond) String() string
- type Staking_BondAndNominate
- func (*Staking_BondAndNominate) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_BondAndNominate) GetBondCallIndices() *CallIndices
- func (x *Staking_BondAndNominate) GetCallIndices() *CallIndices
- func (x *Staking_BondAndNominate) GetController() string
- func (x *Staking_BondAndNominate) GetNominateCallIndices() *CallIndices
- func (x *Staking_BondAndNominate) GetNominators() []string
- func (x *Staking_BondAndNominate) GetRewardDestination() RewardDestination
- func (x *Staking_BondAndNominate) GetValue() []byte
- func (*Staking_BondAndNominate) ProtoMessage()
- func (x *Staking_BondAndNominate) ProtoReflect() protoreflect.Message
- func (x *Staking_BondAndNominate) Reset()
- func (x *Staking_BondAndNominate) String() string
- type Staking_BondAndNominate_
- type Staking_BondExtra
- func (*Staking_BondExtra) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_BondExtra) GetCallIndices() *CallIndices
- func (x *Staking_BondExtra) GetValue() []byte
- func (*Staking_BondExtra) ProtoMessage()
- func (x *Staking_BondExtra) ProtoReflect() protoreflect.Message
- func (x *Staking_BondExtra) Reset()
- func (x *Staking_BondExtra) String() string
- type Staking_BondExtra_
- type Staking_Bond_
- type Staking_Chill
- type Staking_ChillAndUnbond
- func (*Staking_ChillAndUnbond) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_ChillAndUnbond) GetCallIndices() *CallIndices
- func (x *Staking_ChillAndUnbond) GetChillCallIndices() *CallIndices
- func (x *Staking_ChillAndUnbond) GetUnbondCallIndices() *CallIndices
- func (x *Staking_ChillAndUnbond) GetValue() []byte
- func (*Staking_ChillAndUnbond) ProtoMessage()
- func (x *Staking_ChillAndUnbond) ProtoReflect() protoreflect.Message
- func (x *Staking_ChillAndUnbond) Reset()
- func (x *Staking_ChillAndUnbond) String() string
- type Staking_ChillAndUnbond_
- type Staking_Chill_
- type Staking_Nominate
- func (*Staking_Nominate) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_Nominate) GetCallIndices() *CallIndices
- func (x *Staking_Nominate) GetNominators() []string
- func (*Staking_Nominate) ProtoMessage()
- func (x *Staking_Nominate) ProtoReflect() protoreflect.Message
- func (x *Staking_Nominate) Reset()
- func (x *Staking_Nominate) String() string
- type Staking_Nominate_
- type Staking_Rebond
- func (*Staking_Rebond) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_Rebond) GetCallIndices() *CallIndices
- func (x *Staking_Rebond) GetValue() []byte
- func (*Staking_Rebond) ProtoMessage()
- func (x *Staking_Rebond) ProtoReflect() protoreflect.Message
- func (x *Staking_Rebond) Reset()
- func (x *Staking_Rebond) String() string
- type Staking_Rebond_
- type Staking_Unbond
- func (*Staking_Unbond) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_Unbond) GetCallIndices() *CallIndices
- func (x *Staking_Unbond) GetValue() []byte
- func (*Staking_Unbond) ProtoMessage()
- func (x *Staking_Unbond) ProtoReflect() protoreflect.Message
- func (x *Staking_Unbond) Reset()
- func (x *Staking_Unbond) String() string
- type Staking_Unbond_
- type Staking_WithdrawUnbonded
- func (*Staking_WithdrawUnbonded) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_WithdrawUnbonded) GetCallIndices() *CallIndices
- func (x *Staking_WithdrawUnbonded) GetSlashingSpans() int32
- func (*Staking_WithdrawUnbonded) ProtoMessage()
- func (x *Staking_WithdrawUnbonded) ProtoReflect() protoreflect.Message
- func (x *Staking_WithdrawUnbonded) Reset()
- func (x *Staking_WithdrawUnbonded) String() string
- type Staking_WithdrawUnbonded_
Constants ¶
This section is empty.
Variables ¶
var ( RewardDestination_name = map[int32]string{ 0: "STAKED", 1: "STASH", 2: "CONTROLLER", } RewardDestination_value = map[string]int32{ "STAKED": 0, "STASH": 1, "CONTROLLER": 2, } )
Enum value maps for RewardDestination.
var File_Polkadot_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct { // Types that are valid to be assigned to MessageOneof: // // *Balance_Transfer_ // *Balance_BatchTransfer_ // *Balance_AssetTransfer_ // *Balance_BatchAssetTransfer_ MessageOneof isBalance_MessageOneof `protobuf_oneof:"message_oneof"` // contains filtered or unexported fields }
Balance transfer transaction
func (*Balance) Descriptor
deprecated
func (*Balance) GetAssetTransfer ¶
func (x *Balance) GetAssetTransfer() *Balance_AssetTransfer
func (*Balance) GetBatchAssetTransfer ¶
func (x *Balance) GetBatchAssetTransfer() *Balance_BatchAssetTransfer
func (*Balance) GetBatchTransfer ¶
func (x *Balance) GetBatchTransfer() *Balance_BatchTransfer
func (*Balance) GetMessageOneof ¶
func (x *Balance) GetMessageOneof() isBalance_MessageOneof
func (*Balance) GetTransfer ¶
func (x *Balance) GetTransfer() *Balance_Transfer
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
func (*Balance) ProtoReflect ¶
func (x *Balance) ProtoReflect() protoreflect.Message
type Balance_AssetTransfer ¶
type Balance_AssetTransfer struct { // call indices CallIndices *CallIndices `protobuf:"bytes,1,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // destination ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` // value - BigInteger Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // asset identifier AssetId uint32 `protobuf:"varint,4,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // fee asset identifier FeeAssetId uint32 `protobuf:"varint,5,opt,name=fee_asset_id,json=feeAssetId,proto3" json:"fee_asset_id,omitempty"` // contains filtered or unexported fields }
asset transfer
func (*Balance_AssetTransfer) Descriptor
deprecated
func (*Balance_AssetTransfer) Descriptor() ([]byte, []int)
Deprecated: Use Balance_AssetTransfer.ProtoReflect.Descriptor instead.
func (*Balance_AssetTransfer) GetAssetId ¶
func (x *Balance_AssetTransfer) GetAssetId() uint32
func (*Balance_AssetTransfer) GetCallIndices ¶
func (x *Balance_AssetTransfer) GetCallIndices() *CallIndices
func (*Balance_AssetTransfer) GetFeeAssetId ¶
func (x *Balance_AssetTransfer) GetFeeAssetId() uint32
func (*Balance_AssetTransfer) GetToAddress ¶
func (x *Balance_AssetTransfer) GetToAddress() string
func (*Balance_AssetTransfer) GetValue ¶
func (x *Balance_AssetTransfer) GetValue() []byte
func (*Balance_AssetTransfer) ProtoMessage ¶
func (*Balance_AssetTransfer) ProtoMessage()
func (*Balance_AssetTransfer) ProtoReflect ¶
func (x *Balance_AssetTransfer) ProtoReflect() protoreflect.Message
func (*Balance_AssetTransfer) Reset ¶
func (x *Balance_AssetTransfer) Reset()
func (*Balance_AssetTransfer) String ¶
func (x *Balance_AssetTransfer) String() string
type Balance_AssetTransfer_ ¶
type Balance_AssetTransfer_ struct {
AssetTransfer *Balance_AssetTransfer `protobuf:"bytes,3,opt,name=asset_transfer,json=assetTransfer,proto3,oneof"`
}
type Balance_BatchAssetTransfer ¶
type Balance_BatchAssetTransfer struct { // call indices CallIndices *CallIndices `protobuf:"bytes,1,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // fee asset identifier FeeAssetId uint32 `protobuf:"varint,2,opt,name=fee_asset_id,json=feeAssetId,proto3" json:"fee_asset_id,omitempty"` Transfers []*Balance_AssetTransfer `protobuf:"bytes,3,rep,name=transfers,proto3" json:"transfers,omitempty"` // contains filtered or unexported fields }
batch asset transfer
func (*Balance_BatchAssetTransfer) Descriptor
deprecated
func (*Balance_BatchAssetTransfer) Descriptor() ([]byte, []int)
Deprecated: Use Balance_BatchAssetTransfer.ProtoReflect.Descriptor instead.
func (*Balance_BatchAssetTransfer) GetCallIndices ¶
func (x *Balance_BatchAssetTransfer) GetCallIndices() *CallIndices
func (*Balance_BatchAssetTransfer) GetFeeAssetId ¶
func (x *Balance_BatchAssetTransfer) GetFeeAssetId() uint32
func (*Balance_BatchAssetTransfer) GetTransfers ¶
func (x *Balance_BatchAssetTransfer) GetTransfers() []*Balance_AssetTransfer
func (*Balance_BatchAssetTransfer) ProtoMessage ¶
func (*Balance_BatchAssetTransfer) ProtoMessage()
func (*Balance_BatchAssetTransfer) ProtoReflect ¶
func (x *Balance_BatchAssetTransfer) ProtoReflect() protoreflect.Message
func (*Balance_BatchAssetTransfer) Reset ¶
func (x *Balance_BatchAssetTransfer) Reset()
func (*Balance_BatchAssetTransfer) String ¶
func (x *Balance_BatchAssetTransfer) String() string
type Balance_BatchAssetTransfer_ ¶
type Balance_BatchAssetTransfer_ struct {
BatchAssetTransfer *Balance_BatchAssetTransfer `protobuf:"bytes,4,opt,name=batch_asset_transfer,json=batchAssetTransfer,proto3,oneof"`
}
type Balance_BatchTransfer ¶
type Balance_BatchTransfer struct { // call indices CallIndices *CallIndices `protobuf:"bytes,1,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` Transfers []*Balance_Transfer `protobuf:"bytes,2,rep,name=transfers,proto3" json:"transfers,omitempty"` // contains filtered or unexported fields }
batch tranfer
func (*Balance_BatchTransfer) Descriptor
deprecated
func (*Balance_BatchTransfer) Descriptor() ([]byte, []int)
Deprecated: Use Balance_BatchTransfer.ProtoReflect.Descriptor instead.
func (*Balance_BatchTransfer) GetCallIndices ¶
func (x *Balance_BatchTransfer) GetCallIndices() *CallIndices
func (*Balance_BatchTransfer) GetTransfers ¶
func (x *Balance_BatchTransfer) GetTransfers() []*Balance_Transfer
func (*Balance_BatchTransfer) ProtoMessage ¶
func (*Balance_BatchTransfer) ProtoMessage()
func (*Balance_BatchTransfer) ProtoReflect ¶
func (x *Balance_BatchTransfer) ProtoReflect() protoreflect.Message
func (*Balance_BatchTransfer) Reset ¶
func (x *Balance_BatchTransfer) Reset()
func (*Balance_BatchTransfer) String ¶
func (x *Balance_BatchTransfer) String() string
type Balance_BatchTransfer_ ¶
type Balance_BatchTransfer_ struct {
BatchTransfer *Balance_BatchTransfer `protobuf:"bytes,2,opt,name=batchTransfer,proto3,oneof"`
}
type Balance_Transfer ¶
type Balance_Transfer struct { // destination address ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` // amount (uint256, serialized big endian) Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // max 32 chars Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` // call indices CallIndices *CallIndices `protobuf:"bytes,4,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // contains filtered or unexported fields }
transfer
func (*Balance_Transfer) Descriptor
deprecated
func (*Balance_Transfer) Descriptor() ([]byte, []int)
Deprecated: Use Balance_Transfer.ProtoReflect.Descriptor instead.
func (*Balance_Transfer) GetCallIndices ¶
func (x *Balance_Transfer) GetCallIndices() *CallIndices
func (*Balance_Transfer) GetMemo ¶
func (x *Balance_Transfer) GetMemo() string
func (*Balance_Transfer) GetToAddress ¶
func (x *Balance_Transfer) GetToAddress() string
func (*Balance_Transfer) GetValue ¶
func (x *Balance_Transfer) GetValue() []byte
func (*Balance_Transfer) ProtoMessage ¶
func (*Balance_Transfer) ProtoMessage()
func (*Balance_Transfer) ProtoReflect ¶
func (x *Balance_Transfer) ProtoReflect() protoreflect.Message
func (*Balance_Transfer) Reset ¶
func (x *Balance_Transfer) Reset()
func (*Balance_Transfer) String ¶
func (x *Balance_Transfer) String() string
type Balance_Transfer_ ¶
type Balance_Transfer_ struct {
Transfer *Balance_Transfer `protobuf:"bytes,1,opt,name=transfer,proto3,oneof"`
}
type CallIndices ¶
type CallIndices struct { // Types that are valid to be assigned to Variant: // // *CallIndices_Custom Variant isCallIndices_Variant `protobuf_oneof:"variant"` // contains filtered or unexported fields }
Optional call indices. Must be set if `SigningInput::network` is different from `Polkadot` and `Kusama`.
func (*CallIndices) Descriptor
deprecated
func (*CallIndices) Descriptor() ([]byte, []int)
Deprecated: Use CallIndices.ProtoReflect.Descriptor instead.
func (*CallIndices) GetCustom ¶
func (x *CallIndices) GetCustom() *CustomCallIndices
func (*CallIndices) GetVariant ¶
func (x *CallIndices) GetVariant() isCallIndices_Variant
func (*CallIndices) ProtoMessage ¶
func (*CallIndices) ProtoMessage()
func (*CallIndices) ProtoReflect ¶
func (x *CallIndices) ProtoReflect() protoreflect.Message
func (*CallIndices) Reset ¶
func (x *CallIndices) Reset()
func (*CallIndices) String ¶
func (x *CallIndices) String() string
type CallIndices_Custom ¶
type CallIndices_Custom struct {
Custom *CustomCallIndices `protobuf:"bytes,1,opt,name=custom,proto3,oneof"`
}
type CustomCallIndices ¶
type CustomCallIndices struct { // Module index. ModuleIndex int32 `protobuf:"varint,4,opt,name=module_index,json=moduleIndex,proto3" json:"module_index,omitempty"` // Method index. MethodIndex int32 `protobuf:"varint,5,opt,name=method_index,json=methodIndex,proto3" json:"method_index,omitempty"` // contains filtered or unexported fields }
Readable decoded call indices can be found at https://www.subscan.io/
func (*CustomCallIndices) Descriptor
deprecated
func (*CustomCallIndices) Descriptor() ([]byte, []int)
Deprecated: Use CustomCallIndices.ProtoReflect.Descriptor instead.
func (*CustomCallIndices) GetMethodIndex ¶
func (x *CustomCallIndices) GetMethodIndex() int32
func (*CustomCallIndices) GetModuleIndex ¶
func (x *CustomCallIndices) GetModuleIndex() int32
func (*CustomCallIndices) ProtoMessage ¶
func (*CustomCallIndices) ProtoMessage()
func (*CustomCallIndices) ProtoReflect ¶
func (x *CustomCallIndices) ProtoReflect() protoreflect.Message
func (*CustomCallIndices) Reset ¶
func (x *CustomCallIndices) Reset()
func (*CustomCallIndices) String ¶
func (x *CustomCallIndices) String() string
type Era ¶
type Era struct { // recent block number (called phase in polkadot code), should match block hash BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // length of period, calculated from block number, e.g. 64 Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` // contains filtered or unexported fields }
An era, a period defined by a starting block and length
func (*Era) Descriptor
deprecated
func (*Era) GetBlockNumber ¶
func (*Era) ProtoMessage ¶
func (*Era) ProtoMessage()
func (*Era) ProtoReflect ¶
func (x *Era) ProtoReflect() protoreflect.Message
type RewardDestination ¶
type RewardDestination int32
Destination options for reward
const ( RewardDestination_STAKED RewardDestination = 0 RewardDestination_STASH RewardDestination = 1 RewardDestination_CONTROLLER RewardDestination = 2 )
func (RewardDestination) Descriptor ¶
func (RewardDestination) Descriptor() protoreflect.EnumDescriptor
func (RewardDestination) Enum ¶
func (x RewardDestination) Enum() *RewardDestination
func (RewardDestination) EnumDescriptor
deprecated
func (RewardDestination) EnumDescriptor() ([]byte, []int)
Deprecated: Use RewardDestination.Descriptor instead.
func (RewardDestination) Number ¶
func (x RewardDestination) Number() protoreflect.EnumNumber
func (RewardDestination) String ¶
func (x RewardDestination) String() string
func (RewardDestination) Type ¶
func (RewardDestination) Type() protoreflect.EnumType
type SigningInput ¶
type SigningInput struct { // Recent block hash, or genesis hash if era is not set BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // Genesis block hash (identifies the chain) GenesisHash []byte `protobuf:"bytes,2,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty"` // Current account nonce Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` // Specification version, e.g. 26. SpecVersion uint32 `protobuf:"varint,4,opt,name=spec_version,json=specVersion,proto3" json:"spec_version,omitempty"` // Transaction version, e.g. 5. TransactionVersion uint32 `protobuf:"varint,5,opt,name=transaction_version,json=transactionVersion,proto3" json:"transaction_version,omitempty"` // Optional tip to pay, big integer Tip []byte `protobuf:"bytes,6,opt,name=tip,proto3" json:"tip,omitempty"` // Optional time validity limit, recommended, for replay-protection. Empty means Immortal. Era *Era `protobuf:"bytes,7,opt,name=era,proto3" json:"era,omitempty"` // The secret private key used for signing (32 bytes). PrivateKey []byte `protobuf:"bytes,8,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // Network type Network uint32 `protobuf:"varint,9,opt,name=network,proto3" json:"network,omitempty"` // Whether enable MultiAddress MultiAddress bool `protobuf:"varint,10,opt,name=multi_address,json=multiAddress,proto3" json:"multi_address,omitempty"` // Payload message // // Types that are valid to be assigned to MessageOneof: // // *SigningInput_BalanceCall // *SigningInput_StakingCall MessageOneof isSigningInput_MessageOneof `protobuf_oneof:"message_oneof"` // contains filtered or unexported fields }
Input data necessary to create a signed transaction.
func (*SigningInput) Descriptor
deprecated
func (*SigningInput) Descriptor() ([]byte, []int)
Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.
func (*SigningInput) GetBalanceCall ¶
func (x *SigningInput) GetBalanceCall() *Balance
func (*SigningInput) GetBlockHash ¶
func (x *SigningInput) GetBlockHash() []byte
func (*SigningInput) GetEra ¶
func (x *SigningInput) GetEra() *Era
func (*SigningInput) GetGenesisHash ¶
func (x *SigningInput) GetGenesisHash() []byte
func (*SigningInput) GetMessageOneof ¶
func (x *SigningInput) GetMessageOneof() isSigningInput_MessageOneof
func (*SigningInput) GetMultiAddress ¶
func (x *SigningInput) GetMultiAddress() bool
func (*SigningInput) GetNetwork ¶
func (x *SigningInput) GetNetwork() uint32
func (*SigningInput) GetNonce ¶
func (x *SigningInput) GetNonce() uint64
func (*SigningInput) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
func (*SigningInput) GetSpecVersion ¶
func (x *SigningInput) GetSpecVersion() uint32
func (*SigningInput) GetStakingCall ¶
func (x *SigningInput) GetStakingCall() *Staking
func (*SigningInput) GetTip ¶
func (x *SigningInput) GetTip() []byte
func (*SigningInput) GetTransactionVersion ¶
func (x *SigningInput) GetTransactionVersion() uint32
func (*SigningInput) ProtoMessage ¶
func (*SigningInput) ProtoMessage()
func (*SigningInput) ProtoReflect ¶
func (x *SigningInput) ProtoReflect() protoreflect.Message
func (*SigningInput) Reset ¶
func (x *SigningInput) Reset()
func (*SigningInput) String ¶
func (x *SigningInput) String() string
type SigningInput_BalanceCall ¶
type SigningInput_BalanceCall struct {
BalanceCall *Balance `protobuf:"bytes,11,opt,name=balance_call,json=balanceCall,proto3,oneof"`
}
type SigningInput_StakingCall ¶
type SigningInput_StakingCall struct {
StakingCall *Staking `protobuf:"bytes,12,opt,name=staking_call,json=stakingCall,proto3,oneof"`
}
type SigningOutput ¶
type SigningOutput struct { // Signed and encoded transaction bytes. Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` // error code, 0 is ok, other codes will be treated as errors Error common.SigningError `protobuf:"varint,2,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"` // error code description ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // contains filtered or unexported fields }
Result containing the signed and encoded transaction.
func (*SigningOutput) Descriptor
deprecated
func (*SigningOutput) Descriptor() ([]byte, []int)
Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.
func (*SigningOutput) GetEncoded ¶
func (x *SigningOutput) GetEncoded() []byte
func (*SigningOutput) GetError ¶
func (x *SigningOutput) GetError() common.SigningError
func (*SigningOutput) GetErrorMessage ¶
func (x *SigningOutput) GetErrorMessage() string
func (*SigningOutput) ProtoMessage ¶
func (*SigningOutput) ProtoMessage()
func (*SigningOutput) ProtoReflect ¶
func (x *SigningOutput) ProtoReflect() protoreflect.Message
func (*SigningOutput) Reset ¶
func (x *SigningOutput) Reset()
func (*SigningOutput) String ¶
func (x *SigningOutput) String() string
type Staking ¶
type Staking struct { // Payload messsage // // Types that are valid to be assigned to MessageOneof: // // *Staking_Bond_ // *Staking_BondAndNominate_ // *Staking_BondExtra_ // *Staking_Unbond_ // *Staking_WithdrawUnbonded_ // *Staking_Nominate_ // *Staking_Chill_ // *Staking_ChillAndUnbond_ // *Staking_Rebond_ MessageOneof isStaking_MessageOneof `protobuf_oneof:"message_oneof"` // contains filtered or unexported fields }
Staking transaction
func (*Staking) Descriptor
deprecated
func (*Staking) GetBond ¶
func (x *Staking) GetBond() *Staking_Bond
func (*Staking) GetBondAndNominate ¶
func (x *Staking) GetBondAndNominate() *Staking_BondAndNominate
func (*Staking) GetBondExtra ¶
func (x *Staking) GetBondExtra() *Staking_BondExtra
func (*Staking) GetChill ¶
func (x *Staking) GetChill() *Staking_Chill
func (*Staking) GetChillAndUnbond ¶
func (x *Staking) GetChillAndUnbond() *Staking_ChillAndUnbond
func (*Staking) GetMessageOneof ¶
func (x *Staking) GetMessageOneof() isStaking_MessageOneof
func (*Staking) GetNominate ¶
func (x *Staking) GetNominate() *Staking_Nominate
func (*Staking) GetRebond ¶
func (x *Staking) GetRebond() *Staking_Rebond
func (*Staking) GetUnbond ¶
func (x *Staking) GetUnbond() *Staking_Unbond
func (*Staking) GetWithdrawUnbonded ¶
func (x *Staking) GetWithdrawUnbonded() *Staking_WithdrawUnbonded
func (*Staking) ProtoMessage ¶
func (*Staking) ProtoMessage()
func (*Staking) ProtoReflect ¶
func (x *Staking) ProtoReflect() protoreflect.Message
type Staking_Bond ¶
type Staking_Bond struct { // controller ID (optional) Controller string `protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty"` // amount (uint256, serialized big endian) Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // destination for rewards RewardDestination RewardDestination `` /* 154-byte string literal not displayed */ // call indices CallIndices *CallIndices `protobuf:"bytes,4,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // contains filtered or unexported fields }
Bond to a controller
func (*Staking_Bond) Descriptor
deprecated
func (*Staking_Bond) Descriptor() ([]byte, []int)
Deprecated: Use Staking_Bond.ProtoReflect.Descriptor instead.
func (*Staking_Bond) GetCallIndices ¶
func (x *Staking_Bond) GetCallIndices() *CallIndices
func (*Staking_Bond) GetController ¶
func (x *Staking_Bond) GetController() string
func (*Staking_Bond) GetRewardDestination ¶
func (x *Staking_Bond) GetRewardDestination() RewardDestination
func (*Staking_Bond) GetValue ¶
func (x *Staking_Bond) GetValue() []byte
func (*Staking_Bond) ProtoMessage ¶
func (*Staking_Bond) ProtoMessage()
func (*Staking_Bond) ProtoReflect ¶
func (x *Staking_Bond) ProtoReflect() protoreflect.Message
func (*Staking_Bond) Reset ¶
func (x *Staking_Bond) Reset()
func (*Staking_Bond) String ¶
func (x *Staking_Bond) String() string
type Staking_BondAndNominate ¶
type Staking_BondAndNominate struct { // controller ID (optional) Controller string `protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty"` // amount (uint256, serialized big endian) Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // destination for rewards RewardDestination RewardDestination `` /* 154-byte string literal not displayed */ // list of nominators Nominators []string `protobuf:"bytes,4,rep,name=nominators,proto3" json:"nominators,omitempty"` // call indices CallIndices *CallIndices `protobuf:"bytes,5,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // Staking.Bond call indices BondCallIndices *CallIndices `protobuf:"bytes,6,opt,name=bond_call_indices,json=bondCallIndices,proto3" json:"bond_call_indices,omitempty"` // Staking.Nominate call indices NominateCallIndices *CallIndices `protobuf:"bytes,7,opt,name=nominate_call_indices,json=nominateCallIndices,proto3" json:"nominate_call_indices,omitempty"` // contains filtered or unexported fields }
Bond to a controller, with nominators
func (*Staking_BondAndNominate) Descriptor
deprecated
func (*Staking_BondAndNominate) Descriptor() ([]byte, []int)
Deprecated: Use Staking_BondAndNominate.ProtoReflect.Descriptor instead.
func (*Staking_BondAndNominate) GetBondCallIndices ¶
func (x *Staking_BondAndNominate) GetBondCallIndices() *CallIndices
func (*Staking_BondAndNominate) GetCallIndices ¶
func (x *Staking_BondAndNominate) GetCallIndices() *CallIndices
func (*Staking_BondAndNominate) GetController ¶
func (x *Staking_BondAndNominate) GetController() string
func (*Staking_BondAndNominate) GetNominateCallIndices ¶
func (x *Staking_BondAndNominate) GetNominateCallIndices() *CallIndices
func (*Staking_BondAndNominate) GetNominators ¶
func (x *Staking_BondAndNominate) GetNominators() []string
func (*Staking_BondAndNominate) GetRewardDestination ¶
func (x *Staking_BondAndNominate) GetRewardDestination() RewardDestination
func (*Staking_BondAndNominate) GetValue ¶
func (x *Staking_BondAndNominate) GetValue() []byte
func (*Staking_BondAndNominate) ProtoMessage ¶
func (*Staking_BondAndNominate) ProtoMessage()
func (*Staking_BondAndNominate) ProtoReflect ¶
func (x *Staking_BondAndNominate) ProtoReflect() protoreflect.Message
func (*Staking_BondAndNominate) Reset ¶
func (x *Staking_BondAndNominate) Reset()
func (*Staking_BondAndNominate) String ¶
func (x *Staking_BondAndNominate) String() string
type Staking_BondAndNominate_ ¶
type Staking_BondAndNominate_ struct {
BondAndNominate *Staking_BondAndNominate `protobuf:"bytes,2,opt,name=bond_and_nominate,json=bondAndNominate,proto3,oneof"`
}
type Staking_BondExtra ¶
type Staking_BondExtra struct { // amount (uint256, serialized big endian) Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // call indices CallIndices *CallIndices `protobuf:"bytes,2,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // contains filtered or unexported fields }
Bond extra amount
func (*Staking_BondExtra) Descriptor
deprecated
func (*Staking_BondExtra) Descriptor() ([]byte, []int)
Deprecated: Use Staking_BondExtra.ProtoReflect.Descriptor instead.
func (*Staking_BondExtra) GetCallIndices ¶
func (x *Staking_BondExtra) GetCallIndices() *CallIndices
func (*Staking_BondExtra) GetValue ¶
func (x *Staking_BondExtra) GetValue() []byte
func (*Staking_BondExtra) ProtoMessage ¶
func (*Staking_BondExtra) ProtoMessage()
func (*Staking_BondExtra) ProtoReflect ¶
func (x *Staking_BondExtra) ProtoReflect() protoreflect.Message
func (*Staking_BondExtra) Reset ¶
func (x *Staking_BondExtra) Reset()
func (*Staking_BondExtra) String ¶
func (x *Staking_BondExtra) String() string
type Staking_BondExtra_ ¶
type Staking_BondExtra_ struct {
BondExtra *Staking_BondExtra `protobuf:"bytes,3,opt,name=bond_extra,json=bondExtra,proto3,oneof"`
}
type Staking_Bond_ ¶
type Staking_Bond_ struct {
Bond *Staking_Bond `protobuf:"bytes,1,opt,name=bond,proto3,oneof"`
}
type Staking_Chill ¶
type Staking_Chill struct { // call indices CallIndices *CallIndices `protobuf:"bytes,1,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // contains filtered or unexported fields }
Chill
func (*Staking_Chill) Descriptor
deprecated
func (*Staking_Chill) Descriptor() ([]byte, []int)
Deprecated: Use Staking_Chill.ProtoReflect.Descriptor instead.
func (*Staking_Chill) GetCallIndices ¶
func (x *Staking_Chill) GetCallIndices() *CallIndices
func (*Staking_Chill) ProtoMessage ¶
func (*Staking_Chill) ProtoMessage()
func (*Staking_Chill) ProtoReflect ¶
func (x *Staking_Chill) ProtoReflect() protoreflect.Message
func (*Staking_Chill) Reset ¶
func (x *Staking_Chill) Reset()
func (*Staking_Chill) String ¶
func (x *Staking_Chill) String() string
type Staking_ChillAndUnbond ¶
type Staking_ChillAndUnbond struct { // amount (uint256, serialized big endian) Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // call indices CallIndices *CallIndices `protobuf:"bytes,2,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // Staking.Chill call indices ChillCallIndices *CallIndices `protobuf:"bytes,3,opt,name=chill_call_indices,json=chillCallIndices,proto3" json:"chill_call_indices,omitempty"` // Staking.Unbond call indices UnbondCallIndices *CallIndices `protobuf:"bytes,4,opt,name=unbond_call_indices,json=unbondCallIndices,proto3" json:"unbond_call_indices,omitempty"` // contains filtered or unexported fields }
Chill and unbound
func (*Staking_ChillAndUnbond) Descriptor
deprecated
func (*Staking_ChillAndUnbond) Descriptor() ([]byte, []int)
Deprecated: Use Staking_ChillAndUnbond.ProtoReflect.Descriptor instead.
func (*Staking_ChillAndUnbond) GetCallIndices ¶
func (x *Staking_ChillAndUnbond) GetCallIndices() *CallIndices
func (*Staking_ChillAndUnbond) GetChillCallIndices ¶
func (x *Staking_ChillAndUnbond) GetChillCallIndices() *CallIndices
func (*Staking_ChillAndUnbond) GetUnbondCallIndices ¶
func (x *Staking_ChillAndUnbond) GetUnbondCallIndices() *CallIndices
func (*Staking_ChillAndUnbond) GetValue ¶
func (x *Staking_ChillAndUnbond) GetValue() []byte
func (*Staking_ChillAndUnbond) ProtoMessage ¶
func (*Staking_ChillAndUnbond) ProtoMessage()
func (*Staking_ChillAndUnbond) ProtoReflect ¶
func (x *Staking_ChillAndUnbond) ProtoReflect() protoreflect.Message
func (*Staking_ChillAndUnbond) Reset ¶
func (x *Staking_ChillAndUnbond) Reset()
func (*Staking_ChillAndUnbond) String ¶
func (x *Staking_ChillAndUnbond) String() string
type Staking_ChillAndUnbond_ ¶
type Staking_ChillAndUnbond_ struct {
ChillAndUnbond *Staking_ChillAndUnbond `protobuf:"bytes,8,opt,name=chill_and_unbond,json=chillAndUnbond,proto3,oneof"`
}
type Staking_Chill_ ¶
type Staking_Chill_ struct {
Chill *Staking_Chill `protobuf:"bytes,7,opt,name=chill,proto3,oneof"`
}
type Staking_Nominate ¶
type Staking_Nominate struct { // list of nominators Nominators []string `protobuf:"bytes,1,rep,name=nominators,proto3" json:"nominators,omitempty"` // call indices CallIndices *CallIndices `protobuf:"bytes,2,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // contains filtered or unexported fields }
Nominate
func (*Staking_Nominate) Descriptor
deprecated
func (*Staking_Nominate) Descriptor() ([]byte, []int)
Deprecated: Use Staking_Nominate.ProtoReflect.Descriptor instead.
func (*Staking_Nominate) GetCallIndices ¶
func (x *Staking_Nominate) GetCallIndices() *CallIndices
func (*Staking_Nominate) GetNominators ¶
func (x *Staking_Nominate) GetNominators() []string
func (*Staking_Nominate) ProtoMessage ¶
func (*Staking_Nominate) ProtoMessage()
func (*Staking_Nominate) ProtoReflect ¶
func (x *Staking_Nominate) ProtoReflect() protoreflect.Message
func (*Staking_Nominate) Reset ¶
func (x *Staking_Nominate) Reset()
func (*Staking_Nominate) String ¶
func (x *Staking_Nominate) String() string
type Staking_Nominate_ ¶
type Staking_Nominate_ struct {
Nominate *Staking_Nominate `protobuf:"bytes,6,opt,name=nominate,proto3,oneof"`
}
type Staking_Rebond ¶
type Staking_Rebond struct { // amount (uint256, serialized big endian) Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // call indices CallIndices *CallIndices `protobuf:"bytes,2,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // contains filtered or unexported fields }
Rebond
func (*Staking_Rebond) Descriptor
deprecated
func (*Staking_Rebond) Descriptor() ([]byte, []int)
Deprecated: Use Staking_Rebond.ProtoReflect.Descriptor instead.
func (*Staking_Rebond) GetCallIndices ¶
func (x *Staking_Rebond) GetCallIndices() *CallIndices
func (*Staking_Rebond) GetValue ¶
func (x *Staking_Rebond) GetValue() []byte
func (*Staking_Rebond) ProtoMessage ¶
func (*Staking_Rebond) ProtoMessage()
func (*Staking_Rebond) ProtoReflect ¶
func (x *Staking_Rebond) ProtoReflect() protoreflect.Message
func (*Staking_Rebond) Reset ¶
func (x *Staking_Rebond) Reset()
func (*Staking_Rebond) String ¶
func (x *Staking_Rebond) String() string
type Staking_Rebond_ ¶
type Staking_Rebond_ struct {
Rebond *Staking_Rebond `protobuf:"bytes,9,opt,name=rebond,proto3,oneof"`
}
type Staking_Unbond ¶
type Staking_Unbond struct { // amount (uint256, serialized big endian) Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // call indices CallIndices *CallIndices `protobuf:"bytes,2,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // contains filtered or unexported fields }
Unbond
func (*Staking_Unbond) Descriptor
deprecated
func (*Staking_Unbond) Descriptor() ([]byte, []int)
Deprecated: Use Staking_Unbond.ProtoReflect.Descriptor instead.
func (*Staking_Unbond) GetCallIndices ¶
func (x *Staking_Unbond) GetCallIndices() *CallIndices
func (*Staking_Unbond) GetValue ¶
func (x *Staking_Unbond) GetValue() []byte
func (*Staking_Unbond) ProtoMessage ¶
func (*Staking_Unbond) ProtoMessage()
func (*Staking_Unbond) ProtoReflect ¶
func (x *Staking_Unbond) ProtoReflect() protoreflect.Message
func (*Staking_Unbond) Reset ¶
func (x *Staking_Unbond) Reset()
func (*Staking_Unbond) String ¶
func (x *Staking_Unbond) String() string
type Staking_Unbond_ ¶
type Staking_Unbond_ struct {
Unbond *Staking_Unbond `protobuf:"bytes,4,opt,name=unbond,proto3,oneof"`
}
type Staking_WithdrawUnbonded ¶
type Staking_WithdrawUnbonded struct { SlashingSpans int32 `protobuf:"varint,1,opt,name=slashing_spans,json=slashingSpans,proto3" json:"slashing_spans,omitempty"` // call indices CallIndices *CallIndices `protobuf:"bytes,2,opt,name=call_indices,json=callIndices,proto3" json:"call_indices,omitempty"` // contains filtered or unexported fields }
Withdraw unbonded amounts
func (*Staking_WithdrawUnbonded) Descriptor
deprecated
func (*Staking_WithdrawUnbonded) Descriptor() ([]byte, []int)
Deprecated: Use Staking_WithdrawUnbonded.ProtoReflect.Descriptor instead.
func (*Staking_WithdrawUnbonded) GetCallIndices ¶
func (x *Staking_WithdrawUnbonded) GetCallIndices() *CallIndices
func (*Staking_WithdrawUnbonded) GetSlashingSpans ¶
func (x *Staking_WithdrawUnbonded) GetSlashingSpans() int32
func (*Staking_WithdrawUnbonded) ProtoMessage ¶
func (*Staking_WithdrawUnbonded) ProtoMessage()
func (*Staking_WithdrawUnbonded) ProtoReflect ¶
func (x *Staking_WithdrawUnbonded) ProtoReflect() protoreflect.Message
func (*Staking_WithdrawUnbonded) Reset ¶
func (x *Staking_WithdrawUnbonded) Reset()
func (*Staking_WithdrawUnbonded) String ¶
func (x *Staking_WithdrawUnbonded) String() string
type Staking_WithdrawUnbonded_ ¶
type Staking_WithdrawUnbonded_ struct {
WithdrawUnbonded *Staking_WithdrawUnbonded `protobuf:"bytes,5,opt,name=withdraw_unbonded,json=withdrawUnbonded,proto3,oneof"`
}