Documentation ¶
Overview ¶
Code generated by synapse abigen DO NOT EDIT.
Package gasoraclemock is a the mock contract for the gas oracle.
Index ¶
- Variables
- type GasOracleMockRef
- type IGasOracle
- type IGasOracleCaller
- func (_IGasOracle *IGasOracleCaller) ConvertRemoteValueToLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, ...) (*big.Int, error)
- func (_IGasOracle *IGasOracleCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, ...) (*big.Int, error)
- type IGasOracleCallerRaw
- type IGasOracleCallerSession
- func (_IGasOracle *IGasOracleCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleCallerSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleCallerSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- type IGasOracleFilterer
- type IGasOracleRaw
- func (_IGasOracle *IGasOracleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IGasOracle *IGasOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IGasOracle *IGasOracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IGasOracleSession
- func (_IGasOracle *IGasOracleSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- type IGasOracleTransactor
- type IGasOracleTransactorRaw
- type IGasOracleTransactorSession
- type ISynapseGasOracle
- type ISynapseGasOracleCaller
- func (_ISynapseGasOracle *ISynapseGasOracleCaller) ConvertRemoteValueToLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, ...) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, ...) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCaller) GetLocalGasData(opts *bind.CallOpts) ([]byte, error)
- type ISynapseGasOracleCallerRaw
- type ISynapseGasOracleCallerSession
- func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) GetLocalGasData() ([]byte, error)
- type ISynapseGasOracleFilterer
- type ISynapseGasOracleRaw
- func (_ISynapseGasOracle *ISynapseGasOracleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ISynapseGasOracle *ISynapseGasOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ISynapseGasOracle *ISynapseGasOracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ISynapseGasOracleSession
- func (_ISynapseGasOracle *ISynapseGasOracleSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleSession) GetLocalGasData() ([]byte, error)
- func (_ISynapseGasOracle *ISynapseGasOracleSession) ReceiveRemoteGasData(srcChainId *big.Int, data []byte) (*types.Transaction, error)
- type ISynapseGasOracleTransactor
- type ISynapseGasOracleTransactorRaw
- type ISynapseGasOracleTransactorSession
- type SynapseGasOracleMock
- type SynapseGasOracleMockCaller
- func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) ConvertRemoteValueToLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, ...) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, ...) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) GetLocalGasData(opts *bind.CallOpts) ([]byte, error)
- type SynapseGasOracleMockCallerRaw
- type SynapseGasOracleMockCallerSession
- func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) GetLocalGasData() ([]byte, error)
- type SynapseGasOracleMockFilterer
- type SynapseGasOracleMockRaw
- func (_SynapseGasOracleMock *SynapseGasOracleMockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_SynapseGasOracleMock *SynapseGasOracleMockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SynapseGasOracleMockSession
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) GetLocalGasData() ([]byte, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) ReceiveRemoteGasData(srcChainId *big.Int, data []byte) (*types.Transaction, error)
- type SynapseGasOracleMockTransactor
- type SynapseGasOracleMockTransactorRaw
- type SynapseGasOracleMockTransactorSession
Constants ¶
This section is empty.
Variables ¶
var Contracts map[string]*compiler.Contract
Contracts are unmarshalled on start
var IGasOracleABI = IGasOracleMetaData.ABI
IGasOracleABI is the input ABI used to generate the binding from. Deprecated: Use IGasOracleMetaData.ABI instead.
var IGasOracleFuncSigs = IGasOracleMetaData.Sigs
Deprecated: Use IGasOracleMetaData.Sigs instead. IGasOracleFuncSigs maps the 4-byte function signature to its string representation.
var IGasOracleMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"convertRemoteValueToLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"calldataSize\",\"type\":\"uint256\"}],\"name\":\"estimateTxCostInLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"calldataSize\",\"type\":\"uint256\"}],\"name\":\"estimateTxCostInRemoteUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", Sigs: map[string]string{ "1e7b9287": "convertRemoteValueToLocalUnits(uint256,uint256)", "5cbd3c48": "estimateTxCostInLocalUnits(uint256,uint256,uint256)", "fd6a7167": "estimateTxCostInRemoteUnits(uint256,uint256,uint256)", }, }
IGasOracleMetaData contains all meta data concerning the IGasOracle contract.
var ISynapseGasOracleABI = ISynapseGasOracleMetaData.ABI
ISynapseGasOracleABI is the input ABI used to generate the binding from. Deprecated: Use ISynapseGasOracleMetaData.ABI instead.
var ISynapseGasOracleFuncSigs = ISynapseGasOracleMetaData.Sigs
Deprecated: Use ISynapseGasOracleMetaData.Sigs instead. ISynapseGasOracleFuncSigs maps the 4-byte function signature to its string representation.
var ISynapseGasOracleMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"convertRemoteValueToLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"calldataSize\",\"type\":\"uint256\"}],\"name\":\"estimateTxCostInLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"calldataSize\",\"type\":\"uint256\"}],\"name\":\"estimateTxCostInRemoteUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLocalGasData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"receiveRemoteGasData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "1e7b9287": "convertRemoteValueToLocalUnits(uint256,uint256)", "5cbd3c48": "estimateTxCostInLocalUnits(uint256,uint256,uint256)", "fd6a7167": "estimateTxCostInRemoteUnits(uint256,uint256,uint256)", "6f928aa7": "getLocalGasData()", "52999769": "receiveRemoteGasData(uint256,bytes)", }, }
ISynapseGasOracleMetaData contains all meta data concerning the ISynapseGasOracle contract.
var SynapseGasOracleMockABI = SynapseGasOracleMockMetaData.ABI
SynapseGasOracleMockABI is the input ABI used to generate the binding from. Deprecated: Use SynapseGasOracleMockMetaData.ABI instead.
var SynapseGasOracleMockBin = SynapseGasOracleMockMetaData.Bin
SynapseGasOracleMockBin is the compiled bytecode used for deploying new contracts. Deprecated: Use SynapseGasOracleMockMetaData.Bin instead.
var SynapseGasOracleMockFuncSigs = SynapseGasOracleMockMetaData.Sigs
Deprecated: Use SynapseGasOracleMockMetaData.Sigs instead. SynapseGasOracleMockFuncSigs maps the 4-byte function signature to its string representation.
var SynapseGasOracleMockMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"convertRemoteValueToLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"calldataSize\",\"type\":\"uint256\"}],\"name\":\"estimateTxCostInLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remoteChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"calldataSize\",\"type\":\"uint256\"}],\"name\":\"estimateTxCostInRemoteUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLocalGasData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"receiveRemoteGasData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "1e7b9287": "convertRemoteValueToLocalUnits(uint256,uint256)", "5cbd3c48": "estimateTxCostInLocalUnits(uint256,uint256,uint256)", "fd6a7167": "estimateTxCostInRemoteUnits(uint256,uint256,uint256)", "6f928aa7": "getLocalGasData()", "52999769": "receiveRemoteGasData(uint256,bytes)", }, Bin: "0x608060405234801561001057600080fd5b5061023c806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80635cbd3c48116100505780635cbd3c48146100aa5780636f928aa7146100c1578063fd6a7167146100aa57600080fd5b80631e7b92871461006c5780635299976914610095575b600080fd5b61008261007a3660046100d0565b600092915050565b6040519081526020015b60405180910390f35b6100a86100a33660046100f2565b505050565b005b6100826100b836600461016e565b60009392505050565b606060405161008c919061019a565b600080604083850312156100e357600080fd5b50508035926020909101359150565b60008060006040848603121561010757600080fd5b83359250602084013567ffffffffffffffff8082111561012657600080fd5b818601915086601f83011261013a57600080fd5b81358181111561014957600080fd5b87602082850101111561015b57600080fd5b6020830194508093505050509250925092565b60008060006060848603121561018357600080fd5b505081359360208301359350604090920135919050565b600060208083528351808285015260005b818110156101c7578581018301518582016040015282016101ab565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116850101925050509291505056fea2646970667358221220d0742c36df6fecd55d915db5a74284b7d2ee878243149ac6f336ff23e84177c864736f6c63430008140033", }
SynapseGasOracleMockMetaData contains all meta data concerning the SynapseGasOracleMock contract.
Functions ¶
This section is empty.
Types ¶
type GasOracleMockRef ¶
type GasOracleMockRef struct { *SynapseGasOracleMock // contains filtered or unexported fields }
GasOracleMockRef is a reference to a Gasoraclemock. nolint: golint
func NewGasOracleMockRef ¶
func NewGasOracleMockRef(address common.Address, backend bind.ContractBackend) (*GasOracleMockRef, error)
NewGasOracleMockRef creates a new Gasoraclemock with a contract ref.
func (*GasOracleMockRef) Address ¶
func (s *GasOracleMockRef) Address() common.Address
Address is the contract address.
type IGasOracle ¶
type IGasOracle struct { IGasOracleCaller // Read-only binding to the contract IGasOracleTransactor // Write-only binding to the contract IGasOracleFilterer // Log filterer for contract events }
IGasOracle is an auto generated Go binding around an Ethereum contract.
func NewIGasOracle ¶
func NewIGasOracle(address common.Address, backend bind.ContractBackend) (*IGasOracle, error)
NewIGasOracle creates a new instance of IGasOracle, bound to a specific deployed contract.
type IGasOracleCaller ¶
type IGasOracleCaller struct {
// contains filtered or unexported fields
}
IGasOracleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIGasOracleCaller ¶
func NewIGasOracleCaller(address common.Address, caller bind.ContractCaller) (*IGasOracleCaller, error)
NewIGasOracleCaller creates a new read-only instance of IGasOracle, bound to a specific deployed contract.
func (*IGasOracleCaller) ConvertRemoteValueToLocalUnits ¶
func (_IGasOracle *IGasOracleCaller) ConvertRemoteValueToLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*IGasOracleCaller) EstimateTxCostInLocalUnits ¶
func (_IGasOracle *IGasOracleCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*IGasOracleCaller) EstimateTxCostInRemoteUnits ¶
func (_IGasOracle *IGasOracleCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
type IGasOracleCallerRaw ¶
type IGasOracleCallerRaw struct {
Contract *IGasOracleCaller // Generic read-only contract binding to access the raw methods on
}
IGasOracleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IGasOracleCallerRaw) Call ¶
func (_IGasOracle *IGasOracleCallerRaw) 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 IGasOracleCallerSession ¶
type IGasOracleCallerSession struct { Contract *IGasOracleCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IGasOracleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IGasOracleCallerSession) ConvertRemoteValueToLocalUnits ¶
func (_IGasOracle *IGasOracleCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*IGasOracleCallerSession) EstimateTxCostInLocalUnits ¶
func (_IGasOracle *IGasOracleCallerSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*IGasOracleCallerSession) EstimateTxCostInRemoteUnits ¶
func (_IGasOracle *IGasOracleCallerSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
type IGasOracleFilterer ¶
type IGasOracleFilterer struct {
// contains filtered or unexported fields
}
IGasOracleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIGasOracleFilterer ¶
func NewIGasOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*IGasOracleFilterer, error)
NewIGasOracleFilterer creates a new log filterer instance of IGasOracle, bound to a specific deployed contract.
type IGasOracleRaw ¶
type IGasOracleRaw struct {
Contract *IGasOracle // Generic contract binding to access the raw methods on
}
IGasOracleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IGasOracleRaw) Call ¶
func (_IGasOracle *IGasOracleRaw) 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 (*IGasOracleRaw) Transact ¶
func (_IGasOracle *IGasOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IGasOracleRaw) Transfer ¶
func (_IGasOracle *IGasOracleRaw) 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 IGasOracleSession ¶
type IGasOracleSession struct { Contract *IGasOracle // 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 }
IGasOracleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IGasOracleSession) ConvertRemoteValueToLocalUnits ¶
func (_IGasOracle *IGasOracleSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*IGasOracleSession) EstimateTxCostInLocalUnits ¶
func (_IGasOracle *IGasOracleSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*IGasOracleSession) EstimateTxCostInRemoteUnits ¶
func (_IGasOracle *IGasOracleSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
type IGasOracleTransactor ¶
type IGasOracleTransactor struct {
// contains filtered or unexported fields
}
IGasOracleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIGasOracleTransactor ¶
func NewIGasOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*IGasOracleTransactor, error)
NewIGasOracleTransactor creates a new write-only instance of IGasOracle, bound to a specific deployed contract.
type IGasOracleTransactorRaw ¶
type IGasOracleTransactorRaw struct {
Contract *IGasOracleTransactor // Generic write-only contract binding to access the raw methods on
}
IGasOracleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IGasOracleTransactorRaw) Transact ¶
func (_IGasOracle *IGasOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IGasOracleTransactorRaw) Transfer ¶
func (_IGasOracle *IGasOracleTransactorRaw) 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 IGasOracleTransactorSession ¶
type IGasOracleTransactorSession struct { Contract *IGasOracleTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IGasOracleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type ISynapseGasOracle ¶
type ISynapseGasOracle struct { ISynapseGasOracleCaller // Read-only binding to the contract ISynapseGasOracleTransactor // Write-only binding to the contract ISynapseGasOracleFilterer // Log filterer for contract events }
ISynapseGasOracle is an auto generated Go binding around an Ethereum contract.
func NewISynapseGasOracle ¶
func NewISynapseGasOracle(address common.Address, backend bind.ContractBackend) (*ISynapseGasOracle, error)
NewISynapseGasOracle creates a new instance of ISynapseGasOracle, bound to a specific deployed contract.
type ISynapseGasOracleCaller ¶
type ISynapseGasOracleCaller struct {
// contains filtered or unexported fields
}
ISynapseGasOracleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewISynapseGasOracleCaller ¶
func NewISynapseGasOracleCaller(address common.Address, caller bind.ContractCaller) (*ISynapseGasOracleCaller, error)
NewISynapseGasOracleCaller creates a new read-only instance of ISynapseGasOracle, bound to a specific deployed contract.
func (*ISynapseGasOracleCaller) ConvertRemoteValueToLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCaller) ConvertRemoteValueToLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*ISynapseGasOracleCaller) EstimateTxCostInLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleCaller) EstimateTxCostInRemoteUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleCaller) GetLocalGasData ¶
func (_ISynapseGasOracle *ISynapseGasOracleCaller) GetLocalGasData(opts *bind.CallOpts) ([]byte, error)
GetLocalGasData is a free data retrieval call binding the contract method 0x6f928aa7.
Solidity: function getLocalGasData() view returns(bytes)
type ISynapseGasOracleCallerRaw ¶
type ISynapseGasOracleCallerRaw struct {
Contract *ISynapseGasOracleCaller // Generic read-only contract binding to access the raw methods on
}
ISynapseGasOracleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ISynapseGasOracleCallerRaw) Call ¶
func (_ISynapseGasOracle *ISynapseGasOracleCallerRaw) 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 ISynapseGasOracleCallerSession ¶
type ISynapseGasOracleCallerSession struct { Contract *ISynapseGasOracleCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ISynapseGasOracleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ISynapseGasOracleCallerSession) ConvertRemoteValueToLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*ISynapseGasOracleCallerSession) EstimateTxCostInLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleCallerSession) EstimateTxCostInRemoteUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleCallerSession) GetLocalGasData ¶
func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) GetLocalGasData() ([]byte, error)
GetLocalGasData is a free data retrieval call binding the contract method 0x6f928aa7.
Solidity: function getLocalGasData() view returns(bytes)
type ISynapseGasOracleFilterer ¶
type ISynapseGasOracleFilterer struct {
// contains filtered or unexported fields
}
ISynapseGasOracleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewISynapseGasOracleFilterer ¶
func NewISynapseGasOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*ISynapseGasOracleFilterer, error)
NewISynapseGasOracleFilterer creates a new log filterer instance of ISynapseGasOracle, bound to a specific deployed contract.
type ISynapseGasOracleRaw ¶
type ISynapseGasOracleRaw struct {
Contract *ISynapseGasOracle // Generic contract binding to access the raw methods on
}
ISynapseGasOracleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ISynapseGasOracleRaw) Call ¶
func (_ISynapseGasOracle *ISynapseGasOracleRaw) 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 (*ISynapseGasOracleRaw) Transact ¶
func (_ISynapseGasOracle *ISynapseGasOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISynapseGasOracleRaw) Transfer ¶
func (_ISynapseGasOracle *ISynapseGasOracleRaw) 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 ISynapseGasOracleSession ¶
type ISynapseGasOracleSession struct { Contract *ISynapseGasOracle // 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 }
ISynapseGasOracleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ISynapseGasOracleSession) ConvertRemoteValueToLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*ISynapseGasOracleSession) EstimateTxCostInLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleSession) EstimateTxCostInRemoteUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleSession) GetLocalGasData ¶
func (_ISynapseGasOracle *ISynapseGasOracleSession) GetLocalGasData() ([]byte, error)
GetLocalGasData is a free data retrieval call binding the contract method 0x6f928aa7.
Solidity: function getLocalGasData() view returns(bytes)
func (*ISynapseGasOracleSession) ReceiveRemoteGasData ¶
func (_ISynapseGasOracle *ISynapseGasOracleSession) ReceiveRemoteGasData(srcChainId *big.Int, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x52999769.
Solidity: function receiveRemoteGasData(uint256 srcChainId, bytes data) returns()
type ISynapseGasOracleTransactor ¶
type ISynapseGasOracleTransactor struct {
// contains filtered or unexported fields
}
ISynapseGasOracleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewISynapseGasOracleTransactor ¶
func NewISynapseGasOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*ISynapseGasOracleTransactor, error)
NewISynapseGasOracleTransactor creates a new write-only instance of ISynapseGasOracle, bound to a specific deployed contract.
func (*ISynapseGasOracleTransactor) ReceiveRemoteGasData ¶
func (_ISynapseGasOracle *ISynapseGasOracleTransactor) ReceiveRemoteGasData(opts *bind.TransactOpts, srcChainId *big.Int, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x52999769.
Solidity: function receiveRemoteGasData(uint256 srcChainId, bytes data) returns()
type ISynapseGasOracleTransactorRaw ¶
type ISynapseGasOracleTransactorRaw struct {
Contract *ISynapseGasOracleTransactor // Generic write-only contract binding to access the raw methods on
}
ISynapseGasOracleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ISynapseGasOracleTransactorRaw) Transact ¶
func (_ISynapseGasOracle *ISynapseGasOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISynapseGasOracleTransactorRaw) Transfer ¶
func (_ISynapseGasOracle *ISynapseGasOracleTransactorRaw) 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 ISynapseGasOracleTransactorSession ¶
type ISynapseGasOracleTransactorSession struct { Contract *ISynapseGasOracleTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ISynapseGasOracleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ISynapseGasOracleTransactorSession) ReceiveRemoteGasData ¶
func (_ISynapseGasOracle *ISynapseGasOracleTransactorSession) ReceiveRemoteGasData(srcChainId *big.Int, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x52999769.
Solidity: function receiveRemoteGasData(uint256 srcChainId, bytes data) returns()
type SynapseGasOracleMock ¶
type SynapseGasOracleMock struct { SynapseGasOracleMockCaller // Read-only binding to the contract SynapseGasOracleMockTransactor // Write-only binding to the contract SynapseGasOracleMockFilterer // Log filterer for contract events }
SynapseGasOracleMock is an auto generated Go binding around an Ethereum contract.
func DeploySynapseGasOracleMock ¶
func DeploySynapseGasOracleMock(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SynapseGasOracleMock, error)
DeploySynapseGasOracleMock deploys a new Ethereum contract, binding an instance of SynapseGasOracleMock to it.
func NewSynapseGasOracleMock ¶
func NewSynapseGasOracleMock(address common.Address, backend bind.ContractBackend) (*SynapseGasOracleMock, error)
NewSynapseGasOracleMock creates a new instance of SynapseGasOracleMock, bound to a specific deployed contract.
type SynapseGasOracleMockCaller ¶
type SynapseGasOracleMockCaller struct {
// contains filtered or unexported fields
}
SynapseGasOracleMockCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSynapseGasOracleMockCaller ¶
func NewSynapseGasOracleMockCaller(address common.Address, caller bind.ContractCaller) (*SynapseGasOracleMockCaller, error)
NewSynapseGasOracleMockCaller creates a new read-only instance of SynapseGasOracleMock, bound to a specific deployed contract.
func (*SynapseGasOracleMockCaller) ConvertRemoteValueToLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) ConvertRemoteValueToLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*SynapseGasOracleMockCaller) EstimateTxCostInLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockCaller) EstimateTxCostInRemoteUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockCaller) GetLocalGasData ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) GetLocalGasData(opts *bind.CallOpts) ([]byte, error)
GetLocalGasData is a free data retrieval call binding the contract method 0x6f928aa7.
Solidity: function getLocalGasData() view returns(bytes)
type SynapseGasOracleMockCallerRaw ¶
type SynapseGasOracleMockCallerRaw struct {
Contract *SynapseGasOracleMockCaller // Generic read-only contract binding to access the raw methods on
}
SynapseGasOracleMockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SynapseGasOracleMockCallerRaw) Call ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCallerRaw) 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 SynapseGasOracleMockCallerSession ¶
type SynapseGasOracleMockCallerSession struct { Contract *SynapseGasOracleMockCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SynapseGasOracleMockCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SynapseGasOracleMockCallerSession) ConvertRemoteValueToLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*SynapseGasOracleMockCallerSession) EstimateTxCostInLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockCallerSession) EstimateTxCostInRemoteUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockCallerSession) GetLocalGasData ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) GetLocalGasData() ([]byte, error)
GetLocalGasData is a free data retrieval call binding the contract method 0x6f928aa7.
Solidity: function getLocalGasData() view returns(bytes)
type SynapseGasOracleMockFilterer ¶
type SynapseGasOracleMockFilterer struct {
// contains filtered or unexported fields
}
SynapseGasOracleMockFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSynapseGasOracleMockFilterer ¶
func NewSynapseGasOracleMockFilterer(address common.Address, filterer bind.ContractFilterer) (*SynapseGasOracleMockFilterer, error)
NewSynapseGasOracleMockFilterer creates a new log filterer instance of SynapseGasOracleMock, bound to a specific deployed contract.
type SynapseGasOracleMockRaw ¶
type SynapseGasOracleMockRaw struct {
Contract *SynapseGasOracleMock // Generic contract binding to access the raw methods on
}
SynapseGasOracleMockRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SynapseGasOracleMockRaw) Call ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockRaw) 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 (*SynapseGasOracleMockRaw) Transact ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SynapseGasOracleMockRaw) Transfer ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockRaw) 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 SynapseGasOracleMockSession ¶
type SynapseGasOracleMockSession struct { Contract *SynapseGasOracleMock // 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 }
SynapseGasOracleMockSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SynapseGasOracleMockSession) ConvertRemoteValueToLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockSession) ConvertRemoteValueToLocalUnits(remoteChainId *big.Int, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x1e7b9287.
Solidity: function convertRemoteValueToLocalUnits(uint256 remoteChainId, uint256 value) view returns(uint256)
func (*SynapseGasOracleMockSession) EstimateTxCostInLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockSession) EstimateTxCostInLocalUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0x5cbd3c48.
Solidity: function estimateTxCostInLocalUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockSession) EstimateTxCostInRemoteUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockSession) EstimateTxCostInRemoteUnits(remoteChainId *big.Int, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xfd6a7167.
Solidity: function estimateTxCostInRemoteUnits(uint256 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockSession) GetLocalGasData ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockSession) GetLocalGasData() ([]byte, error)
GetLocalGasData is a free data retrieval call binding the contract method 0x6f928aa7.
Solidity: function getLocalGasData() view returns(bytes)
func (*SynapseGasOracleMockSession) ReceiveRemoteGasData ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockSession) ReceiveRemoteGasData(srcChainId *big.Int, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x52999769.
Solidity: function receiveRemoteGasData(uint256 srcChainId, bytes data) returns()
type SynapseGasOracleMockTransactor ¶
type SynapseGasOracleMockTransactor struct {
// contains filtered or unexported fields
}
SynapseGasOracleMockTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSynapseGasOracleMockTransactor ¶
func NewSynapseGasOracleMockTransactor(address common.Address, transactor bind.ContractTransactor) (*SynapseGasOracleMockTransactor, error)
NewSynapseGasOracleMockTransactor creates a new write-only instance of SynapseGasOracleMock, bound to a specific deployed contract.
func (*SynapseGasOracleMockTransactor) ReceiveRemoteGasData ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockTransactor) ReceiveRemoteGasData(opts *bind.TransactOpts, srcChainId *big.Int, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x52999769.
Solidity: function receiveRemoteGasData(uint256 srcChainId, bytes data) returns()
type SynapseGasOracleMockTransactorRaw ¶
type SynapseGasOracleMockTransactorRaw struct {
Contract *SynapseGasOracleMockTransactor // Generic write-only contract binding to access the raw methods on
}
SynapseGasOracleMockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SynapseGasOracleMockTransactorRaw) Transact ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SynapseGasOracleMockTransactorRaw) Transfer ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockTransactorRaw) 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 SynapseGasOracleMockTransactorSession ¶
type SynapseGasOracleMockTransactorSession struct { Contract *SynapseGasOracleMockTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SynapseGasOracleMockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SynapseGasOracleMockTransactorSession) ReceiveRemoteGasData ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockTransactorSession) ReceiveRemoteGasData(srcChainId *big.Int, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x52999769.
Solidity: function receiveRemoteGasData(uint256 srcChainId, bytes data) returns()