Documentation ¶
Overview ¶
Package types contains data types related to Klatyn consensus.
Index ¶
- Constants
- Variables
- func BloomLookup(bin Bloom, topic bytesBacked) bool
- func CalcFeeWithRatio(feeRatio FeeRatio, fee *big.Int) (*big.Int, *big.Int)
- func DeriveSha(list DerivableList) common.Hash
- func InitDeriveSha(i IDeriveSha)
- func IntrinsicGas(data []byte, contractCreation, homestead bool) (uint64, error)
- func IntrinsicGasPayload(gas uint64, data []byte) (uint64, error)
- func IntrinsicGasPayloadLegacy(gas uint64, data []byte) (uint64, error)
- func LogsBloom(logs []*Log) *big.Int
- func Number(b1, b2 *Block) bool
- func Sender(signer Signer, tx *Transaction) (common.Address, error)
- func SenderFeePayer(signer Signer, tx *Transaction) (common.Address, error)
- func SenderFeePayerPubkey(signer Signer, tx *Transaction) ([]*ecdsa.PublicKey, error)
- func SenderFrom(signer Signer, tx *Transaction) (common.Address, error)
- func SenderPubkey(signer Signer, tx *Transaction) ([]*ecdsa.PublicKey, error)
- type AccountKeyPicker
- type AccountRefWithFeePayer
- type Block
- func (b *Block) BlockScore() *big.Int
- func (b *Block) Bloom() Bloom
- func (b *Block) Body() *Body
- func (b *Block) DecodeRLP(s *rlp.Stream) error
- func (b *Block) DeprecatedTd() *big.Int
- func (b *Block) EncodeRLP(w io.Writer) error
- func (b *Block) Extra() []byte
- func (b *Block) GasUsed() uint64
- func (b *Block) Hash() common.Hash
- func (b *Block) HashNoNonce() common.Hash
- func (b *Block) Header() *Header
- func (b *Block) Number() *big.Int
- func (b *Block) NumberU64() uint64
- func (b *Block) ParentHash() common.Hash
- func (b *Block) ReceiptHash() common.Hash
- func (b *Block) Rewardbase() common.Address
- func (b *Block) Root() common.Hash
- func (b *Block) Size() common.StorageSize
- func (b *Block) String() string
- func (b *Block) Time() *big.Int
- func (b *Block) TimeFoS() uint8
- func (b *Block) Transaction(hash common.Hash) *Transaction
- func (b *Block) Transactions() Transactions
- func (b *Block) TxHash() common.Hash
- func (b *Block) WithBody(transactions []*Transaction) *Block
- func (b *Block) WithSeal(header *Header) *Block
- type BlockBy
- type Blocks
- type Bloom
- func (b *Bloom) Add(d *big.Int)
- func (b Bloom) Big() *big.Int
- func (b Bloom) Bytes() []byte
- func (b Bloom) MarshalText() ([]byte, error)
- func (b *Bloom) SetBytes(d []byte)
- func (b Bloom) Test(test *big.Int) bool
- func (b Bloom) TestBytes(test []byte) bool
- func (b *Bloom) UnmarshalText(input []byte) error
- type Body
- type ChainHashes
- type ContractRef
- type DerivableList
- type DeriveShaConcat
- type DeriveShaSimple
- type EIP155Signer
- func (s EIP155Signer) Equal(s2 Signer) bool
- func (s EIP155Signer) Hash(tx *Transaction) common.Hash
- func (s EIP155Signer) HashFeePayer(tx *Transaction) (common.Hash, error)
- func (s EIP155Signer) Sender(tx *Transaction) (common.Address, error)
- func (s EIP155Signer) SenderFeePayer(tx *Transaction) ([]*ecdsa.PublicKey, error)
- func (s EIP155Signer) SenderPubkey(tx *Transaction) ([]*ecdsa.PublicKey, error)
- func (s EIP155Signer) SignatureValues(sig []byte) (R, S, V *big.Int, err error)
- type FeeRatio
- type Header
- type IDeriveSha
- type IstanbulExtra
- type Log
- type LogForStorage
- type Receipt
- type ReceiptForStorage
- type Receipts
- type Result
- type Signer
- type StateDB
- type StorageBlock
- type Transaction
- func NewAccountCreationTransactionWithMap(values map[TxValueKeyType]interface{}) (*Transaction, error)
- func NewContractCreation(nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte) *Transaction
- func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *big.Int, ...) *Transaction
- func NewTransaction(nonce uint64, to common.Address, amount *big.Int, gasLimit uint64, ...) *Transaction
- func NewTransactionWithMap(t TxType, values map[TxValueKeyType]interface{}) (*Transaction, error)
- func SignTx(tx *Transaction, s Signer, prv *ecdsa.PrivateKey) (*Transaction, error)
- func (tx *Transaction) AnchoredData() ([]byte, error)
- func (tx *Transaction) AsMessageWithAccountKeyPicker(s Signer, picker AccountKeyPicker, currentBlockNumber uint64) (*Transaction, error)
- func (tx *Transaction) ChainId() *big.Int
- func (tx *Transaction) CheckNonce() bool
- func (tx *Transaction) Cost() *big.Int
- func (tx *Transaction) Data() []byte
- func (tx *Transaction) DecodeRLP(s *rlp.Stream) error
- func (tx *Transaction) EncodeRLP(w io.Writer) error
- func (tx *Transaction) Equal(tb *Transaction) bool
- func (tx *Transaction) Execute(vm VM, stateDB StateDB, currentBlockNumber uint64, gas uint64, value *big.Int) ([]byte, uint64, error)
- func (tx *Transaction) Fee() *big.Int
- func (tx *Transaction) FeePayer() (common.Address, error)
- func (tx *Transaction) FeeRatio() (FeeRatio, bool)
- func (tx *Transaction) FillContractAddress(from common.Address, r *Receipt)
- func (tx *Transaction) From() (common.Address, error)
- func (tx *Transaction) Gas() uint64
- func (tx *Transaction) GasPrice() *big.Int
- func (tx *Transaction) GetRoleTypeForValidation() accountkey.RoleType
- func (tx *Transaction) GetTxInternalData() TxInternalData
- func (tx *Transaction) Hash() common.Hash
- func (tx *Transaction) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (tx *Transaction) IsFeeDelegatedTransaction() bool
- func (tx *Transaction) IsLegacyTransaction() bool
- func (tx *Transaction) IsMarkedUnexecutable() bool
- func (tx *Transaction) MakeRPCOutput() map[string]interface{}
- func (tx *Transaction) MarkUnexecutable(b bool)
- func (tx *Transaction) MarshalJSON() ([]byte, error)
- func (tx *Transaction) Nonce() uint64
- func (tx *Transaction) RawSignatureValues() TxSignatures
- func (tx *Transaction) SenderTxHash() (common.Hash, bool)
- func (tx *Transaction) SenderTxHashAll() common.Hash
- func (tx *Transaction) SetFeePayerSignatures(s TxSignatures) error
- func (tx *Transaction) SetSignature(signature TxSignatures)
- func (tx *Transaction) Sign(s Signer, prv *ecdsa.PrivateKey) error
- func (tx *Transaction) SignFeePayer(s Signer, prv *ecdsa.PrivateKey) error
- func (tx *Transaction) SignFeePayerWithKeys(s Signer, prv []*ecdsa.PrivateKey) error
- func (tx *Transaction) SignWithKeys(s Signer, prv []*ecdsa.PrivateKey) error
- func (tx *Transaction) Size() common.StorageSize
- func (tx *Transaction) String() string
- func (tx *Transaction) To() *common.Address
- func (tx *Transaction) Type() TxType
- func (tx *Transaction) UnmarshalJSON(input []byte) error
- func (tx *Transaction) Validate(db StateDB, blockNumber uint64) error
- func (tx *Transaction) ValidateFeePayer(signer Signer, p AccountKeyPicker, currentBlockNumber uint64) (uint64, error)
- func (tx *Transaction) ValidateMutableValue(db StateDB, signer Signer, currentBlockNumber uint64) error
- func (tx *Transaction) ValidateSender(signer Signer, p AccountKeyPicker, currentBlockNumber uint64) (uint64, error)
- func (tx *Transaction) ValidatedFeePayer() common.Address
- func (tx *Transaction) ValidatedIntrinsicGas() uint64
- func (tx *Transaction) ValidatedSender() common.Address
- func (tx *Transaction) Value() *big.Int
- func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error)
- type Transactions
- type TransactionsByPriceAndNonce
- type TxByNonce
- type TxByPrice
- type TxInternalData
- type TxInternalDataAccountCreation
- func (t *TxInternalDataAccountCreation) DecodeRLP(s *rlp.Stream) error
- func (t *TxInternalDataAccountCreation) EncodeRLP(w io.Writer) error
- func (t *TxInternalDataAccountCreation) Equal(a TxInternalData) bool
- func (t *TxInternalDataAccountCreation) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataAccountCreation) GetAccountNonce() uint64
- func (t *TxInternalDataAccountCreation) GetAmount() *big.Int
- func (t *TxInternalDataAccountCreation) GetFrom() common.Address
- func (t *TxInternalDataAccountCreation) GetGasLimit() uint64
- func (t *TxInternalDataAccountCreation) GetHash() *common.Hash
- func (t *TxInternalDataAccountCreation) GetPrice() *big.Int
- func (t *TxInternalDataAccountCreation) GetRecipient() *common.Address
- func (t *TxInternalDataAccountCreation) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataAccountCreation) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataAccountCreation) IsLegacyTransaction() bool
- func (t *TxInternalDataAccountCreation) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataAccountCreation) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataAccountCreation) SenderTxHash() common.Hash
- func (t *TxInternalDataAccountCreation) SerializeForSign() []interface{}
- func (t *TxInternalDataAccountCreation) SerializeForSignToBytes() []byte
- func (t *TxInternalDataAccountCreation) SetHash(h *common.Hash)
- func (t *TxInternalDataAccountCreation) SetSignature(s TxSignatures)
- func (t *TxInternalDataAccountCreation) String() string
- func (t *TxInternalDataAccountCreation) Type() TxType
- func (t *TxInternalDataAccountCreation) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataAccountCreation) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataAccountCreation) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataAccountCreationJSON
- type TxInternalDataAccountUpdate
- func (t *TxInternalDataAccountUpdate) DecodeRLP(s *rlp.Stream) error
- func (t *TxInternalDataAccountUpdate) EncodeRLP(w io.Writer) error
- func (t *TxInternalDataAccountUpdate) Equal(a TxInternalData) bool
- func (t *TxInternalDataAccountUpdate) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataAccountUpdate) GetAccountNonce() uint64
- func (t *TxInternalDataAccountUpdate) GetAmount() *big.Int
- func (t *TxInternalDataAccountUpdate) GetFrom() common.Address
- func (t *TxInternalDataAccountUpdate) GetGasLimit() uint64
- func (t *TxInternalDataAccountUpdate) GetHash() *common.Hash
- func (t *TxInternalDataAccountUpdate) GetPrice() *big.Int
- func (t *TxInternalDataAccountUpdate) GetRecipient() *common.Address
- func (t *TxInternalDataAccountUpdate) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataAccountUpdate) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataAccountUpdate) IsLegacyTransaction() bool
- func (t *TxInternalDataAccountUpdate) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataAccountUpdate) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataAccountUpdate) SenderTxHash() common.Hash
- func (t *TxInternalDataAccountUpdate) SerializeForSign() []interface{}
- func (t *TxInternalDataAccountUpdate) SerializeForSignToBytes() []byte
- func (t *TxInternalDataAccountUpdate) SetHash(h *common.Hash)
- func (t *TxInternalDataAccountUpdate) SetSignature(s TxSignatures)
- func (t *TxInternalDataAccountUpdate) String() string
- func (t *TxInternalDataAccountUpdate) Type() TxType
- func (t *TxInternalDataAccountUpdate) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataAccountUpdate) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataAccountUpdate) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataAccountUpdateJSON
- type TxInternalDataCancel
- func (t *TxInternalDataCancel) Equal(b TxInternalData) bool
- func (t *TxInternalDataCancel) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataCancel) GetAccountNonce() uint64
- func (t *TxInternalDataCancel) GetAmount() *big.Int
- func (t *TxInternalDataCancel) GetFrom() common.Address
- func (t *TxInternalDataCancel) GetGasLimit() uint64
- func (t *TxInternalDataCancel) GetHash() *common.Hash
- func (t *TxInternalDataCancel) GetPrice() *big.Int
- func (t *TxInternalDataCancel) GetRecipient() *common.Address
- func (t *TxInternalDataCancel) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataCancel) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataCancel) IsLegacyTransaction() bool
- func (t *TxInternalDataCancel) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataCancel) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataCancel) SenderTxHash() common.Hash
- func (t *TxInternalDataCancel) SerializeForSign() []interface{}
- func (t *TxInternalDataCancel) SerializeForSignToBytes() []byte
- func (t *TxInternalDataCancel) SetHash(h *common.Hash)
- func (t *TxInternalDataCancel) SetSignature(s TxSignatures)
- func (t *TxInternalDataCancel) String() string
- func (t *TxInternalDataCancel) Type() TxType
- func (t *TxInternalDataCancel) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataCancel) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataCancel) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataCancelJSON
- type TxInternalDataChainDataAnchoring
- func (t *TxInternalDataChainDataAnchoring) Equal(b TxInternalData) bool
- func (t *TxInternalDataChainDataAnchoring) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataChainDataAnchoring) GetAccountNonce() uint64
- func (t *TxInternalDataChainDataAnchoring) GetAmount() *big.Int
- func (t *TxInternalDataChainDataAnchoring) GetFrom() common.Address
- func (t *TxInternalDataChainDataAnchoring) GetGasLimit() uint64
- func (t *TxInternalDataChainDataAnchoring) GetHash() *common.Hash
- func (t *TxInternalDataChainDataAnchoring) GetPayload() []byte
- func (t *TxInternalDataChainDataAnchoring) GetPrice() *big.Int
- func (t *TxInternalDataChainDataAnchoring) GetRecipient() *common.Address
- func (t *TxInternalDataChainDataAnchoring) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataChainDataAnchoring) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataChainDataAnchoring) IsLegacyTransaction() bool
- func (t *TxInternalDataChainDataAnchoring) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataChainDataAnchoring) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataChainDataAnchoring) SenderTxHash() common.Hash
- func (t *TxInternalDataChainDataAnchoring) SerializeForSign() []interface{}
- func (t *TxInternalDataChainDataAnchoring) SerializeForSignToBytes() []byte
- func (t *TxInternalDataChainDataAnchoring) SetHash(h *common.Hash)
- func (t *TxInternalDataChainDataAnchoring) SetSignature(s TxSignatures)
- func (t *TxInternalDataChainDataAnchoring) String() string
- func (t *TxInternalDataChainDataAnchoring) Type() TxType
- func (t *TxInternalDataChainDataAnchoring) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataChainDataAnchoring) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataChainDataAnchoring) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataChainDataAnchoringJSON
- type TxInternalDataContractAddressFiller
- type TxInternalDataFeeDelegatedAccountUpdate
- func (t *TxInternalDataFeeDelegatedAccountUpdate) DecodeRLP(s *rlp.Stream) error
- func (t *TxInternalDataFeeDelegatedAccountUpdate) EncodeRLP(w io.Writer) error
- func (t *TxInternalDataFeeDelegatedAccountUpdate) Equal(a TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedAccountUpdate) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedAccountUpdate) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedAccountUpdate) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedAccountUpdate) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedAccountUpdate) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedAccountUpdate) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedAccountUpdate) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedAccountUpdate) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedAccountUpdate) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedAccountUpdate) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedAccountUpdate) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedAccountUpdate) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedAccountUpdate) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedAccountUpdate) String() string
- func (t *TxInternalDataFeeDelegatedAccountUpdate) Type() TxType
- func (t *TxInternalDataFeeDelegatedAccountUpdate) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedAccountUpdate) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedAccountUpdate) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedAccountUpdateJSON
- type TxInternalDataFeeDelegatedAccountUpdateWithRatio
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) DecodeRLP(s *rlp.Stream) error
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) EncodeRLP(w io.Writer) error
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) Equal(a TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeeRatio() FeeRatio
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) String() string
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) Type() TxType
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedAccountUpdateWithRatioJSON
- type TxInternalDataFeeDelegatedCancel
- func (t *TxInternalDataFeeDelegatedCancel) Equal(b TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedCancel) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedCancel) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedCancel) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedCancel) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedCancel) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedCancel) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedCancel) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedCancel) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedCancel) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedCancel) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedCancel) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedCancel) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedCancel) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedCancel) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedCancel) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedCancel) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedCancel) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedCancel) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedCancel) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedCancel) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedCancel) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedCancel) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedCancel) String() string
- func (t *TxInternalDataFeeDelegatedCancel) Type() TxType
- func (t *TxInternalDataFeeDelegatedCancel) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedCancel) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedCancel) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedCancelJSON
- type TxInternalDataFeeDelegatedCancelWithRatio
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) Equal(b TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetFeeRatio() FeeRatio
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) String() string
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) Type() TxType
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedCancelWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedCancelWithRatioJSON
- type TxInternalDataFeeDelegatedSmartContractDeploy
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) Equal(a TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) FillContractAddress(from common.Address, r *Receipt)
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetCodeFormat() params.CodeFormat
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetPayload() []byte
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) String() string
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) Type() TxType
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedSmartContractDeploy) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedSmartContractDeployJSON
- type TxInternalDataFeeDelegatedSmartContractDeployWithRatio
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Equal(a TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) FillContractAddress(from common.Address, r *Receipt)
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetCodeFormat() params.CodeFormat
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeeRatio() FeeRatio
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetPayload() []byte
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) String() string
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Type() TxType
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedSmartContractDeployWithRatioJSON
- type TxInternalDataFeeDelegatedSmartContractExecution
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) Equal(a TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetPayload() []byte
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) String() string
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) Type() TxType
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedSmartContractExecution) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedSmartContractExecutionJSON
- type TxInternalDataFeeDelegatedSmartContractExecutionWithRatio
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Equal(a TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeeRatio() FeeRatio
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetPayload() []byte
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) String() string
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Type() TxType
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedSmartContractExecutionWithRatioJSON
- type TxInternalDataFeeDelegatedValueTransfer
- func (t *TxInternalDataFeeDelegatedValueTransfer) Equal(b TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedValueTransfer) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedValueTransfer) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedValueTransfer) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedValueTransfer) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedValueTransfer) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedValueTransfer) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedValueTransfer) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedValueTransfer) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedValueTransfer) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedValueTransfer) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedValueTransfer) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedValueTransfer) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedValueTransfer) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedValueTransfer) String() string
- func (t *TxInternalDataFeeDelegatedValueTransfer) Type() TxType
- func (t *TxInternalDataFeeDelegatedValueTransfer) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedValueTransfer) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedValueTransfer) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedValueTransferJSON
- type TxInternalDataFeeDelegatedValueTransferMemo
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) Equal(b TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetPayload() []byte
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) String() string
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) Type() TxType
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedValueTransferMemo) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedValueTransferMemoJSON
- type TxInternalDataFeeDelegatedValueTransferMemoWithRatio
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Equal(b TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeeRatio() FeeRatio
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetPayload() []byte
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) String() string
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Type() TxType
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedValueTransferMemoWithRatioJSON
- type TxInternalDataFeeDelegatedValueTransferWithRatio
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) Equal(a TxInternalData) bool
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetAccountNonce() uint64
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetAmount() *big.Int
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeePayer() common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeePayerRawSignatureValues() TxSignatures
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeeRatio() FeeRatio
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetFrom() common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetGasLimit() uint64
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetHash() *common.Hash
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetPrice() *big.Int
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetRecipient() *common.Address
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) IsLegacyTransaction() bool
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SenderTxHash() common.Hash
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SerializeForSign() []interface{}
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SerializeForSignToBytes() []byte
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SetFeePayerSignatures(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SetHash(h *common.Hash)
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SetSignature(s TxSignatures)
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) String() string
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) Type() TxType
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataFeeDelegatedValueTransferWithRatioJSON
- type TxInternalDataFeePayer
- type TxInternalDataFeeRatio
- type TxInternalDataFrom
- type TxInternalDataLegacy
- func (t *TxInternalDataLegacy) ChainId() *big.Int
- func (t *TxInternalDataLegacy) Equal(a TxInternalData) bool
- func (t *TxInternalDataLegacy) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataLegacy) FillContractAddress(from common.Address, r *Receipt)
- func (t *TxInternalDataLegacy) GetAccountNonce() uint64
- func (t *TxInternalDataLegacy) GetAmount() *big.Int
- func (t *TxInternalDataLegacy) GetGasLimit() uint64
- func (t *TxInternalDataLegacy) GetHash() *common.Hash
- func (t *TxInternalDataLegacy) GetPayload() []byte
- func (t *TxInternalDataLegacy) GetPrice() *big.Int
- func (t *TxInternalDataLegacy) GetRecipient() *common.Address
- func (t *TxInternalDataLegacy) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataLegacy) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataLegacy) IsLegacyTransaction() bool
- func (t *TxInternalDataLegacy) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataLegacy) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataLegacy) RawSignatureValues() TxSignatures
- func (t *TxInternalDataLegacy) RecoverAddress(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) (common.Address, error)
- func (t *TxInternalDataLegacy) RecoverPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t *TxInternalDataLegacy) SenderTxHash() common.Hash
- func (t *TxInternalDataLegacy) SerializeForSign() []interface{}
- func (t *TxInternalDataLegacy) SetHash(h *common.Hash)
- func (t *TxInternalDataLegacy) SetSignature(s TxSignatures)
- func (t *TxInternalDataLegacy) String() string
- func (t *TxInternalDataLegacy) Type() TxType
- func (t *TxInternalDataLegacy) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataLegacy) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataLegacy) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataLegacy) ValidateSignature() bool
- type TxInternalDataLegacyJSON
- type TxInternalDataPayload
- type TxInternalDataSerializeForSignToByte
- type TxInternalDataSerializer
- type TxInternalDataSmartContractDeploy
- func (t *TxInternalDataSmartContractDeploy) Equal(a TxInternalData) bool
- func (t *TxInternalDataSmartContractDeploy) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataSmartContractDeploy) FillContractAddress(from common.Address, r *Receipt)
- func (t *TxInternalDataSmartContractDeploy) GetAccountNonce() uint64
- func (t *TxInternalDataSmartContractDeploy) GetAmount() *big.Int
- func (t *TxInternalDataSmartContractDeploy) GetCodeFormat() params.CodeFormat
- func (t *TxInternalDataSmartContractDeploy) GetFrom() common.Address
- func (t *TxInternalDataSmartContractDeploy) GetGasLimit() uint64
- func (t *TxInternalDataSmartContractDeploy) GetHash() *common.Hash
- func (t *TxInternalDataSmartContractDeploy) GetPayload() []byte
- func (t *TxInternalDataSmartContractDeploy) GetPrice() *big.Int
- func (t *TxInternalDataSmartContractDeploy) GetRecipient() *common.Address
- func (t *TxInternalDataSmartContractDeploy) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataSmartContractDeploy) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataSmartContractDeploy) IsLegacyTransaction() bool
- func (t *TxInternalDataSmartContractDeploy) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataSmartContractDeploy) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataSmartContractDeploy) SenderTxHash() common.Hash
- func (t *TxInternalDataSmartContractDeploy) SerializeForSign() []interface{}
- func (t *TxInternalDataSmartContractDeploy) SerializeForSignToBytes() []byte
- func (t *TxInternalDataSmartContractDeploy) SetHash(h *common.Hash)
- func (t *TxInternalDataSmartContractDeploy) SetSignature(s TxSignatures)
- func (t *TxInternalDataSmartContractDeploy) String() string
- func (t *TxInternalDataSmartContractDeploy) Type() TxType
- func (t *TxInternalDataSmartContractDeploy) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataSmartContractDeploy) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataSmartContractDeploy) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataSmartContractDeployJSON
- type TxInternalDataSmartContractExecution
- func (t *TxInternalDataSmartContractExecution) Equal(a TxInternalData) bool
- func (t *TxInternalDataSmartContractExecution) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataSmartContractExecution) GetAccountNonce() uint64
- func (t *TxInternalDataSmartContractExecution) GetAmount() *big.Int
- func (t *TxInternalDataSmartContractExecution) GetFrom() common.Address
- func (t *TxInternalDataSmartContractExecution) GetGasLimit() uint64
- func (t *TxInternalDataSmartContractExecution) GetHash() *common.Hash
- func (t *TxInternalDataSmartContractExecution) GetPayload() []byte
- func (t *TxInternalDataSmartContractExecution) GetPrice() *big.Int
- func (t *TxInternalDataSmartContractExecution) GetRecipient() *common.Address
- func (t *TxInternalDataSmartContractExecution) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataSmartContractExecution) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataSmartContractExecution) IsLegacyTransaction() bool
- func (t *TxInternalDataSmartContractExecution) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataSmartContractExecution) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataSmartContractExecution) SenderTxHash() common.Hash
- func (t *TxInternalDataSmartContractExecution) SerializeForSign() []interface{}
- func (t *TxInternalDataSmartContractExecution) SerializeForSignToBytes() []byte
- func (t *TxInternalDataSmartContractExecution) SetHash(h *common.Hash)
- func (t *TxInternalDataSmartContractExecution) SetSignature(s TxSignatures)
- func (t *TxInternalDataSmartContractExecution) String() string
- func (t *TxInternalDataSmartContractExecution) Type() TxType
- func (t *TxInternalDataSmartContractExecution) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataSmartContractExecution) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataSmartContractExecution) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataSmartContractExecutionJSON
- type TxInternalDataValueTransfer
- func (t *TxInternalDataValueTransfer) Equal(b TxInternalData) bool
- func (t *TxInternalDataValueTransfer) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataValueTransfer) GetAccountNonce() uint64
- func (t *TxInternalDataValueTransfer) GetAmount() *big.Int
- func (t *TxInternalDataValueTransfer) GetFrom() common.Address
- func (t *TxInternalDataValueTransfer) GetGasLimit() uint64
- func (t *TxInternalDataValueTransfer) GetHash() *common.Hash
- func (t *TxInternalDataValueTransfer) GetPrice() *big.Int
- func (t *TxInternalDataValueTransfer) GetRecipient() *common.Address
- func (t *TxInternalDataValueTransfer) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataValueTransfer) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataValueTransfer) IsLegacyTransaction() bool
- func (t *TxInternalDataValueTransfer) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataValueTransfer) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataValueTransfer) SenderTxHash() common.Hash
- func (t *TxInternalDataValueTransfer) SerializeForSign() []interface{}
- func (t *TxInternalDataValueTransfer) SerializeForSignToBytes() []byte
- func (t *TxInternalDataValueTransfer) SetHash(h *common.Hash)
- func (t *TxInternalDataValueTransfer) SetSignature(s TxSignatures)
- func (t *TxInternalDataValueTransfer) String() string
- func (t *TxInternalDataValueTransfer) Type() TxType
- func (t *TxInternalDataValueTransfer) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataValueTransfer) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataValueTransfer) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataValueTransferJSON
- type TxInternalDataValueTransferMemo
- func (t *TxInternalDataValueTransferMemo) Equal(b TxInternalData) bool
- func (t *TxInternalDataValueTransferMemo) Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, ...) (ret []byte, usedGas uint64, err error)
- func (t *TxInternalDataValueTransferMemo) GetAccountNonce() uint64
- func (t *TxInternalDataValueTransferMemo) GetAmount() *big.Int
- func (t *TxInternalDataValueTransferMemo) GetFrom() common.Address
- func (t *TxInternalDataValueTransferMemo) GetGasLimit() uint64
- func (t *TxInternalDataValueTransferMemo) GetHash() *common.Hash
- func (t *TxInternalDataValueTransferMemo) GetPayload() []byte
- func (t *TxInternalDataValueTransferMemo) GetPrice() *big.Int
- func (t *TxInternalDataValueTransferMemo) GetRecipient() *common.Address
- func (t *TxInternalDataValueTransferMemo) GetRoleTypeForValidation() accountkey.RoleType
- func (t *TxInternalDataValueTransferMemo) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
- func (t *TxInternalDataValueTransferMemo) IsLegacyTransaction() bool
- func (t *TxInternalDataValueTransferMemo) MakeRPCOutput() map[string]interface{}
- func (t *TxInternalDataValueTransferMemo) MarshalJSON() ([]byte, error)
- func (t *TxInternalDataValueTransferMemo) SenderTxHash() common.Hash
- func (t *TxInternalDataValueTransferMemo) SerializeForSign() []interface{}
- func (t *TxInternalDataValueTransferMemo) SerializeForSignToBytes() []byte
- func (t *TxInternalDataValueTransferMemo) SetHash(h *common.Hash)
- func (t *TxInternalDataValueTransferMemo) SetSignature(s TxSignatures)
- func (t *TxInternalDataValueTransferMemo) String() string
- func (t *TxInternalDataValueTransferMemo) Type() TxType
- func (t *TxInternalDataValueTransferMemo) UnmarshalJSON(b []byte) error
- func (t *TxInternalDataValueTransferMemo) Validate(stateDB StateDB, currentBlockNumber uint64) error
- func (t *TxInternalDataValueTransferMemo) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
- type TxInternalDataValueTransferMemoJSON
- type TxSignature
- func (t *TxSignature) ChainId() *big.Int
- func (t *TxSignature) RawSignatureValues() *TxSignature
- func (t *TxSignature) RecoverAddress(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) (common.Address, error)
- func (t *TxSignature) RecoverPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) (*ecdsa.PublicKey, error)
- func (t *TxSignature) ValidateSignature() bool
- type TxSignatureJSON
- type TxSignatures
- func (t TxSignatures) ChainId() *big.Int
- func (t TxSignatures) RawSignatureValues() TxSignatures
- func (t TxSignatures) RecoverAddress(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) (common.Address, error)
- func (t TxSignatures) RecoverPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error)
- func (t TxSignatures) ToJSON() TxSignaturesJSON
- func (t TxSignatures) ValidateSignature() bool
- type TxSignaturesJSON
- type TxType
- func (t TxType) IsAccountCreation() bool
- func (t TxType) IsAccountUpdate() bool
- func (t TxType) IsCancelTransaction() bool
- func (t TxType) IsContractDeploy() bool
- func (t TxType) IsFeeDelegatedTransaction() bool
- func (t TxType) IsFeeDelegatedWithRatioTransaction() bool
- func (t TxType) IsLegacyTransaction() bool
- func (t TxType) IsRPCExcluded() bool
- func (t TxType) String() string
- type TxValueKeyType
- type VM
Constants ¶
const ( Engine_IBFT int = iota Engine_Clique Engine_Gxhash )
const ( // BloomByteLength represents the number of bytes used in a header log bloom. BloomByteLength = 256 // BloomBitLength represents the number of bits used in a header log bloom. BloomBitLength = 8 * BloomByteLength )
const ( ImplDeriveShaOriginal int = iota ImplDeriveShaSimple ImplDeriveShaConcat )
const ( // ReceiptStatusFailed is the status code of a transaction if execution failed. ReceiptStatusFailed = uint(0) // ReceiptStatusSuccessful is the status code of a transaction if execution succeeded. ReceiptStatusSuccessful = uint(1) // TODO-Klaytn Enable more error below. // Klaytn specific // NOTE-Klaytn Value should be consecutive from ReceiptStatusFailed to the last ReceiptStatusLast // Add a new ReceiptStatusErrXXX before ReceiptStatusLast ReceiptStatusErrDefault = uint(0x02) // Default ReceiptStatusErrDepth = uint(0x03) ReceiptStatusErrContractAddressCollision = uint(0x04) ReceiptStatusErrCodeStoreOutOfGas = uint(0x05) ReceiptStatuserrMaxCodeSizeExceed = uint(0x06) ReceiptStatusErrOutOfGas = uint(0x07) ReceiptStatusErrWriteProtection = uint(0x08) ReceiptStatusErrExecutionReverted = uint(0x09) ReceiptStatusErrOpcodeComputationCostLimitReached = uint(0x0a) ReceiptStatusErrAddressAlreadyExists = uint(0x0b) ReceiptStatusErrNotAProgramAccount = uint(0x0c) ReceiptStatusErrNotHumanReadableAddress = uint(0x0d) ReceiptStatusErrFeeRatioOutOfRange = uint(0x0e) ReceiptStatusErrAccountKeyFailNotUpdatable = uint(0x0f) ReceiptStatusErrDifferentAccountKeyType = uint(0x10) ReceiptStatusErrAccountKeyNilUninitializable = uint(0x11) ReceiptStatusErrNotOnCurve = uint(0x12) ReceiptStatusErrZeroKeyWeight = uint(0x13) ReceiptStatusErrUnserializableKey = uint(0x14) ReceiptStatusErrDuplicatedKey = uint(0x15) ReceiptStatusErrWeightedSumOverflow = uint(0x16) ReceiptStatusErrUnsatisfiableThreshold = uint(0x17) ReceiptStatusErrZeroLength = uint(0x18) ReceiptStatusErrLengthTooLong = uint(0x19) ReceiptStatusErrNestedRoleBasedKey = uint(0x1a) ReceiptStatusErrLegacyTransactionMustBeWithLegacyKey = uint(0x1b) ReceiptStatusErrDeprecated = uint(0x1c) ReceiptStatusErrNotSupported = uint(0x1d) ReceiptStatusErrInvalidCodeFormat = uint(0x1e) ReceiptStatusLast = uint(0x1f) // Last value which is not an actual ReceiptStatus )
const SubTxTypeBits uint = 3
Variables ¶
var ( EmptyRootHash = common.Hash{} EngineType = Engine_IBFT )
var ( // IstanbulDigest represents a hash of "Istanbul practical byzantine fault tolerance" // to identify whether the block is from Istanbul consensus engine IstanbulDigest = common.HexToHash("0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365") IstanbulExtraVanity = 32 // Fixed number of extra-data bytes reserved for validator vanity IstanbulExtraSeal = 65 // Fixed number of extra-data bytes reserved for validator seal // ErrInvalidIstanbulHeaderExtra is returned if the length of extra-data is less than 32 bytes ErrInvalidIstanbulHeaderExtra = errors.New("invalid istanbul header extra-data") )
var ( ErrInvalidSig = errors.New("invalid transaction v, r, s values") ErrInvalidSigSender = errors.New("invalid transaction v, r, s values of the sender") ErrInvalidSigFeePayer = errors.New("invalid transaction v, r, s values of the fee payer") ErrInvalidTxTypeForAnchoredData = errors.New("invalid transaction type for anchored data") )
var Bloom9 = bloom9
var (
ErrInvalidChainId = errors.New("invalid chain id for signer")
)
var (
ErrShouldBeSingleSignature = errors.New("the number of signatures should be one")
)
Functions ¶
func BloomLookup ¶
func CalcFeeWithRatio ¶
CalcFeeWithRatio returns feePayer's fee and sender's fee based on feeRatio. For example, if fee = 100 and feeRatio = 30, feePayer = 30 and feeSender = 70.
func DeriveSha ¶
func DeriveSha(list DerivableList) common.Hash
func InitDeriveSha ¶
func InitDeriveSha(i IDeriveSha)
func IntrinsicGas ¶
IntrinsicGas computes the 'intrinsic gas' for a message with the given data.
func Sender ¶
func Sender(signer Signer, tx *Transaction) (common.Address, error)
Sender returns the address of the transaction. If a legacy transaction, it calls SenderFrom(). Otherwise, it just returns tx.From() because the other transaction types have the field `from`. NOTE: this function should not be called if tx signature validation is required. In that situtation, you should call ValidateSender().
func SenderFeePayer ¶
func SenderFeePayer(signer Signer, tx *Transaction) (common.Address, error)
SenderFeePayer returns the fee payer address of the transaction. If the transaction is not a fee-delegated transaction, the fee payer is set to the address of the `from` of the transaction.
func SenderFeePayerPubkey ¶
func SenderFeePayerPubkey(signer Signer, tx *Transaction) ([]*ecdsa.PublicKey, error)
SenderFeePayerPubkey returns the public key derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
SenderFeePayerPubkey may cache the public key, allowing it to be used regardless of signing method. The cache is invalidated if the cached signer does not match the signer used in the current call.
func SenderFrom ¶
func SenderFrom(signer Signer, tx *Transaction) (common.Address, error)
SenderFrom returns the address derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
SenderFrom may cache the address, allowing it to be used regardless of signing method. The cache is invalidated if the cached signer does not match the signer used in the current call.
func SenderPubkey ¶
func SenderPubkey(signer Signer, tx *Transaction) ([]*ecdsa.PublicKey, error)
SenderPubkey returns the public key derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
SenderPubkey may cache the public key, allowing it to be used regardless of signing method. The cache is invalidated if the cached signer does not match the signer used in the current call.
Types ¶
type AccountKeyPicker ¶
type AccountKeyPicker interface { GetKey(address common.Address) accountkey.AccountKey Exist(addr common.Address) bool }
AccountKeyPicker has a function GetKey() to retrieve an account key from statedb.
type AccountRefWithFeePayer ¶
AccountRefWithFeePayer implements ContractRef. This structure has an additional field `feePayer` compared to `AccountRef`.
func NewAccountRefWithFeePayer ¶
func NewAccountRefWithFeePayer(sender common.Address, feePayer common.Address) *AccountRefWithFeePayer
func (*AccountRefWithFeePayer) Address ¶
func (a *AccountRefWithFeePayer) Address() common.Address
func (*AccountRefWithFeePayer) FeePayer ¶
func (a *AccountRefWithFeePayer) FeePayer() common.Address
type Block ¶
type Block struct { // These fields are used to track inter-peer block relay. ReceivedAt time.Time ReceivedFrom interface{} // contains filtered or unexported fields }
Block represents an entire block in the Klaytn blockchain.
func NewBlock ¶
func NewBlock(header *Header, txs []*Transaction, receipts []*Receipt) *Block
NewBlock creates a new block. The input data is copied, changes to header and to the field values will not affect the block.
The values of TxHash, ReceiptHash and Bloom in header are ignored and set to values derived from the given txs and receipts.
func NewBlockWithHeader ¶
NewBlockWithHeader creates a block with the given header data. The header data is copied, changes to header and to the field values will not affect the block.
func SetRoundToBlock ¶
func (*Block) BlockScore ¶
func (*Block) DeprecatedTd ¶
DeprecatedTd is an old relic for extracting the TD of a block. It is in the code solely to facilitate upgrading the database from the old format to the new, after which it should be deleted. Do not use!
func (*Block) Hash ¶
Hash returns the keccak256 hash of b's header. The hash is computed on the first call and cached thereafter.
func (*Block) HashNoNonce ¶
func (*Block) ParentHash ¶
func (*Block) ReceiptHash ¶
func (*Block) Rewardbase ¶
func (*Block) Size ¶
func (b *Block) Size() common.StorageSize
Size returns the true RLP encoded storage size of the block, either by encoding and returning it, or returning a previsouly cached value.
func (*Block) Transaction ¶
func (b *Block) Transaction(hash common.Hash) *Transaction
func (*Block) Transactions ¶
func (b *Block) Transactions() Transactions
func (*Block) WithBody ¶
func (b *Block) WithBody(transactions []*Transaction) *Block
WithBody returns a new block with the given transactions.
type Bloom ¶
type Bloom [BloomByteLength]byte
Bloom represents a 2048 bit bloom filter.
func BytesToBloom ¶
BytesToBloom converts a byte slice to a bloom filter. It panics if b is not of suitable size.
func CreateBloom ¶
func (Bloom) MarshalText ¶
MarshalText encodes b as a hex string with 0x prefix.
func (*Bloom) SetBytes ¶
SetBytes sets the content of b to the given bytes. It panics if d is not of suitable size.
func (*Bloom) UnmarshalText ¶
UnmarshalText b as a hex string with 0x prefix.
type Body ¶
type Body struct {
Transactions []*Transaction
}
Body is a simple (mutable, non-safe) data container for storing and moving a block's data contents (transactions) together.
type ChainHashes ¶
type ChainHashes struct { BlockHash common.Hash TxHash common.Hash ParentHash common.Hash ReceiptHash common.Hash StateRootHash common.Hash BlockNumber *big.Int }
func NewChainHashes ¶
func NewChainHashes(block *Block) *ChainHashes
type ContractRef ¶
ContractRef is a reference to the contract's backing object
type DerivableList ¶
type DeriveShaConcat ¶
type DeriveShaConcat struct{}
An alternative implementation of DeriveSha() This function generates a hash of `DerivableList` as below: 1. make a byte slice by concatenating RLP-encoded items 2. make a hash of the byte slice.
func (DeriveShaConcat) DeriveSha ¶
func (d DeriveShaConcat) DeriveSha(list DerivableList) (hash common.Hash)
type DeriveShaSimple ¶
type DeriveShaSimple struct{}
An alternative implementation of DeriveSha() This function generates a hash of `DerivableList` by simulating merkle tree generation
func (DeriveShaSimple) DeriveSha ¶
func (d DeriveShaSimple) DeriveSha(list DerivableList) common.Hash
type EIP155Signer ¶
type EIP155Signer struct {
// contains filtered or unexported fields
}
EIP155Transaction implements Signer using the EIP155 rules.
func NewEIP155Signer ¶
func NewEIP155Signer(chainId *big.Int) EIP155Signer
func (EIP155Signer) Equal ¶
func (s EIP155Signer) Equal(s2 Signer) bool
func (EIP155Signer) Hash ¶
func (s EIP155Signer) Hash(tx *Transaction) common.Hash
Hash returns the hash to be signed by the sender. It does not uniquely identify the transaction.
func (EIP155Signer) HashFeePayer ¶
func (s EIP155Signer) HashFeePayer(tx *Transaction) (common.Hash, error)
HashFeePayer returns the hash with a fee payer's address to be signed by a fee payer. It does not uniquely identify the transaction.
func (EIP155Signer) Sender ¶
func (s EIP155Signer) Sender(tx *Transaction) (common.Address, error)
func (EIP155Signer) SenderFeePayer ¶
func (s EIP155Signer) SenderFeePayer(tx *Transaction) ([]*ecdsa.PublicKey, error)
func (EIP155Signer) SenderPubkey ¶
func (s EIP155Signer) SenderPubkey(tx *Transaction) ([]*ecdsa.PublicKey, error)
func (EIP155Signer) SignatureValues ¶
func (s EIP155Signer) SignatureValues(sig []byte) (R, S, V *big.Int, err error)
WithSignature returns a new transaction with the given signature. This signature needs to be in the [R || S || V] format where V is 0 or 1.
type FeeRatio ¶
type FeeRatio uint8
const MaxFeeRatio FeeRatio = 100
MaxFeeRatio is the maximum value of feeRatio. Since it is represented in percentage, the maximum value is 100.
type Header ¶
type Header struct { ParentHash common.Hash `json:"parentHash" gencodec:"required"` Rewardbase common.Address `json:"reward" gencodec:"required"` Root common.Hash `json:"stateRoot" gencodec:"required"` TxHash common.Hash `json:"transactionsRoot" gencodec:"required"` ReceiptHash common.Hash `json:"receiptsRoot" gencodec:"required"` Bloom Bloom `json:"logsBloom" gencodec:"required"` BlockScore *big.Int `json:"blockScore" gencodec:"required"` Number *big.Int `json:"number" gencodec:"required"` GasUsed uint64 `json:"gasUsed" gencodec:"required"` Time *big.Int `json:"timestamp" gencodec:"required"` // TimeFoS represents a fraction of a second since `Time`. TimeFoS uint8 `json:"timestampFoS" gencodec:"required"` Extra []byte `json:"extraData" gencodec:"required"` Governance []byte `json:"governanceData" gencodec:"required"` Vote []byte `json:"voteData,omitempty"` }
Header represents a block header in the Klaytn blockchain.
func CopyHeader ¶
CopyHeader creates a deep copy of a block header to prevent side effects from modifying a header variable.
func IstanbulFilteredHeader ¶
IstanbulFilteredHeader returns a filtered header which some information (like seal, committed seals) are clean to fulfill the Istanbul hash rules. It returns nil if the extra-data cannot be decoded/encoded by rlp.
func SetRoundToHeader ¶
func (*Header) Hash ¶
Hash returns the block hash of the header, which is simply the keccak256 hash of its RLP encoding.
func (*Header) HashNoNonce ¶
HashNoNonce returns the hash which is used as input for the proof-of-work search.
func (Header) MarshalJSON ¶
MarshalJSON marshals as JSON.
func (*Header) Size ¶
func (h *Header) Size() common.StorageSize
Size returns the approximate memory used by all internal contents. It is used to approximate and limit the memory consumption of various caches.
func (*Header) UnmarshalJSON ¶
UnmarshalJSON unmarshals from JSON.
type IDeriveSha ¶
type IDeriveSha interface {
DeriveSha(list DerivableList) common.Hash
}
type IstanbulExtra ¶
func ExtractIstanbulExtra ¶
func ExtractIstanbulExtra(h *Header) (*IstanbulExtra, error)
ExtractIstanbulExtra extracts all values of the IstanbulExtra from the header. It returns an error if the length of the given extra-data is less than 32 bytes or the extra-data can not be decoded.
type Log ¶
type Log struct { // Consensus fields: // address of the contract that generated the event Address common.Address `json:"address" gencodec:"required"` // list of topics provided by the contract. Topics []common.Hash `json:"topics" gencodec:"required"` // supplied by the contract, usually ABI-encoded Data []byte `json:"data" gencodec:"required"` // Derived fields. These fields are filled in by the node // but not secured by consensus. // block in which the transaction was included BlockNumber uint64 `json:"blockNumber"` // hash of the transaction TxHash common.Hash `json:"transactionHash" gencodec:"required"` // index of the transaction in the block TxIndex uint `json:"transactionIndex" gencodec:"required"` // hash of the block in which the transaction was included BlockHash common.Hash `json:"blockHash"` // index of the log in the receipt Index uint `json:"logIndex" gencodec:"required"` // The Removed field is true if this log was reverted due to a chain reorganisation. // You must pay attention to this field if you receive logs through a filter query. Removed bool `json:"removed"` }
Log represents a contract log event. These events are generated by the LOG opcode and stored/indexed by the node.
func (*Log) UnmarshalJSON ¶
UnmarshalJSON unmarshals from JSON.
type LogForStorage ¶
type LogForStorage Log
LogForStorage is a wrapper around a Log that flattens and parses the entire content of a log including non-consensus fields.
type Receipt ¶
type Receipt struct { // Consensus fields Status uint `json:"status"` Bloom Bloom `json:"logsBloom" gencodec:"required"` Logs []*Log `json:"logs" gencodec:"required"` // Implementation fields (don't reorder!) TxHash common.Hash `json:"transactionHash" gencodec:"required"` ContractAddress common.Address `json:"contractAddress"` GasUsed uint64 `json:"gasUsed" gencodec:"required"` }
Receipt represents the results of a transaction.
func NewReceipt ¶
NewReceipt creates a barebone transaction receipt, copying the init fields.
func (*Receipt) DecodeRLP ¶
DecodeRLP implements rlp.Decoder, and loads the consensus fields of a receipt from an RLP stream.
func (*Receipt) EncodeRLP ¶
EncodeRLP implements rlp.Encoder, and flattens the consensus fields of a receipt into an RLP stream. If no post state is present, byzantium fork is assumed.
func (Receipt) MarshalJSON ¶
MarshalJSON marshals as JSON.
func (*Receipt) Size ¶
func (r *Receipt) Size() common.StorageSize
Size returns the approximate memory used by all internal contents. It is used to approximate and limit the memory consumption of various caches.
func (*Receipt) UnmarshalJSON ¶
UnmarshalJSON unmarshals from JSON.
type ReceiptForStorage ¶
type ReceiptForStorage Receipt
ReceiptForStorage is a wrapper around a Receipt that flattens and parses the entire content of a receipt, as opposed to only the consensus fields originally.
type Receipts ¶
type Receipts []*Receipt
Receipts is a wrapper around a Receipt array to implement DerivableList.
type Signer ¶
type Signer interface { // Sender returns the sender address of the transaction. Sender(tx *Transaction) (common.Address, error) // SenderPubkey returns the public key derived from tx signature and txhash. SenderPubkey(tx *Transaction) ([]*ecdsa.PublicKey, error) // SenderFeePayer returns the public key derived from tx signature and txhash. SenderFeePayer(tx *Transaction) ([]*ecdsa.PublicKey, error) // SignatureValues returns the raw R, S, V values corresponding to the // given signature. SignatureValues(sig []byte) (r, s, v *big.Int, err error) // Hash returns the hash to be signed. Hash(tx *Transaction) common.Hash // HashFeePayer returns the hash with a fee payer's address to be signed by a fee payer. HashFeePayer(tx *Transaction) (common.Hash, error) // Equal returns true if the given signer is the same as the receiver. Equal(Signer) bool }
Signer encapsulates transaction signature handling. Note that this interface is not a stable API and may change at any time to accommodate new protocol rules.
func MakeSigner ¶
func MakeSigner(config *params.ChainConfig, blockNumber *big.Int) Signer
TODO-Klaytn-RemoveLater Remove the second parameter blockNumber MakeSigner returns a Signer based on the given chain config and block number.
type StateDB ¶
type StateDB interface { IncNonce(common.Address) Exist(common.Address) bool UpdateKey(addr common.Address, key accountkey.AccountKey, currentBlockNumber uint64) error CreateEOA(addr common.Address, humanReadable bool, key accountkey.AccountKey) CreateSmartContractAccount(addr common.Address, format params.CodeFormat) CreateSmartContractAccountWithKey(addr common.Address, humanReadable bool, key accountkey.AccountKey, format params.CodeFormat) IsProgramAccount(addr common.Address) bool IsContractAvailable(addr common.Address) bool IsValidCodeFormat(addr common.Address) bool GetKey(addr common.Address) accountkey.AccountKey }
Since we cannot access the package `blockchain/state` directly, an interface `StateDB` is introduced. TODO-Klaytn-Refactoring: Transaction and related data structures should be a new package.
type StorageBlock ¶
type StorageBlock Block
[deprecated by klay/63] StorageBlock defines the RLP encoding of a Block stored in the state database. The StorageBlock encoding contains fields that would otherwise need to be recomputed.
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewAccountCreationTransactionWithMap ¶
func NewAccountCreationTransactionWithMap(values map[TxValueKeyType]interface{}) (*Transaction, error)
NewAccountCreationTransactionWithMap is a test only function since the accountCreation tx is disabled. The function generates an accountCreation function like 'NewTxInternalDataWithMap()'.
func NewContractCreation ¶
func NewMessage ¶
func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte, checkNonce bool, intrinsicGas uint64) *Transaction
NewMessage returns a `*Transaction` object with the given arguments.
func NewTransaction ¶
func NewTransactionWithMap ¶
func NewTransactionWithMap(t TxType, values map[TxValueKeyType]interface{}) (*Transaction, error)
func SignTx ¶
func SignTx(tx *Transaction, s Signer, prv *ecdsa.PrivateKey) (*Transaction, error)
SignTx signs the transaction using the given signer and private key
func (*Transaction) AnchoredData ¶
func (tx *Transaction) AnchoredData() ([]byte, error)
AnchoredData returns the anchored data of the chain data anchoring transaction. if the tx is not chain data anchoring transaction, it will return error.
func (*Transaction) AsMessageWithAccountKeyPicker ¶
func (tx *Transaction) AsMessageWithAccountKeyPicker(s Signer, picker AccountKeyPicker, currentBlockNumber uint64) (*Transaction, error)
AsMessageWithAccountKeyPicker returns the transaction as a blockchain.Message.
AsMessageWithAccountKeyPicker requires a signer to derive the sender and AccountKeyPicker.
XXX Rename message to something less arbitrary? TODO-Klaytn: Message is removed and this function will return *Transaction.
func (*Transaction) ChainId ¶
func (tx *Transaction) ChainId() *big.Int
ChainId returns which chain id this transaction was signed for (if at all)
func (*Transaction) CheckNonce ¶
func (tx *Transaction) CheckNonce() bool
func (*Transaction) Cost ¶
func (tx *Transaction) Cost() *big.Int
Cost returns amount + gasprice * gaslimit.
func (*Transaction) Data ¶
func (tx *Transaction) Data() []byte
func (*Transaction) DecodeRLP ¶
func (tx *Transaction) DecodeRLP(s *rlp.Stream) error
DecodeRLP implements rlp.Decoder
func (*Transaction) EncodeRLP ¶
func (tx *Transaction) EncodeRLP(w io.Writer) error
EncodeRLP implements rlp.Encoder
func (*Transaction) Equal ¶
func (tx *Transaction) Equal(tb *Transaction) bool
func (*Transaction) Execute ¶
func (tx *Transaction) Execute(vm VM, stateDB StateDB, currentBlockNumber uint64, gas uint64, value *big.Int) ([]byte, uint64, error)
Execute performs execution of the transaction. This function will be called from StateTransition.TransitionDb(). Since each transaction type performs different execution, this function calls TxInternalData.TransitionDb().
func (*Transaction) Fee ¶
func (tx *Transaction) Fee() *big.Int
func (*Transaction) FeePayer ¶
func (tx *Transaction) FeePayer() (common.Address, error)
FeePayer returns the fee payer address. If the tx is a fee-delegated transaction, it returns the specified fee payer. Otherwise, it returns `from` of the tx.
func (*Transaction) FeeRatio ¶
func (tx *Transaction) FeeRatio() (FeeRatio, bool)
FeeRatio returns the fee ratio of a transaction and a boolean value indicating TxInternalDataFeeRatio implementation. If the transaction does not implement TxInternalDataFeeRatio, it returns MaxFeeRatio which means the fee payer will be paid all tx fee by default.
func (*Transaction) FillContractAddress ¶
func (tx *Transaction) FillContractAddress(from common.Address, r *Receipt)
FillContractAddress fills contract address to receipt. This only works for types deploying a smart contract.
func (*Transaction) From ¶
func (tx *Transaction) From() (common.Address, error)
From returns the from address of the transaction. Since a legacy transaction (TxInternalDataLegacy) does not have the field `from`, calling From() is failed for `TxInternalDataLegacy`.
func (*Transaction) Gas ¶
func (tx *Transaction) Gas() uint64
func (*Transaction) GasPrice ¶
func (tx *Transaction) GasPrice() *big.Int
func (*Transaction) GetRoleTypeForValidation ¶
func (tx *Transaction) GetRoleTypeForValidation() accountkey.RoleType
func (*Transaction) GetTxInternalData ¶
func (tx *Transaction) GetTxInternalData() TxInternalData
func (*Transaction) Hash ¶
func (tx *Transaction) Hash() common.Hash
Hash hashes the RLP encoding of tx. It uniquely identifies the transaction.
func (*Transaction) IntrinsicGas ¶
func (tx *Transaction) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*Transaction) IsFeeDelegatedTransaction ¶
func (tx *Transaction) IsFeeDelegatedTransaction() bool
IsFeeDelegatedTransaction returns true if the transaction is a fee-delegated transaction. A fee-delegated transaction has an address of the fee payer which can be different from `from` of the tx.
func (*Transaction) IsLegacyTransaction ¶
func (tx *Transaction) IsLegacyTransaction() bool
func (*Transaction) IsMarkedUnexecutable ¶
func (tx *Transaction) IsMarkedUnexecutable() bool
func (*Transaction) MakeRPCOutput ¶
func (tx *Transaction) MakeRPCOutput() map[string]interface{}
func (*Transaction) MarkUnexecutable ¶
func (tx *Transaction) MarkUnexecutable(b bool)
func (*Transaction) MarshalJSON ¶
func (tx *Transaction) MarshalJSON() ([]byte, error)
MarshalJSON encodes the web3 RPC transaction format.
func (*Transaction) Nonce ¶
func (tx *Transaction) Nonce() uint64
func (*Transaction) RawSignatureValues ¶
func (tx *Transaction) RawSignatureValues() TxSignatures
func (*Transaction) SenderTxHash ¶
func (tx *Transaction) SenderTxHash() (common.Hash, bool)
SenderTxHash returns (SenderTxHash, true) if the tx is a fee-delegated transaction. Otherwise, it returns (nil hash, false).
func (*Transaction) SenderTxHashAll ¶
func (tx *Transaction) SenderTxHashAll() common.Hash
SenderTxHashAll returns SenderTxHash for all tx types. If it is not a fee-delegated tx, SenderTxHash and TxHash are the same.
func (*Transaction) SetFeePayerSignatures ¶
func (tx *Transaction) SetFeePayerSignatures(s TxSignatures) error
func (*Transaction) SetSignature ¶
func (tx *Transaction) SetSignature(signature TxSignatures)
func (*Transaction) Sign ¶
func (tx *Transaction) Sign(s Signer, prv *ecdsa.PrivateKey) error
Sign signs the tx with the given signer and private key.
func (*Transaction) SignFeePayer ¶
func (tx *Transaction) SignFeePayer(s Signer, prv *ecdsa.PrivateKey) error
SignFeePayer signs the tx with the given signer and private key as a fee payer.
func (*Transaction) SignFeePayerWithKeys ¶
func (tx *Transaction) SignFeePayerWithKeys(s Signer, prv []*ecdsa.PrivateKey) error
SignFeePayerWithKeys signs the tx with the given signer and a slice of private keys as a fee payer.
func (*Transaction) SignWithKeys ¶
func (tx *Transaction) SignWithKeys(s Signer, prv []*ecdsa.PrivateKey) error
SignWithKeys signs the tx with the given signer and a slice of private keys.
func (*Transaction) Size ¶
func (tx *Transaction) Size() common.StorageSize
Size returns the true RLP encoded storage size of the transaction, either by encoding and returning it, or returning a previsouly cached value.
func (*Transaction) String ¶
func (tx *Transaction) String() string
func (*Transaction) To ¶
func (tx *Transaction) To() *common.Address
To returns the recipient address of the transaction. It returns nil if the transaction is a contract creation.
func (*Transaction) Type ¶
func (tx *Transaction) Type() TxType
func (*Transaction) UnmarshalJSON ¶
func (tx *Transaction) UnmarshalJSON(input []byte) error
UnmarshalJSON decodes the web3 RPC transaction format.
func (*Transaction) Validate ¶
func (tx *Transaction) Validate(db StateDB, blockNumber uint64) error
func (*Transaction) ValidateFeePayer ¶
func (tx *Transaction) ValidateFeePayer(signer Signer, p AccountKeyPicker, currentBlockNumber uint64) (uint64, error)
ValidateFeePayer finds a fee payer from a transaction. If the transaction is not a fee-delegated transaction, it returns an error.
func (*Transaction) ValidateMutableValue ¶
func (tx *Transaction) ValidateMutableValue(db StateDB, signer Signer, currentBlockNumber uint64) error
ValidateMutableValue conducts validation of the sender's account key and additional validation for each transaction type.
func (*Transaction) ValidateSender ¶
func (tx *Transaction) ValidateSender(signer Signer, p AccountKeyPicker, currentBlockNumber uint64) (uint64, error)
ValidateSender finds a sender from both legacy and new types of transactions. It returns the senders address and gas used for the tx validation.
func (*Transaction) ValidatedFeePayer ¶
func (tx *Transaction) ValidatedFeePayer() common.Address
func (*Transaction) ValidatedIntrinsicGas ¶
func (tx *Transaction) ValidatedIntrinsicGas() uint64
func (*Transaction) ValidatedSender ¶
func (tx *Transaction) ValidatedSender() common.Address
func (*Transaction) Value ¶
func (tx *Transaction) Value() *big.Int
func (*Transaction) WithSignature ¶
func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error)
WithSignature returns a new transaction with the given signature. This signature needs to be formatted as described in the yellow paper (v+27).
type Transactions ¶
type Transactions []*Transaction
Transactions is a Transaction slice type for basic sorting.
func TxDifference ¶
func TxDifference(a, b Transactions) (keep Transactions)
TxDifference returns a new set t which is the difference between a to b.
func (Transactions) GetRlp ¶
func (s Transactions) GetRlp(i int) []byte
GetRlp implements Rlpable and returns the i'th element of s in rlp.
func (Transactions) Swap ¶
func (s Transactions) Swap(i, j int)
Swap swaps the i'th and the j'th element in s.
type TransactionsByPriceAndNonce ¶
type TransactionsByPriceAndNonce struct {
// contains filtered or unexported fields
}
TransactionsByPriceAndNonce represents a set of transactions that can return transactions in a profit-maximizing sorted order, while supporting removing entire batches of transactions for non-executable accounts.
func NewTransactionsByPriceAndNonce ¶
func NewTransactionsByPriceAndNonce(signer Signer, txs map[common.Address]Transactions) *TransactionsByPriceAndNonce
NewTransactionsByPriceAndNonce creates a transaction set that can retrieve price sorted transactions in a nonce-honouring way.
Note, the input map is reowned so the caller should not interact any more with if after providing it to the constructor.
func (*TransactionsByPriceAndNonce) Count ¶
func (t *TransactionsByPriceAndNonce) Count() (int, int)
############ method for debug
func (*TransactionsByPriceAndNonce) Peek ¶
func (t *TransactionsByPriceAndNonce) Peek() *Transaction
Peek returns the next transaction by price.
func (*TransactionsByPriceAndNonce) Pop ¶
func (t *TransactionsByPriceAndNonce) Pop()
Pop removes the best transaction, *not* replacing it with the next one from the same account. This should be used when a transaction cannot be executed and hence all subsequent ones should be discarded from the same account.
func (*TransactionsByPriceAndNonce) Shift ¶
func (t *TransactionsByPriceAndNonce) Shift()
Shift replaces the current best head with the next one from the same account.
func (*TransactionsByPriceAndNonce) Txs ¶
func (t *TransactionsByPriceAndNonce) Txs() map[common.Address]Transactions
type TxByNonce ¶
type TxByNonce Transactions
TxByNonce implements the sort interface to allow sorting a list of transactions by their nonces. This is usually only useful for sorting transactions from a single account, otherwise a nonce comparison doesn't make much sense.
type TxByPrice ¶
type TxByPrice Transactions
TxByPrice implements both the sort and the heap interface, making it useful for all at once sorting as well as individually adding and removing elements.
type TxInternalData ¶
type TxInternalData interface { Type() TxType GetAccountNonce() uint64 GetPrice() *big.Int GetGasLimit() uint64 GetRecipient() *common.Address GetAmount() *big.Int GetHash() *common.Hash SetHash(*common.Hash) SetSignature(TxSignatures) // RawSignatureValues returns signatures as a slice of `*big.Int`. // Due to multi signatures, it is not good to return three values of `*big.Int`. // The format would be something like [["V":v, "R":r, "S":s}, {"V":v, "R":r, "S":s}]. RawSignatureValues() TxSignatures // ValidateSignature returns true if the signature is valid. ValidateSignature() bool // RecoverAddress returns address derived from txhash and signatures(r, s, v). // Since EIP155Signer modifies V value during recovering while other signers don't, it requires vfunc for the treatment. RecoverAddress(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) (common.Address, error) // RecoverPubkey returns a public key derived from txhash and signatures(r, s, v). // Since EIP155Signer modifies V value during recovering while other signers don't, it requires vfunc for the treatment. RecoverPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error) // ChainId returns which chain id this transaction was signed for (if at all) ChainId() *big.Int // Equal returns true if all attributes are the same. Equal(t TxInternalData) bool // IntrinsicGas computes additional 'intrinsic gas' based on tx types. IntrinsicGas(currentBlockNumber uint64) (uint64, error) // SerializeForSign returns a slice containing attributes to make its tx signature. SerializeForSign() []interface{} // SenderTxHash returns a hash of the tx without the fee payer's address and signature. SenderTxHash() common.Hash // Validate returns nil if tx is validated with the given stateDB and currentBlockNumber. // Otherwise, it returns an error. // This function is called in TxPool.validateTx() and TxInternalData.Execute(). Validate(stateDB StateDB, currentBlockNumber uint64) error // ValidateMutableValue returns nil if tx is validated. Otherwise, it returns an error. // The function validates tx values associated with mutable values in the state. // MutableValues: accountKey, the existence of creating address, feePayer's balance, etc. ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error // IsLegacyTransaction returns true if the tx type is a legacy transaction (TxInternalDataLegacy) object. IsLegacyTransaction() bool // GetRoleTypeForValidation returns RoleType to validate this transaction. GetRoleTypeForValidation() accountkey.RoleType // String returns a string containing information about the fields of the object. String() string // Execute performs execution of the transaction according to the transaction type. Execute(sender ContractRef, vm VM, stateDB StateDB, currentBlockNumber uint64, gas uint64, value *big.Int) (ret []byte, usedGas uint64, err error) MakeRPCOutput() map[string]interface{} }
TxInternalData is an interface for an internal data structure of a Transaction
func NewTxInternalData ¶
func NewTxInternalData(t TxType) (TxInternalData, error)
func NewTxInternalDataWithMap ¶
func NewTxInternalDataWithMap(t TxType, values map[TxValueKeyType]interface{}) (TxInternalData, error)
type TxInternalDataAccountCreation ¶
type TxInternalDataAccountCreation struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address HumanReadable bool Key accountkey.AccountKey TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataAccountCreation represents a transaction creating an account.
func (*TxInternalDataAccountCreation) DecodeRLP ¶
func (t *TxInternalDataAccountCreation) DecodeRLP(s *rlp.Stream) error
func (*TxInternalDataAccountCreation) EncodeRLP ¶
func (t *TxInternalDataAccountCreation) EncodeRLP(w io.Writer) error
func (*TxInternalDataAccountCreation) Equal ¶
func (t *TxInternalDataAccountCreation) Equal(a TxInternalData) bool
func (*TxInternalDataAccountCreation) GetAccountNonce ¶
func (t *TxInternalDataAccountCreation) GetAccountNonce() uint64
func (*TxInternalDataAccountCreation) GetAmount ¶
func (t *TxInternalDataAccountCreation) GetAmount() *big.Int
func (*TxInternalDataAccountCreation) GetFrom ¶
func (t *TxInternalDataAccountCreation) GetFrom() common.Address
func (*TxInternalDataAccountCreation) GetGasLimit ¶
func (t *TxInternalDataAccountCreation) GetGasLimit() uint64
func (*TxInternalDataAccountCreation) GetHash ¶
func (t *TxInternalDataAccountCreation) GetHash() *common.Hash
func (*TxInternalDataAccountCreation) GetPrice ¶
func (t *TxInternalDataAccountCreation) GetPrice() *big.Int
func (*TxInternalDataAccountCreation) GetRecipient ¶
func (t *TxInternalDataAccountCreation) GetRecipient() *common.Address
func (*TxInternalDataAccountCreation) GetRoleTypeForValidation ¶
func (t *TxInternalDataAccountCreation) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataAccountCreation) IntrinsicGas ¶
func (t *TxInternalDataAccountCreation) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataAccountCreation) IsLegacyTransaction ¶
func (t *TxInternalDataAccountCreation) IsLegacyTransaction() bool
func (*TxInternalDataAccountCreation) MakeRPCOutput ¶
func (t *TxInternalDataAccountCreation) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataAccountCreation) MarshalJSON ¶
func (t *TxInternalDataAccountCreation) MarshalJSON() ([]byte, error)
func (*TxInternalDataAccountCreation) SenderTxHash ¶
func (t *TxInternalDataAccountCreation) SenderTxHash() common.Hash
func (*TxInternalDataAccountCreation) SerializeForSign ¶
func (t *TxInternalDataAccountCreation) SerializeForSign() []interface{}
func (*TxInternalDataAccountCreation) SerializeForSignToBytes ¶
func (t *TxInternalDataAccountCreation) SerializeForSignToBytes() []byte
func (*TxInternalDataAccountCreation) SetHash ¶
func (t *TxInternalDataAccountCreation) SetHash(h *common.Hash)
func (*TxInternalDataAccountCreation) SetSignature ¶
func (t *TxInternalDataAccountCreation) SetSignature(s TxSignatures)
func (*TxInternalDataAccountCreation) String ¶
func (t *TxInternalDataAccountCreation) String() string
func (*TxInternalDataAccountCreation) Type ¶
func (t *TxInternalDataAccountCreation) Type() TxType
func (*TxInternalDataAccountCreation) UnmarshalJSON ¶
func (t *TxInternalDataAccountCreation) UnmarshalJSON(b []byte) error
func (*TxInternalDataAccountCreation) Validate ¶
func (t *TxInternalDataAccountCreation) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataAccountCreation) ValidateMutableValue ¶
func (t *TxInternalDataAccountCreation) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataAccountCreationJSON ¶
type TxInternalDataAccountCreationJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` HumanReadable bool `json:"humanReadable"` Key hexutil.Bytes `json:"key"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataAccountUpdate ¶
type TxInternalDataAccountUpdate struct { AccountNonce uint64 Price *big.Int GasLimit uint64 From common.Address Key accountkey.AccountKey // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` TxSignatures }
TxInternalDataAccountUpdate represents a transaction updating a key of an account.
func (*TxInternalDataAccountUpdate) DecodeRLP ¶
func (t *TxInternalDataAccountUpdate) DecodeRLP(s *rlp.Stream) error
func (*TxInternalDataAccountUpdate) EncodeRLP ¶
func (t *TxInternalDataAccountUpdate) EncodeRLP(w io.Writer) error
func (*TxInternalDataAccountUpdate) Equal ¶
func (t *TxInternalDataAccountUpdate) Equal(a TxInternalData) bool
func (*TxInternalDataAccountUpdate) GetAccountNonce ¶
func (t *TxInternalDataAccountUpdate) GetAccountNonce() uint64
func (*TxInternalDataAccountUpdate) GetAmount ¶
func (t *TxInternalDataAccountUpdate) GetAmount() *big.Int
func (*TxInternalDataAccountUpdate) GetFrom ¶
func (t *TxInternalDataAccountUpdate) GetFrom() common.Address
func (*TxInternalDataAccountUpdate) GetGasLimit ¶
func (t *TxInternalDataAccountUpdate) GetGasLimit() uint64
func (*TxInternalDataAccountUpdate) GetHash ¶
func (t *TxInternalDataAccountUpdate) GetHash() *common.Hash
func (*TxInternalDataAccountUpdate) GetPrice ¶
func (t *TxInternalDataAccountUpdate) GetPrice() *big.Int
func (*TxInternalDataAccountUpdate) GetRecipient ¶
func (t *TxInternalDataAccountUpdate) GetRecipient() *common.Address
func (*TxInternalDataAccountUpdate) GetRoleTypeForValidation ¶
func (t *TxInternalDataAccountUpdate) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataAccountUpdate) IntrinsicGas ¶
func (t *TxInternalDataAccountUpdate) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataAccountUpdate) IsLegacyTransaction ¶
func (t *TxInternalDataAccountUpdate) IsLegacyTransaction() bool
func (*TxInternalDataAccountUpdate) MakeRPCOutput ¶
func (t *TxInternalDataAccountUpdate) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataAccountUpdate) MarshalJSON ¶
func (t *TxInternalDataAccountUpdate) MarshalJSON() ([]byte, error)
func (*TxInternalDataAccountUpdate) SenderTxHash ¶
func (t *TxInternalDataAccountUpdate) SenderTxHash() common.Hash
func (*TxInternalDataAccountUpdate) SerializeForSign ¶
func (t *TxInternalDataAccountUpdate) SerializeForSign() []interface{}
func (*TxInternalDataAccountUpdate) SerializeForSignToBytes ¶
func (t *TxInternalDataAccountUpdate) SerializeForSignToBytes() []byte
func (*TxInternalDataAccountUpdate) SetHash ¶
func (t *TxInternalDataAccountUpdate) SetHash(h *common.Hash)
func (*TxInternalDataAccountUpdate) SetSignature ¶
func (t *TxInternalDataAccountUpdate) SetSignature(s TxSignatures)
func (*TxInternalDataAccountUpdate) String ¶
func (t *TxInternalDataAccountUpdate) String() string
func (*TxInternalDataAccountUpdate) Type ¶
func (t *TxInternalDataAccountUpdate) Type() TxType
func (*TxInternalDataAccountUpdate) UnmarshalJSON ¶
func (t *TxInternalDataAccountUpdate) UnmarshalJSON(b []byte) error
func (*TxInternalDataAccountUpdate) Validate ¶
func (t *TxInternalDataAccountUpdate) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataAccountUpdate) ValidateMutableValue ¶
func (t *TxInternalDataAccountUpdate) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataAccountUpdateJSON ¶
type TxInternalDataAccountUpdateJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` From common.Address `json:"from"` Key hexutil.Bytes `json:"key"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataCancel ¶
type TxInternalDataCancel struct { AccountNonce uint64 Price *big.Int GasLimit uint64 From common.Address // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` TxSignatures }
TxInternalDataCancel is a transaction that cancels a transaction previously submitted into txpool by replacement. Since Klaytn defines fixed gas price for all transactions, a transaction cannot be replaced with another transaction with higher gas price. To provide tx replacement, TxInternalDataCancel is introduced. To replace a previously added tx, send a TxInternalCancel transaction with the same nonce.
func (*TxInternalDataCancel) Equal ¶
func (t *TxInternalDataCancel) Equal(b TxInternalData) bool
func (*TxInternalDataCancel) GetAccountNonce ¶
func (t *TxInternalDataCancel) GetAccountNonce() uint64
func (*TxInternalDataCancel) GetAmount ¶
func (t *TxInternalDataCancel) GetAmount() *big.Int
func (*TxInternalDataCancel) GetFrom ¶
func (t *TxInternalDataCancel) GetFrom() common.Address
func (*TxInternalDataCancel) GetGasLimit ¶
func (t *TxInternalDataCancel) GetGasLimit() uint64
func (*TxInternalDataCancel) GetHash ¶
func (t *TxInternalDataCancel) GetHash() *common.Hash
func (*TxInternalDataCancel) GetPrice ¶
func (t *TxInternalDataCancel) GetPrice() *big.Int
func (*TxInternalDataCancel) GetRecipient ¶
func (t *TxInternalDataCancel) GetRecipient() *common.Address
func (*TxInternalDataCancel) GetRoleTypeForValidation ¶
func (t *TxInternalDataCancel) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataCancel) IntrinsicGas ¶
func (t *TxInternalDataCancel) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataCancel) IsLegacyTransaction ¶
func (t *TxInternalDataCancel) IsLegacyTransaction() bool
func (*TxInternalDataCancel) MakeRPCOutput ¶
func (t *TxInternalDataCancel) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataCancel) MarshalJSON ¶
func (t *TxInternalDataCancel) MarshalJSON() ([]byte, error)
func (*TxInternalDataCancel) SenderTxHash ¶
func (t *TxInternalDataCancel) SenderTxHash() common.Hash
func (*TxInternalDataCancel) SerializeForSign ¶
func (t *TxInternalDataCancel) SerializeForSign() []interface{}
func (*TxInternalDataCancel) SerializeForSignToBytes ¶
func (t *TxInternalDataCancel) SerializeForSignToBytes() []byte
func (*TxInternalDataCancel) SetHash ¶
func (t *TxInternalDataCancel) SetHash(h *common.Hash)
func (*TxInternalDataCancel) SetSignature ¶
func (t *TxInternalDataCancel) SetSignature(s TxSignatures)
func (*TxInternalDataCancel) String ¶
func (t *TxInternalDataCancel) String() string
func (*TxInternalDataCancel) Type ¶
func (t *TxInternalDataCancel) Type() TxType
func (*TxInternalDataCancel) UnmarshalJSON ¶
func (t *TxInternalDataCancel) UnmarshalJSON(b []byte) error
func (*TxInternalDataCancel) Validate ¶
func (t *TxInternalDataCancel) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataCancel) ValidateMutableValue ¶
func (t *TxInternalDataCancel) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataCancelJSON ¶
type TxInternalDataCancelJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` From common.Address `json:"from"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataChainDataAnchoring ¶
type TxInternalDataChainDataAnchoring struct { AccountNonce uint64 Price *big.Int GasLimit uint64 From common.Address Payload []byte TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataChainDataAnchoring represents the transaction anchoring child chain data.
func (*TxInternalDataChainDataAnchoring) Equal ¶
func (t *TxInternalDataChainDataAnchoring) Equal(b TxInternalData) bool
func (*TxInternalDataChainDataAnchoring) GetAccountNonce ¶
func (t *TxInternalDataChainDataAnchoring) GetAccountNonce() uint64
func (*TxInternalDataChainDataAnchoring) GetAmount ¶
func (t *TxInternalDataChainDataAnchoring) GetAmount() *big.Int
func (*TxInternalDataChainDataAnchoring) GetFrom ¶
func (t *TxInternalDataChainDataAnchoring) GetFrom() common.Address
func (*TxInternalDataChainDataAnchoring) GetGasLimit ¶
func (t *TxInternalDataChainDataAnchoring) GetGasLimit() uint64
func (*TxInternalDataChainDataAnchoring) GetHash ¶
func (t *TxInternalDataChainDataAnchoring) GetHash() *common.Hash
func (*TxInternalDataChainDataAnchoring) GetPayload ¶
func (t *TxInternalDataChainDataAnchoring) GetPayload() []byte
func (*TxInternalDataChainDataAnchoring) GetPrice ¶
func (t *TxInternalDataChainDataAnchoring) GetPrice() *big.Int
func (*TxInternalDataChainDataAnchoring) GetRecipient ¶
func (t *TxInternalDataChainDataAnchoring) GetRecipient() *common.Address
func (*TxInternalDataChainDataAnchoring) GetRoleTypeForValidation ¶
func (t *TxInternalDataChainDataAnchoring) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataChainDataAnchoring) IntrinsicGas ¶
func (t *TxInternalDataChainDataAnchoring) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataChainDataAnchoring) IsLegacyTransaction ¶
func (t *TxInternalDataChainDataAnchoring) IsLegacyTransaction() bool
func (*TxInternalDataChainDataAnchoring) MakeRPCOutput ¶
func (t *TxInternalDataChainDataAnchoring) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataChainDataAnchoring) MarshalJSON ¶
func (t *TxInternalDataChainDataAnchoring) MarshalJSON() ([]byte, error)
func (*TxInternalDataChainDataAnchoring) SenderTxHash ¶
func (t *TxInternalDataChainDataAnchoring) SenderTxHash() common.Hash
func (*TxInternalDataChainDataAnchoring) SerializeForSign ¶
func (t *TxInternalDataChainDataAnchoring) SerializeForSign() []interface{}
func (*TxInternalDataChainDataAnchoring) SerializeForSignToBytes ¶
func (t *TxInternalDataChainDataAnchoring) SerializeForSignToBytes() []byte
func (*TxInternalDataChainDataAnchoring) SetHash ¶
func (t *TxInternalDataChainDataAnchoring) SetHash(h *common.Hash)
func (*TxInternalDataChainDataAnchoring) SetSignature ¶
func (t *TxInternalDataChainDataAnchoring) SetSignature(s TxSignatures)
func (*TxInternalDataChainDataAnchoring) String ¶
func (t *TxInternalDataChainDataAnchoring) String() string
func (*TxInternalDataChainDataAnchoring) Type ¶
func (t *TxInternalDataChainDataAnchoring) Type() TxType
func (*TxInternalDataChainDataAnchoring) UnmarshalJSON ¶
func (t *TxInternalDataChainDataAnchoring) UnmarshalJSON(b []byte) error
func (*TxInternalDataChainDataAnchoring) Validate ¶
func (t *TxInternalDataChainDataAnchoring) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataChainDataAnchoring) ValidateMutableValue ¶
func (t *TxInternalDataChainDataAnchoring) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataChainDataAnchoringJSON ¶
type TxInternalDataChainDataAnchoringJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedAccountUpdate ¶
type TxInternalDataFeeDelegatedAccountUpdate struct { AccountNonce uint64 Price *big.Int GasLimit uint64 From common.Address Key accountkey.AccountKey TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedAccountUpdate represents a fee-delegated transaction updating a key of an account.
func (*TxInternalDataFeeDelegatedAccountUpdate) DecodeRLP ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) DecodeRLP(s *rlp.Stream) error
func (*TxInternalDataFeeDelegatedAccountUpdate) EncodeRLP ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) EncodeRLP(w io.Writer) error
func (*TxInternalDataFeeDelegatedAccountUpdate) Equal ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) Equal(a TxInternalData) bool
func (*TxInternalDataFeeDelegatedAccountUpdate) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedAccountUpdate) GetAmount ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedAccountUpdate) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedAccountUpdate) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedAccountUpdate) GetFrom ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedAccountUpdate) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedAccountUpdate) GetHash ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedAccountUpdate) GetPrice ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedAccountUpdate) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedAccountUpdate) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedAccountUpdate) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedAccountUpdate) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedAccountUpdate) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedAccountUpdate) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedAccountUpdate) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedAccountUpdate) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedAccountUpdate) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedAccountUpdate) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedAccountUpdate) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedAccountUpdate) SetHash ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedAccountUpdate) SetSignature ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedAccountUpdate) String ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) String() string
func (*TxInternalDataFeeDelegatedAccountUpdate) Type ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) Type() TxType
func (*TxInternalDataFeeDelegatedAccountUpdate) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedAccountUpdate) Validate ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedAccountUpdate) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedAccountUpdate) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedAccountUpdateJSON ¶
type TxInternalDataFeeDelegatedAccountUpdateJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` From common.Address `json:"from"` Key hexutil.Bytes `json:"key"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedAccountUpdateWithRatio ¶
type TxInternalDataFeeDelegatedAccountUpdateWithRatio struct { AccountNonce uint64 Price *big.Int GasLimit uint64 From common.Address Key accountkey.AccountKey FeeRatio FeeRatio TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedAccountUpdateWithRatio represents a fee-delegated transaction updating a key of an account with a specified fee ratio between the sender and the fee payer. The ratio is a fee payer's ratio in percentage. For example, if it is 20, 20% of tx fee will be paid by the fee payer. 80% of tx fee will be paid by the sender.
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) DecodeRLP ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) DecodeRLP(s *rlp.Stream) error
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) EncodeRLP ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) EncodeRLP(w io.Writer) error
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) Equal ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) Equal(a TxInternalData) bool
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetAmount ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeeRatio ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFeeRatio() FeeRatio
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFrom ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetHash ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetPrice ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetHash ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetSignature ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) String ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) String() string
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) Type ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) Type() TxType
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) Validate ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedAccountUpdateWithRatio) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedAccountUpdateWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedAccountUpdateWithRatioJSON ¶
type TxInternalDataFeeDelegatedAccountUpdateWithRatioJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` From common.Address `json:"from"` Key hexutil.Bytes `json:"key"` FeeRatio hexutil.Uint `json:"feeRatio"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedCancel ¶
type TxInternalDataFeeDelegatedCancel struct { AccountNonce uint64 Price *big.Int GasLimit uint64 From common.Address TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedCancel is a fee-delegated transaction that cancels a transaction previously submitted into txpool by replacement. Since Klaytn defines fixed gas price for all transactions, a transaction cannot be replaced with another transaction with higher gas price. To provide tx replacement, TxInternalDataFeeDelegatedCancel is introduced. To replace a previously added tx, send a TxInternalFeeDelegatedCancel transaction with the same nonce.
func (*TxInternalDataFeeDelegatedCancel) Equal ¶
func (t *TxInternalDataFeeDelegatedCancel) Equal(b TxInternalData) bool
func (*TxInternalDataFeeDelegatedCancel) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedCancel) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedCancel) GetAmount ¶
func (t *TxInternalDataFeeDelegatedCancel) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedCancel) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedCancel) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedCancel) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedCancel) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedCancel) GetFrom ¶
func (t *TxInternalDataFeeDelegatedCancel) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedCancel) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedCancel) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedCancel) GetHash ¶
func (t *TxInternalDataFeeDelegatedCancel) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedCancel) GetPrice ¶
func (t *TxInternalDataFeeDelegatedCancel) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedCancel) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedCancel) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedCancel) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedCancel) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedCancel) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedCancel) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedCancel) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedCancel) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedCancel) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedCancel) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedCancel) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedCancel) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedCancel) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedCancel) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedCancel) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedCancel) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedCancel) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedCancel) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedCancel) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedCancel) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedCancel) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedCancel) SetHash ¶
func (t *TxInternalDataFeeDelegatedCancel) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedCancel) SetSignature ¶
func (t *TxInternalDataFeeDelegatedCancel) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedCancel) String ¶
func (t *TxInternalDataFeeDelegatedCancel) String() string
func (*TxInternalDataFeeDelegatedCancel) Type ¶
func (t *TxInternalDataFeeDelegatedCancel) Type() TxType
func (*TxInternalDataFeeDelegatedCancel) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedCancel) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedCancel) Validate ¶
func (t *TxInternalDataFeeDelegatedCancel) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedCancel) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedCancel) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedCancelJSON ¶
type TxInternalDataFeeDelegatedCancelJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` From common.Address `json:"from"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedCancelWithRatio ¶
type TxInternalDataFeeDelegatedCancelWithRatio struct { AccountNonce uint64 Price *big.Int GasLimit uint64 From common.Address FeeRatio FeeRatio TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedCancelWithRatio is a fee-delegated transaction that cancels a transaction previously submitted into txpool by replacement. Since Klaytn defines fixed gas price for all transactions, a transaction cannot be replaced with another transaction with higher gas price. To provide tx replacement, TxInternalDataFeeDelegatedCancelWithRatio is introduced. To replace a previously added tx, send a TxInternalFeeDelegatedCancelWithRatio transaction with the same nonce. TxInternalDataFeeDelegatedCancelWithRatio has a specified fee ratio between the sender and the fee payer. The ratio is a fee payer's ratio in percentage. For example, if it is 20, 20% of tx fee will be paid by the fee payer. 80% of tx fee will be paid by the sender.
func (*TxInternalDataFeeDelegatedCancelWithRatio) Equal ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) Equal(b TxInternalData) bool
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetAmount ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetFeeRatio ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetFeeRatio() FeeRatio
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetFrom ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetHash ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetPrice ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedCancelWithRatio) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedCancelWithRatio) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedCancelWithRatio) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedCancelWithRatio) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedCancelWithRatio) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedCancelWithRatio) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedCancelWithRatio) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedCancelWithRatio) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedCancelWithRatio) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedCancelWithRatio) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedCancelWithRatio) SetHash ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedCancelWithRatio) SetSignature ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedCancelWithRatio) String ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) String() string
func (*TxInternalDataFeeDelegatedCancelWithRatio) Type ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) Type() TxType
func (*TxInternalDataFeeDelegatedCancelWithRatio) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedCancelWithRatio) Validate ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedCancelWithRatio) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedCancelWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedCancelWithRatioJSON ¶
type TxInternalDataFeeDelegatedCancelWithRatioJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` From common.Address `json:"from"` FeeRatio hexutil.Uint `json:"feeRatio"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedSmartContractDeploy ¶
type TxInternalDataFeeDelegatedSmartContractDeploy struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient *common.Address `rlp:"nil"` Amount *big.Int From common.Address Payload []byte HumanReadable bool CodeFormat params.CodeFormat TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedSmartContractDeploy represents a fee-delegated transaction creating a smart contract.
func (*TxInternalDataFeeDelegatedSmartContractDeploy) Equal ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) Equal(a TxInternalData) bool
func (*TxInternalDataFeeDelegatedSmartContractDeploy) FillContractAddress ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) FillContractAddress(from common.Address, r *Receipt)
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetAmount ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetCodeFormat ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetCodeFormat() params.CodeFormat
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetFrom ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetPayload ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetPayload() []byte
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetPrice ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedSmartContractDeploy) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedSmartContractDeploy) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedSmartContractDeploy) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedSmartContractDeploy) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedSmartContractDeploy) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedSmartContractDeploy) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedSmartContractDeploy) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedSmartContractDeploy) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedSmartContractDeploy) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedSmartContractDeploy) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedSmartContractDeploy) SetHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedSmartContractDeploy) SetSignature ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedSmartContractDeploy) String ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) String() string
func (*TxInternalDataFeeDelegatedSmartContractDeploy) Type ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) Type() TxType
func (*TxInternalDataFeeDelegatedSmartContractDeploy) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedSmartContractDeploy) Validate ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedSmartContractDeploy) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeploy) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedSmartContractDeployJSON ¶
type TxInternalDataFeeDelegatedSmartContractDeployJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient *common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` HumanReadable bool `json:"humanReadable"` CodeFormat hexutil.Uint `json:"codeFormat"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedSmartContractDeployWithRatio ¶
type TxInternalDataFeeDelegatedSmartContractDeployWithRatio struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient *common.Address `rlp:"nil"` Amount *big.Int From common.Address Payload []byte HumanReadable bool FeeRatio FeeRatio CodeFormat params.CodeFormat TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedSmartContractDeployWithRatio represents a fee-delegated transaction creating a smart contract with a specified fee ratio between the sender and the fee payer. The ratio is a fee payer's ratio in percentage. For example, if it is 20, 20% of tx fee will be paid by the fee payer. 80% of tx fee will be paid by the sender.
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Equal ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Equal(a TxInternalData) bool
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) FillContractAddress ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) FillContractAddress(from common.Address, r *Receipt)
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetAmount ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetCodeFormat ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetCodeFormat() params.CodeFormat
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeeRatio ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFeeRatio() FeeRatio
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFrom ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetPayload ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetPayload() []byte
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetPrice ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetSignature ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) String ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) String() string
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Type ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Type() TxType
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Validate ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedSmartContractDeployWithRatio) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedSmartContractDeployWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedSmartContractDeployWithRatioJSON ¶
type TxInternalDataFeeDelegatedSmartContractDeployWithRatioJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient *common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` HumanReadable bool `json:"humanReadable"` FeeRatio hexutil.Uint `json:"feeRatio"` CodeFormat hexutil.Uint `json:"codeFormat"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedSmartContractExecution ¶
type TxInternalDataFeeDelegatedSmartContractExecution struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address Payload []byte TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedSmartContractExecution represents a fee-delegated transaction executing a smart contract.
func (*TxInternalDataFeeDelegatedSmartContractExecution) Equal ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) Equal(a TxInternalData) bool
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetAmount ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetFrom ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetPayload ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetPayload() []byte
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetPrice ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedSmartContractExecution) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedSmartContractExecution) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedSmartContractExecution) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedSmartContractExecution) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedSmartContractExecution) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedSmartContractExecution) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedSmartContractExecution) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedSmartContractExecution) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedSmartContractExecution) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedSmartContractExecution) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedSmartContractExecution) SetHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedSmartContractExecution) SetSignature ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedSmartContractExecution) String ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) String() string
func (*TxInternalDataFeeDelegatedSmartContractExecution) Type ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) Type() TxType
func (*TxInternalDataFeeDelegatedSmartContractExecution) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedSmartContractExecution) Validate ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedSmartContractExecution) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecution) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedSmartContractExecutionJSON ¶
type TxInternalDataFeeDelegatedSmartContractExecutionJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedSmartContractExecutionWithRatio ¶
type TxInternalDataFeeDelegatedSmartContractExecutionWithRatio struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address Payload []byte FeeRatio FeeRatio TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedSmartContractExecutionWithRatio represents a fee-delegated transaction executing a smart contract with a specified fee ratio between the sender and the fee payer. The ratio is a fee payer's ratio in percentage. For example, if it is 20, 20% of tx fee will be paid by the fee payer. 80% of tx fee will be paid by the sender.
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Equal ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Equal(a TxInternalData) bool
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetAmount ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeeRatio ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFeeRatio() FeeRatio
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFrom ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetPayload ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetPayload() []byte
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetPrice ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetHash ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetSignature ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) String ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) String() string
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Type ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Type() TxType
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Validate ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedSmartContractExecutionWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedSmartContractExecutionWithRatioJSON ¶
type TxInternalDataFeeDelegatedSmartContractExecutionWithRatioJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` FeeRatio hexutil.Uint `json:"feeRatio"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedValueTransfer ¶
type TxInternalDataFeeDelegatedValueTransfer struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedValueTransfer represents a fee-delegated transaction transferring KLAY with a fee payer. FeePayer should be RLP-encoded after the signature of the sender.
func (*TxInternalDataFeeDelegatedValueTransfer) Equal ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) Equal(b TxInternalData) bool
func (*TxInternalDataFeeDelegatedValueTransfer) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedValueTransfer) GetAmount ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedValueTransfer) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedValueTransfer) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedValueTransfer) GetFrom ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedValueTransfer) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedValueTransfer) GetHash ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedValueTransfer) GetPrice ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedValueTransfer) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedValueTransfer) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedValueTransfer) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedValueTransfer) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedValueTransfer) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedValueTransfer) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedValueTransfer) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedValueTransfer) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedValueTransfer) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedValueTransfer) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedValueTransfer) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedValueTransfer) SetHash ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedValueTransfer) SetSignature ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedValueTransfer) String ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) String() string
func (*TxInternalDataFeeDelegatedValueTransfer) Type ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) Type() TxType
func (*TxInternalDataFeeDelegatedValueTransfer) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedValueTransfer) Validate ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedValueTransfer) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedValueTransfer) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedValueTransferJSON ¶
type TxInternalDataFeeDelegatedValueTransferJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedValueTransferMemo ¶
type TxInternalDataFeeDelegatedValueTransferMemo struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address Payload []byte TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedValueTransferMemo represents a fee-delegated transaction transferring KLAY.
func (*TxInternalDataFeeDelegatedValueTransferMemo) Equal ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) Equal(b TxInternalData) bool
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetAmount ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetFrom ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetPayload ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetPayload() []byte
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetPrice ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedValueTransferMemo) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedValueTransferMemo) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedValueTransferMemo) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedValueTransferMemo) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedValueTransferMemo) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedValueTransferMemo) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedValueTransferMemo) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedValueTransferMemo) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedValueTransferMemo) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedValueTransferMemo) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedValueTransferMemo) SetHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedValueTransferMemo) SetSignature ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedValueTransferMemo) String ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) String() string
func (*TxInternalDataFeeDelegatedValueTransferMemo) Type ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) Type() TxType
func (*TxInternalDataFeeDelegatedValueTransferMemo) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedValueTransferMemo) Validate ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedValueTransferMemo) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemo) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedValueTransferMemoJSON ¶
type TxInternalDataFeeDelegatedValueTransferMemoJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedValueTransferMemoWithRatio ¶
type TxInternalDataFeeDelegatedValueTransferMemoWithRatio struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address Payload []byte FeeRatio FeeRatio TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedValueTransferMemoWithRatio represents a fee-delegated transaction transferring KLAY with a specified fee ratio between the sender and the fee payer. The ratio is a fee payer's ratio in percentage. For example, if it is 20, 20% of tx fee will be paid by the fee payer. 80% of tx fee will be paid by the sender.
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Equal ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Equal(b TxInternalData) bool
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetAmount ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeeRatio ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFeeRatio() FeeRatio
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFrom ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetPayload ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetPayload() []byte
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetPrice ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetSignature ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) String ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) String() string
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Type ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Type() TxType
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Validate ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedValueTransferMemoWithRatio) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedValueTransferMemoWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedValueTransferMemoWithRatioJSON ¶
type TxInternalDataFeeDelegatedValueTransferMemoWithRatioJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` FeeRatio hexutil.Uint `json:"feeRatio"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeeDelegatedValueTransferWithRatio ¶
type TxInternalDataFeeDelegatedValueTransferWithRatio struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address FeeRatio FeeRatio TxSignatures FeePayer common.Address FeePayerSignatures TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataFeeDelegatedValueTransferWithRatio represents a fee-delegated value transfer transaction with a specified fee ratio between the sender and the fee payer. The ratio is a fee payer's ratio in percentage. For example, if it is 20, 20% of tx fee will be paid by the fee payer. 80% of tx fee will be paid by the sender.
func NewTxInternalDataFeeDelegatedValueTransferWithRatio ¶
func NewTxInternalDataFeeDelegatedValueTransferWithRatio() *TxInternalDataFeeDelegatedValueTransferWithRatio
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) Equal ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) Equal(a TxInternalData) bool
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetAccountNonce ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetAccountNonce() uint64
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetAmount ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetAmount() *big.Int
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeePayer ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeePayer() common.Address
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeePayerRawSignatureValues ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeePayerRawSignatureValues() TxSignatures
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeeRatio ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetFeeRatio() FeeRatio
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetFrom ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetFrom() common.Address
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetGasLimit ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetGasLimit() uint64
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetHash() *common.Hash
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetPrice ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetPrice() *big.Int
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetRecipient ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetRecipient() *common.Address
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) GetRoleTypeForValidation ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) IntrinsicGas ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) IsLegacyTransaction ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) IsLegacyTransaction() bool
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) MakeRPCOutput ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) MarshalJSON ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) MarshalJSON() ([]byte, error)
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) RecoverFeePayerPubkey ¶
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) SenderTxHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SenderTxHash() common.Hash
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) SerializeForSign ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SerializeForSign() []interface{}
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) SerializeForSignToBytes ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SerializeForSignToBytes() []byte
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) SetFeePayerSignatures ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SetFeePayerSignatures(s TxSignatures)
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) SetHash ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SetHash(h *common.Hash)
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) SetSignature ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) SetSignature(s TxSignatures)
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) String ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) String() string
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) Type ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) Type() TxType
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) UnmarshalJSON ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) UnmarshalJSON(b []byte) error
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) Validate ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataFeeDelegatedValueTransferWithRatio) ValidateMutableValue ¶
func (t *TxInternalDataFeeDelegatedValueTransferWithRatio) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataFeeDelegatedValueTransferWithRatioJSON ¶
type TxInternalDataFeeDelegatedValueTransferWithRatioJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` FeeRatio hexutil.Uint `json:"feeRatio"` TxSignatures TxSignaturesJSON `json:"signatures"` FeePayer common.Address `json:"feePayer"` FeePayerSignatures TxSignaturesJSON `json:"feePayerSignatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataFeePayer ¶
type TxInternalDataFeePayer interface { GetFeePayer() common.Address // GetFeePayerRawSignatureValues returns fee payer's signatures as a slice of `*big.Int`. // Due to multi signatures, it is not good to return three values of `*big.Int`. // The format would be something like [["V":v, "R":r, "S":s}, {"V":v, "R":r, "S":s}]. GetFeePayerRawSignatureValues() TxSignatures // RecoverFeePayerPubkey returns the fee payer's public key derived from txhash and signatures(r, s, v). RecoverFeePayerPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) ([]*ecdsa.PublicKey, error) SetFeePayerSignatures(s TxSignatures) }
TxInternalDataFeePayer has functions related to fee delegated transactions.
type TxInternalDataFeeRatio ¶
type TxInternalDataFeeRatio interface { // GetFeeRatio returns a ratio of tx fee paid by the fee payer in percentage. // For example, if it is 30, 30% of tx fee will be paid by the fee payer. // 70% will be paid by the sender. GetFeeRatio() FeeRatio }
TxInternalDataFeeRatio has a function `GetFeeRatio`.
type TxInternalDataFrom ¶
TxInternalDataFrom has a function `GetFrom()`. All other transactions to be implemented will have `from` field, but `TxInternalDataLegacy` (a legacy transaction type) does not have the field. Hence, this function is defined in another interface TxInternalDataFrom.
type TxInternalDataLegacy ¶
type TxInternalDataLegacy struct { AccountNonce uint64 `json:"nonce" gencodec:"required"` Price *big.Int `json:"gasPrice" gencodec:"required"` GasLimit uint64 `json:"gas" gencodec:"required"` Recipient *common.Address `json:"to" rlp:"nil"` // nil means contract creation Amount *big.Int `json:"value" gencodec:"required"` Payload []byte `json:"input" gencodec:"required"` // Signature values V *big.Int `json:"v" gencodec:"required"` R *big.Int `json:"r" gencodec:"required"` S *big.Int `json:"s" gencodec:"required"` // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
func (*TxInternalDataLegacy) ChainId ¶
func (t *TxInternalDataLegacy) ChainId() *big.Int
func (*TxInternalDataLegacy) Equal ¶
func (t *TxInternalDataLegacy) Equal(a TxInternalData) bool
func (*TxInternalDataLegacy) FillContractAddress ¶
func (t *TxInternalDataLegacy) FillContractAddress(from common.Address, r *Receipt)
func (*TxInternalDataLegacy) GetAccountNonce ¶
func (t *TxInternalDataLegacy) GetAccountNonce() uint64
func (*TxInternalDataLegacy) GetAmount ¶
func (t *TxInternalDataLegacy) GetAmount() *big.Int
func (*TxInternalDataLegacy) GetGasLimit ¶
func (t *TxInternalDataLegacy) GetGasLimit() uint64
func (*TxInternalDataLegacy) GetHash ¶
func (t *TxInternalDataLegacy) GetHash() *common.Hash
func (*TxInternalDataLegacy) GetPayload ¶
func (t *TxInternalDataLegacy) GetPayload() []byte
func (*TxInternalDataLegacy) GetPrice ¶
func (t *TxInternalDataLegacy) GetPrice() *big.Int
func (*TxInternalDataLegacy) GetRecipient ¶
func (t *TxInternalDataLegacy) GetRecipient() *common.Address
func (*TxInternalDataLegacy) GetRoleTypeForValidation ¶
func (t *TxInternalDataLegacy) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataLegacy) IntrinsicGas ¶
func (t *TxInternalDataLegacy) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataLegacy) IsLegacyTransaction ¶
func (t *TxInternalDataLegacy) IsLegacyTransaction() bool
func (*TxInternalDataLegacy) MakeRPCOutput ¶
func (t *TxInternalDataLegacy) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataLegacy) MarshalJSON ¶
func (t *TxInternalDataLegacy) MarshalJSON() ([]byte, error)
func (*TxInternalDataLegacy) RawSignatureValues ¶
func (t *TxInternalDataLegacy) RawSignatureValues() TxSignatures
func (*TxInternalDataLegacy) RecoverAddress ¶
func (*TxInternalDataLegacy) RecoverPubkey ¶
func (*TxInternalDataLegacy) SenderTxHash ¶
func (t *TxInternalDataLegacy) SenderTxHash() common.Hash
func (*TxInternalDataLegacy) SerializeForSign ¶
func (t *TxInternalDataLegacy) SerializeForSign() []interface{}
func (*TxInternalDataLegacy) SetHash ¶
func (t *TxInternalDataLegacy) SetHash(h *common.Hash)
func (*TxInternalDataLegacy) SetSignature ¶
func (t *TxInternalDataLegacy) SetSignature(s TxSignatures)
func (*TxInternalDataLegacy) String ¶
func (t *TxInternalDataLegacy) String() string
func (*TxInternalDataLegacy) Type ¶
func (t *TxInternalDataLegacy) Type() TxType
func (*TxInternalDataLegacy) UnmarshalJSON ¶
func (t *TxInternalDataLegacy) UnmarshalJSON(b []byte) error
func (*TxInternalDataLegacy) Validate ¶
func (t *TxInternalDataLegacy) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataLegacy) ValidateMutableValue ¶
func (t *TxInternalDataLegacy) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataLegacy) ValidateSignature ¶
func (t *TxInternalDataLegacy) ValidateSignature() bool
type TxInternalDataLegacyJSON ¶
type TxInternalDataLegacyJSON struct { AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient *common.Address `json:"to"` Amount *hexutil.Big `json:"value"` Payload hexutil.Bytes `json:"input"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataPayload ¶
type TxInternalDataPayload interface {
GetPayload() []byte
}
TxInternalDataPayload has a function `GetPayload()`. Since the payload field is not a common field for all tx types, we provide an interface `TxInternalDataPayload` to obtain the payload.
type TxInternalDataSerializeForSignToByte ¶
type TxInternalDataSerializeForSignToByte interface {
SerializeForSignToBytes() []byte
}
type TxInternalDataSerializer ¶
type TxInternalDataSerializer struct {
// contains filtered or unexported fields
}
TxInternalDataSerializer serializes an object that implements `TxInternalData`.
func (*TxInternalDataSerializer) DecodeRLP ¶
func (serializer *TxInternalDataSerializer) DecodeRLP(s *rlp.Stream) error
func (*TxInternalDataSerializer) EncodeRLP ¶
func (serializer *TxInternalDataSerializer) EncodeRLP(w io.Writer) error
func (*TxInternalDataSerializer) MarshalJSON ¶
func (serializer *TxInternalDataSerializer) MarshalJSON() ([]byte, error)
func (*TxInternalDataSerializer) UnmarshalJSON ¶
func (serializer *TxInternalDataSerializer) UnmarshalJSON(b []byte) error
type TxInternalDataSmartContractDeploy ¶
type TxInternalDataSmartContractDeploy struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient *common.Address `rlp:"nil"` Amount *big.Int From common.Address Payload []byte HumanReadable bool CodeFormat params.CodeFormat TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataSmartContractDeploy represents a transaction creating a smart contract.
func (*TxInternalDataSmartContractDeploy) Equal ¶
func (t *TxInternalDataSmartContractDeploy) Equal(a TxInternalData) bool
func (*TxInternalDataSmartContractDeploy) FillContractAddress ¶
func (t *TxInternalDataSmartContractDeploy) FillContractAddress(from common.Address, r *Receipt)
func (*TxInternalDataSmartContractDeploy) GetAccountNonce ¶
func (t *TxInternalDataSmartContractDeploy) GetAccountNonce() uint64
func (*TxInternalDataSmartContractDeploy) GetAmount ¶
func (t *TxInternalDataSmartContractDeploy) GetAmount() *big.Int
func (*TxInternalDataSmartContractDeploy) GetCodeFormat ¶
func (t *TxInternalDataSmartContractDeploy) GetCodeFormat() params.CodeFormat
func (*TxInternalDataSmartContractDeploy) GetFrom ¶
func (t *TxInternalDataSmartContractDeploy) GetFrom() common.Address
func (*TxInternalDataSmartContractDeploy) GetGasLimit ¶
func (t *TxInternalDataSmartContractDeploy) GetGasLimit() uint64
func (*TxInternalDataSmartContractDeploy) GetHash ¶
func (t *TxInternalDataSmartContractDeploy) GetHash() *common.Hash
func (*TxInternalDataSmartContractDeploy) GetPayload ¶
func (t *TxInternalDataSmartContractDeploy) GetPayload() []byte
func (*TxInternalDataSmartContractDeploy) GetPrice ¶
func (t *TxInternalDataSmartContractDeploy) GetPrice() *big.Int
func (*TxInternalDataSmartContractDeploy) GetRecipient ¶
func (t *TxInternalDataSmartContractDeploy) GetRecipient() *common.Address
func (*TxInternalDataSmartContractDeploy) GetRoleTypeForValidation ¶
func (t *TxInternalDataSmartContractDeploy) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataSmartContractDeploy) IntrinsicGas ¶
func (t *TxInternalDataSmartContractDeploy) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataSmartContractDeploy) IsLegacyTransaction ¶
func (t *TxInternalDataSmartContractDeploy) IsLegacyTransaction() bool
func (*TxInternalDataSmartContractDeploy) MakeRPCOutput ¶
func (t *TxInternalDataSmartContractDeploy) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataSmartContractDeploy) MarshalJSON ¶
func (t *TxInternalDataSmartContractDeploy) MarshalJSON() ([]byte, error)
func (*TxInternalDataSmartContractDeploy) SenderTxHash ¶
func (t *TxInternalDataSmartContractDeploy) SenderTxHash() common.Hash
func (*TxInternalDataSmartContractDeploy) SerializeForSign ¶
func (t *TxInternalDataSmartContractDeploy) SerializeForSign() []interface{}
func (*TxInternalDataSmartContractDeploy) SerializeForSignToBytes ¶
func (t *TxInternalDataSmartContractDeploy) SerializeForSignToBytes() []byte
func (*TxInternalDataSmartContractDeploy) SetHash ¶
func (t *TxInternalDataSmartContractDeploy) SetHash(h *common.Hash)
func (*TxInternalDataSmartContractDeploy) SetSignature ¶
func (t *TxInternalDataSmartContractDeploy) SetSignature(s TxSignatures)
func (*TxInternalDataSmartContractDeploy) String ¶
func (t *TxInternalDataSmartContractDeploy) String() string
func (*TxInternalDataSmartContractDeploy) Type ¶
func (t *TxInternalDataSmartContractDeploy) Type() TxType
func (*TxInternalDataSmartContractDeploy) UnmarshalJSON ¶
func (t *TxInternalDataSmartContractDeploy) UnmarshalJSON(b []byte) error
func (*TxInternalDataSmartContractDeploy) Validate ¶
func (t *TxInternalDataSmartContractDeploy) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataSmartContractDeploy) ValidateMutableValue ¶
func (t *TxInternalDataSmartContractDeploy) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataSmartContractDeployJSON ¶
type TxInternalDataSmartContractDeployJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient *common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` HumanReadable bool `json:"humanReadable"` CodeFormat hexutil.Uint `json:"codeFormat"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataSmartContractExecution ¶
type TxInternalDataSmartContractExecution struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address Payload []byte TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataSmartContractExecution represents a transaction executing a smart contract.
func (*TxInternalDataSmartContractExecution) Equal ¶
func (t *TxInternalDataSmartContractExecution) Equal(a TxInternalData) bool
func (*TxInternalDataSmartContractExecution) GetAccountNonce ¶
func (t *TxInternalDataSmartContractExecution) GetAccountNonce() uint64
func (*TxInternalDataSmartContractExecution) GetAmount ¶
func (t *TxInternalDataSmartContractExecution) GetAmount() *big.Int
func (*TxInternalDataSmartContractExecution) GetFrom ¶
func (t *TxInternalDataSmartContractExecution) GetFrom() common.Address
func (*TxInternalDataSmartContractExecution) GetGasLimit ¶
func (t *TxInternalDataSmartContractExecution) GetGasLimit() uint64
func (*TxInternalDataSmartContractExecution) GetHash ¶
func (t *TxInternalDataSmartContractExecution) GetHash() *common.Hash
func (*TxInternalDataSmartContractExecution) GetPayload ¶
func (t *TxInternalDataSmartContractExecution) GetPayload() []byte
func (*TxInternalDataSmartContractExecution) GetPrice ¶
func (t *TxInternalDataSmartContractExecution) GetPrice() *big.Int
func (*TxInternalDataSmartContractExecution) GetRecipient ¶
func (t *TxInternalDataSmartContractExecution) GetRecipient() *common.Address
func (*TxInternalDataSmartContractExecution) GetRoleTypeForValidation ¶
func (t *TxInternalDataSmartContractExecution) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataSmartContractExecution) IntrinsicGas ¶
func (t *TxInternalDataSmartContractExecution) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataSmartContractExecution) IsLegacyTransaction ¶
func (t *TxInternalDataSmartContractExecution) IsLegacyTransaction() bool
func (*TxInternalDataSmartContractExecution) MakeRPCOutput ¶
func (t *TxInternalDataSmartContractExecution) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataSmartContractExecution) MarshalJSON ¶
func (t *TxInternalDataSmartContractExecution) MarshalJSON() ([]byte, error)
func (*TxInternalDataSmartContractExecution) SenderTxHash ¶
func (t *TxInternalDataSmartContractExecution) SenderTxHash() common.Hash
func (*TxInternalDataSmartContractExecution) SerializeForSign ¶
func (t *TxInternalDataSmartContractExecution) SerializeForSign() []interface{}
func (*TxInternalDataSmartContractExecution) SerializeForSignToBytes ¶
func (t *TxInternalDataSmartContractExecution) SerializeForSignToBytes() []byte
func (*TxInternalDataSmartContractExecution) SetHash ¶
func (t *TxInternalDataSmartContractExecution) SetHash(h *common.Hash)
func (*TxInternalDataSmartContractExecution) SetSignature ¶
func (t *TxInternalDataSmartContractExecution) SetSignature(s TxSignatures)
func (*TxInternalDataSmartContractExecution) String ¶
func (t *TxInternalDataSmartContractExecution) String() string
func (*TxInternalDataSmartContractExecution) Type ¶
func (t *TxInternalDataSmartContractExecution) Type() TxType
func (*TxInternalDataSmartContractExecution) UnmarshalJSON ¶
func (t *TxInternalDataSmartContractExecution) UnmarshalJSON(b []byte) error
func (*TxInternalDataSmartContractExecution) Validate ¶
func (t *TxInternalDataSmartContractExecution) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataSmartContractExecution) ValidateMutableValue ¶
func (t *TxInternalDataSmartContractExecution) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataSmartContractExecutionJSON ¶
type TxInternalDataSmartContractExecutionJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataValueTransfer ¶
type TxInternalDataValueTransfer struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataValueTransfer represents a transaction transferring KLAY. No more attributes required than attributes in TxInternalDataCommon.
func (*TxInternalDataValueTransfer) Equal ¶
func (t *TxInternalDataValueTransfer) Equal(b TxInternalData) bool
func (*TxInternalDataValueTransfer) GetAccountNonce ¶
func (t *TxInternalDataValueTransfer) GetAccountNonce() uint64
func (*TxInternalDataValueTransfer) GetAmount ¶
func (t *TxInternalDataValueTransfer) GetAmount() *big.Int
func (*TxInternalDataValueTransfer) GetFrom ¶
func (t *TxInternalDataValueTransfer) GetFrom() common.Address
func (*TxInternalDataValueTransfer) GetGasLimit ¶
func (t *TxInternalDataValueTransfer) GetGasLimit() uint64
func (*TxInternalDataValueTransfer) GetHash ¶
func (t *TxInternalDataValueTransfer) GetHash() *common.Hash
func (*TxInternalDataValueTransfer) GetPrice ¶
func (t *TxInternalDataValueTransfer) GetPrice() *big.Int
func (*TxInternalDataValueTransfer) GetRecipient ¶
func (t *TxInternalDataValueTransfer) GetRecipient() *common.Address
func (*TxInternalDataValueTransfer) GetRoleTypeForValidation ¶
func (t *TxInternalDataValueTransfer) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataValueTransfer) IntrinsicGas ¶
func (t *TxInternalDataValueTransfer) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataValueTransfer) IsLegacyTransaction ¶
func (t *TxInternalDataValueTransfer) IsLegacyTransaction() bool
func (*TxInternalDataValueTransfer) MakeRPCOutput ¶
func (t *TxInternalDataValueTransfer) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataValueTransfer) MarshalJSON ¶
func (t *TxInternalDataValueTransfer) MarshalJSON() ([]byte, error)
func (*TxInternalDataValueTransfer) SenderTxHash ¶
func (t *TxInternalDataValueTransfer) SenderTxHash() common.Hash
func (*TxInternalDataValueTransfer) SerializeForSign ¶
func (t *TxInternalDataValueTransfer) SerializeForSign() []interface{}
func (*TxInternalDataValueTransfer) SerializeForSignToBytes ¶
func (t *TxInternalDataValueTransfer) SerializeForSignToBytes() []byte
func (*TxInternalDataValueTransfer) SetHash ¶
func (t *TxInternalDataValueTransfer) SetHash(h *common.Hash)
func (*TxInternalDataValueTransfer) SetSignature ¶
func (t *TxInternalDataValueTransfer) SetSignature(s TxSignatures)
func (*TxInternalDataValueTransfer) String ¶
func (t *TxInternalDataValueTransfer) String() string
func (*TxInternalDataValueTransfer) Type ¶
func (t *TxInternalDataValueTransfer) Type() TxType
func (*TxInternalDataValueTransfer) UnmarshalJSON ¶
func (t *TxInternalDataValueTransfer) UnmarshalJSON(b []byte) error
func (*TxInternalDataValueTransfer) Validate ¶
func (t *TxInternalDataValueTransfer) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataValueTransfer) ValidateMutableValue ¶
func (t *TxInternalDataValueTransfer) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataValueTransferJSON ¶
type TxInternalDataValueTransferJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxInternalDataValueTransferMemo ¶
type TxInternalDataValueTransferMemo struct { AccountNonce uint64 Price *big.Int GasLimit uint64 Recipient common.Address Amount *big.Int From common.Address Payload []byte TxSignatures // This is only used when marshaling to JSON. Hash *common.Hash `json:"hash" rlp:"-"` }
TxInternalDataValueTransferMemo represents a transaction with payload data transferring KLAY.
func (*TxInternalDataValueTransferMemo) Equal ¶
func (t *TxInternalDataValueTransferMemo) Equal(b TxInternalData) bool
func (*TxInternalDataValueTransferMemo) GetAccountNonce ¶
func (t *TxInternalDataValueTransferMemo) GetAccountNonce() uint64
func (*TxInternalDataValueTransferMemo) GetAmount ¶
func (t *TxInternalDataValueTransferMemo) GetAmount() *big.Int
func (*TxInternalDataValueTransferMemo) GetFrom ¶
func (t *TxInternalDataValueTransferMemo) GetFrom() common.Address
func (*TxInternalDataValueTransferMemo) GetGasLimit ¶
func (t *TxInternalDataValueTransferMemo) GetGasLimit() uint64
func (*TxInternalDataValueTransferMemo) GetHash ¶
func (t *TxInternalDataValueTransferMemo) GetHash() *common.Hash
func (*TxInternalDataValueTransferMemo) GetPayload ¶
func (t *TxInternalDataValueTransferMemo) GetPayload() []byte
func (*TxInternalDataValueTransferMemo) GetPrice ¶
func (t *TxInternalDataValueTransferMemo) GetPrice() *big.Int
func (*TxInternalDataValueTransferMemo) GetRecipient ¶
func (t *TxInternalDataValueTransferMemo) GetRecipient() *common.Address
func (*TxInternalDataValueTransferMemo) GetRoleTypeForValidation ¶
func (t *TxInternalDataValueTransferMemo) GetRoleTypeForValidation() accountkey.RoleType
func (*TxInternalDataValueTransferMemo) IntrinsicGas ¶
func (t *TxInternalDataValueTransferMemo) IntrinsicGas(currentBlockNumber uint64) (uint64, error)
func (*TxInternalDataValueTransferMemo) IsLegacyTransaction ¶
func (t *TxInternalDataValueTransferMemo) IsLegacyTransaction() bool
func (*TxInternalDataValueTransferMemo) MakeRPCOutput ¶
func (t *TxInternalDataValueTransferMemo) MakeRPCOutput() map[string]interface{}
func (*TxInternalDataValueTransferMemo) MarshalJSON ¶
func (t *TxInternalDataValueTransferMemo) MarshalJSON() ([]byte, error)
func (*TxInternalDataValueTransferMemo) SenderTxHash ¶
func (t *TxInternalDataValueTransferMemo) SenderTxHash() common.Hash
func (*TxInternalDataValueTransferMemo) SerializeForSign ¶
func (t *TxInternalDataValueTransferMemo) SerializeForSign() []interface{}
func (*TxInternalDataValueTransferMemo) SerializeForSignToBytes ¶
func (t *TxInternalDataValueTransferMemo) SerializeForSignToBytes() []byte
func (*TxInternalDataValueTransferMemo) SetHash ¶
func (t *TxInternalDataValueTransferMemo) SetHash(h *common.Hash)
func (*TxInternalDataValueTransferMemo) SetSignature ¶
func (t *TxInternalDataValueTransferMemo) SetSignature(s TxSignatures)
func (*TxInternalDataValueTransferMemo) String ¶
func (t *TxInternalDataValueTransferMemo) String() string
func (*TxInternalDataValueTransferMemo) Type ¶
func (t *TxInternalDataValueTransferMemo) Type() TxType
func (*TxInternalDataValueTransferMemo) UnmarshalJSON ¶
func (t *TxInternalDataValueTransferMemo) UnmarshalJSON(b []byte) error
func (*TxInternalDataValueTransferMemo) Validate ¶
func (t *TxInternalDataValueTransferMemo) Validate(stateDB StateDB, currentBlockNumber uint64) error
func (*TxInternalDataValueTransferMemo) ValidateMutableValue ¶
func (t *TxInternalDataValueTransferMemo) ValidateMutableValue(stateDB StateDB, currentBlockNumber uint64) error
type TxInternalDataValueTransferMemoJSON ¶
type TxInternalDataValueTransferMemoJSON struct { Type TxType `json:"typeInt"` TypeStr string `json:"type"` AccountNonce hexutil.Uint64 `json:"nonce"` Price *hexutil.Big `json:"gasPrice"` GasLimit hexutil.Uint64 `json:"gas"` Recipient common.Address `json:"to"` Amount *hexutil.Big `json:"value"` From common.Address `json:"from"` Payload hexutil.Bytes `json:"input"` TxSignatures TxSignaturesJSON `json:"signatures"` Hash *common.Hash `json:"hash"` }
type TxSignature ¶
TxSignature contains a signature of tx (V, R, S).
func NewTxSignature ¶
func NewTxSignature() *TxSignature
func NewTxSignatureWithValues ¶
func NewTxSignatureWithValues(signer Signer, txhash common.Hash, prv *ecdsa.PrivateKey) (*TxSignature, error)
func (*TxSignature) ChainId ¶
func (t *TxSignature) ChainId() *big.Int
func (*TxSignature) RawSignatureValues ¶
func (t *TxSignature) RawSignatureValues() *TxSignature
func (*TxSignature) RecoverAddress ¶
func (t *TxSignature) RecoverAddress(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) (common.Address, error)
RecoverAddress returns an address with given parameters. txhash: a hash generated by tx.Hash(). homestead: true if Homestead or later. vfunc: V in the signature is treated differently by Signer. This function is for the treatment.
func (*TxSignature) RecoverPubkey ¶
func (t *TxSignature) RecoverPubkey(txhash common.Hash, homestead bool, vfunc func(*big.Int) *big.Int) (*ecdsa.PublicKey, error)
RecoverPubKey returns a list of public keys with given parameters. txhash: a hash generated by tx.Hash(). homestead: true if Homestead or later. vfunc: V in the signature is treated differently by Signer. This function is for the treatment.
func (*TxSignature) ValidateSignature ¶
func (t *TxSignature) ValidateSignature() bool
type TxSignatureJSON ¶
TxSignature contains a signature of tx (V, R, S) as types of hexutil.Big.
type TxSignatures ¶
type TxSignatures []*TxSignature
TxSignatures is a slice of TxSignature. It is created to support multi-sig accounts. Note that this structure also processes txs having a single signature. TODO-Klaytn-Accounts: replace TxSignature with TxSignatures to all newly implemented tx types.
func NewTxSignatures ¶
func NewTxSignatures() TxSignatures
func NewTxSignaturesWithValues ¶
func NewTxSignaturesWithValues(signer Signer, txhash common.Hash, prv []*ecdsa.PrivateKey) (TxSignatures, error)
func (TxSignatures) ChainId ¶
func (t TxSignatures) ChainId() *big.Int
func (TxSignatures) RawSignatureValues ¶
func (t TxSignatures) RawSignatureValues() TxSignatures
func (TxSignatures) RecoverAddress ¶
func (TxSignatures) RecoverPubkey ¶
func (TxSignatures) ToJSON ¶
func (t TxSignatures) ToJSON() TxSignaturesJSON
func (TxSignatures) ValidateSignature ¶
func (t TxSignatures) ValidateSignature() bool
type TxSignaturesJSON ¶
type TxSignaturesJSON []*TxSignatureJSON
TxSignaturesJSON is an array of *TxSignatureJSON. This structure is for JSON marshalling.
func (TxSignaturesJSON) ToTxSignatures ¶
func (t TxSignaturesJSON) ToTxSignatures() TxSignatures
type TxType ¶
type TxType uint8
const ( // TxType declarations // There are three type declarations at each line: // <base type>, <fee-delegated type>, and <fee-delegated type with a fee ratio> // If types other than <base type> are not useful, they are declared with underscore(_). // Each base type is self-descriptive. TxTypeLegacyTransaction, TxTypeFeeDelegatedTransactions, TxTypeFeeDelegatedWithRatioTransactions TxType = iota << SubTxTypeBits, iota<<SubTxTypeBits + 1, iota<<SubTxTypeBits + 2 TxTypeValueTransfer, TxTypeFeeDelegatedValueTransfer, TxTypeFeeDelegatedValueTransferWithRatio TxTypeValueTransferMemo, TxTypeFeeDelegatedValueTransferMemo, TxTypeFeeDelegatedValueTransferMemoWithRatio TxTypeAccountCreation, _, _ TxTypeAccountUpdate, TxTypeFeeDelegatedAccountUpdate, TxTypeFeeDelegatedAccountUpdateWithRatio TxTypeSmartContractDeploy, TxTypeFeeDelegatedSmartContractDeploy, TxTypeFeeDelegatedSmartContractDeployWithRatio TxTypeSmartContractExecution, TxTypeFeeDelegatedSmartContractExecution, TxTypeFeeDelegatedSmartContractExecutionWithRatio TxTypeCancel, TxTypeFeeDelegatedCancel, TxTypeFeeDelegatedCancelWithRatio TxTypeBatch, _, _ TxTypeChainDataAnchoring, _, _ TxTypeLast, _, _ )
func (TxType) IsAccountCreation ¶
func (TxType) IsAccountUpdate ¶
func (TxType) IsCancelTransaction ¶
func (TxType) IsContractDeploy ¶
func (TxType) IsFeeDelegatedTransaction ¶
func (TxType) IsFeeDelegatedWithRatioTransaction ¶
func (TxType) IsLegacyTransaction ¶
func (TxType) IsRPCExcluded ¶
IsRPCExcluded returns true if the submission of such tx type is excluded via RPC.
type TxValueKeyType ¶
type TxValueKeyType uint
const ( TxValueKeyNonce TxValueKeyType = iota TxValueKeyTo TxValueKeyAmount TxValueKeyGasLimit TxValueKeyGasPrice TxValueKeyData TxValueKeyFrom TxValueKeyAnchoredData TxValueKeyHumanReadable TxValueKeyAccountKey TxValueKeyFeePayer TxValueKeyFeeRatioOfFeePayer TxValueKeyCodeFormat )
func (TxValueKeyType) String ¶
func (t TxValueKeyType) String() string
type VM ¶
type VM interface { Create(caller ContractRef, code []byte, gas uint64, value *big.Int, codeFormat params.CodeFormat) (ret []byte, contractAddr common.Address, leftOverGas uint64, err error) CreateWithAddress(caller ContractRef, code []byte, gas uint64, value *big.Int, contractAddr common.Address, humanReadable bool, codeFormat params.CodeFormat) ([]byte, common.Address, uint64, error) Call(caller ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error) }
Since we cannot access the package `blockchain/vm` directly, an interface `VM` is introduced. TODO-Klaytn-Refactoring: Transaction and related data structures should be a new package.
Source Files ¶
- block.go
- bloom.go
- chain_hashes.go
- contract_ref.go
- derive_sha.go
- doc.go
- gen_header_json.go
- gen_log_json.go
- gen_receipt_json.go
- istanbul.go
- log.go
- receipt.go
- transaction.go
- transaction_signing.go
- tx_internal_data.go
- tx_internal_data_account_creation.go
- tx_internal_data_account_update.go
- tx_internal_data_cancel.go
- tx_internal_data_chain_data_anchoring.go
- tx_internal_data_fee_delegated_account_update.go
- tx_internal_data_fee_delegated_account_update_with_ratio.go
- tx_internal_data_fee_delegated_smart_contract_deploy.go
- tx_internal_data_fee_delegated_smart_contract_deploy_with_ratio.go
- tx_internal_data_fee_delegated_smart_contract_execution.go
- tx_internal_data_fee_delegated_smart_contract_execution_with_ratio.go
- tx_internal_data_fee_delegated_value_transfer.go
- tx_internal_data_fee_delegated_value_transfer_memo.go
- tx_internal_data_fee_delegated_value_transfer_memo_with_ratio.go
- tx_internal_data_fee_delegated_value_transfer_with_ratio.go
- tx_internal_data_legacy.go
- tx_internal_data_serializer.go
- tx_internal_data_smart_contract_deploy.go
- tx_internal_data_smart_contract_execution.go
- tx_internal_data_value_transfer.go
- tx_internal_data_value_transfer_memo.go
- tx_internal_fee_delegated_data_cancel.go
- tx_internal_fee_delegated_data_cancel_with_ratio.go
- tx_signature.go
- tx_signatures.go
Directories ¶
Path | Synopsis |
---|---|
Package account contains types related to Klaytn accounts.
|
Package account contains types related to Klaytn accounts. |
Package accountkey contains types related to keys in Klaytn accounts.
|
Package accountkey contains types related to keys in Klaytn accounts. |