Documentation
¶
Index ¶
- Variables
- func CreateArbBlockHashCommand() *cobra.Command
- func CreateArbBlockNumberCommand() *cobra.Command
- func CreateArbChainIdCommand() *cobra.Command
- func CreateArbOsversionCommand() *cobra.Command
- func CreateArbSysCommand() *cobra.Command
- func CreateGetStorageGasAvailableCommand() *cobra.Command
- func CreateIsTopLevelCallCommand() *cobra.Command
- func CreateMapL1SenderContractAddressToL2AliasCommand() *cobra.Command
- func CreateMyCallersAddressWithoutAliasingCommand() *cobra.Command
- func CreateSendMerkleTreeStateCommand() *cobra.Command
- func CreateSendTxToL1Command() *cobra.Command
- func CreateWasMyCallersAddressAliasedCommand() *cobra.Command
- func CreateWithdrawEthCommand() *cobra.Command
- func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error)
- func NewChainContext(timeout uint) (context.Context, context.CancelFunc)
- func NewClient(rpcURL string) (*ethclient.Client, error)
- func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string)
- func SetTransactionParametersFromArgs(opts *bind.TransactOpts, ...)
- func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error)
- type ArbSys
- type ArbSysCaller
- func (_ArbSys *ArbSysCaller) ArbBlockHash(opts *bind.CallOpts, arbBlockNum *big.Int) ([32]byte, error)
- func (_ArbSys *ArbSysCaller) ArbBlockNumber(opts *bind.CallOpts) (*big.Int, error)
- func (_ArbSys *ArbSysCaller) ArbChainID(opts *bind.CallOpts) (*big.Int, error)
- func (_ArbSys *ArbSysCaller) ArbOSVersion(opts *bind.CallOpts) (*big.Int, error)
- func (_ArbSys *ArbSysCaller) GetStorageGasAvailable(opts *bind.CallOpts) (*big.Int, error)
- func (_ArbSys *ArbSysCaller) IsTopLevelCall(opts *bind.CallOpts) (bool, error)
- func (_ArbSys *ArbSysCaller) MapL1SenderContractAddressToL2Alias(opts *bind.CallOpts, sender common.Address, unused common.Address) (common.Address, error)
- func (_ArbSys *ArbSysCaller) MyCallersAddressWithoutAliasing(opts *bind.CallOpts) (common.Address, error)
- func (_ArbSys *ArbSysCaller) SendMerkleTreeState(opts *bind.CallOpts) (struct{ ... }, error)
- func (_ArbSys *ArbSysCaller) WasMyCallersAddressAliased(opts *bind.CallOpts) (bool, error)
- type ArbSysCallerRaw
- type ArbSysCallerSession
- func (_ArbSys *ArbSysCallerSession) ArbBlockHash(arbBlockNum *big.Int) ([32]byte, error)
- func (_ArbSys *ArbSysCallerSession) ArbBlockNumber() (*big.Int, error)
- func (_ArbSys *ArbSysCallerSession) ArbChainID() (*big.Int, error)
- func (_ArbSys *ArbSysCallerSession) ArbOSVersion() (*big.Int, error)
- func (_ArbSys *ArbSysCallerSession) GetStorageGasAvailable() (*big.Int, error)
- func (_ArbSys *ArbSysCallerSession) IsTopLevelCall() (bool, error)
- func (_ArbSys *ArbSysCallerSession) MapL1SenderContractAddressToL2Alias(sender common.Address, unused common.Address) (common.Address, error)
- func (_ArbSys *ArbSysCallerSession) MyCallersAddressWithoutAliasing() (common.Address, error)
- func (_ArbSys *ArbSysCallerSession) SendMerkleTreeState() (struct{ ... }, error)
- func (_ArbSys *ArbSysCallerSession) WasMyCallersAddressAliased() (bool, error)
- type ArbSysFilterer
- func (_ArbSys *ArbSysFilterer) FilterL2ToL1Transaction(opts *bind.FilterOpts, destination []common.Address, uniqueId []*big.Int, ...) (*ArbSysL2ToL1TransactionIterator, error)
- func (_ArbSys *ArbSysFilterer) FilterL2ToL1Tx(opts *bind.FilterOpts, destination []common.Address, hash []*big.Int, ...) (*ArbSysL2ToL1TxIterator, error)
- func (_ArbSys *ArbSysFilterer) FilterSendMerkleUpdate(opts *bind.FilterOpts, reserved []*big.Int, hash [][32]byte, ...) (*ArbSysSendMerkleUpdateIterator, error)
- func (_ArbSys *ArbSysFilterer) ParseL2ToL1Transaction(log types.Log) (*ArbSysL2ToL1Transaction, error)
- func (_ArbSys *ArbSysFilterer) ParseL2ToL1Tx(log types.Log) (*ArbSysL2ToL1Tx, error)
- func (_ArbSys *ArbSysFilterer) ParseSendMerkleUpdate(log types.Log) (*ArbSysSendMerkleUpdate, error)
- func (_ArbSys *ArbSysFilterer) WatchL2ToL1Transaction(opts *bind.WatchOpts, sink chan<- *ArbSysL2ToL1Transaction, ...) (event.Subscription, error)
- func (_ArbSys *ArbSysFilterer) WatchL2ToL1Tx(opts *bind.WatchOpts, sink chan<- *ArbSysL2ToL1Tx, ...) (event.Subscription, error)
- func (_ArbSys *ArbSysFilterer) WatchSendMerkleUpdate(opts *bind.WatchOpts, sink chan<- *ArbSysSendMerkleUpdate, reserved []*big.Int, ...) (event.Subscription, error)
- type ArbSysL2ToL1Transaction
- type ArbSysL2ToL1TransactionIterator
- type ArbSysL2ToL1Tx
- type ArbSysL2ToL1TxIterator
- type ArbSysRaw
- func (_ArbSys *ArbSysRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ArbSys *ArbSysRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ArbSys *ArbSysRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ArbSysSendMerkleUpdate
- type ArbSysSendMerkleUpdateIterator
- type ArbSysSession
- func (_ArbSys *ArbSysSession) ArbBlockHash(arbBlockNum *big.Int) ([32]byte, error)
- func (_ArbSys *ArbSysSession) ArbBlockNumber() (*big.Int, error)
- func (_ArbSys *ArbSysSession) ArbChainID() (*big.Int, error)
- func (_ArbSys *ArbSysSession) ArbOSVersion() (*big.Int, error)
- func (_ArbSys *ArbSysSession) GetStorageGasAvailable() (*big.Int, error)
- func (_ArbSys *ArbSysSession) IsTopLevelCall() (bool, error)
- func (_ArbSys *ArbSysSession) MapL1SenderContractAddressToL2Alias(sender common.Address, unused common.Address) (common.Address, error)
- func (_ArbSys *ArbSysSession) MyCallersAddressWithoutAliasing() (common.Address, error)
- func (_ArbSys *ArbSysSession) SendMerkleTreeState() (struct{ ... }, error)
- func (_ArbSys *ArbSysSession) SendTxToL1(destination common.Address, data []byte) (*types.Transaction, error)
- func (_ArbSys *ArbSysSession) WasMyCallersAddressAliased() (bool, error)
- func (_ArbSys *ArbSysSession) WithdrawEth(destination common.Address) (*types.Transaction, error)
- type ArbSysTransactor
- type ArbSysTransactorRaw
- type ArbSysTransactorSession
Constants ¶
This section is empty.
Variables ¶
var ArbSysABI = ArbSysMetaData.ABI
ArbSysABI is the input ABI used to generate the binding from. Deprecated: Use ArbSysMetaData.ABI instead.
var ArbSysMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requested\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"current\",\"type\":\"uint256\"}],\"name\":\"InvalidBlockNumber\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"uniqueId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"batchNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"indexInBatch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"arbBlockNum\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ethBlockNum\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"callvalue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"L2ToL1Transaction\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"hash\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"position\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"arbBlockNum\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ethBlockNum\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"callvalue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"L2ToL1Tx\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"reserved\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"position\",\"type\":\"uint256\"}],\"name\":\"SendMerkleUpdate\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"arbBlockNum\",\"type\":\"uint256\"}],\"name\":\"arbBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"arbBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"arbChainID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"arbOSVersion\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStorageGasAvailable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isTopLevelCall\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"unused\",\"type\":\"address\"}],\"name\":\"mapL1SenderContractAddressToL2Alias\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"myCallersAddressWithoutAliasing\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sendMerkleTreeState\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"partials\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"sendTxToL1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wasMyCallersAddressAliased\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"}],\"name\":\"withdrawEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}
ArbSysMetaData contains all meta data concerning the ArbSys contract.
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the ARB_SYS_RPC_URL environment variable")
Functions ¶
func CreateArbChainIdCommand ¶
func CreateArbSysCommand ¶
func CreateSendTxToL1Command ¶
func KeyFromFile ¶
Loads a key from file, prompting the user for the password if it is not provided as a function argument.
func NewChainContext ¶
func NewChainContext(timeout uint) (context.Context, context.CancelFunc)
Creates a new context to be used when interacting with the chain client.
func NewClient ¶
Generates an Ethereum client to the JSONRPC API at the given URL. If rpcURL is empty, then it attempts to read the RPC URL from the ARB_SYS_RPC_URL environment variable. If that is empty, too, then it returns an error.
func SetCallParametersFromArgs ¶
This method is used to set the parameters on a view call from command line arguments (represented mostly as strings).
func SetTransactionParametersFromArgs ¶
func SetTransactionParametersFromArgs(opts *bind.TransactOpts, nonce, value, gasPrice, maxFeePerGas, maxPriorityFeePerGas string, gasLimit uint64, noSend bool)
This method is used to set the parameters on a transaction from command line arguments (represented mostly as strings).
Types ¶
type ArbSys ¶
type ArbSys struct { ArbSysCaller // Read-only binding to the contract ArbSysTransactor // Write-only binding to the contract ArbSysFilterer // Log filterer for contract events }
ArbSys is an auto generated Go binding around an Ethereum contract.
type ArbSysCaller ¶
type ArbSysCaller struct {
// contains filtered or unexported fields
}
ArbSysCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewArbSysCaller ¶
func NewArbSysCaller(address common.Address, caller bind.ContractCaller) (*ArbSysCaller, error)
NewArbSysCaller creates a new read-only instance of ArbSys, bound to a specific deployed contract.
func (*ArbSysCaller) ArbBlockHash ¶
func (_ArbSys *ArbSysCaller) ArbBlockHash(opts *bind.CallOpts, arbBlockNum *big.Int) ([32]byte, error)
ArbBlockHash is a free data retrieval call binding the contract method 0x2b407a82.
Solidity: function arbBlockHash(uint256 arbBlockNum) view returns(bytes32)
func (*ArbSysCaller) ArbBlockNumber ¶
ArbBlockNumber is a free data retrieval call binding the contract method 0xa3b1b31d.
Solidity: function arbBlockNumber() view returns(uint256)
func (*ArbSysCaller) ArbChainID ¶
ArbChainID is a free data retrieval call binding the contract method 0xd127f54a.
Solidity: function arbChainID() view returns(uint256)
func (*ArbSysCaller) ArbOSVersion ¶
ArbOSVersion is a free data retrieval call binding the contract method 0x051038f2.
Solidity: function arbOSVersion() view returns(uint256)
func (*ArbSysCaller) GetStorageGasAvailable ¶
GetStorageGasAvailable is a free data retrieval call binding the contract method 0xa94597ff.
Solidity: function getStorageGasAvailable() view returns(uint256)
func (*ArbSysCaller) IsTopLevelCall ¶
func (_ArbSys *ArbSysCaller) IsTopLevelCall(opts *bind.CallOpts) (bool, error)
IsTopLevelCall is a free data retrieval call binding the contract method 0x08bd624c.
Solidity: function isTopLevelCall() view returns(bool)
func (*ArbSysCaller) MapL1SenderContractAddressToL2Alias ¶
func (_ArbSys *ArbSysCaller) MapL1SenderContractAddressToL2Alias(opts *bind.CallOpts, sender common.Address, unused common.Address) (common.Address, error)
MapL1SenderContractAddressToL2Alias is a free data retrieval call binding the contract method 0x4dbbd506.
Solidity: function mapL1SenderContractAddressToL2Alias(address sender, address unused) pure returns(address)
func (*ArbSysCaller) MyCallersAddressWithoutAliasing ¶
func (_ArbSys *ArbSysCaller) MyCallersAddressWithoutAliasing(opts *bind.CallOpts) (common.Address, error)
MyCallersAddressWithoutAliasing is a free data retrieval call binding the contract method 0xd74523b3.
Solidity: function myCallersAddressWithoutAliasing() view returns(address)
func (*ArbSysCaller) SendMerkleTreeState ¶
func (_ArbSys *ArbSysCaller) SendMerkleTreeState(opts *bind.CallOpts) (struct { Size *big.Int Root [32]byte Partials [][32]byte }, error)
SendMerkleTreeState is a free data retrieval call binding the contract method 0x7aeecd2a.
Solidity: function sendMerkleTreeState() view returns(uint256 size, bytes32 root, bytes32[] partials)
func (*ArbSysCaller) WasMyCallersAddressAliased ¶
func (_ArbSys *ArbSysCaller) WasMyCallersAddressAliased(opts *bind.CallOpts) (bool, error)
WasMyCallersAddressAliased is a free data retrieval call binding the contract method 0x175a260b.
Solidity: function wasMyCallersAddressAliased() view returns(bool)
type ArbSysCallerRaw ¶
type ArbSysCallerRaw struct {
Contract *ArbSysCaller // Generic read-only contract binding to access the raw methods on
}
ArbSysCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ArbSysCallerRaw) Call ¶
func (_ArbSys *ArbSysCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type ArbSysCallerSession ¶
type ArbSysCallerSession struct { Contract *ArbSysCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ArbSysCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ArbSysCallerSession) ArbBlockHash ¶
func (_ArbSys *ArbSysCallerSession) ArbBlockHash(arbBlockNum *big.Int) ([32]byte, error)
ArbBlockHash is a free data retrieval call binding the contract method 0x2b407a82.
Solidity: function arbBlockHash(uint256 arbBlockNum) view returns(bytes32)
func (*ArbSysCallerSession) ArbBlockNumber ¶
func (_ArbSys *ArbSysCallerSession) ArbBlockNumber() (*big.Int, error)
ArbBlockNumber is a free data retrieval call binding the contract method 0xa3b1b31d.
Solidity: function arbBlockNumber() view returns(uint256)
func (*ArbSysCallerSession) ArbChainID ¶
func (_ArbSys *ArbSysCallerSession) ArbChainID() (*big.Int, error)
ArbChainID is a free data retrieval call binding the contract method 0xd127f54a.
Solidity: function arbChainID() view returns(uint256)
func (*ArbSysCallerSession) ArbOSVersion ¶
func (_ArbSys *ArbSysCallerSession) ArbOSVersion() (*big.Int, error)
ArbOSVersion is a free data retrieval call binding the contract method 0x051038f2.
Solidity: function arbOSVersion() view returns(uint256)
func (*ArbSysCallerSession) GetStorageGasAvailable ¶
func (_ArbSys *ArbSysCallerSession) GetStorageGasAvailable() (*big.Int, error)
GetStorageGasAvailable is a free data retrieval call binding the contract method 0xa94597ff.
Solidity: function getStorageGasAvailable() view returns(uint256)
func (*ArbSysCallerSession) IsTopLevelCall ¶
func (_ArbSys *ArbSysCallerSession) IsTopLevelCall() (bool, error)
IsTopLevelCall is a free data retrieval call binding the contract method 0x08bd624c.
Solidity: function isTopLevelCall() view returns(bool)
func (*ArbSysCallerSession) MapL1SenderContractAddressToL2Alias ¶
func (_ArbSys *ArbSysCallerSession) MapL1SenderContractAddressToL2Alias(sender common.Address, unused common.Address) (common.Address, error)
MapL1SenderContractAddressToL2Alias is a free data retrieval call binding the contract method 0x4dbbd506.
Solidity: function mapL1SenderContractAddressToL2Alias(address sender, address unused) pure returns(address)
func (*ArbSysCallerSession) MyCallersAddressWithoutAliasing ¶
func (_ArbSys *ArbSysCallerSession) MyCallersAddressWithoutAliasing() (common.Address, error)
MyCallersAddressWithoutAliasing is a free data retrieval call binding the contract method 0xd74523b3.
Solidity: function myCallersAddressWithoutAliasing() view returns(address)
func (*ArbSysCallerSession) SendMerkleTreeState ¶
func (_ArbSys *ArbSysCallerSession) SendMerkleTreeState() (struct { Size *big.Int Root [32]byte Partials [][32]byte }, error)
SendMerkleTreeState is a free data retrieval call binding the contract method 0x7aeecd2a.
Solidity: function sendMerkleTreeState() view returns(uint256 size, bytes32 root, bytes32[] partials)
func (*ArbSysCallerSession) WasMyCallersAddressAliased ¶
func (_ArbSys *ArbSysCallerSession) WasMyCallersAddressAliased() (bool, error)
WasMyCallersAddressAliased is a free data retrieval call binding the contract method 0x175a260b.
Solidity: function wasMyCallersAddressAliased() view returns(bool)
type ArbSysFilterer ¶
type ArbSysFilterer struct {
// contains filtered or unexported fields
}
ArbSysFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewArbSysFilterer ¶
func NewArbSysFilterer(address common.Address, filterer bind.ContractFilterer) (*ArbSysFilterer, error)
NewArbSysFilterer creates a new log filterer instance of ArbSys, bound to a specific deployed contract.
func (*ArbSysFilterer) FilterL2ToL1Transaction ¶
func (_ArbSys *ArbSysFilterer) FilterL2ToL1Transaction(opts *bind.FilterOpts, destination []common.Address, uniqueId []*big.Int, batchNumber []*big.Int) (*ArbSysL2ToL1TransactionIterator, error)
FilterL2ToL1Transaction is a free log retrieval operation binding the contract event 0x5baaa87db386365b5c161be377bc3d8e317e8d98d71a3ca7ed7d555340c8f767.
Solidity: event L2ToL1Transaction(address caller, address indexed destination, uint256 indexed uniqueId, uint256 indexed batchNumber, uint256 indexInBatch, uint256 arbBlockNum, uint256 ethBlockNum, uint256 timestamp, uint256 callvalue, bytes data)
func (*ArbSysFilterer) FilterL2ToL1Tx ¶
func (_ArbSys *ArbSysFilterer) FilterL2ToL1Tx(opts *bind.FilterOpts, destination []common.Address, hash []*big.Int, position []*big.Int) (*ArbSysL2ToL1TxIterator, error)
FilterL2ToL1Tx is a free log retrieval operation binding the contract event 0x3e7aafa77dbf186b7fd488006beff893744caa3c4f6f299e8a709fa2087374fc.
Solidity: event L2ToL1Tx(address caller, address indexed destination, uint256 indexed hash, uint256 indexed position, uint256 arbBlockNum, uint256 ethBlockNum, uint256 timestamp, uint256 callvalue, bytes data)
func (*ArbSysFilterer) FilterSendMerkleUpdate ¶
func (_ArbSys *ArbSysFilterer) FilterSendMerkleUpdate(opts *bind.FilterOpts, reserved []*big.Int, hash [][32]byte, position []*big.Int) (*ArbSysSendMerkleUpdateIterator, error)
FilterSendMerkleUpdate is a free log retrieval operation binding the contract event 0xe9e13da364699fb5b0496ff5a0fc70760ad5836e93ba96568a4e42b9914a8b95.
Solidity: event SendMerkleUpdate(uint256 indexed reserved, bytes32 indexed hash, uint256 indexed position)
func (*ArbSysFilterer) ParseL2ToL1Transaction ¶
func (_ArbSys *ArbSysFilterer) ParseL2ToL1Transaction(log types.Log) (*ArbSysL2ToL1Transaction, error)
ParseL2ToL1Transaction is a log parse operation binding the contract event 0x5baaa87db386365b5c161be377bc3d8e317e8d98d71a3ca7ed7d555340c8f767.
Solidity: event L2ToL1Transaction(address caller, address indexed destination, uint256 indexed uniqueId, uint256 indexed batchNumber, uint256 indexInBatch, uint256 arbBlockNum, uint256 ethBlockNum, uint256 timestamp, uint256 callvalue, bytes data)
func (*ArbSysFilterer) ParseL2ToL1Tx ¶
func (_ArbSys *ArbSysFilterer) ParseL2ToL1Tx(log types.Log) (*ArbSysL2ToL1Tx, error)
ParseL2ToL1Tx is a log parse operation binding the contract event 0x3e7aafa77dbf186b7fd488006beff893744caa3c4f6f299e8a709fa2087374fc.
Solidity: event L2ToL1Tx(address caller, address indexed destination, uint256 indexed hash, uint256 indexed position, uint256 arbBlockNum, uint256 ethBlockNum, uint256 timestamp, uint256 callvalue, bytes data)
func (*ArbSysFilterer) ParseSendMerkleUpdate ¶
func (_ArbSys *ArbSysFilterer) ParseSendMerkleUpdate(log types.Log) (*ArbSysSendMerkleUpdate, error)
ParseSendMerkleUpdate is a log parse operation binding the contract event 0xe9e13da364699fb5b0496ff5a0fc70760ad5836e93ba96568a4e42b9914a8b95.
Solidity: event SendMerkleUpdate(uint256 indexed reserved, bytes32 indexed hash, uint256 indexed position)
func (*ArbSysFilterer) WatchL2ToL1Transaction ¶
func (_ArbSys *ArbSysFilterer) WatchL2ToL1Transaction(opts *bind.WatchOpts, sink chan<- *ArbSysL2ToL1Transaction, destination []common.Address, uniqueId []*big.Int, batchNumber []*big.Int) (event.Subscription, error)
WatchL2ToL1Transaction is a free log subscription operation binding the contract event 0x5baaa87db386365b5c161be377bc3d8e317e8d98d71a3ca7ed7d555340c8f767.
Solidity: event L2ToL1Transaction(address caller, address indexed destination, uint256 indexed uniqueId, uint256 indexed batchNumber, uint256 indexInBatch, uint256 arbBlockNum, uint256 ethBlockNum, uint256 timestamp, uint256 callvalue, bytes data)
func (*ArbSysFilterer) WatchL2ToL1Tx ¶
func (_ArbSys *ArbSysFilterer) WatchL2ToL1Tx(opts *bind.WatchOpts, sink chan<- *ArbSysL2ToL1Tx, destination []common.Address, hash []*big.Int, position []*big.Int) (event.Subscription, error)
WatchL2ToL1Tx is a free log subscription operation binding the contract event 0x3e7aafa77dbf186b7fd488006beff893744caa3c4f6f299e8a709fa2087374fc.
Solidity: event L2ToL1Tx(address caller, address indexed destination, uint256 indexed hash, uint256 indexed position, uint256 arbBlockNum, uint256 ethBlockNum, uint256 timestamp, uint256 callvalue, bytes data)
func (*ArbSysFilterer) WatchSendMerkleUpdate ¶
func (_ArbSys *ArbSysFilterer) WatchSendMerkleUpdate(opts *bind.WatchOpts, sink chan<- *ArbSysSendMerkleUpdate, reserved []*big.Int, hash [][32]byte, position []*big.Int) (event.Subscription, error)
WatchSendMerkleUpdate is a free log subscription operation binding the contract event 0xe9e13da364699fb5b0496ff5a0fc70760ad5836e93ba96568a4e42b9914a8b95.
Solidity: event SendMerkleUpdate(uint256 indexed reserved, bytes32 indexed hash, uint256 indexed position)
type ArbSysL2ToL1Transaction ¶
type ArbSysL2ToL1Transaction struct { Caller common.Address Destination common.Address UniqueId *big.Int BatchNumber *big.Int IndexInBatch *big.Int ArbBlockNum *big.Int EthBlockNum *big.Int Timestamp *big.Int Callvalue *big.Int Data []byte Raw types.Log // Blockchain specific contextual infos }
ArbSysL2ToL1Transaction represents a L2ToL1Transaction event raised by the ArbSys contract.
type ArbSysL2ToL1TransactionIterator ¶
type ArbSysL2ToL1TransactionIterator struct { Event *ArbSysL2ToL1Transaction // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ArbSysL2ToL1TransactionIterator is returned from FilterL2ToL1Transaction and is used to iterate over the raw logs and unpacked data for L2ToL1Transaction events raised by the ArbSys contract.
func (*ArbSysL2ToL1TransactionIterator) Close ¶
func (it *ArbSysL2ToL1TransactionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ArbSysL2ToL1TransactionIterator) Error ¶
func (it *ArbSysL2ToL1TransactionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ArbSysL2ToL1TransactionIterator) Next ¶
func (it *ArbSysL2ToL1TransactionIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ArbSysL2ToL1Tx ¶
type ArbSysL2ToL1Tx struct { Caller common.Address Destination common.Address Hash *big.Int Position *big.Int ArbBlockNum *big.Int EthBlockNum *big.Int Timestamp *big.Int Callvalue *big.Int Data []byte Raw types.Log // Blockchain specific contextual infos }
ArbSysL2ToL1Tx represents a L2ToL1Tx event raised by the ArbSys contract.
type ArbSysL2ToL1TxIterator ¶
type ArbSysL2ToL1TxIterator struct { Event *ArbSysL2ToL1Tx // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ArbSysL2ToL1TxIterator is returned from FilterL2ToL1Tx and is used to iterate over the raw logs and unpacked data for L2ToL1Tx events raised by the ArbSys contract.
func (*ArbSysL2ToL1TxIterator) Close ¶
func (it *ArbSysL2ToL1TxIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ArbSysL2ToL1TxIterator) Error ¶
func (it *ArbSysL2ToL1TxIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ArbSysL2ToL1TxIterator) Next ¶
func (it *ArbSysL2ToL1TxIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ArbSysRaw ¶
type ArbSysRaw struct {
Contract *ArbSys // Generic contract binding to access the raw methods on
}
ArbSysRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ArbSysRaw) Call ¶
func (_ArbSys *ArbSysRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*ArbSysRaw) Transact ¶
func (_ArbSys *ArbSysRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ArbSysRaw) Transfer ¶
func (_ArbSys *ArbSysRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type ArbSysSendMerkleUpdate ¶
type ArbSysSendMerkleUpdate struct { Reserved *big.Int Hash [32]byte Position *big.Int Raw types.Log // Blockchain specific contextual infos }
ArbSysSendMerkleUpdate represents a SendMerkleUpdate event raised by the ArbSys contract.
type ArbSysSendMerkleUpdateIterator ¶
type ArbSysSendMerkleUpdateIterator struct { Event *ArbSysSendMerkleUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ArbSysSendMerkleUpdateIterator is returned from FilterSendMerkleUpdate and is used to iterate over the raw logs and unpacked data for SendMerkleUpdate events raised by the ArbSys contract.
func (*ArbSysSendMerkleUpdateIterator) Close ¶
func (it *ArbSysSendMerkleUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ArbSysSendMerkleUpdateIterator) Error ¶
func (it *ArbSysSendMerkleUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ArbSysSendMerkleUpdateIterator) Next ¶
func (it *ArbSysSendMerkleUpdateIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ArbSysSession ¶
type ArbSysSession struct { Contract *ArbSys // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ArbSysSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ArbSysSession) ArbBlockHash ¶
func (_ArbSys *ArbSysSession) ArbBlockHash(arbBlockNum *big.Int) ([32]byte, error)
ArbBlockHash is a free data retrieval call binding the contract method 0x2b407a82.
Solidity: function arbBlockHash(uint256 arbBlockNum) view returns(bytes32)
func (*ArbSysSession) ArbBlockNumber ¶
func (_ArbSys *ArbSysSession) ArbBlockNumber() (*big.Int, error)
ArbBlockNumber is a free data retrieval call binding the contract method 0xa3b1b31d.
Solidity: function arbBlockNumber() view returns(uint256)
func (*ArbSysSession) ArbChainID ¶
func (_ArbSys *ArbSysSession) ArbChainID() (*big.Int, error)
ArbChainID is a free data retrieval call binding the contract method 0xd127f54a.
Solidity: function arbChainID() view returns(uint256)
func (*ArbSysSession) ArbOSVersion ¶
func (_ArbSys *ArbSysSession) ArbOSVersion() (*big.Int, error)
ArbOSVersion is a free data retrieval call binding the contract method 0x051038f2.
Solidity: function arbOSVersion() view returns(uint256)
func (*ArbSysSession) GetStorageGasAvailable ¶
func (_ArbSys *ArbSysSession) GetStorageGasAvailable() (*big.Int, error)
GetStorageGasAvailable is a free data retrieval call binding the contract method 0xa94597ff.
Solidity: function getStorageGasAvailable() view returns(uint256)
func (*ArbSysSession) IsTopLevelCall ¶
func (_ArbSys *ArbSysSession) IsTopLevelCall() (bool, error)
IsTopLevelCall is a free data retrieval call binding the contract method 0x08bd624c.
Solidity: function isTopLevelCall() view returns(bool)
func (*ArbSysSession) MapL1SenderContractAddressToL2Alias ¶
func (_ArbSys *ArbSysSession) MapL1SenderContractAddressToL2Alias(sender common.Address, unused common.Address) (common.Address, error)
MapL1SenderContractAddressToL2Alias is a free data retrieval call binding the contract method 0x4dbbd506.
Solidity: function mapL1SenderContractAddressToL2Alias(address sender, address unused) pure returns(address)
func (*ArbSysSession) MyCallersAddressWithoutAliasing ¶
func (_ArbSys *ArbSysSession) MyCallersAddressWithoutAliasing() (common.Address, error)
MyCallersAddressWithoutAliasing is a free data retrieval call binding the contract method 0xd74523b3.
Solidity: function myCallersAddressWithoutAliasing() view returns(address)
func (*ArbSysSession) SendMerkleTreeState ¶
func (_ArbSys *ArbSysSession) SendMerkleTreeState() (struct { Size *big.Int Root [32]byte Partials [][32]byte }, error)
SendMerkleTreeState is a free data retrieval call binding the contract method 0x7aeecd2a.
Solidity: function sendMerkleTreeState() view returns(uint256 size, bytes32 root, bytes32[] partials)
func (*ArbSysSession) SendTxToL1 ¶
func (_ArbSys *ArbSysSession) SendTxToL1(destination common.Address, data []byte) (*types.Transaction, error)
SendTxToL1 is a paid mutator transaction binding the contract method 0x928c169a.
Solidity: function sendTxToL1(address destination, bytes data) payable returns(uint256)
func (*ArbSysSession) WasMyCallersAddressAliased ¶
func (_ArbSys *ArbSysSession) WasMyCallersAddressAliased() (bool, error)
WasMyCallersAddressAliased is a free data retrieval call binding the contract method 0x175a260b.
Solidity: function wasMyCallersAddressAliased() view returns(bool)
func (*ArbSysSession) WithdrawEth ¶
func (_ArbSys *ArbSysSession) WithdrawEth(destination common.Address) (*types.Transaction, error)
WithdrawEth is a paid mutator transaction binding the contract method 0x25e16063.
Solidity: function withdrawEth(address destination) payable returns(uint256)
type ArbSysTransactor ¶
type ArbSysTransactor struct {
// contains filtered or unexported fields
}
ArbSysTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewArbSysTransactor ¶
func NewArbSysTransactor(address common.Address, transactor bind.ContractTransactor) (*ArbSysTransactor, error)
NewArbSysTransactor creates a new write-only instance of ArbSys, bound to a specific deployed contract.
func (*ArbSysTransactor) SendTxToL1 ¶
func (_ArbSys *ArbSysTransactor) SendTxToL1(opts *bind.TransactOpts, destination common.Address, data []byte) (*types.Transaction, error)
SendTxToL1 is a paid mutator transaction binding the contract method 0x928c169a.
Solidity: function sendTxToL1(address destination, bytes data) payable returns(uint256)
func (*ArbSysTransactor) WithdrawEth ¶
func (_ArbSys *ArbSysTransactor) WithdrawEth(opts *bind.TransactOpts, destination common.Address) (*types.Transaction, error)
WithdrawEth is a paid mutator transaction binding the contract method 0x25e16063.
Solidity: function withdrawEth(address destination) payable returns(uint256)
type ArbSysTransactorRaw ¶
type ArbSysTransactorRaw struct {
Contract *ArbSysTransactor // Generic write-only contract binding to access the raw methods on
}
ArbSysTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ArbSysTransactorRaw) Transact ¶
func (_ArbSys *ArbSysTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ArbSysTransactorRaw) Transfer ¶
func (_ArbSys *ArbSysTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type ArbSysTransactorSession ¶
type ArbSysTransactorSession struct { Contract *ArbSysTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ArbSysTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ArbSysTransactorSession) SendTxToL1 ¶
func (_ArbSys *ArbSysTransactorSession) SendTxToL1(destination common.Address, data []byte) (*types.Transaction, error)
SendTxToL1 is a paid mutator transaction binding the contract method 0x928c169a.
Solidity: function sendTxToL1(address destination, bytes data) payable returns(uint256)
func (*ArbSysTransactorSession) WithdrawEth ¶
func (_ArbSys *ArbSysTransactorSession) WithdrawEth(destination common.Address) (*types.Transaction, error)
WithdrawEth is a paid mutator transaction binding the contract method 0x25e16063.
Solidity: function withdrawEth(address destination) payable returns(uint256)