Documentation
¶
Index ¶
- Constants
- Variables
- func CalculateSafeTxHash(safeAddress common.Address, txData SafeTransactionData, chainID *big.Int) (common.Hash, error)
- func CreateBridgeUsdcCommand() *cobra.Command
- func CreateCalculateRetryableSubmissionFeeCommand() *cobra.Command
- func CreateCustomNativeTokenCommand() *cobra.Command
- func CreateDefaultgaslimitCommand() *cobra.Command
- func CreateDefaultsubmissionfeepercentincreaseCommand() *cobra.Command
- func CreateGatewayCommand() *cobra.Command
- func CreateRouterCommand() *cobra.Command
- func CreateSafeProposal(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, ...) error
- func CreateUSDCOrbitBridgerCommand() *cobra.Command
- func CreateUSDCOrbitBridgerDeploymentCommand() *cobra.Command
- func CreateUsdcCommand() *cobra.Command
- func DeployWithSafe(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, ...) error
- 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 PredictDeploymentAddressSafe(from common.Address, salt [32]byte, deployBytecode []byte) (common.Address, 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 SafeOperationType
- type SafeTransactionData
- type USDCOrbitBridger
- type USDCOrbitBridgerCaller
- func (_USDCOrbitBridger *USDCOrbitBridgerCaller) CalculateRetryableSubmissionFee(opts *bind.CallOpts, _calldata []byte, _baseFee *big.Int) (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCaller) CustomNativeToken(opts *bind.CallOpts) (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCaller) DEFAULTGASLIMIT(opts *bind.CallOpts) (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCaller) DEFAULTSUBMISSIONFEEPERCENTINCREASE(opts *bind.CallOpts) (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCaller) Gateway(opts *bind.CallOpts) (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCaller) Router(opts *bind.CallOpts) (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCaller) Usdc(opts *bind.CallOpts) (common.Address, error)
- type USDCOrbitBridgerCallerRaw
- type USDCOrbitBridgerCallerSession
- func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) CalculateRetryableSubmissionFee(_calldata []byte, _baseFee *big.Int) (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) CustomNativeToken() (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) DEFAULTGASLIMIT() (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) DEFAULTSUBMISSIONFEEPERCENTINCREASE() (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) Gateway() (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) Router() (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) Usdc() (common.Address, error)
- type USDCOrbitBridgerFilterer
- type USDCOrbitBridgerRaw
- func (_USDCOrbitBridger *USDCOrbitBridgerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_USDCOrbitBridger *USDCOrbitBridgerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type USDCOrbitBridgerSession
- func (_USDCOrbitBridger *USDCOrbitBridgerSession) BridgeUSDC(_receiver common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerSession) CalculateRetryableSubmissionFee(_calldata []byte, _baseFee *big.Int) (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerSession) CustomNativeToken() (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerSession) DEFAULTGASLIMIT() (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerSession) DEFAULTSUBMISSIONFEEPERCENTINCREASE() (*big.Int, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerSession) Gateway() (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerSession) Router() (common.Address, error)
- func (_USDCOrbitBridger *USDCOrbitBridgerSession) Usdc() (common.Address, error)
- type USDCOrbitBridgerTransactor
- type USDCOrbitBridgerTransactorRaw
- type USDCOrbitBridgerTransactorSession
Constants ¶
const (
NativeTokenAddress = "0x0000000000000000000000000000000000000000"
)
Variables ¶
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the USDC_ORBIT_BRIDGER_RPC_URL environment variable")
var USDCOrbitBridgerABI = USDCOrbitBridgerMetaData.ABI
USDCOrbitBridgerABI is the input ABI used to generate the binding from. Deprecated: Use USDCOrbitBridgerMetaData.ABI instead.
var USDCOrbitBridgerBin = USDCOrbitBridgerMetaData.Bin
USDCOrbitBridgerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use USDCOrbitBridgerMetaData.Bin instead.
var USDCOrbitBridgerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_gateway\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_router\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_usdc\",\"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\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"bridgeUSDC\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"gateway\",\"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\":\"usdc\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b50604051610b7f380380610b7f83398101604081905261002f9161009e565b600080546001600160a01b039586166001600160a01b03199182161790915560018054948616948216949094179093556003805492851692841692909217909155600280549190931691161790556100f2565b80516001600160a01b038116811461009957600080fd5b919050565b600080600080608085870312156100b457600080fd5b6100bd85610082565b93506100cb60208601610082565b92506100d960408601610082565b91506100e760608601610082565b905092959194509250565b610a7e806101016000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638a6189ae1161005b5780638a6189ae14610123578063a65fd60014610136578063d6be695a14610156578063f887ea401461016057600080fd5b8063116191b61461008d57806313b1a7fe146100d75780632629955e146100ec5780633e413bee14610103575b600080fd5b6000546100ad9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100ea6100e53660046106c5565b610180565b005b6100f561012c81565b6040519081526020016100ce565b6003546100ad9073ffffffffffffffffffffffffffffffffffffffff1681565b6100f56101313660046107ce565b610668565b6002546100ad9073ffffffffffffffffffffffffffffffffffffffff1681565b6100f5620493e081565b6001546100ad9073ffffffffffffffffffffffffffffffffffffffff1681565b6003546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd906064016020604051808303816000875af11580156101fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102219190610850565b506003546000546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810184905291169063095ea7b3906044016020604051808303816000875af115801561029d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c19190610850565b506001546003546040517fa0c76a9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015230602482015284821660448201526064810184905260a06084820152600060a4820181905292919091169063a0c76a969060c401600060405180830381865afa15801561035c573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526103a2919081019061089d565b90504860006103b18383610668565b905060006103c283620493e0610943565b905060006103d0828461095a565b9050600083826040516020016103ff929190918252606060208301819052600090830152604082015260800190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905260025490915073ffffffffffffffffffffffffffffffffffffffff1615610591576002546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd906064016020604051808303816000875af11580156104cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ef9190610850565b506002546000546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810185905291169063095ea7b3906044016020604051808303816000875af115801561056b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058f9190610850565b505b6001546003546040517fd2ce7d6500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283169263d2ce7d65926105f8929116908c908c90620493e0908c90899060040161096d565b6000604051808303816000875af1158015610617573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261065d919081019061089d565b505050505050505050565b600080835160066106799190610943565b6106859061057861095a565b905060006106938483610943565b9050600060646106a561012c8261095a565b6106af9084610943565b6106b99190610a0d565b93505050505b92915050565b600080604083850312156106d857600080fd5b823573ffffffffffffffffffffffffffffffffffffffff811681146106fc57600080fd5b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156107805761078061070a565b604052919050565b600067ffffffffffffffff8211156107a2576107a261070a565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600080604083850312156107e157600080fd5b823567ffffffffffffffff8111156107f857600080fd5b8301601f8101851361080957600080fd5b803561081c61081782610788565b610739565b81815286602083850101111561083157600080fd5b8160208401602083013760006020928201830152969401359450505050565b60006020828403121561086257600080fd5b8151801515811461087257600080fd5b9392505050565b60005b8381101561089457818101518382015260200161087c565b50506000910152565b6000602082840312156108af57600080fd5b815167ffffffffffffffff8111156108c657600080fd5b8201601f810184136108d757600080fd5b80516108e561081782610788565b8181528560208385010111156108fa57600080fd5b61090b826020830160208601610879565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176106bf576106bf610914565b808201808211156106bf576106bf610914565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015284604082015283606082015282608082015260c060a0820152600082518060c08401526109d68160e0850160208701610879565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160e001979650505050505050565b600082610a43577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea264697066735822122013996fc195ef0d427bbc3d0e7bf470d231c79dba9f170f9b73be4b37c0fe720364736f6c634300081c0033",
}
Functions ¶
func CalculateSafeTxHash ¶
func CreateBridgeUsdcCommand ¶
func CreateGatewayCommand ¶
func CreateRouterCommand ¶
func CreateSafeProposal ¶
func CreateUsdcCommand ¶
func DeployWithSafe ¶
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 USDC_ORBIT_BRIDGER_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 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
type USDCOrbitBridger ¶
type USDCOrbitBridger struct { USDCOrbitBridgerCaller // Read-only binding to the contract USDCOrbitBridgerTransactor // Write-only binding to the contract USDCOrbitBridgerFilterer // Log filterer for contract events }
USDCOrbitBridger is an auto generated Go binding around an Ethereum contract.
func DeployUSDCOrbitBridger ¶
func DeployUSDCOrbitBridger(auth *bind.TransactOpts, backend bind.ContractBackend, _gateway common.Address, _router common.Address, _usdc common.Address, _customNativeToken common.Address) (common.Address, *types.Transaction, *USDCOrbitBridger, error)
DeployUSDCOrbitBridger deploys a new Ethereum contract, binding an instance of USDCOrbitBridger to it.
func NewUSDCOrbitBridger ¶
func NewUSDCOrbitBridger(address common.Address, backend bind.ContractBackend) (*USDCOrbitBridger, error)
NewUSDCOrbitBridger creates a new instance of USDCOrbitBridger, bound to a specific deployed contract.
type USDCOrbitBridgerCaller ¶
type USDCOrbitBridgerCaller struct {
// contains filtered or unexported fields
}
USDCOrbitBridgerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewUSDCOrbitBridgerCaller ¶
func NewUSDCOrbitBridgerCaller(address common.Address, caller bind.ContractCaller) (*USDCOrbitBridgerCaller, error)
NewUSDCOrbitBridgerCaller creates a new read-only instance of USDCOrbitBridger, bound to a specific deployed contract.
func (*USDCOrbitBridgerCaller) CalculateRetryableSubmissionFee ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCaller) 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 (*USDCOrbitBridgerCaller) CustomNativeToken ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCaller) 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 (*USDCOrbitBridgerCaller) DEFAULTGASLIMIT ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCaller) 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 (*USDCOrbitBridgerCaller) DEFAULTSUBMISSIONFEEPERCENTINCREASE ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCaller) 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 (*USDCOrbitBridgerCaller) Gateway ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCaller) Gateway(opts *bind.CallOpts) (common.Address, error)
Gateway is a free data retrieval call binding the contract method 0x116191b6.
Solidity: function gateway() view returns(address)
type USDCOrbitBridgerCallerRaw ¶
type USDCOrbitBridgerCallerRaw struct {
Contract *USDCOrbitBridgerCaller // Generic read-only contract binding to access the raw methods on
}
USDCOrbitBridgerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*USDCOrbitBridgerCallerRaw) Call ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCallerRaw) 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 USDCOrbitBridgerCallerSession ¶
type USDCOrbitBridgerCallerSession struct { Contract *USDCOrbitBridgerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
USDCOrbitBridgerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*USDCOrbitBridgerCallerSession) CalculateRetryableSubmissionFee ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) 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 (*USDCOrbitBridgerCallerSession) CustomNativeToken ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) CustomNativeToken() (common.Address, error)
CustomNativeToken is a free data retrieval call binding the contract method 0xa65fd600.
Solidity: function customNativeToken() view returns(address)
func (*USDCOrbitBridgerCallerSession) DEFAULTGASLIMIT ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) 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 (*USDCOrbitBridgerCallerSession) DEFAULTSUBMISSIONFEEPERCENTINCREASE ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) 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 (*USDCOrbitBridgerCallerSession) Gateway ¶
func (_USDCOrbitBridger *USDCOrbitBridgerCallerSession) Gateway() (common.Address, error)
Gateway is a free data retrieval call binding the contract method 0x116191b6.
Solidity: function gateway() view returns(address)
type USDCOrbitBridgerFilterer ¶
type USDCOrbitBridgerFilterer struct {
// contains filtered or unexported fields
}
USDCOrbitBridgerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUSDCOrbitBridgerFilterer ¶
func NewUSDCOrbitBridgerFilterer(address common.Address, filterer bind.ContractFilterer) (*USDCOrbitBridgerFilterer, error)
NewUSDCOrbitBridgerFilterer creates a new log filterer instance of USDCOrbitBridger, bound to a specific deployed contract.
type USDCOrbitBridgerRaw ¶
type USDCOrbitBridgerRaw struct {
Contract *USDCOrbitBridger // Generic contract binding to access the raw methods on
}
USDCOrbitBridgerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*USDCOrbitBridgerRaw) Call ¶
func (_USDCOrbitBridger *USDCOrbitBridgerRaw) 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 (*USDCOrbitBridgerRaw) Transact ¶
func (_USDCOrbitBridger *USDCOrbitBridgerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*USDCOrbitBridgerRaw) Transfer ¶
func (_USDCOrbitBridger *USDCOrbitBridgerRaw) 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 USDCOrbitBridgerSession ¶
type USDCOrbitBridgerSession struct { Contract *USDCOrbitBridger // 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 }
USDCOrbitBridgerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*USDCOrbitBridgerSession) BridgeUSDC ¶
func (_USDCOrbitBridger *USDCOrbitBridgerSession) BridgeUSDC(_receiver common.Address, _amount *big.Int) (*types.Transaction, error)
BridgeUSDC is a paid mutator transaction binding the contract method 0x13b1a7fe.
Solidity: function bridgeUSDC(address _receiver, uint256 _amount) returns()
func (*USDCOrbitBridgerSession) CalculateRetryableSubmissionFee ¶
func (_USDCOrbitBridger *USDCOrbitBridgerSession) 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 (*USDCOrbitBridgerSession) CustomNativeToken ¶
func (_USDCOrbitBridger *USDCOrbitBridgerSession) CustomNativeToken() (common.Address, error)
CustomNativeToken is a free data retrieval call binding the contract method 0xa65fd600.
Solidity: function customNativeToken() view returns(address)
func (*USDCOrbitBridgerSession) DEFAULTGASLIMIT ¶
func (_USDCOrbitBridger *USDCOrbitBridgerSession) 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 (*USDCOrbitBridgerSession) DEFAULTSUBMISSIONFEEPERCENTINCREASE ¶
func (_USDCOrbitBridger *USDCOrbitBridgerSession) 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 (*USDCOrbitBridgerSession) Gateway ¶
func (_USDCOrbitBridger *USDCOrbitBridgerSession) Gateway() (common.Address, error)
Gateway is a free data retrieval call binding the contract method 0x116191b6.
Solidity: function gateway() view returns(address)
type USDCOrbitBridgerTransactor ¶
type USDCOrbitBridgerTransactor struct {
// contains filtered or unexported fields
}
USDCOrbitBridgerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUSDCOrbitBridgerTransactor ¶
func NewUSDCOrbitBridgerTransactor(address common.Address, transactor bind.ContractTransactor) (*USDCOrbitBridgerTransactor, error)
NewUSDCOrbitBridgerTransactor creates a new write-only instance of USDCOrbitBridger, bound to a specific deployed contract.
func (*USDCOrbitBridgerTransactor) BridgeUSDC ¶
func (_USDCOrbitBridger *USDCOrbitBridgerTransactor) BridgeUSDC(opts *bind.TransactOpts, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)
BridgeUSDC is a paid mutator transaction binding the contract method 0x13b1a7fe.
Solidity: function bridgeUSDC(address _receiver, uint256 _amount) returns()
type USDCOrbitBridgerTransactorRaw ¶
type USDCOrbitBridgerTransactorRaw struct {
Contract *USDCOrbitBridgerTransactor // Generic write-only contract binding to access the raw methods on
}
USDCOrbitBridgerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*USDCOrbitBridgerTransactorRaw) Transact ¶
func (_USDCOrbitBridger *USDCOrbitBridgerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*USDCOrbitBridgerTransactorRaw) Transfer ¶
func (_USDCOrbitBridger *USDCOrbitBridgerTransactorRaw) 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 USDCOrbitBridgerTransactorSession ¶
type USDCOrbitBridgerTransactorSession struct { Contract *USDCOrbitBridgerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
USDCOrbitBridgerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*USDCOrbitBridgerTransactorSession) BridgeUSDC ¶
func (_USDCOrbitBridger *USDCOrbitBridgerTransactorSession) BridgeUSDC(_receiver common.Address, _amount *big.Int) (*types.Transaction, error)
BridgeUSDC is a paid mutator transaction binding the contract method 0x13b1a7fe.
Solidity: function bridgeUSDC(address _receiver, uint256 _amount) returns()