ArbSys

package
v0.0.0-...-5821519 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArbSysABI = ArbSysMetaData.ABI

ArbSysABI is the input ABI used to generate the binding from. Deprecated: Use ArbSysMetaData.ABI instead.

View Source
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.

View Source
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 CreateArbBlockHashCommand

func CreateArbBlockHashCommand() *cobra.Command

func CreateArbBlockNumberCommand

func CreateArbBlockNumberCommand() *cobra.Command

func CreateArbChainIdCommand

func CreateArbChainIdCommand() *cobra.Command

func CreateArbOsversionCommand

func CreateArbOsversionCommand() *cobra.Command

func CreateArbSysCommand

func CreateArbSysCommand() *cobra.Command

func CreateGetStorageGasAvailableCommand

func CreateGetStorageGasAvailableCommand() *cobra.Command

func CreateIsTopLevelCallCommand

func CreateIsTopLevelCallCommand() *cobra.Command

func CreateMapL1SenderContractAddressToL2AliasCommand

func CreateMapL1SenderContractAddressToL2AliasCommand() *cobra.Command

func CreateMyCallersAddressWithoutAliasingCommand

func CreateMyCallersAddressWithoutAliasingCommand() *cobra.Command

func CreateSendMerkleTreeStateCommand

func CreateSendMerkleTreeStateCommand() *cobra.Command

func CreateSendTxToL1Command

func CreateSendTxToL1Command() *cobra.Command

func CreateWasMyCallersAddressAliasedCommand

func CreateWasMyCallersAddressAliasedCommand() *cobra.Command

func CreateWithdrawEthCommand

func CreateWithdrawEthCommand() *cobra.Command

func KeyFromFile

func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error)

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

func NewClient(rpcURL string) (*ethclient.Client, error)

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

func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string)

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).

func UnlockKeystore

func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error)

Unlocks a key from a keystore (byte contents of a keystore file) with the given password.

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.

func NewArbSys

func NewArbSys(address common.Address, backend bind.ContractBackend) (*ArbSys, error)

NewArbSys creates a new instance of ArbSys, bound to a specific deployed 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

func (_ArbSys *ArbSysCaller) ArbBlockNumber(opts *bind.CallOpts) (*big.Int, error)

ArbBlockNumber is a free data retrieval call binding the contract method 0xa3b1b31d.

Solidity: function arbBlockNumber() view returns(uint256)

func (*ArbSysCaller) ArbChainID

func (_ArbSys *ArbSysCaller) ArbChainID(opts *bind.CallOpts) (*big.Int, error)

ArbChainID is a free data retrieval call binding the contract method 0xd127f54a.

Solidity: function arbChainID() view returns(uint256)

func (*ArbSysCaller) ArbOSVersion

func (_ArbSys *ArbSysCaller) ArbOSVersion(opts *bind.CallOpts) (*big.Int, error)

ArbOSVersion is a free data retrieval call binding the contract method 0x051038f2.

Solidity: function arbOSVersion() view returns(uint256)

func (*ArbSysCaller) GetStorageGasAvailable

func (_ArbSys *ArbSysCaller) GetStorageGasAvailable(opts *bind.CallOpts) (*big.Int, error)

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*ArbSysL2ToL1TransactionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ArbSysL2ToL1TransactionIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*ArbSysSendMerkleUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ArbSysSendMerkleUpdateIterator) Next

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL