Documentation ¶
Index ¶
- Constants
- func CalculateRequestId(chainId *big.Int, msgCount *big.Int) common.Hash
- func ChainAddressToID(chain common.Address) *big.Int
- func NewInboxMessage(msg Message, sender common.Address, inboxSeqNum *big.Int, gasPrice *big.Int, ...) inbox.InboxMessage
- func NewRandomInboxMessage(msg Message) inbox.InboxMessage
- func NewRandomSignedEthTx(chain common.Address, privKey *ecdsa.PrivateKey, nonce uint64) *types.Transaction
- func RetryableId(requestId common.Hash) common.Hash
- type AbstractL2Message
- type AbstractTransaction
- type BasicTx
- type Call
- type CompressedAddress
- type CompressedAddressFull
- type CompressedAddressIndex
- type CompressedECDSATransaction
- func (t CompressedECDSATransaction) AsData() ([]byte, error)
- func (t CompressedECDSATransaction) AsEthTx(chainId *big.Int) (*types.Transaction, error)
- func (t CompressedECDSATransaction) IsEIP155() bool
- func (t CompressedECDSATransaction) L2Type() L2SubType
- func (t CompressedECDSATransaction) String() string
- type CompressedTx
- type ContractTransaction
- type Eth
- type EthConvertable
- type EthDepositTx
- type FunctionTable
- type FunctionTableEntry
- type HeartbeatMessage
- type Init
- type L2Message
- type L2SubType
- type Message
- type OutMessage
- type RetryableTx
- type SafeAbstractL2Message
- type SendMessageRoot
- type SignedTransaction
- func (t SignedTransaction) AsData() ([]byte, error)
- func (t SignedTransaction) AsEthTx() *types.Transaction
- func (t SignedTransaction) Destination() common.Address
- func (t SignedTransaction) Equals(o SignedTransaction) bool
- func (t SignedTransaction) L2Type() L2SubType
- func (t SignedTransaction) String() string
- type Transaction
- func (t Transaction) AsData() ([]byte, error)
- func (t Transaction) AsDataSafe() []byte
- func (t Transaction) AsEthTx() *types.Transaction
- func (t Transaction) Destination() common.Address
- func (t Transaction) Equals(o Transaction) bool
- func (t Transaction) L2Type() L2SubType
- func (t Transaction) MessageID(sender common.Address, chain common.Address) common.Hash
- func (t Transaction) String() string
- type TransactionBatch
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CalculateRequestId ¶ added in v0.8.0
func NewInboxMessage ¶
func NewRandomInboxMessage ¶
func NewRandomInboxMessage(msg Message) inbox.InboxMessage
func NewRandomSignedEthTx ¶
func NewRandomSignedEthTx(chain common.Address, privKey *ecdsa.PrivateKey, nonce uint64) *types.Transaction
Types ¶
type AbstractL2Message ¶
type AbstractTransaction ¶
type BasicTx ¶ added in v0.7.2
type BasicTx struct { MaxGas *big.Int GasPriceBid *big.Int DestAddress common.Address Payment *big.Int Data []byte }
func (BasicTx) AsDataSafe ¶ added in v0.7.2
func (BasicTx) Destination ¶ added in v0.7.2
type Call ¶
type Call struct {
BasicTx
}
func NewCallFromData ¶
func NewRandomCall ¶
func NewRandomCall() Call
type CompressedAddress ¶ added in v0.7.2
type CompressedAddress interface { fmt.Stringer Encode() ([]byte, error) // contains filtered or unexported methods }
func DecodeAddress ¶ added in v0.7.3
func DecodeAddress(r io.Reader) (CompressedAddress, error)
type CompressedAddressFull ¶ added in v0.7.2
func (CompressedAddressFull) Encode ¶ added in v0.7.2
func (c CompressedAddressFull) Encode() ([]byte, error)
func (CompressedAddressFull) String ¶ added in v0.7.2
func (c CompressedAddressFull) String() string
type CompressedAddressIndex ¶ added in v0.7.2
func (CompressedAddressIndex) Encode ¶ added in v0.7.2
func (c CompressedAddressIndex) Encode() ([]byte, error)
func (CompressedAddressIndex) String ¶ added in v0.7.2
func (c CompressedAddressIndex) String() string
type CompressedECDSATransaction ¶ added in v0.7.2
func NewCompressedECDSAFromEth ¶ added in v0.7.2
func NewCompressedECDSAFromEth(tx *types.Transaction) CompressedECDSATransaction
func (CompressedECDSATransaction) AsData ¶ added in v0.7.2
func (t CompressedECDSATransaction) AsData() ([]byte, error)
func (CompressedECDSATransaction) AsEthTx ¶ added in v0.7.3
func (t CompressedECDSATransaction) AsEthTx(chainId *big.Int) (*types.Transaction, error)
func (CompressedECDSATransaction) IsEIP155 ¶ added in v0.7.3
func (t CompressedECDSATransaction) IsEIP155() bool
func (CompressedECDSATransaction) L2Type ¶ added in v0.7.2
func (t CompressedECDSATransaction) L2Type() L2SubType
func (CompressedECDSATransaction) String ¶ added in v0.7.2
func (t CompressedECDSATransaction) String() string
type CompressedTx ¶ added in v0.7.2
type ContractTransaction ¶
type ContractTransaction struct {
BasicTx
}
func NewContractTransactionFromData ¶
func NewContractTransactionFromData(data []byte) ContractTransaction
func NewRandomContractTransaction ¶
func NewRandomContractTransaction() ContractTransaction
func (ContractTransaction) AsEthTx ¶ added in v0.7.3
func (t ContractTransaction) AsEthTx() *types.Transaction
func (ContractTransaction) L2Type ¶
func (t ContractTransaction) L2Type() L2SubType
type EthConvertable ¶
type EthConvertable interface {
AsEthTx() *types.Transaction
}
type EthDepositTx ¶ added in v0.8.0
type EthDepositTx struct {
L2Message
}
func NewEthDepositTxFromData ¶ added in v0.8.0
func NewEthDepositTxFromData(data []byte) EthDepositTx
func (EthDepositTx) AsData ¶ added in v0.8.0
func (e EthDepositTx) AsData() []byte
func (EthDepositTx) Type ¶ added in v0.8.0
func (e EthDepositTx) Type() inbox.Type
type FunctionTable ¶ added in v0.7.3
type FunctionTable []FunctionTableEntry
func NewFunctionTableFromData ¶ added in v0.7.3
func NewFunctionTableFromData(data []byte) (FunctionTable, error)
func (FunctionTable) Encode ¶ added in v0.7.3
func (ft FunctionTable) Encode() ([]byte, error)
type FunctionTableEntry ¶ added in v0.7.3
func NewRandomFunctionTableEntry ¶ added in v0.7.3
func NewRandomFunctionTableEntry() FunctionTableEntry
func (FunctionTableEntry) Equals ¶ added in v0.7.3
func (fte FunctionTableEntry) Equals(fte2 FunctionTableEntry) bool
type HeartbeatMessage ¶ added in v0.8.0
type HeartbeatMessage struct { }
func (HeartbeatMessage) AsData ¶ added in v0.8.0
func (t HeartbeatMessage) AsData() ([]byte, error)
func (HeartbeatMessage) AsDataSafe ¶ added in v0.8.0
func (t HeartbeatMessage) AsDataSafe() []byte
func (HeartbeatMessage) L2Type ¶ added in v0.8.0
func (t HeartbeatMessage) L2Type() L2SubType
type Init ¶
type Init struct { protocol.ChainParams Owner common.Address ExtraConfig []byte }
func NewInitFromData ¶
type L2Message ¶
type L2Message struct {
Data []byte
}
func NewL2Message ¶
func NewL2Message(msg AbstractL2Message) (L2Message, error)
func NewSafeL2Message ¶
func NewSafeL2Message(msg SafeAbstractL2Message) L2Message
func (L2Message) AbstractMessage ¶
func (l L2Message) AbstractMessage() (AbstractL2Message, error)
type OutMessage ¶
type OutMessage interface { }
func NewOutMessageFromBytes ¶ added in v0.8.0
func NewOutMessageFromBytes(val []byte) (OutMessage, error)
type RetryableTx ¶ added in v0.8.0
type RetryableTx struct { Destination common.Address Value *big.Int Deposit *big.Int MaxSubmissionCost *big.Int CreditBack common.Address Beneficiary common.Address MaxGas *big.Int GasPriceBid *big.Int Data []byte }
func NewRetryableTxFromData ¶ added in v0.8.0
func NewRetryableTxFromData(data []byte) RetryableTx
func (RetryableTx) AsData ¶ added in v0.8.0
func (t RetryableTx) AsData() []byte
func (RetryableTx) Equals ¶ added in v0.8.0
func (t RetryableTx) Equals(o RetryableTx) bool
func (RetryableTx) Type ¶ added in v0.8.0
func (t RetryableTx) Type() inbox.Type
type SafeAbstractL2Message ¶
type SafeAbstractL2Message interface { AbstractL2Message AsDataSafe() []byte }
type SendMessageRoot ¶ added in v0.8.0
type SignedTransaction ¶
type SignedTransaction struct {
Tx *types.Transaction
}
func NewRandomSignedTx ¶
func NewRandomSignedTx(chain common.Address, privKey *ecdsa.PrivateKey, nonce uint64) SignedTransaction
func (SignedTransaction) AsData ¶
func (t SignedTransaction) AsData() ([]byte, error)
func (SignedTransaction) AsEthTx ¶
func (t SignedTransaction) AsEthTx() *types.Transaction
func (SignedTransaction) Destination ¶
func (t SignedTransaction) Destination() common.Address
func (SignedTransaction) Equals ¶
func (t SignedTransaction) Equals(o SignedTransaction) bool
func (SignedTransaction) L2Type ¶
func (t SignedTransaction) L2Type() L2SubType
func (SignedTransaction) String ¶
func (t SignedTransaction) String() string
type Transaction ¶
type Transaction struct { MaxGas *big.Int GasPriceBid *big.Int SequenceNum *big.Int DestAddress common.Address Payment *big.Int Data []byte }
func NewRandomTransaction ¶
func NewRandomTransaction() Transaction
func NewTransactionFromEthTx ¶
func NewTransactionFromEthTx(tx *types.Transaction) Transaction
func (Transaction) AsData ¶
func (t Transaction) AsData() ([]byte, error)
func (Transaction) AsDataSafe ¶
func (t Transaction) AsDataSafe() []byte
func (Transaction) AsEthTx ¶
func (t Transaction) AsEthTx() *types.Transaction
func (Transaction) Destination ¶
func (t Transaction) Destination() common.Address
func (Transaction) Equals ¶
func (t Transaction) Equals(o Transaction) bool
func (Transaction) L2Type ¶
func (t Transaction) L2Type() L2SubType
func (Transaction) String ¶
func (t Transaction) String() string
type TransactionBatch ¶
type TransactionBatch struct {
Transactions [][]byte
}
func NewRandomTransactionBatch ¶
func NewRandomTransactionBatch(txCount int, chain common.Address, privKey *ecdsa.PrivateKey, initialNonce uint64) (TransactionBatch, error)
func NewTransactionBatchFromMessages ¶
func NewTransactionBatchFromMessages(messages []AbstractL2Message) (TransactionBatch, error)
func (TransactionBatch) AsData ¶
func (t TransactionBatch) AsData() ([]byte, error)
func (TransactionBatch) AsDataSafe ¶
func (t TransactionBatch) AsDataSafe() []byte
func (TransactionBatch) L2Type ¶
func (t TransactionBatch) L2Type() L2SubType
func (TransactionBatch) String ¶
func (t TransactionBatch) String() string
Click to show internal directories.
Click to hide internal directories.