Documentation
¶
Index ¶
- Constants
- Variables
- type FrontendTransactionEVM
- type TransactionEVM
- func (tx *TransactionEVM) BuildEthereumSigner() (ethTypes.Signer, error)
- func (tx *TransactionEVM) BuildEthereumTransaction() *ethTypes.Transaction
- func (tx *TransactionEVM) CheckIntegrity() error
- func (*TransactionEVM) Descriptor() ([]byte, []int)
- func (this *TransactionEVM) Equal(that interface{}) bool
- func (tx *TransactionEVM) GetChainID() []byte
- func (tx *TransactionEVM) GetData() []byte
- func (tx *TransactionEVM) GetDataForSigning(encoder data.Encoder, marshaller data.Marshaller, hasher data.Hasher) ([]byte, error)
- func (tx *TransactionEVM) GetGasLimit() uint64
- func (tx *TransactionEVM) GetGasPrice() uint64
- func (tx *TransactionEVM) GetGuardianAddr() []byte
- func (tx *TransactionEVM) GetGuardianSignature() []byte
- func (tx *TransactionEVM) GetMainAddressIdentifier() evmCore.AddressIdentifier
- func (tx *TransactionEVM) GetNonce() uint64
- func (tx *TransactionEVM) GetOptions() uint32
- func (m *TransactionEVM) GetOriginalData() []byte
- func (tx *TransactionEVM) GetRcvAddr() []byte
- func (m *TransactionEVM) GetRcvAliasAddr() []byte
- func (tx *TransactionEVM) GetRcvUserName() []byte
- func (tx *TransactionEVM) GetRelayerAddr() []byte
- func (tx *TransactionEVM) GetRelayerSignature() []byte
- func (tx *TransactionEVM) GetSignature() []byte
- func (tx *TransactionEVM) GetSndAddr() []byte
- func (m *TransactionEVM) GetSndAliasAddr() []byte
- func (tx *TransactionEVM) GetSndUserName() []byte
- func (m *TransactionEVM) GetTransaction() *transaction.Transaction
- func (tx *TransactionEVM) GetValue() *big.Int
- func (tx *TransactionEVM) GetVersion() uint32
- func (this *TransactionEVM) GoString() string
- func (tx *TransactionEVM) HasOptionETHTransactionFormat() bool
- func (tx *TransactionEVM) HasOptionGuardianSet() bool
- func (tx *TransactionEVM) HasOptionHashSignSet() bool
- func (tx *TransactionEVM) IsInterfaceNil() bool
- func (m *TransactionEVM) Marshal() (dAtA []byte, err error)
- func (m *TransactionEVM) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionEVM) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionEVM) ProtoMessage()
- func (m *TransactionEVM) Reset()
- func (tx *TransactionEVM) SetData(data []byte)
- func (tx *TransactionEVM) SetGasLimit(gasLimit uint64)
- func (tx *TransactionEVM) SetGasPrice(gasPrice uint64)
- func (tx *TransactionEVM) SetGuardianAddr(addr []byte)
- func (tx *TransactionEVM) SetGuardianSignature(signature []byte)
- func (tx *TransactionEVM) SetRcvAddr(addr []byte)
- func (tx *TransactionEVM) SetSignature(signature []byte)
- func (tx *TransactionEVM) SetSndAddr(addr []byte)
- func (tx *TransactionEVM) SetValue(value *big.Int)
- func (m *TransactionEVM) Size() (n int)
- func (this *TransactionEVM) String() string
- func (m *TransactionEVM) Unmarshal(dAtA []byte) error
- func (m *TransactionEVM) XXX_DiscardUnknown()
- func (m *TransactionEVM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionEVM) XXX_Merge(src proto.Message)
- func (m *TransactionEVM) XXX_Size() int
- func (m *TransactionEVM) XXX_Unmarshal(b []byte) error
Constants ¶
const MaskETHTransactionFormat = uint32(1) << 2
MaskETHTransactionFormat - this mask is used to verify if the flag for eth transaction format is set in the transaction option field
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FrontendTransactionEVM ¶
type FrontendTransactionEVM struct {
*transaction.FrontendTransaction
SenderAliasAddress []byte `json:"senderAliasAddress,omitempty"`
ReceiverAliasAddress []byte `json:"receiverAliasAddress,omitempty"`
OriginalData []byte `json:"originalData,omitempty"`
}
type TransactionEVM ¶
type TransactionEVM struct {
Transaction *transaction.Transaction `protobuf:"bytes,1,opt,name=Transaction,proto3" json:"transaction"`
RcvAliasAddr []byte `protobuf:"bytes,2,opt,name=RcvAliasAddr,proto3" json:"rcvAliasAddr,omitempty"`
SndAliasAddr []byte `protobuf:"bytes,3,opt,name=SndAliasAddr,proto3" json:"sndAliasAddr,omitempty"`
OriginalData []byte `protobuf:"bytes,4,opt,name=OriginalData,proto3" json:"originalData,omitempty"`
}
func (*TransactionEVM) BuildEthereumSigner ¶
func (tx *TransactionEVM) BuildEthereumSigner() (ethTypes.Signer, error)
func (*TransactionEVM) BuildEthereumTransaction ¶
func (tx *TransactionEVM) BuildEthereumTransaction() *ethTypes.Transaction
func (*TransactionEVM) CheckIntegrity ¶
func (tx *TransactionEVM) CheckIntegrity() error
CheckIntegrity checks for not nil fields and negative value
func (*TransactionEVM) Descriptor ¶
func (*TransactionEVM) Descriptor() ([]byte, []int)
func (*TransactionEVM) Equal ¶
func (this *TransactionEVM) Equal(that interface{}) bool
func (*TransactionEVM) GetChainID ¶
func (tx *TransactionEVM) GetChainID() []byte
GetChainID returns the chain id of the transaction
func (*TransactionEVM) GetData ¶
func (tx *TransactionEVM) GetData() []byte
GetData returns the data of the transaction
func (*TransactionEVM) GetDataForSigning ¶
func (tx *TransactionEVM) GetDataForSigning(encoder data.Encoder, marshaller data.Marshaller, hasher data.Hasher) ([]byte, error)
GetDataForSigning returns the serialized transaction having an empty signature field
func (*TransactionEVM) GetGasLimit ¶
func (tx *TransactionEVM) GetGasLimit() uint64
GetGasLimit returns the gas limit of the transaction
func (*TransactionEVM) GetGasPrice ¶
func (tx *TransactionEVM) GetGasPrice() uint64
GetGasPrice returns the gas price of the transaction
func (*TransactionEVM) GetGuardianAddr ¶
func (tx *TransactionEVM) GetGuardianAddr() []byte
GetGuardianAddr returns the guardian address of the transaction
func (*TransactionEVM) GetGuardianSignature ¶
func (tx *TransactionEVM) GetGuardianSignature() []byte
GetGuardianSignature returns the guardian signature of the transaction
func (*TransactionEVM) GetMainAddressIdentifier ¶
func (tx *TransactionEVM) GetMainAddressIdentifier() evmCore.AddressIdentifier
GetMainAddressIdentifier returns the main address identifier
func (*TransactionEVM) GetNonce ¶
func (tx *TransactionEVM) GetNonce() uint64
GetNonce returns the nonce of the transaction
func (*TransactionEVM) GetOptions ¶
func (tx *TransactionEVM) GetOptions() uint32
GetOptions returns the options of the transaction
func (*TransactionEVM) GetOriginalData ¶
func (m *TransactionEVM) GetOriginalData() []byte
func (*TransactionEVM) GetRcvAddr ¶
func (tx *TransactionEVM) GetRcvAddr() []byte
GetRcvAddr returns the recevier address of the transaction
func (*TransactionEVM) GetRcvAliasAddr ¶
func (m *TransactionEVM) GetRcvAliasAddr() []byte
func (*TransactionEVM) GetRcvUserName ¶
func (tx *TransactionEVM) GetRcvUserName() []byte
GetRcvUserName returns the receiver username of the transaction
func (*TransactionEVM) GetRelayerAddr ¶
func (tx *TransactionEVM) GetRelayerAddr() []byte
GetRelayerAddr returns the relayer address of the transaction
func (*TransactionEVM) GetRelayerSignature ¶
func (tx *TransactionEVM) GetRelayerSignature() []byte
GetRelayerSignature returns the relayer signature of the transaction
func (*TransactionEVM) GetSignature ¶
func (tx *TransactionEVM) GetSignature() []byte
GetSignature returns the signature of the transaction
func (*TransactionEVM) GetSndAddr ¶
func (tx *TransactionEVM) GetSndAddr() []byte
GetSndAddr returns the sender address of the transaction
func (*TransactionEVM) GetSndAliasAddr ¶
func (m *TransactionEVM) GetSndAliasAddr() []byte
func (*TransactionEVM) GetSndUserName ¶
func (tx *TransactionEVM) GetSndUserName() []byte
GetSndUserName returns the sender username of the transaction
func (*TransactionEVM) GetTransaction ¶
func (m *TransactionEVM) GetTransaction() *transaction.Transaction
func (*TransactionEVM) GetValue ¶
func (tx *TransactionEVM) GetValue() *big.Int
GetValue returns the value of the transaction
func (*TransactionEVM) GetVersion ¶
func (tx *TransactionEVM) GetVersion() uint32
GetVersion returns the version of the transaction
func (*TransactionEVM) GoString ¶
func (this *TransactionEVM) GoString() string
func (*TransactionEVM) HasOptionETHTransactionFormat ¶
func (tx *TransactionEVM) HasOptionETHTransactionFormat() bool
HasOptionETHTransactionFormat returns true if the ETH transaction format option is set
func (*TransactionEVM) HasOptionGuardianSet ¶
func (tx *TransactionEVM) HasOptionGuardianSet() bool
HasOptionGuardianSet returns true if the guarded transaction option is set
func (*TransactionEVM) HasOptionHashSignSet ¶
func (tx *TransactionEVM) HasOptionHashSignSet() bool
HasOptionHashSignSet returns true if the signed with hash option is set
func (*TransactionEVM) IsInterfaceNil ¶
func (tx *TransactionEVM) IsInterfaceNil() bool
IsInterfaceNil verifies if underlying object is nil
func (*TransactionEVM) Marshal ¶
func (m *TransactionEVM) Marshal() (dAtA []byte, err error)
func (*TransactionEVM) MarshalToSizedBuffer ¶
func (m *TransactionEVM) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionEVM) ProtoMessage ¶
func (*TransactionEVM) ProtoMessage()
func (*TransactionEVM) Reset ¶
func (m *TransactionEVM) Reset()
func (*TransactionEVM) SetData ¶
func (tx *TransactionEVM) SetData(data []byte)
SetData sets the data of the transaction
func (*TransactionEVM) SetGasLimit ¶
func (tx *TransactionEVM) SetGasLimit(gasLimit uint64)
func (*TransactionEVM) SetGasPrice ¶
func (tx *TransactionEVM) SetGasPrice(gasPrice uint64)
func (*TransactionEVM) SetGuardianAddr ¶
func (tx *TransactionEVM) SetGuardianAddr(addr []byte)
func (*TransactionEVM) SetGuardianSignature ¶
func (tx *TransactionEVM) SetGuardianSignature(signature []byte)
func (*TransactionEVM) SetRcvAddr ¶
func (tx *TransactionEVM) SetRcvAddr(addr []byte)
SetRcvAddr sets the receiver address of the transaction
func (*TransactionEVM) SetSignature ¶
func (tx *TransactionEVM) SetSignature(signature []byte)
func (*TransactionEVM) SetSndAddr ¶
func (tx *TransactionEVM) SetSndAddr(addr []byte)
SetSndAddr sets the sender address of the transaction
func (*TransactionEVM) SetValue ¶
func (tx *TransactionEVM) SetValue(value *big.Int)
SetValue sets the value of the transaction
func (*TransactionEVM) Size ¶
func (m *TransactionEVM) Size() (n int)
func (*TransactionEVM) String ¶
func (this *TransactionEVM) String() string
func (*TransactionEVM) Unmarshal ¶
func (m *TransactionEVM) Unmarshal(dAtA []byte) error
func (*TransactionEVM) XXX_DiscardUnknown ¶
func (m *TransactionEVM) XXX_DiscardUnknown()
func (*TransactionEVM) XXX_Marshal ¶
func (m *TransactionEVM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionEVM) XXX_Merge ¶
func (m *TransactionEVM) XXX_Merge(src proto.Message)
func (*TransactionEVM) XXX_Size ¶
func (m *TransactionEVM) XXX_Size() int
func (*TransactionEVM) XXX_Unmarshal ¶
func (m *TransactionEVM) XXX_Unmarshal(b []byte) error