Documentation
¶
Index ¶
- Variables
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetChainId() []byte
- func (x *SigningInput) GetGasLimit() []byte
- func (x *SigningInput) GetGasPrice() []byte
- func (x *SigningInput) GetMaxFeePerGas() []byte
- func (x *SigningInput) GetMaxInclusionFeePerGas() []byte
- func (x *SigningInput) GetNonce() []byte
- func (x *SigningInput) GetToAddress() string
- func (x *SigningInput) GetTransaction() *Transaction
- func (x *SigningInput) GetTxMode() uint32
- 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) GetEncoded() []byte
- func (x *SigningOutput) GetEncodedHex() string
- func (x *SigningOutput) GetError() string
- func (x *SigningOutput) GetR() []byte
- func (x *SigningOutput) GetS() []byte
- func (x *SigningOutput) GetV() []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) GetErc20Transfer() *Transaction_ERC20Transfer
- func (x *Transaction) GetTransactionOneof() isTransaction_TransactionOneof
- func (x *Transaction) GetTransfer() *Transaction_Transfer
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type Transaction_ERC20Transfer
- func (*Transaction_ERC20Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction_ERC20Transfer) GetAmount() []byte
- func (x *Transaction_ERC20Transfer) GetTo() string
- func (*Transaction_ERC20Transfer) ProtoMessage()
- func (x *Transaction_ERC20Transfer) ProtoReflect() protoreflect.Message
- func (x *Transaction_ERC20Transfer) Reset()
- func (x *Transaction_ERC20Transfer) String() string
- type Transaction_Erc20Transfer
- type Transaction_Transfer
- func (*Transaction_Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction_Transfer) GetAmount() []byte
- func (x *Transaction_Transfer) GetData() []byte
- func (*Transaction_Transfer) ProtoMessage()
- func (x *Transaction_Transfer) ProtoReflect() protoreflect.Message
- func (x *Transaction_Transfer) Reset()
- func (x *Transaction_Transfer) String() string
- type Transaction_Transfer_
Constants ¶
This section is empty.
Variables ¶
View Source
var File_txproto_ethereum_ethereum_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SigningInput ¶
type SigningInput struct {
// Chain id, big-endian bytes (EIP-155).
ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
// Sender nonce, big-endian bytes.
Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
// Transaction type: 0 = legacy, 2 = EIP-1559 (type-2).
TxMode uint32 `protobuf:"varint,3,opt,name=tx_mode,json=txMode,proto3" json:"tx_mode,omitempty"`
// Legacy gas price, big-endian bytes (tx_mode == 0).
GasPrice []byte `protobuf:"bytes,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
// Gas limit, big-endian bytes.
GasLimit []byte `protobuf:"bytes,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
// EIP-1559 max inclusion (priority) fee per gas, big-endian bytes.
MaxInclusionFeePerGas []byte `` /* 130-byte string literal not displayed */
// EIP-1559 max fee per gas, big-endian bytes.
MaxFeePerGas []byte `protobuf:"bytes,7,opt,name=max_fee_per_gas,json=maxFeePerGas,proto3" json:"max_fee_per_gas,omitempty"`
// Destination: recipient address for native transfer, or token contract
// address for ERC-20 transfer ("0x"-prefixed hex).
ToAddress string `protobuf:"bytes,8,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
// What to do.
Transaction *Transaction `protobuf:"bytes,9,opt,name=transaction,proto3" json:"transaction,omitempty"`
// contains filtered or unexported fields
}
SigningInput mirrors a minimal subset of TW.Ethereum.Proto.SigningInput.
func (*SigningInput) Descriptor
deprecated
func (*SigningInput) Descriptor() ([]byte, []int)
Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.
func (*SigningInput) GetChainId ¶
func (x *SigningInput) GetChainId() []byte
func (*SigningInput) GetGasLimit ¶
func (x *SigningInput) GetGasLimit() []byte
func (*SigningInput) GetGasPrice ¶
func (x *SigningInput) GetGasPrice() []byte
func (*SigningInput) GetMaxFeePerGas ¶
func (x *SigningInput) GetMaxFeePerGas() []byte
func (*SigningInput) GetMaxInclusionFeePerGas ¶
func (x *SigningInput) GetMaxInclusionFeePerGas() []byte
func (*SigningInput) GetNonce ¶
func (x *SigningInput) GetNonce() []byte
func (*SigningInput) GetToAddress ¶
func (x *SigningInput) GetToAddress() string
func (*SigningInput) GetTransaction ¶
func (x *SigningInput) GetTransaction() *Transaction
func (*SigningInput) GetTxMode ¶
func (x *SigningInput) GetTxMode() 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 SigningOutput ¶
type SigningOutput struct {
// RLP-encoded signed transaction, ready to broadcast.
Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
// Signature scalars and recovery value.
R []byte `protobuf:"bytes,2,opt,name=r,proto3" json:"r,omitempty"`
S []byte `protobuf:"bytes,3,opt,name=s,proto3" json:"s,omitempty"`
V []byte `protobuf:"bytes,4,opt,name=v,proto3" json:"v,omitempty"`
// Hex of `encoded` (no "0x" prefix), for convenience.
EncodedHex string `protobuf:"bytes,5,opt,name=encoded_hex,json=encodedHex,proto3" json:"encoded_hex,omitempty"`
// Error message, empty on success.
Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
SigningOutput mirrors a minimal subset of TW.Ethereum.Proto.SigningOutput.
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) GetEncodedHex ¶
func (x *SigningOutput) GetEncodedHex() string
func (*SigningOutput) GetError ¶
func (x *SigningOutput) GetError() string
func (*SigningOutput) GetR ¶
func (x *SigningOutput) GetR() []byte
func (*SigningOutput) GetS ¶
func (x *SigningOutput) GetS() []byte
func (*SigningOutput) GetV ¶
func (x *SigningOutput) GetV() []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 {
// Types that are valid to be assigned to TransactionOneof:
//
// *Transaction_Transfer_
// *Transaction_Erc20Transfer
TransactionOneof isTransaction_TransactionOneof `protobuf_oneof:"transaction_oneof"`
// contains filtered or unexported fields
}
Transaction type / payload. Mirrors a minimal subset of Trust Wallet Core's TW.Ethereum.Proto.Transaction.
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetErc20Transfer ¶
func (x *Transaction) GetErc20Transfer() *Transaction_ERC20Transfer
func (*Transaction) GetTransactionOneof ¶
func (x *Transaction) GetTransactionOneof() isTransaction_TransactionOneof
func (*Transaction) GetTransfer ¶
func (x *Transaction) GetTransfer() *Transaction_Transfer
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_ERC20Transfer ¶
type Transaction_ERC20Transfer struct {
// Recipient address ("0x"-prefixed hex).
To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
// Token amount, big-endian uint256 bytes.
Amount []byte `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
// contains filtered or unexported fields
}
ERC-20 token transfer.
func (*Transaction_ERC20Transfer) Descriptor
deprecated
func (*Transaction_ERC20Transfer) Descriptor() ([]byte, []int)
Deprecated: Use Transaction_ERC20Transfer.ProtoReflect.Descriptor instead.
func (*Transaction_ERC20Transfer) GetAmount ¶
func (x *Transaction_ERC20Transfer) GetAmount() []byte
func (*Transaction_ERC20Transfer) GetTo ¶
func (x *Transaction_ERC20Transfer) GetTo() string
func (*Transaction_ERC20Transfer) ProtoMessage ¶
func (*Transaction_ERC20Transfer) ProtoMessage()
func (*Transaction_ERC20Transfer) ProtoReflect ¶
func (x *Transaction_ERC20Transfer) ProtoReflect() protoreflect.Message
func (*Transaction_ERC20Transfer) Reset ¶
func (x *Transaction_ERC20Transfer) Reset()
func (*Transaction_ERC20Transfer) String ¶
func (x *Transaction_ERC20Transfer) String() string
type Transaction_Erc20Transfer ¶
type Transaction_Erc20Transfer struct {
Erc20Transfer *Transaction_ERC20Transfer `protobuf:"bytes,2,opt,name=erc20_transfer,json=erc20Transfer,proto3,oneof"`
}
type Transaction_Transfer ¶
type Transaction_Transfer struct {
// Amount to send, big-endian uint256 bytes.
Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
// Optional contract-call payload appended after the value transfer.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
Native coin transfer.
func (*Transaction_Transfer) Descriptor
deprecated
func (*Transaction_Transfer) Descriptor() ([]byte, []int)
Deprecated: Use Transaction_Transfer.ProtoReflect.Descriptor instead.
func (*Transaction_Transfer) GetAmount ¶
func (x *Transaction_Transfer) GetAmount() []byte
func (*Transaction_Transfer) GetData ¶
func (x *Transaction_Transfer) GetData() []byte
func (*Transaction_Transfer) ProtoMessage ¶
func (*Transaction_Transfer) ProtoMessage()
func (*Transaction_Transfer) ProtoReflect ¶
func (x *Transaction_Transfer) ProtoReflect() protoreflect.Message
func (*Transaction_Transfer) Reset ¶
func (x *Transaction_Transfer) Reset()
func (*Transaction_Transfer) String ¶
func (x *Transaction_Transfer) String() string
type Transaction_Transfer_ ¶
type Transaction_Transfer_ struct {
Transfer *Transaction_Transfer `protobuf:"bytes,1,opt,name=transfer,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.