ETHOrbitBridger

package
v0.0.0-...-7f37db9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NativeTokenAddress = "0x0000000000000000000000000000000000000000"
)

Variables

View Source
var ETHOrbitBridgerABI = ETHOrbitBridgerMetaData.ABI

ETHOrbitBridgerABI is the input ABI used to generate the binding from. Deprecated: Use ETHOrbitBridgerMetaData.ABI instead.

View Source
var ETHOrbitBridgerBin = ETHOrbitBridgerMetaData.Bin

ETHOrbitBridgerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ETHOrbitBridgerMetaData.Bin instead.

View Source
var ETHOrbitBridgerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_standardGateway\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_router\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_weth\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_customNativeToken\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"DEFAULT_GAS_LIMIT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_SUBMISSION_FEE_PERCENT_INCREASE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"}],\"name\":\"bridge\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_calldata\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_baseFee\",\"type\":\"uint256\"}],\"name\":\"calculateRetryableSubmissionFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"customNativeToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"router\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"standardGateway\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"weth\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50604051610c12380380610c1283398101604081905261002f9161009e565b600080546001600160a01b039586166001600160a01b03199182161790915560018054948616948216949094179093556002805492851692841692909217909155600380549190931691161790556100f2565b80516001600160a01b038116811461009957600080fd5b919050565b600080600080608085870312156100b457600080fd5b6100bd85610082565b93506100cb60208601610082565b92506100d960408601610082565b91506100e760608601610082565b905092959194509250565b610b11806101016000396000f3fe60806040526004361061007b5760003560e01c80638a6189ae1161004e5780638a6189ae1461013d578063a65fd6001461015d578063d6be695a1461018a578063f887ea40146101a157600080fd5b80632629955e146100805780633fc8cef3146100a957806353ca57da146100fb57806377775b8914610110575b600080fd5b34801561008c57600080fd5b5061009661012c81565b6040519081526020015b60405180910390f35b3480156100b557600080fd5b506002546100d69073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a0565b61010e610109366004610767565b6101ce565b005b34801561011c57600080fd5b506000546100d69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561014957600080fd5b50610096610158366004610868565b61070a565b34801561016957600080fd5b506003546100d69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561019657600080fd5b50610096620493e081565b3480156101ad57600080fd5b506001546100d69073ffffffffffffffffffffffffffffffffffffffff1681565b6000341161023c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4554484f72626974427269646765723a204e6f204554482073656e7400000000604482015260640160405180910390fd5b600254604080517fd0e30db00000000000000000000000000000000000000000000000000000000081529051349273ffffffffffffffffffffffffffffffffffffffff169163d0e30db091849160048082019260009290919082900301818588803b1580156102aa57600080fd5b505af11580156102be573d6000803e3d6000fd5b50506002546000546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018790529116935063095ea7b3925060440190506020604051808303816000875af115801561033f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036391906108ea565b506001546002546040517fa0c76a9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015230602482015284821660448201526064810184905260a06084820152600060a4820181905292919091169063a0c76a969060c401600060405180830381865afa1580156103fe573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526104449190810190610930565b9050486000610453838361070a565b9050600061046483620493e06109d6565b9050600061047282846109ed565b9050600083826040516020016104a1929190918252606060208301819052600090830152604082015260800190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905260035490915073ffffffffffffffffffffffffffffffffffffffff1615610633576003546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd906064016020604051808303816000875af115801561056d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059191906108ea565b506003546000546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810185905291169063095ea7b3906044016020604051808303816000875af115801561060d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063191906108ea565b505b6001546002546040517fd2ce7d6500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283169263d2ce7d659261069a929116908c908c90620493e0908c908990600401610a00565b6000604051808303816000875af11580156106b9573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526106ff9190810190610930565b505050505050505050565b6000808351600661071b91906109d6565b610727906105786109ed565b9050600061073584836109d6565b90506000606461074761012c826109ed565b61075190846109d6565b61075b9190610aa0565b93505050505b92915050565b60006020828403121561077957600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461079d57600080fd5b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561081a5761081a6107a4565b604052919050565b600067ffffffffffffffff82111561083c5761083c6107a4565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000806040838503121561087b57600080fd5b823567ffffffffffffffff81111561089257600080fd5b8301601f810185136108a357600080fd5b80356108b66108b182610822565b6107d3565b8181528660208385010111156108cb57600080fd5b8160208401602083013760006020928201830152969401359450505050565b6000602082840312156108fc57600080fd5b8151801515811461079d57600080fd5b60005b8381101561092757818101518382015260200161090f565b50506000910152565b60006020828403121561094257600080fd5b815167ffffffffffffffff81111561095957600080fd5b8201601f8101841361096a57600080fd5b80516109786108b182610822565b81815285602083850101111561098d57600080fd5b61099e82602083016020860161090c565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610761576107616109a7565b80820180821115610761576107616109a7565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015284604082015283606082015282608082015260c060a0820152600082518060c0840152610a698160e085016020870161090c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160e001979650505050505050565b600082610ad6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea264697066735822122013a365b14e048fde16b6d503947f792bd4c0047752bdd2260ba0504fa0da8df164736f6c634300081c0033",
}
View Source
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the ETH_ORBIT_BRIDGER_RPC_URL environment variable")

Functions

func CalculateSafeTxHash

func CalculateSafeTxHash(safeAddress common.Address, txData SafeTransactionData, chainID *big.Int) (common.Hash, error)

func CreateBridgeCommand

func CreateBridgeCommand() *cobra.Command

func CreateCalculateRetryableSubmissionFeeCommand

func CreateCalculateRetryableSubmissionFeeCommand() *cobra.Command

func CreateCustomNativeTokenCommand

func CreateCustomNativeTokenCommand() *cobra.Command

func CreateDefaultgaslimitCommand

func CreateDefaultgaslimitCommand() *cobra.Command

func CreateDefaultsubmissionfeepercentincreaseCommand

func CreateDefaultsubmissionfeepercentincreaseCommand() *cobra.Command

func CreateETHOrbitBridgerCommand

func CreateETHOrbitBridgerCommand() *cobra.Command

func CreateETHOrbitBridgerDeploymentCommand

func CreateETHOrbitBridgerDeploymentCommand() *cobra.Command

func CreateRouterCommand

func CreateRouterCommand() *cobra.Command

func CreateSafeProposal

func CreateSafeProposal(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, to common.Address, data []byte, value *big.Int, safeApi string, safeOperationType SafeOperationType, safeNonce *big.Int) error

func CreateStandardGatewayCommand

func CreateStandardGatewayCommand() *cobra.Command

func CreateWethCommand

func CreateWethCommand() *cobra.Command

func DeployWithSafe

func DeployWithSafe(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, factoryAddress common.Address, value *big.Int, safeApi string, deployBytecode []byte, safeOperationType SafeOperationType, salt [32]byte, safeNonce *big.Int) error

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 ETH_ORBIT_BRIDGER_RPC_URL environment variable. If that is empty, too, then it returns an error.

func PredictDeploymentAddressSafe

func PredictDeploymentAddressSafe(from common.Address, salt [32]byte, deployBytecode []byte) (common.Address, 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 ETHOrbitBridger

type ETHOrbitBridger struct {
	ETHOrbitBridgerCaller     // Read-only binding to the contract
	ETHOrbitBridgerTransactor // Write-only binding to the contract
	ETHOrbitBridgerFilterer   // Log filterer for contract events
}

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

func DeployETHOrbitBridger

func DeployETHOrbitBridger(auth *bind.TransactOpts, backend bind.ContractBackend, _standardGateway common.Address, _router common.Address, _weth common.Address, _customNativeToken common.Address) (common.Address, *types.Transaction, *ETHOrbitBridger, error)

DeployETHOrbitBridger deploys a new Ethereum contract, binding an instance of ETHOrbitBridger to it.

func NewETHOrbitBridger

func NewETHOrbitBridger(address common.Address, backend bind.ContractBackend) (*ETHOrbitBridger, error)

NewETHOrbitBridger creates a new instance of ETHOrbitBridger, bound to a specific deployed contract.

type ETHOrbitBridgerCaller

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

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

func NewETHOrbitBridgerCaller

func NewETHOrbitBridgerCaller(address common.Address, caller bind.ContractCaller) (*ETHOrbitBridgerCaller, error)

NewETHOrbitBridgerCaller creates a new read-only instance of ETHOrbitBridger, bound to a specific deployed contract.

func (*ETHOrbitBridgerCaller) CalculateRetryableSubmissionFee

func (_ETHOrbitBridger *ETHOrbitBridgerCaller) CalculateRetryableSubmissionFee(opts *bind.CallOpts, _calldata []byte, _baseFee *big.Int) (*big.Int, error)

CalculateRetryableSubmissionFee is a free data retrieval call binding the contract method 0x8a6189ae.

Solidity: function calculateRetryableSubmissionFee(bytes _calldata, uint256 _baseFee) pure returns(uint256)

func (*ETHOrbitBridgerCaller) CustomNativeToken

func (_ETHOrbitBridger *ETHOrbitBridgerCaller) CustomNativeToken(opts *bind.CallOpts) (common.Address, error)

CustomNativeToken is a free data retrieval call binding the contract method 0xa65fd600.

Solidity: function customNativeToken() view returns(address)

func (*ETHOrbitBridgerCaller) DEFAULTGASLIMIT

func (_ETHOrbitBridger *ETHOrbitBridgerCaller) DEFAULTGASLIMIT(opts *bind.CallOpts) (*big.Int, error)

DEFAULTGASLIMIT is a free data retrieval call binding the contract method 0xd6be695a.

Solidity: function DEFAULT_GAS_LIMIT() view returns(uint256)

func (*ETHOrbitBridgerCaller) DEFAULTSUBMISSIONFEEPERCENTINCREASE

func (_ETHOrbitBridger *ETHOrbitBridgerCaller) DEFAULTSUBMISSIONFEEPERCENTINCREASE(opts *bind.CallOpts) (*big.Int, error)

DEFAULTSUBMISSIONFEEPERCENTINCREASE is a free data retrieval call binding the contract method 0x2629955e.

Solidity: function DEFAULT_SUBMISSION_FEE_PERCENT_INCREASE() view returns(uint256)

func (*ETHOrbitBridgerCaller) Router

func (_ETHOrbitBridger *ETHOrbitBridgerCaller) Router(opts *bind.CallOpts) (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*ETHOrbitBridgerCaller) StandardGateway

func (_ETHOrbitBridger *ETHOrbitBridgerCaller) StandardGateway(opts *bind.CallOpts) (common.Address, error)

StandardGateway is a free data retrieval call binding the contract method 0x77775b89.

Solidity: function standardGateway() view returns(address)

func (*ETHOrbitBridgerCaller) Weth

func (_ETHOrbitBridger *ETHOrbitBridgerCaller) Weth(opts *bind.CallOpts) (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

type ETHOrbitBridgerCallerRaw

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

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

func (*ETHOrbitBridgerCallerRaw) Call

func (_ETHOrbitBridger *ETHOrbitBridgerCallerRaw) 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 ETHOrbitBridgerCallerSession

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

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

func (*ETHOrbitBridgerCallerSession) CalculateRetryableSubmissionFee

func (_ETHOrbitBridger *ETHOrbitBridgerCallerSession) CalculateRetryableSubmissionFee(_calldata []byte, _baseFee *big.Int) (*big.Int, error)

CalculateRetryableSubmissionFee is a free data retrieval call binding the contract method 0x8a6189ae.

Solidity: function calculateRetryableSubmissionFee(bytes _calldata, uint256 _baseFee) pure returns(uint256)

func (*ETHOrbitBridgerCallerSession) CustomNativeToken

func (_ETHOrbitBridger *ETHOrbitBridgerCallerSession) CustomNativeToken() (common.Address, error)

CustomNativeToken is a free data retrieval call binding the contract method 0xa65fd600.

Solidity: function customNativeToken() view returns(address)

func (*ETHOrbitBridgerCallerSession) DEFAULTGASLIMIT

func (_ETHOrbitBridger *ETHOrbitBridgerCallerSession) DEFAULTGASLIMIT() (*big.Int, error)

DEFAULTGASLIMIT is a free data retrieval call binding the contract method 0xd6be695a.

Solidity: function DEFAULT_GAS_LIMIT() view returns(uint256)

func (*ETHOrbitBridgerCallerSession) DEFAULTSUBMISSIONFEEPERCENTINCREASE

func (_ETHOrbitBridger *ETHOrbitBridgerCallerSession) DEFAULTSUBMISSIONFEEPERCENTINCREASE() (*big.Int, error)

DEFAULTSUBMISSIONFEEPERCENTINCREASE is a free data retrieval call binding the contract method 0x2629955e.

Solidity: function DEFAULT_SUBMISSION_FEE_PERCENT_INCREASE() view returns(uint256)

func (*ETHOrbitBridgerCallerSession) Router

func (_ETHOrbitBridger *ETHOrbitBridgerCallerSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*ETHOrbitBridgerCallerSession) StandardGateway

func (_ETHOrbitBridger *ETHOrbitBridgerCallerSession) StandardGateway() (common.Address, error)

StandardGateway is a free data retrieval call binding the contract method 0x77775b89.

Solidity: function standardGateway() view returns(address)

func (*ETHOrbitBridgerCallerSession) Weth

func (_ETHOrbitBridger *ETHOrbitBridgerCallerSession) Weth() (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

type ETHOrbitBridgerFilterer

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

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

func NewETHOrbitBridgerFilterer

func NewETHOrbitBridgerFilterer(address common.Address, filterer bind.ContractFilterer) (*ETHOrbitBridgerFilterer, error)

NewETHOrbitBridgerFilterer creates a new log filterer instance of ETHOrbitBridger, bound to a specific deployed contract.

type ETHOrbitBridgerRaw

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

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

func (*ETHOrbitBridgerRaw) Call

func (_ETHOrbitBridger *ETHOrbitBridgerRaw) 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 (*ETHOrbitBridgerRaw) Transact

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

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

func (*ETHOrbitBridgerRaw) Transfer

func (_ETHOrbitBridger *ETHOrbitBridgerRaw) 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 ETHOrbitBridgerSession

type ETHOrbitBridgerSession struct {
	Contract     *ETHOrbitBridger  // 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
}

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

func (*ETHOrbitBridgerSession) Bridge

func (_ETHOrbitBridger *ETHOrbitBridgerSession) Bridge(_receiver common.Address) (*types.Transaction, error)

Bridge is a paid mutator transaction binding the contract method 0x53ca57da.

Solidity: function bridge(address _receiver) payable returns()

func (*ETHOrbitBridgerSession) CalculateRetryableSubmissionFee

func (_ETHOrbitBridger *ETHOrbitBridgerSession) CalculateRetryableSubmissionFee(_calldata []byte, _baseFee *big.Int) (*big.Int, error)

CalculateRetryableSubmissionFee is a free data retrieval call binding the contract method 0x8a6189ae.

Solidity: function calculateRetryableSubmissionFee(bytes _calldata, uint256 _baseFee) pure returns(uint256)

func (*ETHOrbitBridgerSession) CustomNativeToken

func (_ETHOrbitBridger *ETHOrbitBridgerSession) CustomNativeToken() (common.Address, error)

CustomNativeToken is a free data retrieval call binding the contract method 0xa65fd600.

Solidity: function customNativeToken() view returns(address)

func (*ETHOrbitBridgerSession) DEFAULTGASLIMIT

func (_ETHOrbitBridger *ETHOrbitBridgerSession) DEFAULTGASLIMIT() (*big.Int, error)

DEFAULTGASLIMIT is a free data retrieval call binding the contract method 0xd6be695a.

Solidity: function DEFAULT_GAS_LIMIT() view returns(uint256)

func (*ETHOrbitBridgerSession) DEFAULTSUBMISSIONFEEPERCENTINCREASE

func (_ETHOrbitBridger *ETHOrbitBridgerSession) DEFAULTSUBMISSIONFEEPERCENTINCREASE() (*big.Int, error)

DEFAULTSUBMISSIONFEEPERCENTINCREASE is a free data retrieval call binding the contract method 0x2629955e.

Solidity: function DEFAULT_SUBMISSION_FEE_PERCENT_INCREASE() view returns(uint256)

func (*ETHOrbitBridgerSession) Router

func (_ETHOrbitBridger *ETHOrbitBridgerSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*ETHOrbitBridgerSession) StandardGateway

func (_ETHOrbitBridger *ETHOrbitBridgerSession) StandardGateway() (common.Address, error)

StandardGateway is a free data retrieval call binding the contract method 0x77775b89.

Solidity: function standardGateway() view returns(address)

func (*ETHOrbitBridgerSession) Weth

func (_ETHOrbitBridger *ETHOrbitBridgerSession) Weth() (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

type ETHOrbitBridgerTransactor

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

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

func NewETHOrbitBridgerTransactor

func NewETHOrbitBridgerTransactor(address common.Address, transactor bind.ContractTransactor) (*ETHOrbitBridgerTransactor, error)

NewETHOrbitBridgerTransactor creates a new write-only instance of ETHOrbitBridger, bound to a specific deployed contract.

func (*ETHOrbitBridgerTransactor) Bridge

func (_ETHOrbitBridger *ETHOrbitBridgerTransactor) Bridge(opts *bind.TransactOpts, _receiver common.Address) (*types.Transaction, error)

Bridge is a paid mutator transaction binding the contract method 0x53ca57da.

Solidity: function bridge(address _receiver) payable returns()

type ETHOrbitBridgerTransactorRaw

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

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

func (*ETHOrbitBridgerTransactorRaw) Transact

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

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

func (*ETHOrbitBridgerTransactorRaw) Transfer

func (_ETHOrbitBridger *ETHOrbitBridgerTransactorRaw) 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 ETHOrbitBridgerTransactorSession

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

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

func (*ETHOrbitBridgerTransactorSession) Bridge

func (_ETHOrbitBridger *ETHOrbitBridgerTransactorSession) Bridge(_receiver common.Address) (*types.Transaction, error)

Bridge is a paid mutator transaction binding the contract method 0x53ca57da.

Solidity: function bridge(address _receiver) payable returns()

type SafeOperationType

type SafeOperationType uint8

SafeOperationType represents the type of operation for a Safe transaction

const (
	Call         SafeOperationType = 0
	DelegateCall SafeOperationType = 1
)

func (SafeOperationType) String

func (o SafeOperationType) String() string

String returns the string representation of the SafeOperationType

type SafeTransactionData

type SafeTransactionData struct {
	To             string            `json:"to"`
	Value          string            `json:"value"`
	Data           string            `json:"data"`
	Operation      SafeOperationType `json:"operation"`
	SafeTxGas      uint64            `json:"safeTxGas"`
	BaseGas        uint64            `json:"baseGas"`
	GasPrice       string            `json:"gasPrice"`
	GasToken       string            `json:"gasToken"`
	RefundReceiver string            `json:"refundReceiver"`
	Nonce          *big.Int          `json:"nonce"`
	SafeTxHash     string            `json:"safeTxHash"`
	Sender         string            `json:"sender"`
	Signature      string            `json:"signature"`
	Origin         string            `json:"origin"`
}

SafeTransactionData represents the data for a Safe transaction

Jump to

Keyboard shortcuts

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