NodeInterface

package
v0.0.0-...-73c85e8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the NODE_INTERFACE_RPC_URL environment variable")
View Source
var NodeInterfaceABI = NodeInterfaceMetaData.ABI

NodeInterfaceABI is the input ABI used to generate the binding from. Deprecated: Use NodeInterfaceMetaData.ABI instead.

View Source
var NodeInterfaceMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"l2BlockNum\",\"type\":\"uint64\"}],\"name\":\"blockL1Num\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"l1BlockNum\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"size\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"leaf\",\"type\":\"uint64\"}],\"name\":\"constructOutboxProof\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"send\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deposit\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"l2CallValue\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"excessFeeRefundAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callValueRefundAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"estimateRetryableTicket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"blockNum\",\"type\":\"uint64\"}],\"name\":\"findBatchContainingBlock\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"batch\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"contractCreation\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"gasEstimateComponents\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"gasEstimate\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"gasEstimateForL1\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"baseFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1BaseFeeEstimate\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"contractCreation\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"gasEstimateL1Component\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"gasEstimateForL1\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"baseFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1BaseFeeEstimate\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"name\":\"getL1Confirmations\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"confirmations\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"blockNum\",\"type\":\"uint64\"}],\"name\":\"l2BlockRangeForL1\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"firstBlock\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"lastBlock\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"batchNum\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"}],\"name\":\"legacyLookupMessageBatchProof\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"path\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"l2Sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l1Dest\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"l2Block\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1Block\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"calldataForL1\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nitroGenesisBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
}

NodeInterfaceMetaData contains all meta data concerning the NodeInterface contract.

Functions

func CreateBlockL1NumCommand

func CreateBlockL1NumCommand() *cobra.Command

func CreateConstructOutboxProofCommand

func CreateConstructOutboxProofCommand() *cobra.Command

func CreateEstimateRetryableTicketCommand

func CreateEstimateRetryableTicketCommand() *cobra.Command

func CreateFindBatchContainingBlockCommand

func CreateFindBatchContainingBlockCommand() *cobra.Command

func CreateGasEstimateComponentsCommand

func CreateGasEstimateComponentsCommand() *cobra.Command

func CreateGasEstimateL1ComponentCommand

func CreateGasEstimateL1ComponentCommand() *cobra.Command

func CreateGetL1ConfirmationsCommand

func CreateGetL1ConfirmationsCommand() *cobra.Command

func CreateL2BlockRangeForL1Command

func CreateL2BlockRangeForL1Command() *cobra.Command

func CreateLegacyLookupMessageBatchProofCommand

func CreateLegacyLookupMessageBatchProofCommand() *cobra.Command

func CreateNitroGenesisBlockCommand

func CreateNitroGenesisBlockCommand() *cobra.Command

func CreateNodeInterfaceCommand

func CreateNodeInterfaceCommand() *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 NODE_INTERFACE_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 NodeInterface

type NodeInterface struct {
	NodeInterfaceCaller     // Read-only binding to the contract
	NodeInterfaceTransactor // Write-only binding to the contract
	NodeInterfaceFilterer   // Log filterer for contract events
}

NodeInterface is an auto generated Go binding around an Ethereum contract.

func NewNodeInterface

func NewNodeInterface(address common.Address, backend bind.ContractBackend) (*NodeInterface, error)

NewNodeInterface creates a new instance of NodeInterface, bound to a specific deployed contract.

type NodeInterfaceCaller

type NodeInterfaceCaller struct {
	// contains filtered or unexported fields
}

NodeInterfaceCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewNodeInterfaceCaller

func NewNodeInterfaceCaller(address common.Address, caller bind.ContractCaller) (*NodeInterfaceCaller, error)

NewNodeInterfaceCaller creates a new read-only instance of NodeInterface, bound to a specific deployed contract.

func (*NodeInterfaceCaller) BlockL1Num

func (_NodeInterface *NodeInterfaceCaller) BlockL1Num(opts *bind.CallOpts, l2BlockNum uint64) (uint64, error)

BlockL1Num is a free data retrieval call binding the contract method 0x6f275ef2.

Solidity: function blockL1Num(uint64 l2BlockNum) view returns(uint64 l1BlockNum)

func (*NodeInterfaceCaller) ConstructOutboxProof

func (_NodeInterface *NodeInterfaceCaller) ConstructOutboxProof(opts *bind.CallOpts, size uint64, leaf uint64) (struct {
	Send  [32]byte
	Root  [32]byte
	Proof [][32]byte
}, error)

ConstructOutboxProof is a free data retrieval call binding the contract method 0x42696350.

Solidity: function constructOutboxProof(uint64 size, uint64 leaf) view returns(bytes32 send, bytes32 root, bytes32[] proof)

func (*NodeInterfaceCaller) FindBatchContainingBlock

func (_NodeInterface *NodeInterfaceCaller) FindBatchContainingBlock(opts *bind.CallOpts, blockNum uint64) (uint64, error)

FindBatchContainingBlock is a free data retrieval call binding the contract method 0x81f1adaf.

Solidity: function findBatchContainingBlock(uint64 blockNum) view returns(uint64 batch)

func (*NodeInterfaceCaller) GetL1Confirmations

func (_NodeInterface *NodeInterfaceCaller) GetL1Confirmations(opts *bind.CallOpts, blockHash [32]byte) (uint64, error)

GetL1Confirmations is a free data retrieval call binding the contract method 0xe5ca238c.

Solidity: function getL1Confirmations(bytes32 blockHash) view returns(uint64 confirmations)

func (*NodeInterfaceCaller) L2BlockRangeForL1

func (_NodeInterface *NodeInterfaceCaller) L2BlockRangeForL1(opts *bind.CallOpts, blockNum uint64) (struct {
	FirstBlock uint64
	LastBlock  uint64
}, error)

L2BlockRangeForL1 is a free data retrieval call binding the contract method 0x48e7f811.

Solidity: function l2BlockRangeForL1(uint64 blockNum) view returns(uint64 firstBlock, uint64 lastBlock)

func (*NodeInterfaceCaller) LegacyLookupMessageBatchProof

func (_NodeInterface *NodeInterfaceCaller) LegacyLookupMessageBatchProof(opts *bind.CallOpts, batchNum *big.Int, index uint64) (struct {
	Proof         [][32]byte
	Path          *big.Int
	L2Sender      common.Address
	L1Dest        common.Address
	L2Block       *big.Int
	L1Block       *big.Int
	Timestamp     *big.Int
	Amount        *big.Int
	CalldataForL1 []byte
}, error)

LegacyLookupMessageBatchProof is a free data retrieval call binding the contract method 0x89496270.

Solidity: function legacyLookupMessageBatchProof(uint256 batchNum, uint64 index) view returns(bytes32[] proof, uint256 path, address l2Sender, address l1Dest, uint256 l2Block, uint256 l1Block, uint256 timestamp, uint256 amount, bytes calldataForL1)

func (*NodeInterfaceCaller) NitroGenesisBlock

func (_NodeInterface *NodeInterfaceCaller) NitroGenesisBlock(opts *bind.CallOpts) (*big.Int, error)

NitroGenesisBlock is a free data retrieval call binding the contract method 0x93a2fe21.

Solidity: function nitroGenesisBlock() pure returns(uint256 number)

type NodeInterfaceCallerRaw

type NodeInterfaceCallerRaw struct {
	Contract *NodeInterfaceCaller // Generic read-only contract binding to access the raw methods on
}

NodeInterfaceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*NodeInterfaceCallerRaw) Call

func (_NodeInterface *NodeInterfaceCallerRaw) 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 NodeInterfaceCallerSession

type NodeInterfaceCallerSession struct {
	Contract *NodeInterfaceCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts        // Call options to use throughout this session
}

NodeInterfaceCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*NodeInterfaceCallerSession) BlockL1Num

func (_NodeInterface *NodeInterfaceCallerSession) BlockL1Num(l2BlockNum uint64) (uint64, error)

BlockL1Num is a free data retrieval call binding the contract method 0x6f275ef2.

Solidity: function blockL1Num(uint64 l2BlockNum) view returns(uint64 l1BlockNum)

func (*NodeInterfaceCallerSession) ConstructOutboxProof

func (_NodeInterface *NodeInterfaceCallerSession) ConstructOutboxProof(size uint64, leaf uint64) (struct {
	Send  [32]byte
	Root  [32]byte
	Proof [][32]byte
}, error)

ConstructOutboxProof is a free data retrieval call binding the contract method 0x42696350.

Solidity: function constructOutboxProof(uint64 size, uint64 leaf) view returns(bytes32 send, bytes32 root, bytes32[] proof)

func (*NodeInterfaceCallerSession) FindBatchContainingBlock

func (_NodeInterface *NodeInterfaceCallerSession) FindBatchContainingBlock(blockNum uint64) (uint64, error)

FindBatchContainingBlock is a free data retrieval call binding the contract method 0x81f1adaf.

Solidity: function findBatchContainingBlock(uint64 blockNum) view returns(uint64 batch)

func (*NodeInterfaceCallerSession) GetL1Confirmations

func (_NodeInterface *NodeInterfaceCallerSession) GetL1Confirmations(blockHash [32]byte) (uint64, error)

GetL1Confirmations is a free data retrieval call binding the contract method 0xe5ca238c.

Solidity: function getL1Confirmations(bytes32 blockHash) view returns(uint64 confirmations)

func (*NodeInterfaceCallerSession) L2BlockRangeForL1

func (_NodeInterface *NodeInterfaceCallerSession) L2BlockRangeForL1(blockNum uint64) (struct {
	FirstBlock uint64
	LastBlock  uint64
}, error)

L2BlockRangeForL1 is a free data retrieval call binding the contract method 0x48e7f811.

Solidity: function l2BlockRangeForL1(uint64 blockNum) view returns(uint64 firstBlock, uint64 lastBlock)

func (*NodeInterfaceCallerSession) LegacyLookupMessageBatchProof

func (_NodeInterface *NodeInterfaceCallerSession) LegacyLookupMessageBatchProof(batchNum *big.Int, index uint64) (struct {
	Proof         [][32]byte
	Path          *big.Int
	L2Sender      common.Address
	L1Dest        common.Address
	L2Block       *big.Int
	L1Block       *big.Int
	Timestamp     *big.Int
	Amount        *big.Int
	CalldataForL1 []byte
}, error)

LegacyLookupMessageBatchProof is a free data retrieval call binding the contract method 0x89496270.

Solidity: function legacyLookupMessageBatchProof(uint256 batchNum, uint64 index) view returns(bytes32[] proof, uint256 path, address l2Sender, address l1Dest, uint256 l2Block, uint256 l1Block, uint256 timestamp, uint256 amount, bytes calldataForL1)

func (*NodeInterfaceCallerSession) NitroGenesisBlock

func (_NodeInterface *NodeInterfaceCallerSession) NitroGenesisBlock() (*big.Int, error)

NitroGenesisBlock is a free data retrieval call binding the contract method 0x93a2fe21.

Solidity: function nitroGenesisBlock() pure returns(uint256 number)

type NodeInterfaceFilterer

type NodeInterfaceFilterer struct {
	// contains filtered or unexported fields
}

NodeInterfaceFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewNodeInterfaceFilterer

func NewNodeInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*NodeInterfaceFilterer, error)

NewNodeInterfaceFilterer creates a new log filterer instance of NodeInterface, bound to a specific deployed contract.

type NodeInterfaceRaw

type NodeInterfaceRaw struct {
	Contract *NodeInterface // Generic contract binding to access the raw methods on
}

NodeInterfaceRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*NodeInterfaceRaw) Call

func (_NodeInterface *NodeInterfaceRaw) 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 (*NodeInterfaceRaw) Transact

func (_NodeInterface *NodeInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*NodeInterfaceRaw) Transfer

func (_NodeInterface *NodeInterfaceRaw) 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 NodeInterfaceSession

type NodeInterfaceSession struct {
	Contract     *NodeInterface    // 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
}

NodeInterfaceSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*NodeInterfaceSession) BlockL1Num

func (_NodeInterface *NodeInterfaceSession) BlockL1Num(l2BlockNum uint64) (uint64, error)

BlockL1Num is a free data retrieval call binding the contract method 0x6f275ef2.

Solidity: function blockL1Num(uint64 l2BlockNum) view returns(uint64 l1BlockNum)

func (*NodeInterfaceSession) ConstructOutboxProof

func (_NodeInterface *NodeInterfaceSession) ConstructOutboxProof(size uint64, leaf uint64) (struct {
	Send  [32]byte
	Root  [32]byte
	Proof [][32]byte
}, error)

ConstructOutboxProof is a free data retrieval call binding the contract method 0x42696350.

Solidity: function constructOutboxProof(uint64 size, uint64 leaf) view returns(bytes32 send, bytes32 root, bytes32[] proof)

func (*NodeInterfaceSession) EstimateRetryableTicket

func (_NodeInterface *NodeInterfaceSession) EstimateRetryableTicket(sender common.Address, deposit *big.Int, to common.Address, l2CallValue *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, data []byte) (*types.Transaction, error)

EstimateRetryableTicket is a paid mutator transaction binding the contract method 0xc3dc5879.

Solidity: function estimateRetryableTicket(address sender, uint256 deposit, address to, uint256 l2CallValue, address excessFeeRefundAddress, address callValueRefundAddress, bytes data) returns()

func (*NodeInterfaceSession) FindBatchContainingBlock

func (_NodeInterface *NodeInterfaceSession) FindBatchContainingBlock(blockNum uint64) (uint64, error)

FindBatchContainingBlock is a free data retrieval call binding the contract method 0x81f1adaf.

Solidity: function findBatchContainingBlock(uint64 blockNum) view returns(uint64 batch)

func (*NodeInterfaceSession) GasEstimateComponents

func (_NodeInterface *NodeInterfaceSession) GasEstimateComponents(to common.Address, contractCreation bool, data []byte) (*types.Transaction, error)

GasEstimateComponents is a paid mutator transaction binding the contract method 0xc94e6eeb.

Solidity: function gasEstimateComponents(address to, bool contractCreation, bytes data) payable returns(uint64 gasEstimate, uint64 gasEstimateForL1, uint256 baseFee, uint256 l1BaseFeeEstimate)

func (*NodeInterfaceSession) GasEstimateL1Component

func (_NodeInterface *NodeInterfaceSession) GasEstimateL1Component(to common.Address, contractCreation bool, data []byte) (*types.Transaction, error)

GasEstimateL1Component is a paid mutator transaction binding the contract method 0x77d488a2.

Solidity: function gasEstimateL1Component(address to, bool contractCreation, bytes data) payable returns(uint64 gasEstimateForL1, uint256 baseFee, uint256 l1BaseFeeEstimate)

func (*NodeInterfaceSession) GetL1Confirmations

func (_NodeInterface *NodeInterfaceSession) GetL1Confirmations(blockHash [32]byte) (uint64, error)

GetL1Confirmations is a free data retrieval call binding the contract method 0xe5ca238c.

Solidity: function getL1Confirmations(bytes32 blockHash) view returns(uint64 confirmations)

func (*NodeInterfaceSession) L2BlockRangeForL1

func (_NodeInterface *NodeInterfaceSession) L2BlockRangeForL1(blockNum uint64) (struct {
	FirstBlock uint64
	LastBlock  uint64
}, error)

L2BlockRangeForL1 is a free data retrieval call binding the contract method 0x48e7f811.

Solidity: function l2BlockRangeForL1(uint64 blockNum) view returns(uint64 firstBlock, uint64 lastBlock)

func (*NodeInterfaceSession) LegacyLookupMessageBatchProof

func (_NodeInterface *NodeInterfaceSession) LegacyLookupMessageBatchProof(batchNum *big.Int, index uint64) (struct {
	Proof         [][32]byte
	Path          *big.Int
	L2Sender      common.Address
	L1Dest        common.Address
	L2Block       *big.Int
	L1Block       *big.Int
	Timestamp     *big.Int
	Amount        *big.Int
	CalldataForL1 []byte
}, error)

LegacyLookupMessageBatchProof is a free data retrieval call binding the contract method 0x89496270.

Solidity: function legacyLookupMessageBatchProof(uint256 batchNum, uint64 index) view returns(bytes32[] proof, uint256 path, address l2Sender, address l1Dest, uint256 l2Block, uint256 l1Block, uint256 timestamp, uint256 amount, bytes calldataForL1)

func (*NodeInterfaceSession) NitroGenesisBlock

func (_NodeInterface *NodeInterfaceSession) NitroGenesisBlock() (*big.Int, error)

NitroGenesisBlock is a free data retrieval call binding the contract method 0x93a2fe21.

Solidity: function nitroGenesisBlock() pure returns(uint256 number)

type NodeInterfaceTransactor

type NodeInterfaceTransactor struct {
	// contains filtered or unexported fields
}

NodeInterfaceTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewNodeInterfaceTransactor

func NewNodeInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*NodeInterfaceTransactor, error)

NewNodeInterfaceTransactor creates a new write-only instance of NodeInterface, bound to a specific deployed contract.

func (*NodeInterfaceTransactor) EstimateRetryableTicket

func (_NodeInterface *NodeInterfaceTransactor) EstimateRetryableTicket(opts *bind.TransactOpts, sender common.Address, deposit *big.Int, to common.Address, l2CallValue *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, data []byte) (*types.Transaction, error)

EstimateRetryableTicket is a paid mutator transaction binding the contract method 0xc3dc5879.

Solidity: function estimateRetryableTicket(address sender, uint256 deposit, address to, uint256 l2CallValue, address excessFeeRefundAddress, address callValueRefundAddress, bytes data) returns()

func (*NodeInterfaceTransactor) GasEstimateComponents

func (_NodeInterface *NodeInterfaceTransactor) GasEstimateComponents(opts *bind.TransactOpts, to common.Address, contractCreation bool, data []byte) (*types.Transaction, error)

GasEstimateComponents is a paid mutator transaction binding the contract method 0xc94e6eeb.

Solidity: function gasEstimateComponents(address to, bool contractCreation, bytes data) payable returns(uint64 gasEstimate, uint64 gasEstimateForL1, uint256 baseFee, uint256 l1BaseFeeEstimate)

func (*NodeInterfaceTransactor) GasEstimateL1Component

func (_NodeInterface *NodeInterfaceTransactor) GasEstimateL1Component(opts *bind.TransactOpts, to common.Address, contractCreation bool, data []byte) (*types.Transaction, error)

GasEstimateL1Component is a paid mutator transaction binding the contract method 0x77d488a2.

Solidity: function gasEstimateL1Component(address to, bool contractCreation, bytes data) payable returns(uint64 gasEstimateForL1, uint256 baseFee, uint256 l1BaseFeeEstimate)

type NodeInterfaceTransactorRaw

type NodeInterfaceTransactorRaw struct {
	Contract *NodeInterfaceTransactor // Generic write-only contract binding to access the raw methods on
}

NodeInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*NodeInterfaceTransactorRaw) Transact

func (_NodeInterface *NodeInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*NodeInterfaceTransactorRaw) Transfer

func (_NodeInterface *NodeInterfaceTransactorRaw) 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 NodeInterfaceTransactorSession

type NodeInterfaceTransactorSession struct {
	Contract     *NodeInterfaceTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
}

NodeInterfaceTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*NodeInterfaceTransactorSession) EstimateRetryableTicket

func (_NodeInterface *NodeInterfaceTransactorSession) EstimateRetryableTicket(sender common.Address, deposit *big.Int, to common.Address, l2CallValue *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, data []byte) (*types.Transaction, error)

EstimateRetryableTicket is a paid mutator transaction binding the contract method 0xc3dc5879.

Solidity: function estimateRetryableTicket(address sender, uint256 deposit, address to, uint256 l2CallValue, address excessFeeRefundAddress, address callValueRefundAddress, bytes data) returns()

func (*NodeInterfaceTransactorSession) GasEstimateComponents

func (_NodeInterface *NodeInterfaceTransactorSession) GasEstimateComponents(to common.Address, contractCreation bool, data []byte) (*types.Transaction, error)

GasEstimateComponents is a paid mutator transaction binding the contract method 0xc94e6eeb.

Solidity: function gasEstimateComponents(address to, bool contractCreation, bytes data) payable returns(uint64 gasEstimate, uint64 gasEstimateForL1, uint256 baseFee, uint256 l1BaseFeeEstimate)

func (*NodeInterfaceTransactorSession) GasEstimateL1Component

func (_NodeInterface *NodeInterfaceTransactorSession) GasEstimateL1Component(to common.Address, contractCreation bool, data []byte) (*types.Transaction, error)

GasEstimateL1Component is a paid mutator transaction binding the contract method 0x77d488a2.

Solidity: function gasEstimateL1Component(address to, bool contractCreation, bytes data) payable returns(uint64 gasEstimateForL1, uint256 baseFee, uint256 l1BaseFeeEstimate)

Jump to

Keyboard shortcuts

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