Documentation
¶
Index ¶
- Variables
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)deprecated
- func (x *BlockHeader) GetNumber() int64
- func (x *BlockHeader) GetParentHash() []byte
- func (x *BlockHeader) GetTimestamp() int64
- func (x *BlockHeader) GetTxTrieRoot() []byte
- func (x *BlockHeader) GetVersion() int32
- func (x *BlockHeader) GetWitnessAddress() []byte
- func (*BlockHeader) ProtoMessage()
- func (x *BlockHeader) ProtoReflect() protoreflect.Message
- func (x *BlockHeader) Reset()
- func (x *BlockHeader) String() string
- type DelegateResourceContract
- func (*DelegateResourceContract) Descriptor() ([]byte, []int)deprecated
- func (x *DelegateResourceContract) GetBalance() int64
- func (x *DelegateResourceContract) GetLock() bool
- func (x *DelegateResourceContract) GetOwnerAddress() string
- func (x *DelegateResourceContract) GetReceiverAddress() string
- func (x *DelegateResourceContract) GetResource() string
- func (*DelegateResourceContract) ProtoMessage()
- func (x *DelegateResourceContract) ProtoReflect() protoreflect.Message
- func (x *DelegateResourceContract) Reset()
- func (x *DelegateResourceContract) String() string
- type FreezeBalanceContract
- func (*FreezeBalanceContract) Descriptor() ([]byte, []int)deprecated
- func (x *FreezeBalanceContract) GetFrozenBalance() int64
- func (x *FreezeBalanceContract) GetFrozenDuration() int64
- func (x *FreezeBalanceContract) GetOwnerAddress() string
- func (x *FreezeBalanceContract) GetReceiverAddress() string
- func (x *FreezeBalanceContract) GetResource() string
- func (*FreezeBalanceContract) ProtoMessage()
- func (x *FreezeBalanceContract) ProtoReflect() protoreflect.Message
- func (x *FreezeBalanceContract) Reset()
- func (x *FreezeBalanceContract) String() string
- type FreezeBalanceV2Contract
- func (*FreezeBalanceV2Contract) Descriptor() ([]byte, []int)deprecated
- func (x *FreezeBalanceV2Contract) GetFrozenBalance() int64
- func (x *FreezeBalanceV2Contract) GetOwnerAddress() string
- func (x *FreezeBalanceV2Contract) GetResource() string
- func (*FreezeBalanceV2Contract) ProtoMessage()
- func (x *FreezeBalanceV2Contract) ProtoReflect() protoreflect.Message
- func (x *FreezeBalanceV2Contract) Reset()
- func (x *FreezeBalanceV2Contract) String() string
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetTransaction() *Transaction
- func (x *SigningInput) GetTxId() string
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningOutput
- func (*SigningOutput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningOutput) GetError() common.SigningError
- func (x *SigningOutput) GetErrorMessage() string
- func (x *SigningOutput) GetId() []byte
- func (x *SigningOutput) GetJson() string
- func (x *SigningOutput) GetRefBlockBytes() []byte
- func (x *SigningOutput) GetRefBlockHash() []byte
- func (x *SigningOutput) GetSignature() []byte
- func (*SigningOutput) ProtoMessage()
- func (x *SigningOutput) ProtoReflect() protoreflect.Message
- func (x *SigningOutput) Reset()
- func (x *SigningOutput) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetBlockHeader() *BlockHeader
- func (x *Transaction) GetContractOneof() isTransaction_ContractOneof
- func (x *Transaction) GetDelegateResource() *DelegateResourceContract
- func (x *Transaction) GetExpiration() int64
- func (x *Transaction) GetFeeLimit() int64
- func (x *Transaction) GetFreezeBalance() *FreezeBalanceContract
- func (x *Transaction) GetFreezeBalanceV2() *FreezeBalanceV2Contract
- func (x *Transaction) GetMemo() string
- func (x *Transaction) GetTimestamp() int64
- func (x *Transaction) GetTransfer() *TransferContract
- func (x *Transaction) GetTransferAsset() *TransferAssetContract
- func (x *Transaction) GetTransferTrc20Contract() *TransferTRC20Contract
- func (x *Transaction) GetTriggerSmartContract() *TriggerSmartContract
- func (x *Transaction) GetUndelegateResource() *UnDelegateResourceContract
- func (x *Transaction) GetUnfreezeAsset() *UnfreezeAssetContract
- func (x *Transaction) GetUnfreezeBalance() *UnfreezeBalanceContract
- func (x *Transaction) GetUnfreezeBalanceV2() *UnfreezeBalanceV2Contract
- func (x *Transaction) GetVoteAsset() *VoteAssetContract
- func (x *Transaction) GetVoteWitness() *VoteWitnessContract
- func (x *Transaction) GetWithdrawBalance() *WithdrawBalanceContract
- func (x *Transaction) GetWithdrawExpireUnfreeze() *WithdrawExpireUnfreezeContract
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type Transaction_DelegateResource
- type Transaction_FreezeBalance
- type Transaction_FreezeBalanceV2
- type Transaction_Transfer
- type Transaction_TransferAsset
- type Transaction_TransferTrc20Contract
- type Transaction_TriggerSmartContract
- type Transaction_UndelegateResource
- type Transaction_UnfreezeAsset
- type Transaction_UnfreezeBalance
- type Transaction_UnfreezeBalanceV2
- type Transaction_VoteAsset
- type Transaction_VoteWitness
- type Transaction_WithdrawBalance
- type Transaction_WithdrawExpireUnfreeze
- type TransferAssetContract
- func (*TransferAssetContract) Descriptor() ([]byte, []int)deprecated
- func (x *TransferAssetContract) GetAmount() int64
- func (x *TransferAssetContract) GetAssetName() string
- func (x *TransferAssetContract) GetOwnerAddress() string
- func (x *TransferAssetContract) GetToAddress() string
- func (*TransferAssetContract) ProtoMessage()
- func (x *TransferAssetContract) ProtoReflect() protoreflect.Message
- func (x *TransferAssetContract) Reset()
- func (x *TransferAssetContract) String() string
- type TransferContract
- func (*TransferContract) Descriptor() ([]byte, []int)deprecated
- func (x *TransferContract) GetAmount() int64
- func (x *TransferContract) GetOwnerAddress() string
- func (x *TransferContract) GetToAddress() string
- func (*TransferContract) ProtoMessage()
- func (x *TransferContract) ProtoReflect() protoreflect.Message
- func (x *TransferContract) Reset()
- func (x *TransferContract) String() string
- type TransferTRC20Contract
- func (*TransferTRC20Contract) Descriptor() ([]byte, []int)deprecated
- func (x *TransferTRC20Contract) GetAmount() []byte
- func (x *TransferTRC20Contract) GetContractAddress() string
- func (x *TransferTRC20Contract) GetOwnerAddress() string
- func (x *TransferTRC20Contract) GetToAddress() string
- func (*TransferTRC20Contract) ProtoMessage()
- func (x *TransferTRC20Contract) ProtoReflect() protoreflect.Message
- func (x *TransferTRC20Contract) Reset()
- func (x *TransferTRC20Contract) String() string
- type TriggerSmartContract
- func (*TriggerSmartContract) Descriptor() ([]byte, []int)deprecated
- func (x *TriggerSmartContract) GetCallTokenValue() int64
- func (x *TriggerSmartContract) GetCallValue() int64
- func (x *TriggerSmartContract) GetContractAddress() string
- func (x *TriggerSmartContract) GetData() []byte
- func (x *TriggerSmartContract) GetOwnerAddress() string
- func (x *TriggerSmartContract) GetTokenId() int64
- func (*TriggerSmartContract) ProtoMessage()
- func (x *TriggerSmartContract) ProtoReflect() protoreflect.Message
- func (x *TriggerSmartContract) Reset()
- func (x *TriggerSmartContract) String() string
- type UnDelegateResourceContract
- func (*UnDelegateResourceContract) Descriptor() ([]byte, []int)deprecated
- func (x *UnDelegateResourceContract) GetBalance() int64
- func (x *UnDelegateResourceContract) GetOwnerAddress() string
- func (x *UnDelegateResourceContract) GetReceiverAddress() string
- func (x *UnDelegateResourceContract) GetResource() string
- func (*UnDelegateResourceContract) ProtoMessage()
- func (x *UnDelegateResourceContract) ProtoReflect() protoreflect.Message
- func (x *UnDelegateResourceContract) Reset()
- func (x *UnDelegateResourceContract) String() string
- type UnfreezeAssetContract
- func (*UnfreezeAssetContract) Descriptor() ([]byte, []int)deprecated
- func (x *UnfreezeAssetContract) GetOwnerAddress() string
- func (*UnfreezeAssetContract) ProtoMessage()
- func (x *UnfreezeAssetContract) ProtoReflect() protoreflect.Message
- func (x *UnfreezeAssetContract) Reset()
- func (x *UnfreezeAssetContract) String() string
- type UnfreezeBalanceContract
- func (*UnfreezeBalanceContract) Descriptor() ([]byte, []int)deprecated
- func (x *UnfreezeBalanceContract) GetOwnerAddress() string
- func (x *UnfreezeBalanceContract) GetReceiverAddress() string
- func (x *UnfreezeBalanceContract) GetResource() string
- func (*UnfreezeBalanceContract) ProtoMessage()
- func (x *UnfreezeBalanceContract) ProtoReflect() protoreflect.Message
- func (x *UnfreezeBalanceContract) Reset()
- func (x *UnfreezeBalanceContract) String() string
- type UnfreezeBalanceV2Contract
- func (*UnfreezeBalanceV2Contract) Descriptor() ([]byte, []int)deprecated
- func (x *UnfreezeBalanceV2Contract) GetOwnerAddress() string
- func (x *UnfreezeBalanceV2Contract) GetResource() string
- func (x *UnfreezeBalanceV2Contract) GetUnfreezeBalance() int64
- func (*UnfreezeBalanceV2Contract) ProtoMessage()
- func (x *UnfreezeBalanceV2Contract) ProtoReflect() protoreflect.Message
- func (x *UnfreezeBalanceV2Contract) Reset()
- func (x *UnfreezeBalanceV2Contract) String() string
- type VoteAssetContract
- func (*VoteAssetContract) Descriptor() ([]byte, []int)deprecated
- func (x *VoteAssetContract) GetCount() int32
- func (x *VoteAssetContract) GetOwnerAddress() string
- func (x *VoteAssetContract) GetSupport() bool
- func (x *VoteAssetContract) GetVoteAddress() []string
- func (*VoteAssetContract) ProtoMessage()
- func (x *VoteAssetContract) ProtoReflect() protoreflect.Message
- func (x *VoteAssetContract) Reset()
- func (x *VoteAssetContract) String() string
- type VoteWitnessContract
- func (*VoteWitnessContract) Descriptor() ([]byte, []int)deprecated
- func (x *VoteWitnessContract) GetOwnerAddress() string
- func (x *VoteWitnessContract) GetSupport() bool
- func (x *VoteWitnessContract) GetVotes() []*VoteWitnessContract_Vote
- func (*VoteWitnessContract) ProtoMessage()
- func (x *VoteWitnessContract) ProtoReflect() protoreflect.Message
- func (x *VoteWitnessContract) Reset()
- func (x *VoteWitnessContract) String() string
- type VoteWitnessContract_Vote
- func (*VoteWitnessContract_Vote) Descriptor() ([]byte, []int)deprecated
- func (x *VoteWitnessContract_Vote) GetVoteAddress() string
- func (x *VoteWitnessContract_Vote) GetVoteCount() int64
- func (*VoteWitnessContract_Vote) ProtoMessage()
- func (x *VoteWitnessContract_Vote) ProtoReflect() protoreflect.Message
- func (x *VoteWitnessContract_Vote) Reset()
- func (x *VoteWitnessContract_Vote) String() string
- type WithdrawBalanceContract
- func (*WithdrawBalanceContract) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawBalanceContract) GetOwnerAddress() string
- func (*WithdrawBalanceContract) ProtoMessage()
- func (x *WithdrawBalanceContract) ProtoReflect() protoreflect.Message
- func (x *WithdrawBalanceContract) Reset()
- func (x *WithdrawBalanceContract) String() string
- type WithdrawExpireUnfreezeContract
- func (*WithdrawExpireUnfreezeContract) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawExpireUnfreezeContract) GetOwnerAddress() string
- func (*WithdrawExpireUnfreezeContract) ProtoMessage()
- func (x *WithdrawExpireUnfreezeContract) ProtoReflect() protoreflect.Message
- func (x *WithdrawExpireUnfreezeContract) Reset()
- func (x *WithdrawExpireUnfreezeContract) String() string
Constants ¶
This section is empty.
Variables ¶
var File_Tron_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BlockHeader ¶
type BlockHeader struct { // creation timestamp Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // root TxTrieRoot []byte `protobuf:"bytes,2,opt,name=tx_trie_root,json=txTrieRoot,proto3" json:"tx_trie_root,omitempty"` // hash of the parent ParentHash []byte `protobuf:"bytes,3,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` Number int64 `protobuf:"varint,7,opt,name=number,proto3" json:"number,omitempty"` WitnessAddress []byte `protobuf:"bytes,9,opt,name=witness_address,json=witnessAddress,proto3" json:"witness_address,omitempty"` Version int32 `protobuf:"varint,10,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Info from block header
func (*BlockHeader) Descriptor
deprecated
func (*BlockHeader) Descriptor() ([]byte, []int)
Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.
func (*BlockHeader) GetNumber ¶
func (x *BlockHeader) GetNumber() int64
func (*BlockHeader) GetParentHash ¶
func (x *BlockHeader) GetParentHash() []byte
func (*BlockHeader) GetTimestamp ¶
func (x *BlockHeader) GetTimestamp() int64
func (*BlockHeader) GetTxTrieRoot ¶
func (x *BlockHeader) GetTxTrieRoot() []byte
func (*BlockHeader) GetVersion ¶
func (x *BlockHeader) GetVersion() int32
func (*BlockHeader) GetWitnessAddress ¶
func (x *BlockHeader) GetWitnessAddress() []byte
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) ProtoReflect ¶
func (x *BlockHeader) ProtoReflect() protoreflect.Message
func (*BlockHeader) Reset ¶
func (x *BlockHeader) Reset()
func (*BlockHeader) String ¶
func (x *BlockHeader) String() string
type DelegateResourceContract ¶
type DelegateResourceContract struct { // Address of transaction initiator, data type is string OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Resource type, "BANDWIDTH" or "ENERGY", data type is string Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` // Amount of TRX staked for resource to be delegated, unit is sun, data type is uint256 Balance int64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` // Receiver address of resource to be delegated to ReceiverAddress string `protobuf:"bytes,4,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"` // Whether it is locked, if it is set to true, the delegated resources cannot be undelegated within 3 days. // When the lock time is not over, if the owner delegates the same resources using the lock to the same address, // the lock time will be reset to 3 days Lock bool `protobuf:"varint,5,opt,name=lock,proto3" json:"lock,omitempty"` // contains filtered or unexported fields }
delegate resource
func (*DelegateResourceContract) Descriptor
deprecated
func (*DelegateResourceContract) Descriptor() ([]byte, []int)
Deprecated: Use DelegateResourceContract.ProtoReflect.Descriptor instead.
func (*DelegateResourceContract) GetBalance ¶
func (x *DelegateResourceContract) GetBalance() int64
func (*DelegateResourceContract) GetLock ¶
func (x *DelegateResourceContract) GetLock() bool
func (*DelegateResourceContract) GetOwnerAddress ¶
func (x *DelegateResourceContract) GetOwnerAddress() string
func (*DelegateResourceContract) GetReceiverAddress ¶
func (x *DelegateResourceContract) GetReceiverAddress() string
func (*DelegateResourceContract) GetResource ¶
func (x *DelegateResourceContract) GetResource() string
func (*DelegateResourceContract) ProtoMessage ¶
func (*DelegateResourceContract) ProtoMessage()
func (*DelegateResourceContract) ProtoReflect ¶
func (x *DelegateResourceContract) ProtoReflect() protoreflect.Message
func (*DelegateResourceContract) Reset ¶
func (x *DelegateResourceContract) Reset()
func (*DelegateResourceContract) String ¶
func (x *DelegateResourceContract) String() string
type FreezeBalanceContract ¶
type FreezeBalanceContract struct { // Sender address. OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Frozen balance. Minimum 1 FrozenBalance int64 `protobuf:"varint,2,opt,name=frozen_balance,json=frozenBalance,proto3" json:"frozen_balance,omitempty"` // Frozen duration FrozenDuration int64 `protobuf:"varint,3,opt,name=frozen_duration,json=frozenDuration,proto3" json:"frozen_duration,omitempty"` // Resource type: BANDWIDTH | ENERGY Resource string `protobuf:"bytes,10,opt,name=resource,proto3" json:"resource,omitempty"` // Receiver address ReceiverAddress string `protobuf:"bytes,15,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"` // contains filtered or unexported fields }
Freeze balance
func (*FreezeBalanceContract) Descriptor
deprecated
func (*FreezeBalanceContract) Descriptor() ([]byte, []int)
Deprecated: Use FreezeBalanceContract.ProtoReflect.Descriptor instead.
func (*FreezeBalanceContract) GetFrozenBalance ¶
func (x *FreezeBalanceContract) GetFrozenBalance() int64
func (*FreezeBalanceContract) GetFrozenDuration ¶
func (x *FreezeBalanceContract) GetFrozenDuration() int64
func (*FreezeBalanceContract) GetOwnerAddress ¶
func (x *FreezeBalanceContract) GetOwnerAddress() string
func (*FreezeBalanceContract) GetReceiverAddress ¶
func (x *FreezeBalanceContract) GetReceiverAddress() string
func (*FreezeBalanceContract) GetResource ¶
func (x *FreezeBalanceContract) GetResource() string
func (*FreezeBalanceContract) ProtoMessage ¶
func (*FreezeBalanceContract) ProtoMessage()
func (*FreezeBalanceContract) ProtoReflect ¶
func (x *FreezeBalanceContract) ProtoReflect() protoreflect.Message
func (*FreezeBalanceContract) Reset ¶
func (x *FreezeBalanceContract) Reset()
func (*FreezeBalanceContract) String ¶
func (x *FreezeBalanceContract) String() string
type FreezeBalanceV2Contract ¶
type FreezeBalanceV2Contract struct { // Address of transaction initiator, data type is string OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Amount of TRX to be staked, unit is sun, data type is uint256 FrozenBalance int64 `protobuf:"varint,2,opt,name=frozen_balance,json=frozenBalance,proto3" json:"frozen_balance,omitempty"` // Resource type, "BANDWIDTH" or "ENERGY", data type is string Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
stake TRX to obtain TRON Power (voting rights) and bandwidth or energy.
func (*FreezeBalanceV2Contract) Descriptor
deprecated
func (*FreezeBalanceV2Contract) Descriptor() ([]byte, []int)
Deprecated: Use FreezeBalanceV2Contract.ProtoReflect.Descriptor instead.
func (*FreezeBalanceV2Contract) GetFrozenBalance ¶
func (x *FreezeBalanceV2Contract) GetFrozenBalance() int64
func (*FreezeBalanceV2Contract) GetOwnerAddress ¶
func (x *FreezeBalanceV2Contract) GetOwnerAddress() string
func (*FreezeBalanceV2Contract) GetResource ¶
func (x *FreezeBalanceV2Contract) GetResource() string
func (*FreezeBalanceV2Contract) ProtoMessage ¶
func (*FreezeBalanceV2Contract) ProtoMessage()
func (*FreezeBalanceV2Contract) ProtoReflect ¶
func (x *FreezeBalanceV2Contract) ProtoReflect() protoreflect.Message
func (*FreezeBalanceV2Contract) Reset ¶
func (x *FreezeBalanceV2Contract) Reset()
func (*FreezeBalanceV2Contract) String ¶
func (x *FreezeBalanceV2Contract) String() string
type SigningInput ¶
type SigningInput struct { // Transaction. Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // The secret private key used for signing (32 bytes). PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // For direct sign in Tron, we just have to sign the txId returned by the DApp json payload. TxId string `protobuf:"bytes,3,opt,name=txId,proto3" json:"txId,omitempty"` // 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) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
func (*SigningInput) GetTransaction ¶
func (x *SigningInput) GetTransaction() *Transaction
func (*SigningInput) GetTxId ¶
func (x *SigningInput) GetTxId() string
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 SigningOutput ¶
type SigningOutput struct { // Transaction identifier. Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Signature. Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` RefBlockBytes []byte `protobuf:"bytes,3,opt,name=ref_block_bytes,json=refBlockBytes,proto3" json:"ref_block_bytes,omitempty"` RefBlockHash []byte `protobuf:"bytes,4,opt,name=ref_block_hash,json=refBlockHash,proto3" json:"ref_block_hash,omitempty"` // Result in JSON Json string `protobuf:"bytes,5,opt,name=json,proto3" json:"json,omitempty"` // error code, 0 is ok, other codes will be treated as errors Error common.SigningError `protobuf:"varint,6,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"` // error code description ErrorMessage string `protobuf:"bytes,7,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) GetError ¶
func (x *SigningOutput) GetError() common.SigningError
func (*SigningOutput) GetErrorMessage ¶
func (x *SigningOutput) GetErrorMessage() string
func (*SigningOutput) GetId ¶
func (x *SigningOutput) GetId() []byte
func (*SigningOutput) GetJson ¶
func (x *SigningOutput) GetJson() string
func (*SigningOutput) GetRefBlockBytes ¶
func (x *SigningOutput) GetRefBlockBytes() []byte
func (*SigningOutput) GetRefBlockHash ¶
func (x *SigningOutput) GetRefBlockHash() []byte
func (*SigningOutput) GetSignature ¶
func (x *SigningOutput) GetSignature() []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 Transaction ¶
type Transaction struct { // Transaction timestamp in milliseconds. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Transaction expiration time in milliseconds. Expiration int64 `protobuf:"varint,2,opt,name=expiration,proto3" json:"expiration,omitempty"` // Transaction block header. BlockHeader *BlockHeader `protobuf:"bytes,3,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"` // Transaction fee limit. FeeLimit int64 `protobuf:"varint,4,opt,name=fee_limit,json=feeLimit,proto3" json:"fee_limit,omitempty"` // Transaction memo. Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` // Contract. // // Types that are valid to be assigned to ContractOneof: // // *Transaction_Transfer // *Transaction_TransferAsset // *Transaction_FreezeBalance // *Transaction_UnfreezeBalance // *Transaction_UnfreezeAsset // *Transaction_WithdrawBalance // *Transaction_VoteAsset // *Transaction_VoteWitness // *Transaction_TriggerSmartContract // *Transaction_TransferTrc20Contract // *Transaction_FreezeBalanceV2 // *Transaction_UnfreezeBalanceV2 // *Transaction_WithdrawExpireUnfreeze // *Transaction_DelegateResource // *Transaction_UndelegateResource ContractOneof isTransaction_ContractOneof `protobuf_oneof:"contract_oneof"` // contains filtered or unexported fields }
Transaction
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetBlockHeader ¶
func (x *Transaction) GetBlockHeader() *BlockHeader
func (*Transaction) GetContractOneof ¶
func (x *Transaction) GetContractOneof() isTransaction_ContractOneof
func (*Transaction) GetDelegateResource ¶
func (x *Transaction) GetDelegateResource() *DelegateResourceContract
func (*Transaction) GetExpiration ¶
func (x *Transaction) GetExpiration() int64
func (*Transaction) GetFeeLimit ¶
func (x *Transaction) GetFeeLimit() int64
func (*Transaction) GetFreezeBalance ¶
func (x *Transaction) GetFreezeBalance() *FreezeBalanceContract
func (*Transaction) GetFreezeBalanceV2 ¶
func (x *Transaction) GetFreezeBalanceV2() *FreezeBalanceV2Contract
func (*Transaction) GetMemo ¶
func (x *Transaction) GetMemo() string
func (*Transaction) GetTimestamp ¶
func (x *Transaction) GetTimestamp() int64
func (*Transaction) GetTransfer ¶
func (x *Transaction) GetTransfer() *TransferContract
func (*Transaction) GetTransferAsset ¶
func (x *Transaction) GetTransferAsset() *TransferAssetContract
func (*Transaction) GetTransferTrc20Contract ¶
func (x *Transaction) GetTransferTrc20Contract() *TransferTRC20Contract
func (*Transaction) GetTriggerSmartContract ¶
func (x *Transaction) GetTriggerSmartContract() *TriggerSmartContract
func (*Transaction) GetUndelegateResource ¶
func (x *Transaction) GetUndelegateResource() *UnDelegateResourceContract
func (*Transaction) GetUnfreezeAsset ¶
func (x *Transaction) GetUnfreezeAsset() *UnfreezeAssetContract
func (*Transaction) GetUnfreezeBalance ¶
func (x *Transaction) GetUnfreezeBalance() *UnfreezeBalanceContract
func (*Transaction) GetUnfreezeBalanceV2 ¶
func (x *Transaction) GetUnfreezeBalanceV2() *UnfreezeBalanceV2Contract
func (*Transaction) GetVoteAsset ¶
func (x *Transaction) GetVoteAsset() *VoteAssetContract
func (*Transaction) GetVoteWitness ¶
func (x *Transaction) GetVoteWitness() *VoteWitnessContract
func (*Transaction) GetWithdrawBalance ¶
func (x *Transaction) GetWithdrawBalance() *WithdrawBalanceContract
func (*Transaction) GetWithdrawExpireUnfreeze ¶
func (x *Transaction) GetWithdrawExpireUnfreeze() *WithdrawExpireUnfreezeContract
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type Transaction_DelegateResource ¶
type Transaction_DelegateResource struct {
DelegateResource *DelegateResourceContract `protobuf:"bytes,24,opt,name=delegate_resource,json=delegateResource,proto3,oneof"`
}
type Transaction_FreezeBalance ¶
type Transaction_FreezeBalance struct {
FreezeBalance *FreezeBalanceContract `protobuf:"bytes,12,opt,name=freeze_balance,json=freezeBalance,proto3,oneof"`
}
type Transaction_FreezeBalanceV2 ¶
type Transaction_FreezeBalanceV2 struct {
FreezeBalanceV2 *FreezeBalanceV2Contract `protobuf:"bytes,20,opt,name=freeze_balance_v2,json=freezeBalanceV2,proto3,oneof"`
}
type Transaction_Transfer ¶
type Transaction_Transfer struct {
Transfer *TransferContract `protobuf:"bytes,10,opt,name=transfer,proto3,oneof"`
}
type Transaction_TransferAsset ¶
type Transaction_TransferAsset struct {
TransferAsset *TransferAssetContract `protobuf:"bytes,11,opt,name=transfer_asset,json=transferAsset,proto3,oneof"`
}
type Transaction_TransferTrc20Contract ¶
type Transaction_TransferTrc20Contract struct {
TransferTrc20Contract *TransferTRC20Contract `protobuf:"bytes,19,opt,name=transfer_trc20_contract,json=transferTrc20Contract,proto3,oneof"`
}
type Transaction_TriggerSmartContract ¶
type Transaction_TriggerSmartContract struct {
TriggerSmartContract *TriggerSmartContract `protobuf:"bytes,18,opt,name=trigger_smart_contract,json=triggerSmartContract,proto3,oneof"`
}
type Transaction_UndelegateResource ¶
type Transaction_UndelegateResource struct {
UndelegateResource *UnDelegateResourceContract `protobuf:"bytes,25,opt,name=undelegate_resource,json=undelegateResource,proto3,oneof"`
}
type Transaction_UnfreezeAsset ¶
type Transaction_UnfreezeAsset struct {
UnfreezeAsset *UnfreezeAssetContract `protobuf:"bytes,14,opt,name=unfreeze_asset,json=unfreezeAsset,proto3,oneof"`
}
type Transaction_UnfreezeBalance ¶
type Transaction_UnfreezeBalance struct {
UnfreezeBalance *UnfreezeBalanceContract `protobuf:"bytes,13,opt,name=unfreeze_balance,json=unfreezeBalance,proto3,oneof"`
}
type Transaction_UnfreezeBalanceV2 ¶
type Transaction_UnfreezeBalanceV2 struct {
UnfreezeBalanceV2 *UnfreezeBalanceV2Contract `protobuf:"bytes,21,opt,name=unfreeze_balance_v2,json=unfreezeBalanceV2,proto3,oneof"`
}
type Transaction_VoteAsset ¶
type Transaction_VoteAsset struct {
VoteAsset *VoteAssetContract `protobuf:"bytes,16,opt,name=vote_asset,json=voteAsset,proto3,oneof"`
}
type Transaction_VoteWitness ¶
type Transaction_VoteWitness struct {
VoteWitness *VoteWitnessContract `protobuf:"bytes,17,opt,name=vote_witness,json=voteWitness,proto3,oneof"`
}
type Transaction_WithdrawBalance ¶
type Transaction_WithdrawBalance struct {
WithdrawBalance *WithdrawBalanceContract `protobuf:"bytes,15,opt,name=withdraw_balance,json=withdrawBalance,proto3,oneof"`
}
type Transaction_WithdrawExpireUnfreeze ¶
type Transaction_WithdrawExpireUnfreeze struct {
WithdrawExpireUnfreeze *WithdrawExpireUnfreezeContract `protobuf:"bytes,23,opt,name=withdraw_expire_unfreeze,json=withdrawExpireUnfreeze,proto3,oneof"`
}
type TransferAssetContract ¶
type TransferAssetContract struct { // Asset name. AssetName string `protobuf:"bytes,1,opt,name=asset_name,json=assetName,proto3" json:"asset_name,omitempty"` // Sender address. OwnerAddress string `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Recipient address. ToAddress string `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` // Amount to send. Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
Asset transfer
func (*TransferAssetContract) Descriptor
deprecated
func (*TransferAssetContract) Descriptor() ([]byte, []int)
Deprecated: Use TransferAssetContract.ProtoReflect.Descriptor instead.
func (*TransferAssetContract) GetAmount ¶
func (x *TransferAssetContract) GetAmount() int64
func (*TransferAssetContract) GetAssetName ¶
func (x *TransferAssetContract) GetAssetName() string
func (*TransferAssetContract) GetOwnerAddress ¶
func (x *TransferAssetContract) GetOwnerAddress() string
func (*TransferAssetContract) GetToAddress ¶
func (x *TransferAssetContract) GetToAddress() string
func (*TransferAssetContract) ProtoMessage ¶
func (*TransferAssetContract) ProtoMessage()
func (*TransferAssetContract) ProtoReflect ¶
func (x *TransferAssetContract) ProtoReflect() protoreflect.Message
func (*TransferAssetContract) Reset ¶
func (x *TransferAssetContract) Reset()
func (*TransferAssetContract) String ¶
func (x *TransferAssetContract) String() string
type TransferContract ¶
type TransferContract struct { // Sender address. OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Recipient address. ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` // Amount to send. Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
A transfer transaction
func (*TransferContract) Descriptor
deprecated
func (*TransferContract) Descriptor() ([]byte, []int)
Deprecated: Use TransferContract.ProtoReflect.Descriptor instead.
func (*TransferContract) GetAmount ¶
func (x *TransferContract) GetAmount() int64
func (*TransferContract) GetOwnerAddress ¶
func (x *TransferContract) GetOwnerAddress() string
func (*TransferContract) GetToAddress ¶
func (x *TransferContract) GetToAddress() string
func (*TransferContract) ProtoMessage ¶
func (*TransferContract) ProtoMessage()
func (*TransferContract) ProtoReflect ¶
func (x *TransferContract) ProtoReflect() protoreflect.Message
func (*TransferContract) Reset ¶
func (x *TransferContract) Reset()
func (*TransferContract) String ¶
func (x *TransferContract) String() string
type TransferTRC20Contract ¶
type TransferTRC20Contract struct { // Contract name. ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // Sender address. OwnerAddress string `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Recipient address. ToAddress string `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` // Amount to send, (uint256, serialized big endian) Amount []byte `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
TRC20 token transfer
func (*TransferTRC20Contract) Descriptor
deprecated
func (*TransferTRC20Contract) Descriptor() ([]byte, []int)
Deprecated: Use TransferTRC20Contract.ProtoReflect.Descriptor instead.
func (*TransferTRC20Contract) GetAmount ¶
func (x *TransferTRC20Contract) GetAmount() []byte
func (*TransferTRC20Contract) GetContractAddress ¶
func (x *TransferTRC20Contract) GetContractAddress() string
func (*TransferTRC20Contract) GetOwnerAddress ¶
func (x *TransferTRC20Contract) GetOwnerAddress() string
func (*TransferTRC20Contract) GetToAddress ¶
func (x *TransferTRC20Contract) GetToAddress() string
func (*TransferTRC20Contract) ProtoMessage ¶
func (*TransferTRC20Contract) ProtoMessage()
func (*TransferTRC20Contract) ProtoReflect ¶
func (x *TransferTRC20Contract) ProtoReflect() protoreflect.Message
func (*TransferTRC20Contract) Reset ¶
func (x *TransferTRC20Contract) Reset()
func (*TransferTRC20Contract) String ¶
func (x *TransferTRC20Contract) String() string
type TriggerSmartContract ¶
type TriggerSmartContract struct { // Owner OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Contract address ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // amount CallValue int64 `protobuf:"varint,3,opt,name=call_value,json=callValue,proto3" json:"call_value,omitempty"` // call data Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // token value CallTokenValue int64 `protobuf:"varint,5,opt,name=call_token_value,json=callTokenValue,proto3" json:"call_token_value,omitempty"` // ID of the token TokenId int64 `protobuf:"varint,6,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` // contains filtered or unexported fields }
Smart contract call
func (*TriggerSmartContract) Descriptor
deprecated
func (*TriggerSmartContract) Descriptor() ([]byte, []int)
Deprecated: Use TriggerSmartContract.ProtoReflect.Descriptor instead.
func (*TriggerSmartContract) GetCallTokenValue ¶
func (x *TriggerSmartContract) GetCallTokenValue() int64
func (*TriggerSmartContract) GetCallValue ¶
func (x *TriggerSmartContract) GetCallValue() int64
func (*TriggerSmartContract) GetContractAddress ¶
func (x *TriggerSmartContract) GetContractAddress() string
func (*TriggerSmartContract) GetData ¶
func (x *TriggerSmartContract) GetData() []byte
func (*TriggerSmartContract) GetOwnerAddress ¶
func (x *TriggerSmartContract) GetOwnerAddress() string
func (*TriggerSmartContract) GetTokenId ¶
func (x *TriggerSmartContract) GetTokenId() int64
func (*TriggerSmartContract) ProtoMessage ¶
func (*TriggerSmartContract) ProtoMessage()
func (*TriggerSmartContract) ProtoReflect ¶
func (x *TriggerSmartContract) ProtoReflect() protoreflect.Message
func (*TriggerSmartContract) Reset ¶
func (x *TriggerSmartContract) Reset()
func (*TriggerSmartContract) String ¶
func (x *TriggerSmartContract) String() string
type UnDelegateResourceContract ¶
type UnDelegateResourceContract struct { // Address of transaction initiator, data type is string OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Resource type, "BANDWIDTH" or "ENERGY", data type is string Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` // Amount of TRX staked for resource to be undelegated, unit is sun, data type is uint256 Balance int64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` // Receiver address of resource to be delegated to, data type is string ReceiverAddress string `protobuf:"bytes,4,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"` // contains filtered or unexported fields }
undelegate resource
func (*UnDelegateResourceContract) Descriptor
deprecated
func (*UnDelegateResourceContract) Descriptor() ([]byte, []int)
Deprecated: Use UnDelegateResourceContract.ProtoReflect.Descriptor instead.
func (*UnDelegateResourceContract) GetBalance ¶
func (x *UnDelegateResourceContract) GetBalance() int64
func (*UnDelegateResourceContract) GetOwnerAddress ¶
func (x *UnDelegateResourceContract) GetOwnerAddress() string
func (*UnDelegateResourceContract) GetReceiverAddress ¶
func (x *UnDelegateResourceContract) GetReceiverAddress() string
func (*UnDelegateResourceContract) GetResource ¶
func (x *UnDelegateResourceContract) GetResource() string
func (*UnDelegateResourceContract) ProtoMessage ¶
func (*UnDelegateResourceContract) ProtoMessage()
func (*UnDelegateResourceContract) ProtoReflect ¶
func (x *UnDelegateResourceContract) ProtoReflect() protoreflect.Message
func (*UnDelegateResourceContract) Reset ¶
func (x *UnDelegateResourceContract) Reset()
func (*UnDelegateResourceContract) String ¶
func (x *UnDelegateResourceContract) String() string
type UnfreezeAssetContract ¶
type UnfreezeAssetContract struct { // Sender address OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // contains filtered or unexported fields }
Unfreeze asset
func (*UnfreezeAssetContract) Descriptor
deprecated
func (*UnfreezeAssetContract) Descriptor() ([]byte, []int)
Deprecated: Use UnfreezeAssetContract.ProtoReflect.Descriptor instead.
func (*UnfreezeAssetContract) GetOwnerAddress ¶
func (x *UnfreezeAssetContract) GetOwnerAddress() string
func (*UnfreezeAssetContract) ProtoMessage ¶
func (*UnfreezeAssetContract) ProtoMessage()
func (*UnfreezeAssetContract) ProtoReflect ¶
func (x *UnfreezeAssetContract) ProtoReflect() protoreflect.Message
func (*UnfreezeAssetContract) Reset ¶
func (x *UnfreezeAssetContract) Reset()
func (*UnfreezeAssetContract) String ¶
func (x *UnfreezeAssetContract) String() string
type UnfreezeBalanceContract ¶
type UnfreezeBalanceContract struct { // Sender address OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Resource type: BANDWIDTH | ENERGY Resource string `protobuf:"bytes,10,opt,name=resource,proto3" json:"resource,omitempty"` // Receiver address ReceiverAddress string `protobuf:"bytes,15,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"` // contains filtered or unexported fields }
Unfreeze balance
func (*UnfreezeBalanceContract) Descriptor
deprecated
func (*UnfreezeBalanceContract) Descriptor() ([]byte, []int)
Deprecated: Use UnfreezeBalanceContract.ProtoReflect.Descriptor instead.
func (*UnfreezeBalanceContract) GetOwnerAddress ¶
func (x *UnfreezeBalanceContract) GetOwnerAddress() string
func (*UnfreezeBalanceContract) GetReceiverAddress ¶
func (x *UnfreezeBalanceContract) GetReceiverAddress() string
func (*UnfreezeBalanceContract) GetResource ¶
func (x *UnfreezeBalanceContract) GetResource() string
func (*UnfreezeBalanceContract) ProtoMessage ¶
func (*UnfreezeBalanceContract) ProtoMessage()
func (*UnfreezeBalanceContract) ProtoReflect ¶
func (x *UnfreezeBalanceContract) ProtoReflect() protoreflect.Message
func (*UnfreezeBalanceContract) Reset ¶
func (x *UnfreezeBalanceContract) Reset()
func (*UnfreezeBalanceContract) String ¶
func (x *UnfreezeBalanceContract) String() string
type UnfreezeBalanceV2Contract ¶
type UnfreezeBalanceV2Contract struct { // Address of transaction initiator, data type is string OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Amount of TRX to be unstaked, unit is sun, data type is uint256 UnfreezeBalance int64 `protobuf:"varint,2,opt,name=unfreeze_balance,json=unfreezeBalance,proto3" json:"unfreeze_balance,omitempty"` // Resource type, "BANDWIDTH" or "ENERGY", data type is string Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
Unstake TRX to release bandwidth and energy and at the same time TRON Power will be reduced and all corresponding votes will be canceled.
func (*UnfreezeBalanceV2Contract) Descriptor
deprecated
func (*UnfreezeBalanceV2Contract) Descriptor() ([]byte, []int)
Deprecated: Use UnfreezeBalanceV2Contract.ProtoReflect.Descriptor instead.
func (*UnfreezeBalanceV2Contract) GetOwnerAddress ¶
func (x *UnfreezeBalanceV2Contract) GetOwnerAddress() string
func (*UnfreezeBalanceV2Contract) GetResource ¶
func (x *UnfreezeBalanceV2Contract) GetResource() string
func (*UnfreezeBalanceV2Contract) GetUnfreezeBalance ¶
func (x *UnfreezeBalanceV2Contract) GetUnfreezeBalance() int64
func (*UnfreezeBalanceV2Contract) ProtoMessage ¶
func (*UnfreezeBalanceV2Contract) ProtoMessage()
func (*UnfreezeBalanceV2Contract) ProtoReflect ¶
func (x *UnfreezeBalanceV2Contract) ProtoReflect() protoreflect.Message
func (*UnfreezeBalanceV2Contract) Reset ¶
func (x *UnfreezeBalanceV2Contract) Reset()
func (*UnfreezeBalanceV2Contract) String ¶
func (x *UnfreezeBalanceV2Contract) String() string
type VoteAssetContract ¶
type VoteAssetContract struct { // Sender address OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Vote addresses VoteAddress []string `protobuf:"bytes,2,rep,name=vote_address,json=voteAddress,proto3" json:"vote_address,omitempty"` Support bool `protobuf:"varint,3,opt,name=support,proto3" json:"support,omitempty"` Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
Vote asset
func (*VoteAssetContract) Descriptor
deprecated
func (*VoteAssetContract) Descriptor() ([]byte, []int)
Deprecated: Use VoteAssetContract.ProtoReflect.Descriptor instead.
func (*VoteAssetContract) GetCount ¶
func (x *VoteAssetContract) GetCount() int32
func (*VoteAssetContract) GetOwnerAddress ¶
func (x *VoteAssetContract) GetOwnerAddress() string
func (*VoteAssetContract) GetSupport ¶
func (x *VoteAssetContract) GetSupport() bool
func (*VoteAssetContract) GetVoteAddress ¶
func (x *VoteAssetContract) GetVoteAddress() []string
func (*VoteAssetContract) ProtoMessage ¶
func (*VoteAssetContract) ProtoMessage()
func (*VoteAssetContract) ProtoReflect ¶
func (x *VoteAssetContract) ProtoReflect() protoreflect.Message
func (*VoteAssetContract) Reset ¶
func (x *VoteAssetContract) Reset()
func (*VoteAssetContract) String ¶
func (x *VoteAssetContract) String() string
type VoteWitnessContract ¶
type VoteWitnessContract struct { // Owner OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // The votes Votes []*VoteWitnessContract_Vote `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes,omitempty"` Support bool `protobuf:"varint,3,opt,name=support,proto3" json:"support,omitempty"` // contains filtered or unexported fields }
Vote witness
func (*VoteWitnessContract) Descriptor
deprecated
func (*VoteWitnessContract) Descriptor() ([]byte, []int)
Deprecated: Use VoteWitnessContract.ProtoReflect.Descriptor instead.
func (*VoteWitnessContract) GetOwnerAddress ¶
func (x *VoteWitnessContract) GetOwnerAddress() string
func (*VoteWitnessContract) GetSupport ¶
func (x *VoteWitnessContract) GetSupport() bool
func (*VoteWitnessContract) GetVotes ¶
func (x *VoteWitnessContract) GetVotes() []*VoteWitnessContract_Vote
func (*VoteWitnessContract) ProtoMessage ¶
func (*VoteWitnessContract) ProtoMessage()
func (*VoteWitnessContract) ProtoReflect ¶
func (x *VoteWitnessContract) ProtoReflect() protoreflect.Message
func (*VoteWitnessContract) Reset ¶
func (x *VoteWitnessContract) Reset()
func (*VoteWitnessContract) String ¶
func (x *VoteWitnessContract) String() string
type VoteWitnessContract_Vote ¶
type VoteWitnessContract_Vote struct { // address VoteAddress string `protobuf:"bytes,1,opt,name=vote_address,json=voteAddress,proto3" json:"vote_address,omitempty"` // vote count VoteCount int64 `protobuf:"varint,2,opt,name=vote_count,json=voteCount,proto3" json:"vote_count,omitempty"` // contains filtered or unexported fields }
A vote
func (*VoteWitnessContract_Vote) Descriptor
deprecated
func (*VoteWitnessContract_Vote) Descriptor() ([]byte, []int)
Deprecated: Use VoteWitnessContract_Vote.ProtoReflect.Descriptor instead.
func (*VoteWitnessContract_Vote) GetVoteAddress ¶
func (x *VoteWitnessContract_Vote) GetVoteAddress() string
func (*VoteWitnessContract_Vote) GetVoteCount ¶
func (x *VoteWitnessContract_Vote) GetVoteCount() int64
func (*VoteWitnessContract_Vote) ProtoMessage ¶
func (*VoteWitnessContract_Vote) ProtoMessage()
func (*VoteWitnessContract_Vote) ProtoReflect ¶
func (x *VoteWitnessContract_Vote) ProtoReflect() protoreflect.Message
func (*VoteWitnessContract_Vote) Reset ¶
func (x *VoteWitnessContract_Vote) Reset()
func (*VoteWitnessContract_Vote) String ¶
func (x *VoteWitnessContract_Vote) String() string
type WithdrawBalanceContract ¶
type WithdrawBalanceContract struct { // Sender address OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // contains filtered or unexported fields }
Withdraw balance
func (*WithdrawBalanceContract) Descriptor
deprecated
func (*WithdrawBalanceContract) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawBalanceContract.ProtoReflect.Descriptor instead.
func (*WithdrawBalanceContract) GetOwnerAddress ¶
func (x *WithdrawBalanceContract) GetOwnerAddress() string
func (*WithdrawBalanceContract) ProtoMessage ¶
func (*WithdrawBalanceContract) ProtoMessage()
func (*WithdrawBalanceContract) ProtoReflect ¶
func (x *WithdrawBalanceContract) ProtoReflect() protoreflect.Message
func (*WithdrawBalanceContract) Reset ¶
func (x *WithdrawBalanceContract) Reset()
func (*WithdrawBalanceContract) String ¶
func (x *WithdrawBalanceContract) String() string
type WithdrawExpireUnfreezeContract ¶
type WithdrawExpireUnfreezeContract struct { // Address of transaction initiator, data type is string OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // contains filtered or unexported fields }
withdraw unfrozen balance
func (*WithdrawExpireUnfreezeContract) Descriptor
deprecated
func (*WithdrawExpireUnfreezeContract) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawExpireUnfreezeContract.ProtoReflect.Descriptor instead.
func (*WithdrawExpireUnfreezeContract) GetOwnerAddress ¶
func (x *WithdrawExpireUnfreezeContract) GetOwnerAddress() string
func (*WithdrawExpireUnfreezeContract) ProtoMessage ¶
func (*WithdrawExpireUnfreezeContract) ProtoMessage()
func (*WithdrawExpireUnfreezeContract) ProtoReflect ¶
func (x *WithdrawExpireUnfreezeContract) ProtoReflect() protoreflect.Message
func (*WithdrawExpireUnfreezeContract) Reset ¶
func (x *WithdrawExpireUnfreezeContract) Reset()
func (*WithdrawExpireUnfreezeContract) String ¶
func (x *WithdrawExpireUnfreezeContract) String() string