Documentation ¶
Overview ¶
Package gasoraclemock provides a mock for the gasoracle package.
Code generated by synapse abigen DO NOT EDIT.
Index ¶
- Variables
- type GasOracleMockRef
- type IGasOracle
- type IGasOracleCaller
- func (_IGasOracle *IGasOracleCaller) ConvertRemoteValueToLocalUnits(opts *bind.CallOpts, remoteChainId uint64, value *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, ...) (*big.Int, error)
- func (_IGasOracle *IGasOracleCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, ...) (*big.Int, error)
- type IGasOracleCallerRaw
- type IGasOracleCallerSession
- func (_IGasOracle *IGasOracleCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId uint64, value *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleCallerSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleCallerSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, 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 uint64, value *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_IGasOracle *IGasOracleSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, 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 uint64, value *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, ...) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, ...) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCaller) GetLocalGasData(opts *bind.CallOpts) ([]byte, error)
- type ISynapseGasOracleCallerRaw
- type ISynapseGasOracleCallerSession
- func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId uint64, value *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, 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 uint64, value *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_ISynapseGasOracle *ISynapseGasOracleSession) GetLocalGasData() ([]byte, error)
- func (_ISynapseGasOracle *ISynapseGasOracleSession) ReceiveRemoteGasData(srcChainId uint64, data []byte) (*types.Transaction, error)
- type ISynapseGasOracleTransactor
- type ISynapseGasOracleTransactorRaw
- type ISynapseGasOracleTransactorSession
- type SynapseGasOracleMock
- type SynapseGasOracleMockCaller
- func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) ConvertRemoteValueToLocalUnits(opts *bind.CallOpts, remoteChainId uint64, value *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, ...) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, ...) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) GetLocalGasData(opts *bind.CallOpts) ([]byte, error)
- type SynapseGasOracleMockCallerRaw
- type SynapseGasOracleMockCallerSession
- func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) ConvertRemoteValueToLocalUnits(remoteChainId uint64, value *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, 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 uint64, value *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) GetLocalGasData() ([]byte, error)
- func (_SynapseGasOracleMock *SynapseGasOracleMockSession) ReceiveRemoteGasData(srcChainId uint64, 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\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"convertRemoteValueToLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"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\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"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{ "40658a74": "convertRemoteValueToLocalUnits(uint64,uint256)", "bf495c88": "estimateTxCostInLocalUnits(uint64,uint256,uint256)", "b376a688": "estimateTxCostInRemoteUnits(uint64,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\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"convertRemoteValueToLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"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\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"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\":\"uint64\",\"name\":\"srcChainId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"receiveRemoteGasData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "40658a74": "convertRemoteValueToLocalUnits(uint64,uint256)", "bf495c88": "estimateTxCostInLocalUnits(uint64,uint256,uint256)", "b376a688": "estimateTxCostInRemoteUnits(uint64,uint256,uint256)", "6f928aa7": "getLocalGasData()", "83389de7": "receiveRemoteGasData(uint64,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\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"convertRemoteValueToLocalUnits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"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\":\"uint64\",\"name\":\"remoteChainId\",\"type\":\"uint64\"},{\"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\":\"uint64\",\"name\":\"srcChainId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"receiveRemoteGasData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "40658a74": "convertRemoteValueToLocalUnits(uint64,uint256)", "bf495c88": "estimateTxCostInLocalUnits(uint64,uint256,uint256)", "b376a688": "estimateTxCostInRemoteUnits(uint64,uint256,uint256)", "6f928aa7": "getLocalGasData()", "83389de7": "receiveRemoteGasData(uint64,bytes)", }, Bin: "0x608060405234801561001057600080fd5b5061026f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c806383389de71161005057806383389de7146100a4578063b376a688146100b9578063bf495c88146100b957600080fd5b806340658a741461006c5780636f928aa714610095575b600080fd5b61008261007a3660046100ed565b600092915050565b6040519081526020015b60405180910390f35b606060405161008c9190610117565b6100b76100b2366004610183565b505050565b005b6100826100c7366004610206565b60009392505050565b803567ffffffffffffffff811681146100e857600080fd5b919050565b6000806040838503121561010057600080fd5b610109836100d0565b946020939093013593505050565b600060208083528351808285015260005b8181101561014457858101830151858201604001528201610128565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b60008060006040848603121561019857600080fd5b6101a1846100d0565b9250602084013567ffffffffffffffff808211156101be57600080fd5b818601915086601f8301126101d257600080fd5b8135818111156101e157600080fd5b8760208285010111156101f357600080fd5b6020830194508093505050509250925092565b60008060006060848603121561021b57600080fd5b610224846100d0565b9560208501359550604090940135939250505056fea264697066735822122031dbc394294ddb7ff922e1d852851eb8e27e036421dc325a5b4816f7eb19972c64736f6c63430008140033", }
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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*IGasOracleCaller) EstimateTxCostInLocalUnits ¶
func (_IGasOracle *IGasOracleCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*IGasOracleCaller) EstimateTxCostInRemoteUnits ¶
func (_IGasOracle *IGasOracleCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*IGasOracleCallerSession) EstimateTxCostInLocalUnits ¶
func (_IGasOracle *IGasOracleCallerSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*IGasOracleCallerSession) EstimateTxCostInRemoteUnits ¶
func (_IGasOracle *IGasOracleCallerSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*IGasOracleSession) EstimateTxCostInLocalUnits ¶
func (_IGasOracle *IGasOracleSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*IGasOracleSession) EstimateTxCostInRemoteUnits ¶
func (_IGasOracle *IGasOracleSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*ISynapseGasOracleCaller) EstimateTxCostInLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleCaller) EstimateTxCostInRemoteUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*ISynapseGasOracleCallerSession) EstimateTxCostInLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleCallerSession) EstimateTxCostInRemoteUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleCallerSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*ISynapseGasOracleSession) EstimateTxCostInLocalUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*ISynapseGasOracleSession) EstimateTxCostInRemoteUnits ¶
func (_ISynapseGasOracle *ISynapseGasOracleSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x83389de7.
Solidity: function receiveRemoteGasData(uint64 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 uint64, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x83389de7.
Solidity: function receiveRemoteGasData(uint64 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 uint64, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x83389de7.
Solidity: function receiveRemoteGasData(uint64 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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*SynapseGasOracleMockCaller) EstimateTxCostInLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) EstimateTxCostInLocalUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockCaller) EstimateTxCostInRemoteUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCaller) EstimateTxCostInRemoteUnits(opts *bind.CallOpts, remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*SynapseGasOracleMockCallerSession) EstimateTxCostInLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockCallerSession) EstimateTxCostInRemoteUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockCallerSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, value *big.Int) (*big.Int, error)
ConvertRemoteValueToLocalUnits is a free data retrieval call binding the contract method 0x40658a74.
Solidity: function convertRemoteValueToLocalUnits(uint64 remoteChainId, uint256 value) view returns(uint256)
func (*SynapseGasOracleMockSession) EstimateTxCostInLocalUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockSession) EstimateTxCostInLocalUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInLocalUnits is a free data retrieval call binding the contract method 0xbf495c88.
Solidity: function estimateTxCostInLocalUnits(uint64 remoteChainId, uint256 gasLimit, uint256 calldataSize) view returns(uint256)
func (*SynapseGasOracleMockSession) EstimateTxCostInRemoteUnits ¶
func (_SynapseGasOracleMock *SynapseGasOracleMockSession) EstimateTxCostInRemoteUnits(remoteChainId uint64, gasLimit *big.Int, calldataSize *big.Int) (*big.Int, error)
EstimateTxCostInRemoteUnits is a free data retrieval call binding the contract method 0xb376a688.
Solidity: function estimateTxCostInRemoteUnits(uint64 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 uint64, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x83389de7.
Solidity: function receiveRemoteGasData(uint64 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 uint64, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x83389de7.
Solidity: function receiveRemoteGasData(uint64 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 uint64, data []byte) (*types.Transaction, error)
ReceiveRemoteGasData is a paid mutator transaction binding the contract method 0x83389de7.
Solidity: function receiveRemoteGasData(uint64 srcChainId, bytes data) returns()