Documentation
¶
Index ¶
- Variables
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetCore() *ActionCore
- func (x *Action) GetSenderPubKey() []byte
- func (x *Action) GetSignature() []byte
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type ActionCore
- func (*ActionCore) Descriptor() ([]byte, []int)deprecated
- func (x *ActionCore) GetAction() isActionCore_Action
- func (x *ActionCore) GetCandidateRegister() *Staking_CandidateRegister
- func (x *ActionCore) GetCandidateUpdate() *Staking_CandidateBasicInfo
- func (x *ActionCore) GetChainID() uint32
- func (x *ActionCore) GetExecution() *ContractCall
- func (x *ActionCore) GetGasLimit() uint64
- func (x *ActionCore) GetGasPrice() string
- func (x *ActionCore) GetNonce() uint64
- func (x *ActionCore) GetStakeAddDeposit() *Staking_AddDeposit
- func (x *ActionCore) GetStakeChangeCandidate() *Staking_ChangeCandidate
- func (x *ActionCore) GetStakeCreate() *Staking_Create
- func (x *ActionCore) GetStakeRestake() *Staking_Restake
- func (x *ActionCore) GetStakeTransferOwnership() *Staking_TransferOwnership
- func (x *ActionCore) GetStakeUnstake() *Staking_Reclaim
- func (x *ActionCore) GetStakeWithdraw() *Staking_Reclaim
- func (x *ActionCore) GetTransfer() *Transfer
- func (x *ActionCore) GetVersion() uint32
- func (*ActionCore) ProtoMessage()
- func (x *ActionCore) ProtoReflect() protoreflect.Message
- func (x *ActionCore) Reset()
- func (x *ActionCore) String() string
- type ActionCore_CandidateRegister
- type ActionCore_CandidateUpdate
- type ActionCore_Execution
- type ActionCore_StakeAddDeposit
- type ActionCore_StakeChangeCandidate
- type ActionCore_StakeCreate
- type ActionCore_StakeRestake
- type ActionCore_StakeTransferOwnership
- type ActionCore_StakeUnstake
- type ActionCore_StakeWithdraw
- type ActionCore_Transfer
- type ContractCall
- func (*ContractCall) Descriptor() ([]byte, []int)deprecated
- func (x *ContractCall) GetAmount() string
- func (x *ContractCall) GetContract() string
- func (x *ContractCall) GetData() []byte
- func (*ContractCall) ProtoMessage()
- func (x *ContractCall) ProtoReflect() protoreflect.Message
- func (x *ContractCall) Reset()
- func (x *ContractCall) String() string
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetAction() isSigningInput_Action
- func (x *SigningInput) GetCall() *ContractCall
- func (x *SigningInput) GetCandidateRegister() *Staking_CandidateRegister
- func (x *SigningInput) GetCandidateUpdate() *Staking_CandidateBasicInfo
- func (x *SigningInput) GetChainID() uint32
- func (x *SigningInput) GetGasLimit() uint64
- func (x *SigningInput) GetGasPrice() string
- func (x *SigningInput) GetNonce() uint64
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetStakeAddDeposit() *Staking_AddDeposit
- func (x *SigningInput) GetStakeChangeCandidate() *Staking_ChangeCandidate
- func (x *SigningInput) GetStakeCreate() *Staking_Create
- func (x *SigningInput) GetStakeRestake() *Staking_Restake
- func (x *SigningInput) GetStakeTransferOwnership() *Staking_TransferOwnership
- func (x *SigningInput) GetStakeUnstake() *Staking_Reclaim
- func (x *SigningInput) GetStakeWithdraw() *Staking_Reclaim
- func (x *SigningInput) GetTransfer() *Transfer
- func (x *SigningInput) GetVersion() uint32
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningInput_Call
- type SigningInput_CandidateRegister
- type SigningInput_CandidateUpdate
- type SigningInput_StakeAddDeposit
- type SigningInput_StakeChangeCandidate
- type SigningInput_StakeCreate
- type SigningInput_StakeRestake
- type SigningInput_StakeTransferOwnership
- type SigningInput_StakeUnstake
- type SigningInput_StakeWithdraw
- type SigningInput_Transfer
- 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 (x *SigningOutput) GetHash() []byte
- 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) GetCandidateRegister() *Staking_CandidateRegister
- func (x *Staking) GetCandidateUpdate() *Staking_CandidateBasicInfo
- func (x *Staking) GetMessage() isStaking_Message
- func (x *Staking) GetStakeAddDeposit() *Staking_AddDeposit
- func (x *Staking) GetStakeChangeCandidate() *Staking_ChangeCandidate
- func (x *Staking) GetStakeCreate() *Staking_Create
- func (x *Staking) GetStakeRestake() *Staking_Restake
- func (x *Staking) GetStakeTransferOwnership() *Staking_TransferOwnership
- func (x *Staking) GetStakeUnstake() *Staking_Reclaim
- func (x *Staking) GetStakeWithdraw() *Staking_Reclaim
- func (*Staking) ProtoMessage()
- func (x *Staking) ProtoReflect() protoreflect.Message
- func (x *Staking) Reset()
- func (x *Staking) String() string
- type Staking_AddDeposit
- func (*Staking_AddDeposit) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_AddDeposit) GetAmount() string
- func (x *Staking_AddDeposit) GetBucketIndex() uint64
- func (x *Staking_AddDeposit) GetPayload() []byte
- func (*Staking_AddDeposit) ProtoMessage()
- func (x *Staking_AddDeposit) ProtoReflect() protoreflect.Message
- func (x *Staking_AddDeposit) Reset()
- func (x *Staking_AddDeposit) String() string
- type Staking_CandidateBasicInfo
- func (*Staking_CandidateBasicInfo) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_CandidateBasicInfo) GetName() string
- func (x *Staking_CandidateBasicInfo) GetOperatorAddress() string
- func (x *Staking_CandidateBasicInfo) GetRewardAddress() string
- func (*Staking_CandidateBasicInfo) ProtoMessage()
- func (x *Staking_CandidateBasicInfo) ProtoReflect() protoreflect.Message
- func (x *Staking_CandidateBasicInfo) Reset()
- func (x *Staking_CandidateBasicInfo) String() string
- type Staking_CandidateRegister
- func (*Staking_CandidateRegister) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_CandidateRegister) GetAutoStake() bool
- func (x *Staking_CandidateRegister) GetCandidate() *Staking_CandidateBasicInfo
- func (x *Staking_CandidateRegister) GetOwnerAddress() string
- func (x *Staking_CandidateRegister) GetPayload() []byte
- func (x *Staking_CandidateRegister) GetStakedAmount() string
- func (x *Staking_CandidateRegister) GetStakedDuration() uint32
- func (*Staking_CandidateRegister) ProtoMessage()
- func (x *Staking_CandidateRegister) ProtoReflect() protoreflect.Message
- func (x *Staking_CandidateRegister) Reset()
- func (x *Staking_CandidateRegister) String() string
- type Staking_CandidateRegister_
- type Staking_CandidateUpdate
- type Staking_ChangeCandidate
- func (*Staking_ChangeCandidate) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_ChangeCandidate) GetBucketIndex() uint64
- func (x *Staking_ChangeCandidate) GetCandidateName() string
- func (x *Staking_ChangeCandidate) GetPayload() []byte
- func (*Staking_ChangeCandidate) ProtoMessage()
- func (x *Staking_ChangeCandidate) ProtoReflect() protoreflect.Message
- func (x *Staking_ChangeCandidate) Reset()
- func (x *Staking_ChangeCandidate) String() string
- type Staking_Create
- func (*Staking_Create) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_Create) GetAutoStake() bool
- func (x *Staking_Create) GetCandidateName() string
- func (x *Staking_Create) GetPayload() []byte
- func (x *Staking_Create) GetStakedAmount() string
- func (x *Staking_Create) GetStakedDuration() uint32
- func (*Staking_Create) ProtoMessage()
- func (x *Staking_Create) ProtoReflect() protoreflect.Message
- func (x *Staking_Create) Reset()
- func (x *Staking_Create) String() string
- type Staking_Reclaim
- func (*Staking_Reclaim) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_Reclaim) GetBucketIndex() uint64
- func (x *Staking_Reclaim) GetPayload() []byte
- func (*Staking_Reclaim) ProtoMessage()
- func (x *Staking_Reclaim) ProtoReflect() protoreflect.Message
- func (x *Staking_Reclaim) Reset()
- func (x *Staking_Reclaim) String() string
- type Staking_Restake
- func (*Staking_Restake) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_Restake) GetAutoStake() bool
- func (x *Staking_Restake) GetBucketIndex() uint64
- func (x *Staking_Restake) GetPayload() []byte
- func (x *Staking_Restake) GetStakedDuration() uint32
- func (*Staking_Restake) ProtoMessage()
- func (x *Staking_Restake) ProtoReflect() protoreflect.Message
- func (x *Staking_Restake) Reset()
- func (x *Staking_Restake) String() string
- type Staking_StakeAddDeposit
- type Staking_StakeChangeCandidate
- type Staking_StakeCreate
- type Staking_StakeRestake
- type Staking_StakeTransferOwnership
- type Staking_StakeUnstake
- type Staking_StakeWithdraw
- type Staking_TransferOwnership
- func (*Staking_TransferOwnership) Descriptor() ([]byte, []int)deprecated
- func (x *Staking_TransferOwnership) GetBucketIndex() uint64
- func (x *Staking_TransferOwnership) GetPayload() []byte
- func (x *Staking_TransferOwnership) GetVoterAddress() string
- func (*Staking_TransferOwnership) ProtoMessage()
- func (x *Staking_TransferOwnership) ProtoReflect() protoreflect.Message
- func (x *Staking_TransferOwnership) Reset()
- func (x *Staking_TransferOwnership) String() string
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transfer) GetAmount() string
- func (x *Transfer) GetPayload() []byte
- func (x *Transfer) GetRecipient() string
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
Constants ¶
This section is empty.
Variables ¶
var File_IoTeX_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { // Action details Core *ActionCore `protobuf:"bytes,1,opt,name=core,proto3" json:"core,omitempty"` // public key SenderPubKey []byte `protobuf:"bytes,2,opt,name=senderPubKey,proto3" json:"senderPubKey,omitempty"` // the signature Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
Signed Action Used internally
func (*Action) Descriptor
deprecated
func (*Action) GetCore ¶
func (x *Action) GetCore() *ActionCore
func (*Action) GetSenderPubKey ¶
func (*Action) GetSignature ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
type ActionCore ¶
type ActionCore struct { // version number Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Nonce (should be larger than in the last transaction of the account) Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // Gas limit GasLimit uint64 `protobuf:"varint,3,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"` // Gas price GasPrice string `protobuf:"bytes,4,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"` // Chain ID ChainID uint32 `protobuf:"varint,5,opt,name=chainID,proto3" json:"chainID,omitempty"` // action payload // // Types that are valid to be assigned to Action: // // *ActionCore_Transfer // *ActionCore_Execution // *ActionCore_StakeCreate // *ActionCore_StakeUnstake // *ActionCore_StakeWithdraw // *ActionCore_StakeAddDeposit // *ActionCore_StakeRestake // *ActionCore_StakeChangeCandidate // *ActionCore_StakeTransferOwnership // *ActionCore_CandidateRegister // *ActionCore_CandidateUpdate Action isActionCore_Action `protobuf_oneof:"action"` // contains filtered or unexported fields }
An Action structure Used internally
func (*ActionCore) Descriptor
deprecated
func (*ActionCore) Descriptor() ([]byte, []int)
Deprecated: Use ActionCore.ProtoReflect.Descriptor instead.
func (*ActionCore) GetAction ¶
func (x *ActionCore) GetAction() isActionCore_Action
func (*ActionCore) GetCandidateRegister ¶
func (x *ActionCore) GetCandidateRegister() *Staking_CandidateRegister
func (*ActionCore) GetCandidateUpdate ¶
func (x *ActionCore) GetCandidateUpdate() *Staking_CandidateBasicInfo
func (*ActionCore) GetChainID ¶
func (x *ActionCore) GetChainID() uint32
func (*ActionCore) GetExecution ¶
func (x *ActionCore) GetExecution() *ContractCall
func (*ActionCore) GetGasLimit ¶
func (x *ActionCore) GetGasLimit() uint64
func (*ActionCore) GetGasPrice ¶
func (x *ActionCore) GetGasPrice() string
func (*ActionCore) GetNonce ¶
func (x *ActionCore) GetNonce() uint64
func (*ActionCore) GetStakeAddDeposit ¶
func (x *ActionCore) GetStakeAddDeposit() *Staking_AddDeposit
func (*ActionCore) GetStakeChangeCandidate ¶
func (x *ActionCore) GetStakeChangeCandidate() *Staking_ChangeCandidate
func (*ActionCore) GetStakeCreate ¶
func (x *ActionCore) GetStakeCreate() *Staking_Create
func (*ActionCore) GetStakeRestake ¶
func (x *ActionCore) GetStakeRestake() *Staking_Restake
func (*ActionCore) GetStakeTransferOwnership ¶
func (x *ActionCore) GetStakeTransferOwnership() *Staking_TransferOwnership
func (*ActionCore) GetStakeUnstake ¶
func (x *ActionCore) GetStakeUnstake() *Staking_Reclaim
func (*ActionCore) GetStakeWithdraw ¶
func (x *ActionCore) GetStakeWithdraw() *Staking_Reclaim
func (*ActionCore) GetTransfer ¶
func (x *ActionCore) GetTransfer() *Transfer
func (*ActionCore) GetVersion ¶
func (x *ActionCore) GetVersion() uint32
func (*ActionCore) ProtoMessage ¶
func (*ActionCore) ProtoMessage()
func (*ActionCore) ProtoReflect ¶
func (x *ActionCore) ProtoReflect() protoreflect.Message
func (*ActionCore) Reset ¶
func (x *ActionCore) Reset()
func (*ActionCore) String ¶
func (x *ActionCore) String() string
type ActionCore_CandidateRegister ¶
type ActionCore_CandidateRegister struct {
CandidateRegister *Staking_CandidateRegister `protobuf:"bytes,47,opt,name=candidateRegister,proto3,oneof"`
}
type ActionCore_CandidateUpdate ¶
type ActionCore_CandidateUpdate struct {
CandidateUpdate *Staking_CandidateBasicInfo `protobuf:"bytes,48,opt,name=candidateUpdate,proto3,oneof"`
}
type ActionCore_Execution ¶
type ActionCore_Execution struct {
Execution *ContractCall `protobuf:"bytes,12,opt,name=execution,proto3,oneof"`
}
type ActionCore_StakeAddDeposit ¶
type ActionCore_StakeAddDeposit struct {
StakeAddDeposit *Staking_AddDeposit `protobuf:"bytes,43,opt,name=stakeAddDeposit,proto3,oneof"`
}
type ActionCore_StakeChangeCandidate ¶
type ActionCore_StakeChangeCandidate struct {
StakeChangeCandidate *Staking_ChangeCandidate `protobuf:"bytes,45,opt,name=stakeChangeCandidate,proto3,oneof"`
}
type ActionCore_StakeCreate ¶
type ActionCore_StakeCreate struct { // Native staking StakeCreate *Staking_Create `protobuf:"bytes,40,opt,name=stakeCreate,proto3,oneof"` }
type ActionCore_StakeRestake ¶
type ActionCore_StakeRestake struct {
StakeRestake *Staking_Restake `protobuf:"bytes,44,opt,name=stakeRestake,proto3,oneof"`
}
type ActionCore_StakeTransferOwnership ¶
type ActionCore_StakeTransferOwnership struct {
StakeTransferOwnership *Staking_TransferOwnership `protobuf:"bytes,46,opt,name=stakeTransferOwnership,proto3,oneof"`
}
type ActionCore_StakeUnstake ¶
type ActionCore_StakeUnstake struct {
StakeUnstake *Staking_Reclaim `protobuf:"bytes,41,opt,name=stakeUnstake,proto3,oneof"`
}
type ActionCore_StakeWithdraw ¶
type ActionCore_StakeWithdraw struct {
StakeWithdraw *Staking_Reclaim `protobuf:"bytes,42,opt,name=stakeWithdraw,proto3,oneof"`
}
type ActionCore_Transfer ¶
type ActionCore_Transfer struct {
Transfer *Transfer `protobuf:"bytes,10,opt,name=transfer,proto3,oneof"`
}
type ContractCall ¶
type ContractCall struct { // amount Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // contract address Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"` // payload data Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Arbitrary contract call
func (*ContractCall) Descriptor
deprecated
func (*ContractCall) Descriptor() ([]byte, []int)
Deprecated: Use ContractCall.ProtoReflect.Descriptor instead.
func (*ContractCall) GetAmount ¶
func (x *ContractCall) GetAmount() string
func (*ContractCall) GetContract ¶
func (x *ContractCall) GetContract() string
func (*ContractCall) GetData ¶
func (x *ContractCall) GetData() []byte
func (*ContractCall) ProtoMessage ¶
func (*ContractCall) ProtoMessage()
func (*ContractCall) ProtoReflect ¶
func (x *ContractCall) ProtoReflect() protoreflect.Message
func (*ContractCall) Reset ¶
func (x *ContractCall) Reset()
func (*ContractCall) String ¶
func (x *ContractCall) String() string
type SigningInput ¶
type SigningInput struct { // Transaction version Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Nonce (should be larger than in the last transaction of the account) Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // Limit for the gas used GasLimit uint64 `protobuf:"varint,3,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"` // Gas price GasPrice string `protobuf:"bytes,4,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"` // The chain id of blockchain ChainID uint32 `protobuf:"varint,5,opt,name=chainID,proto3" json:"chainID,omitempty"` // The secret private key used for signing (32 bytes). PrivateKey []byte `protobuf:"bytes,6,opt,name=privateKey,proto3" json:"privateKey,omitempty"` // Payload transfer // // Types that are valid to be assigned to Action: // // *SigningInput_Transfer // *SigningInput_Call // *SigningInput_StakeCreate // *SigningInput_StakeUnstake // *SigningInput_StakeWithdraw // *SigningInput_StakeAddDeposit // *SigningInput_StakeRestake // *SigningInput_StakeChangeCandidate // *SigningInput_StakeTransferOwnership // *SigningInput_CandidateRegister // *SigningInput_CandidateUpdate Action isSigningInput_Action `protobuf_oneof:"action"` // 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) GetAction ¶
func (x *SigningInput) GetAction() isSigningInput_Action
func (*SigningInput) GetCall ¶
func (x *SigningInput) GetCall() *ContractCall
func (*SigningInput) GetCandidateRegister ¶
func (x *SigningInput) GetCandidateRegister() *Staking_CandidateRegister
func (*SigningInput) GetCandidateUpdate ¶
func (x *SigningInput) GetCandidateUpdate() *Staking_CandidateBasicInfo
func (*SigningInput) GetChainID ¶
func (x *SigningInput) GetChainID() uint32
func (*SigningInput) GetGasLimit ¶
func (x *SigningInput) GetGasLimit() uint64
func (*SigningInput) GetGasPrice ¶
func (x *SigningInput) GetGasPrice() string
func (*SigningInput) GetNonce ¶
func (x *SigningInput) GetNonce() uint64
func (*SigningInput) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
func (*SigningInput) GetStakeAddDeposit ¶
func (x *SigningInput) GetStakeAddDeposit() *Staking_AddDeposit
func (*SigningInput) GetStakeChangeCandidate ¶
func (x *SigningInput) GetStakeChangeCandidate() *Staking_ChangeCandidate
func (*SigningInput) GetStakeCreate ¶
func (x *SigningInput) GetStakeCreate() *Staking_Create
func (*SigningInput) GetStakeRestake ¶
func (x *SigningInput) GetStakeRestake() *Staking_Restake
func (*SigningInput) GetStakeTransferOwnership ¶
func (x *SigningInput) GetStakeTransferOwnership() *Staking_TransferOwnership
func (*SigningInput) GetStakeUnstake ¶
func (x *SigningInput) GetStakeUnstake() *Staking_Reclaim
func (*SigningInput) GetStakeWithdraw ¶
func (x *SigningInput) GetStakeWithdraw() *Staking_Reclaim
func (*SigningInput) GetTransfer ¶
func (x *SigningInput) GetTransfer() *Transfer
func (*SigningInput) GetVersion ¶
func (x *SigningInput) GetVersion() 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_Call ¶
type SigningInput_Call struct {
Call *ContractCall `protobuf:"bytes,12,opt,name=call,proto3,oneof"`
}
type SigningInput_CandidateRegister ¶
type SigningInput_CandidateRegister struct {
CandidateRegister *Staking_CandidateRegister `protobuf:"bytes,47,opt,name=candidateRegister,proto3,oneof"`
}
type SigningInput_CandidateUpdate ¶
type SigningInput_CandidateUpdate struct {
CandidateUpdate *Staking_CandidateBasicInfo `protobuf:"bytes,48,opt,name=candidateUpdate,proto3,oneof"`
}
type SigningInput_StakeAddDeposit ¶
type SigningInput_StakeAddDeposit struct {
StakeAddDeposit *Staking_AddDeposit `protobuf:"bytes,43,opt,name=stakeAddDeposit,proto3,oneof"`
}
type SigningInput_StakeChangeCandidate ¶
type SigningInput_StakeChangeCandidate struct {
StakeChangeCandidate *Staking_ChangeCandidate `protobuf:"bytes,45,opt,name=stakeChangeCandidate,proto3,oneof"`
}
type SigningInput_StakeCreate ¶
type SigningInput_StakeCreate struct { // Native staking StakeCreate *Staking_Create `protobuf:"bytes,40,opt,name=stakeCreate,proto3,oneof"` }
type SigningInput_StakeRestake ¶
type SigningInput_StakeRestake struct {
StakeRestake *Staking_Restake `protobuf:"bytes,44,opt,name=stakeRestake,proto3,oneof"`
}
type SigningInput_StakeTransferOwnership ¶
type SigningInput_StakeTransferOwnership struct {
StakeTransferOwnership *Staking_TransferOwnership `protobuf:"bytes,46,opt,name=stakeTransferOwnership,proto3,oneof"`
}
type SigningInput_StakeUnstake ¶
type SigningInput_StakeUnstake struct {
StakeUnstake *Staking_Reclaim `protobuf:"bytes,41,opt,name=stakeUnstake,proto3,oneof"`
}
type SigningInput_StakeWithdraw ¶
type SigningInput_StakeWithdraw struct {
StakeWithdraw *Staking_Reclaim `protobuf:"bytes,42,opt,name=stakeWithdraw,proto3,oneof"`
}
type SigningInput_Transfer ¶
type SigningInput_Transfer struct {
Transfer *Transfer `protobuf:"bytes,10,opt,name=transfer,proto3,oneof"`
}
type SigningOutput ¶
type SigningOutput struct { // Signed and encoded Action bytes Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` // Signed Action hash Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // error code, 0 is ok, other codes will be treated as errors Error common.SigningError `protobuf:"varint,3,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"` // error code description ErrorMessage string `protobuf:"bytes,4,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) GetHash ¶
func (x *SigningOutput) GetHash() []byte
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 { // the payload message // // Types that are valid to be assigned to Message: // // *Staking_StakeCreate // *Staking_StakeUnstake // *Staking_StakeWithdraw // *Staking_StakeAddDeposit // *Staking_StakeRestake // *Staking_StakeChangeCandidate // *Staking_StakeTransferOwnership // *Staking_CandidateRegister_ // *Staking_CandidateUpdate Message isStaking_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
A Staking message
func (*Staking) Descriptor
deprecated
func (*Staking) GetCandidateRegister ¶
func (x *Staking) GetCandidateRegister() *Staking_CandidateRegister
func (*Staking) GetCandidateUpdate ¶
func (x *Staking) GetCandidateUpdate() *Staking_CandidateBasicInfo
func (*Staking) GetMessage ¶
func (x *Staking) GetMessage() isStaking_Message
func (*Staking) GetStakeAddDeposit ¶
func (x *Staking) GetStakeAddDeposit() *Staking_AddDeposit
func (*Staking) GetStakeChangeCandidate ¶
func (x *Staking) GetStakeChangeCandidate() *Staking_ChangeCandidate
func (*Staking) GetStakeCreate ¶
func (x *Staking) GetStakeCreate() *Staking_Create
func (*Staking) GetStakeRestake ¶
func (x *Staking) GetStakeRestake() *Staking_Restake
func (*Staking) GetStakeTransferOwnership ¶
func (x *Staking) GetStakeTransferOwnership() *Staking_TransferOwnership
func (*Staking) GetStakeUnstake ¶
func (x *Staking) GetStakeUnstake() *Staking_Reclaim
func (*Staking) GetStakeWithdraw ¶
func (x *Staking) GetStakeWithdraw() *Staking_Reclaim
func (*Staking) ProtoMessage ¶
func (*Staking) ProtoMessage()
func (*Staking) ProtoReflect ¶
func (x *Staking) ProtoReflect() protoreflect.Message
type Staking_AddDeposit ¶
type Staking_AddDeposit struct { // index BucketIndex uint64 `protobuf:"varint,1,opt,name=bucketIndex,proto3" json:"bucketIndex,omitempty"` // amount to add Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // payload data Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
add the amount of bucket
func (*Staking_AddDeposit) Descriptor
deprecated
func (*Staking_AddDeposit) Descriptor() ([]byte, []int)
Deprecated: Use Staking_AddDeposit.ProtoReflect.Descriptor instead.
func (*Staking_AddDeposit) GetAmount ¶
func (x *Staking_AddDeposit) GetAmount() string
func (*Staking_AddDeposit) GetBucketIndex ¶
func (x *Staking_AddDeposit) GetBucketIndex() uint64
func (*Staking_AddDeposit) GetPayload ¶
func (x *Staking_AddDeposit) GetPayload() []byte
func (*Staking_AddDeposit) ProtoMessage ¶
func (*Staking_AddDeposit) ProtoMessage()
func (*Staking_AddDeposit) ProtoReflect ¶
func (x *Staking_AddDeposit) ProtoReflect() protoreflect.Message
func (*Staking_AddDeposit) Reset ¶
func (x *Staking_AddDeposit) Reset()
func (*Staking_AddDeposit) String ¶
func (x *Staking_AddDeposit) String() string
type Staking_CandidateBasicInfo ¶
type Staking_CandidateBasicInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` OperatorAddress string `protobuf:"bytes,2,opt,name=operatorAddress,proto3" json:"operatorAddress,omitempty"` RewardAddress string `protobuf:"bytes,3,opt,name=rewardAddress,proto3" json:"rewardAddress,omitempty"` // contains filtered or unexported fields }
Candidate (validator) info
func (*Staking_CandidateBasicInfo) Descriptor
deprecated
func (*Staking_CandidateBasicInfo) Descriptor() ([]byte, []int)
Deprecated: Use Staking_CandidateBasicInfo.ProtoReflect.Descriptor instead.
func (*Staking_CandidateBasicInfo) GetName ¶
func (x *Staking_CandidateBasicInfo) GetName() string
func (*Staking_CandidateBasicInfo) GetOperatorAddress ¶
func (x *Staking_CandidateBasicInfo) GetOperatorAddress() string
func (*Staking_CandidateBasicInfo) GetRewardAddress ¶
func (x *Staking_CandidateBasicInfo) GetRewardAddress() string
func (*Staking_CandidateBasicInfo) ProtoMessage ¶
func (*Staking_CandidateBasicInfo) ProtoMessage()
func (*Staking_CandidateBasicInfo) ProtoReflect ¶
func (x *Staking_CandidateBasicInfo) ProtoReflect() protoreflect.Message
func (*Staking_CandidateBasicInfo) Reset ¶
func (x *Staking_CandidateBasicInfo) Reset()
func (*Staking_CandidateBasicInfo) String ¶
func (x *Staking_CandidateBasicInfo) String() string
type Staking_CandidateRegister ¶
type Staking_CandidateRegister struct { Candidate *Staking_CandidateBasicInfo `protobuf:"bytes,1,opt,name=candidate,proto3" json:"candidate,omitempty"` StakedAmount string `protobuf:"bytes,2,opt,name=stakedAmount,proto3" json:"stakedAmount,omitempty"` StakedDuration uint32 `protobuf:"varint,3,opt,name=stakedDuration,proto3" json:"stakedDuration,omitempty"` AutoStake bool `protobuf:"varint,4,opt,name=autoStake,proto3" json:"autoStake,omitempty"` OwnerAddress string `protobuf:"bytes,5,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"` // if ownerAddress is absent, owner of candidate is the sender Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
Register a Candidate
func (*Staking_CandidateRegister) Descriptor
deprecated
func (*Staking_CandidateRegister) Descriptor() ([]byte, []int)
Deprecated: Use Staking_CandidateRegister.ProtoReflect.Descriptor instead.
func (*Staking_CandidateRegister) GetAutoStake ¶
func (x *Staking_CandidateRegister) GetAutoStake() bool
func (*Staking_CandidateRegister) GetCandidate ¶
func (x *Staking_CandidateRegister) GetCandidate() *Staking_CandidateBasicInfo
func (*Staking_CandidateRegister) GetOwnerAddress ¶
func (x *Staking_CandidateRegister) GetOwnerAddress() string
func (*Staking_CandidateRegister) GetPayload ¶
func (x *Staking_CandidateRegister) GetPayload() []byte
func (*Staking_CandidateRegister) GetStakedAmount ¶
func (x *Staking_CandidateRegister) GetStakedAmount() string
func (*Staking_CandidateRegister) GetStakedDuration ¶
func (x *Staking_CandidateRegister) GetStakedDuration() uint32
func (*Staking_CandidateRegister) ProtoMessage ¶
func (*Staking_CandidateRegister) ProtoMessage()
func (*Staking_CandidateRegister) ProtoReflect ¶
func (x *Staking_CandidateRegister) ProtoReflect() protoreflect.Message
func (*Staking_CandidateRegister) Reset ¶
func (x *Staking_CandidateRegister) Reset()
func (*Staking_CandidateRegister) String ¶
func (x *Staking_CandidateRegister) String() string
type Staking_CandidateRegister_ ¶
type Staking_CandidateRegister_ struct {
CandidateRegister *Staking_CandidateRegister `protobuf:"bytes,8,opt,name=candidateRegister,proto3,oneof"`
}
type Staking_CandidateUpdate ¶
type Staking_CandidateUpdate struct {
CandidateUpdate *Staking_CandidateBasicInfo `protobuf:"bytes,9,opt,name=candidateUpdate,proto3,oneof"`
}
type Staking_ChangeCandidate ¶
type Staking_ChangeCandidate struct { // index BucketIndex uint64 `protobuf:"varint,1,opt,name=bucketIndex,proto3" json:"bucketIndex,omitempty"` // validator name CandidateName string `protobuf:"bytes,2,opt,name=candidateName,proto3" json:"candidateName,omitempty"` // payload data Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
move the bucket to vote for another candidate or transfer the ownership of bucket to another voters
func (*Staking_ChangeCandidate) Descriptor
deprecated
func (*Staking_ChangeCandidate) Descriptor() ([]byte, []int)
Deprecated: Use Staking_ChangeCandidate.ProtoReflect.Descriptor instead.
func (*Staking_ChangeCandidate) GetBucketIndex ¶
func (x *Staking_ChangeCandidate) GetBucketIndex() uint64
func (*Staking_ChangeCandidate) GetCandidateName ¶
func (x *Staking_ChangeCandidate) GetCandidateName() string
func (*Staking_ChangeCandidate) GetPayload ¶
func (x *Staking_ChangeCandidate) GetPayload() []byte
func (*Staking_ChangeCandidate) ProtoMessage ¶
func (*Staking_ChangeCandidate) ProtoMessage()
func (*Staking_ChangeCandidate) ProtoReflect ¶
func (x *Staking_ChangeCandidate) ProtoReflect() protoreflect.Message
func (*Staking_ChangeCandidate) Reset ¶
func (x *Staking_ChangeCandidate) Reset()
func (*Staking_ChangeCandidate) String ¶
func (x *Staking_ChangeCandidate) String() string
type Staking_Create ¶
type Staking_Create struct { // validator name CandidateName string `protobuf:"bytes,1,opt,name=candidateName,proto3" json:"candidateName,omitempty"` // amount to be staked StakedAmount string `protobuf:"bytes,2,opt,name=stakedAmount,proto3" json:"stakedAmount,omitempty"` // duration StakedDuration uint32 `protobuf:"varint,3,opt,name=stakedDuration,proto3" json:"stakedDuration,omitempty"` // auto-restake AutoStake bool `protobuf:"varint,4,opt,name=autoStake,proto3" json:"autoStake,omitempty"` // payload data Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
create stake
func (*Staking_Create) Descriptor
deprecated
func (*Staking_Create) Descriptor() ([]byte, []int)
Deprecated: Use Staking_Create.ProtoReflect.Descriptor instead.
func (*Staking_Create) GetAutoStake ¶
func (x *Staking_Create) GetAutoStake() bool
func (*Staking_Create) GetCandidateName ¶
func (x *Staking_Create) GetCandidateName() string
func (*Staking_Create) GetPayload ¶
func (x *Staking_Create) GetPayload() []byte
func (*Staking_Create) GetStakedAmount ¶
func (x *Staking_Create) GetStakedAmount() string
func (*Staking_Create) GetStakedDuration ¶
func (x *Staking_Create) GetStakedDuration() uint32
func (*Staking_Create) ProtoMessage ¶
func (*Staking_Create) ProtoMessage()
func (*Staking_Create) ProtoReflect ¶
func (x *Staking_Create) ProtoReflect() protoreflect.Message
func (*Staking_Create) Reset ¶
func (x *Staking_Create) Reset()
func (*Staking_Create) String ¶
func (x *Staking_Create) String() string
type Staking_Reclaim ¶
type Staking_Reclaim struct { // index to claim BucketIndex uint64 `protobuf:"varint,1,opt,name=bucketIndex,proto3" json:"bucketIndex,omitempty"` // payload data Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
unstake or withdraw
func (*Staking_Reclaim) Descriptor
deprecated
func (*Staking_Reclaim) Descriptor() ([]byte, []int)
Deprecated: Use Staking_Reclaim.ProtoReflect.Descriptor instead.
func (*Staking_Reclaim) GetBucketIndex ¶
func (x *Staking_Reclaim) GetBucketIndex() uint64
func (*Staking_Reclaim) GetPayload ¶
func (x *Staking_Reclaim) GetPayload() []byte
func (*Staking_Reclaim) ProtoMessage ¶
func (*Staking_Reclaim) ProtoMessage()
func (*Staking_Reclaim) ProtoReflect ¶
func (x *Staking_Reclaim) ProtoReflect() protoreflect.Message
func (*Staking_Reclaim) Reset ¶
func (x *Staking_Reclaim) Reset()
func (*Staking_Reclaim) String ¶
func (x *Staking_Reclaim) String() string
type Staking_Restake ¶
type Staking_Restake struct { // index BucketIndex uint64 `protobuf:"varint,1,opt,name=bucketIndex,proto3" json:"bucketIndex,omitempty"` // stake duration StakedDuration uint32 `protobuf:"varint,2,opt,name=stakedDuration,proto3" json:"stakedDuration,omitempty"` // auto re-stake AutoStake bool `protobuf:"varint,3,opt,name=autoStake,proto3" json:"autoStake,omitempty"` // payload data Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
restake the duration and autoStake flag of bucket
func (*Staking_Restake) Descriptor
deprecated
func (*Staking_Restake) Descriptor() ([]byte, []int)
Deprecated: Use Staking_Restake.ProtoReflect.Descriptor instead.
func (*Staking_Restake) GetAutoStake ¶
func (x *Staking_Restake) GetAutoStake() bool
func (*Staking_Restake) GetBucketIndex ¶
func (x *Staking_Restake) GetBucketIndex() uint64
func (*Staking_Restake) GetPayload ¶
func (x *Staking_Restake) GetPayload() []byte
func (*Staking_Restake) GetStakedDuration ¶
func (x *Staking_Restake) GetStakedDuration() uint32
func (*Staking_Restake) ProtoMessage ¶
func (*Staking_Restake) ProtoMessage()
func (*Staking_Restake) ProtoReflect ¶
func (x *Staking_Restake) ProtoReflect() protoreflect.Message
func (*Staking_Restake) Reset ¶
func (x *Staking_Restake) Reset()
func (*Staking_Restake) String ¶
func (x *Staking_Restake) String() string
type Staking_StakeAddDeposit ¶
type Staking_StakeAddDeposit struct {
StakeAddDeposit *Staking_AddDeposit `protobuf:"bytes,4,opt,name=stakeAddDeposit,proto3,oneof"`
}
type Staking_StakeChangeCandidate ¶
type Staking_StakeChangeCandidate struct {
StakeChangeCandidate *Staking_ChangeCandidate `protobuf:"bytes,6,opt,name=stakeChangeCandidate,proto3,oneof"`
}
type Staking_StakeCreate ¶
type Staking_StakeCreate struct {
StakeCreate *Staking_Create `protobuf:"bytes,1,opt,name=stakeCreate,proto3,oneof"`
}
type Staking_StakeRestake ¶
type Staking_StakeRestake struct {
StakeRestake *Staking_Restake `protobuf:"bytes,5,opt,name=stakeRestake,proto3,oneof"`
}
type Staking_StakeTransferOwnership ¶
type Staking_StakeTransferOwnership struct {
StakeTransferOwnership *Staking_TransferOwnership `protobuf:"bytes,7,opt,name=stakeTransferOwnership,proto3,oneof"`
}
type Staking_StakeUnstake ¶
type Staking_StakeUnstake struct {
StakeUnstake *Staking_Reclaim `protobuf:"bytes,2,opt,name=stakeUnstake,proto3,oneof"`
}
type Staking_StakeWithdraw ¶
type Staking_StakeWithdraw struct {
StakeWithdraw *Staking_Reclaim `protobuf:"bytes,3,opt,name=stakeWithdraw,proto3,oneof"`
}
type Staking_TransferOwnership ¶
type Staking_TransferOwnership struct { // index BucketIndex uint64 `protobuf:"varint,1,opt,name=bucketIndex,proto3" json:"bucketIndex,omitempty"` // address of voter VoterAddress string `protobuf:"bytes,2,opt,name=voterAddress,proto3" json:"voterAddress,omitempty"` // payload data Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
transfer ownserhip of stake
func (*Staking_TransferOwnership) Descriptor
deprecated
func (*Staking_TransferOwnership) Descriptor() ([]byte, []int)
Deprecated: Use Staking_TransferOwnership.ProtoReflect.Descriptor instead.
func (*Staking_TransferOwnership) GetBucketIndex ¶
func (x *Staking_TransferOwnership) GetBucketIndex() uint64
func (*Staking_TransferOwnership) GetPayload ¶
func (x *Staking_TransferOwnership) GetPayload() []byte
func (*Staking_TransferOwnership) GetVoterAddress ¶
func (x *Staking_TransferOwnership) GetVoterAddress() string
func (*Staking_TransferOwnership) ProtoMessage ¶
func (*Staking_TransferOwnership) ProtoMessage()
func (*Staking_TransferOwnership) ProtoReflect ¶
func (x *Staking_TransferOwnership) ProtoReflect() protoreflect.Message
func (*Staking_TransferOwnership) Reset ¶
func (x *Staking_TransferOwnership) Reset()
func (*Staking_TransferOwnership) String ¶
func (x *Staking_TransferOwnership) String() string
type Transfer ¶
type Transfer struct { // Amount (as string) Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // Destination address Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // Payload data Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
A transfer
func (*Transfer) Descriptor
deprecated
func (*Transfer) GetPayload ¶
func (*Transfer) GetRecipient ¶
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
func (*Transfer) ProtoReflect ¶
func (x *Transfer) ProtoReflect() protoreflect.Message