Documentation ¶
Index ¶
- Variables
- type Erc7412
- type Erc7412Caller
- func (_Erc7412 *Erc7412Caller) GetBenchmarkPrice(opts *bind.CallOpts, priceId [32]byte, requestedTime uint64) (*big.Int, error)
- func (_Erc7412 *Erc7412Caller) GetLatestPrice(opts *bind.CallOpts, priceId [32]byte, stalenessTolerance *big.Int) (*big.Int, error)
- func (_Erc7412 *Erc7412Caller) OracleId(opts *bind.CallOpts) ([32]byte, error)
- func (_Erc7412 *Erc7412Caller) PythAddress(opts *bind.CallOpts) (common.Address, error)
- type Erc7412CallerRaw
- type Erc7412CallerSession
- func (_Erc7412 *Erc7412CallerSession) GetBenchmarkPrice(priceId [32]byte, requestedTime uint64) (*big.Int, error)
- func (_Erc7412 *Erc7412CallerSession) GetLatestPrice(priceId [32]byte, stalenessTolerance *big.Int) (*big.Int, error)
- func (_Erc7412 *Erc7412CallerSession) OracleId() ([32]byte, error)
- func (_Erc7412 *Erc7412CallerSession) PythAddress() (common.Address, error)
- type Erc7412Filterer
- type Erc7412Raw
- func (_Erc7412 *Erc7412Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Erc7412 *Erc7412Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Erc7412 *Erc7412Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Erc7412Session
- func (_Erc7412 *Erc7412Session) Fallback(calldata []byte) (*types.Transaction, error)
- func (_Erc7412 *Erc7412Session) FulfillOracleQuery(signedOffchainData []byte) (*types.Transaction, error)
- func (_Erc7412 *Erc7412Session) GetBenchmarkPrice(priceId [32]byte, requestedTime uint64) (*big.Int, error)
- func (_Erc7412 *Erc7412Session) GetLatestPrice(priceId [32]byte, stalenessTolerance *big.Int) (*big.Int, error)
- func (_Erc7412 *Erc7412Session) OracleId() ([32]byte, error)
- func (_Erc7412 *Erc7412Session) PythAddress() (common.Address, error)
- func (_Erc7412 *Erc7412Session) Receive() (*types.Transaction, error)
- type Erc7412Transactor
- func (_Erc7412 *Erc7412Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
- func (_Erc7412 *Erc7412Transactor) FulfillOracleQuery(opts *bind.TransactOpts, signedOffchainData []byte) (*types.Transaction, error)
- func (_Erc7412 *Erc7412Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- type Erc7412TransactorRaw
- type Erc7412TransactorSession
Constants ¶
This section is empty.
Variables ¶
var Erc7412ABI = Erc7412MetaData.ABI
Erc7412ABI is the input ABI used to generate the binding from. Deprecated: Use Erc7412MetaData.ABI instead.
var Erc7412MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_pythAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"FeeRequired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"updateType\",\"type\":\"uint8\"}],\"name\":\"NotSupported\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"oracleQuery\",\"type\":\"bytes\"}],\"name\":\"OracleDataRequired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signedOffchainData\",\"type\":\"bytes\"}],\"name\":\"fulfillOracleQuery\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"priceId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"requestedTime\",\"type\":\"uint64\"}],\"name\":\"getBenchmarkPrice\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"priceId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stalenessTolerance\",\"type\":\"uint256\"}],\"name\":\"getLatestPrice\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oracleId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pythAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
Erc7412MetaData contains all meta data concerning the Erc7412 contract.
Functions ¶
This section is empty.
Types ¶
type Erc7412 ¶
type Erc7412 struct { Erc7412Caller // Read-only binding to the contract Erc7412Transactor // Write-only binding to the contract Erc7412Filterer // Log filterer for contract events }
Erc7412 is an auto generated Go binding around an Ethereum contract.
func NewErc7412 ¶
NewErc7412 creates a new instance of Erc7412, bound to a specific deployed contract.
type Erc7412Caller ¶
type Erc7412Caller struct {
// contains filtered or unexported fields
}
Erc7412Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewErc7412Caller ¶
func NewErc7412Caller(address common.Address, caller bind.ContractCaller) (*Erc7412Caller, error)
NewErc7412Caller creates a new read-only instance of Erc7412, bound to a specific deployed contract.
func (*Erc7412Caller) GetBenchmarkPrice ¶ added in v0.1.28
func (_Erc7412 *Erc7412Caller) GetBenchmarkPrice(opts *bind.CallOpts, priceId [32]byte, requestedTime uint64) (*big.Int, error)
GetBenchmarkPrice is a free data retrieval call binding the contract method 0x8f93ca56.
Solidity: function getBenchmarkPrice(bytes32 priceId, uint64 requestedTime) view returns(int256)
func (*Erc7412Caller) GetLatestPrice ¶ added in v0.1.28
func (_Erc7412 *Erc7412Caller) GetLatestPrice(opts *bind.CallOpts, priceId [32]byte, stalenessTolerance *big.Int) (*big.Int, error)
GetLatestPrice is a free data retrieval call binding the contract method 0x079bba7f.
Solidity: function getLatestPrice(bytes32 priceId, uint256 stalenessTolerance) view returns(int256)
func (*Erc7412Caller) OracleId ¶
func (_Erc7412 *Erc7412Caller) OracleId(opts *bind.CallOpts) ([32]byte, error)
OracleId is a free data retrieval call binding the contract method 0x2121778d.
Solidity: function oracleId() pure returns(bytes32)
func (*Erc7412Caller) PythAddress ¶ added in v0.1.28
PythAddress is a free data retrieval call binding the contract method 0x65f92bac.
Solidity: function pythAddress() view returns(address)
type Erc7412CallerRaw ¶
type Erc7412CallerRaw struct {
Contract *Erc7412Caller // Generic read-only contract binding to access the raw methods on
}
Erc7412CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Erc7412CallerRaw) Call ¶
func (_Erc7412 *Erc7412CallerRaw) 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 Erc7412CallerSession ¶
type Erc7412CallerSession struct { Contract *Erc7412Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Erc7412CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Erc7412CallerSession) GetBenchmarkPrice ¶ added in v0.1.28
func (_Erc7412 *Erc7412CallerSession) GetBenchmarkPrice(priceId [32]byte, requestedTime uint64) (*big.Int, error)
GetBenchmarkPrice is a free data retrieval call binding the contract method 0x8f93ca56.
Solidity: function getBenchmarkPrice(bytes32 priceId, uint64 requestedTime) view returns(int256)
func (*Erc7412CallerSession) GetLatestPrice ¶ added in v0.1.28
func (_Erc7412 *Erc7412CallerSession) GetLatestPrice(priceId [32]byte, stalenessTolerance *big.Int) (*big.Int, error)
GetLatestPrice is a free data retrieval call binding the contract method 0x079bba7f.
Solidity: function getLatestPrice(bytes32 priceId, uint256 stalenessTolerance) view returns(int256)
func (*Erc7412CallerSession) OracleId ¶
func (_Erc7412 *Erc7412CallerSession) OracleId() ([32]byte, error)
OracleId is a free data retrieval call binding the contract method 0x2121778d.
Solidity: function oracleId() pure returns(bytes32)
func (*Erc7412CallerSession) PythAddress ¶ added in v0.1.28
func (_Erc7412 *Erc7412CallerSession) PythAddress() (common.Address, error)
PythAddress is a free data retrieval call binding the contract method 0x65f92bac.
Solidity: function pythAddress() view returns(address)
type Erc7412Filterer ¶
type Erc7412Filterer struct {
// contains filtered or unexported fields
}
Erc7412Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewErc7412Filterer ¶
func NewErc7412Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc7412Filterer, error)
NewErc7412Filterer creates a new log filterer instance of Erc7412, bound to a specific deployed contract.
type Erc7412Raw ¶
type Erc7412Raw struct {
Contract *Erc7412 // Generic contract binding to access the raw methods on
}
Erc7412Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*Erc7412Raw) Call ¶
func (_Erc7412 *Erc7412Raw) 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 (*Erc7412Raw) Transact ¶
func (_Erc7412 *Erc7412Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Erc7412Raw) Transfer ¶
func (_Erc7412 *Erc7412Raw) 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 Erc7412Session ¶
type Erc7412Session struct { Contract *Erc7412 // 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 }
Erc7412Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Erc7412Session) Fallback ¶ added in v0.1.28
func (_Erc7412 *Erc7412Session) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*Erc7412Session) FulfillOracleQuery ¶
func (_Erc7412 *Erc7412Session) FulfillOracleQuery(signedOffchainData []byte) (*types.Transaction, error)
FulfillOracleQuery is a paid mutator transaction binding the contract method 0x14b95956.
Solidity: function fulfillOracleQuery(bytes signedOffchainData) payable returns()
func (*Erc7412Session) GetBenchmarkPrice ¶ added in v0.1.28
func (_Erc7412 *Erc7412Session) GetBenchmarkPrice(priceId [32]byte, requestedTime uint64) (*big.Int, error)
GetBenchmarkPrice is a free data retrieval call binding the contract method 0x8f93ca56.
Solidity: function getBenchmarkPrice(bytes32 priceId, uint64 requestedTime) view returns(int256)
func (*Erc7412Session) GetLatestPrice ¶ added in v0.1.28
func (_Erc7412 *Erc7412Session) GetLatestPrice(priceId [32]byte, stalenessTolerance *big.Int) (*big.Int, error)
GetLatestPrice is a free data retrieval call binding the contract method 0x079bba7f.
Solidity: function getLatestPrice(bytes32 priceId, uint256 stalenessTolerance) view returns(int256)
func (*Erc7412Session) OracleId ¶
func (_Erc7412 *Erc7412Session) OracleId() ([32]byte, error)
OracleId is a free data retrieval call binding the contract method 0x2121778d.
Solidity: function oracleId() pure returns(bytes32)
func (*Erc7412Session) PythAddress ¶ added in v0.1.28
func (_Erc7412 *Erc7412Session) PythAddress() (common.Address, error)
PythAddress is a free data retrieval call binding the contract method 0x65f92bac.
Solidity: function pythAddress() view returns(address)
func (*Erc7412Session) Receive ¶ added in v0.1.28
func (_Erc7412 *Erc7412Session) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
type Erc7412Transactor ¶
type Erc7412Transactor struct {
// contains filtered or unexported fields
}
Erc7412Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewErc7412Transactor ¶
func NewErc7412Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc7412Transactor, error)
NewErc7412Transactor creates a new write-only instance of Erc7412, bound to a specific deployed contract.
func (*Erc7412Transactor) Fallback ¶ added in v0.1.28
func (_Erc7412 *Erc7412Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*Erc7412Transactor) FulfillOracleQuery ¶
func (_Erc7412 *Erc7412Transactor) FulfillOracleQuery(opts *bind.TransactOpts, signedOffchainData []byte) (*types.Transaction, error)
FulfillOracleQuery is a paid mutator transaction binding the contract method 0x14b95956.
Solidity: function fulfillOracleQuery(bytes signedOffchainData) payable returns()
func (*Erc7412Transactor) Receive ¶ added in v0.1.28
func (_Erc7412 *Erc7412Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
type Erc7412TransactorRaw ¶
type Erc7412TransactorRaw struct {
Contract *Erc7412Transactor // Generic write-only contract binding to access the raw methods on
}
Erc7412TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Erc7412TransactorRaw) Transact ¶
func (_Erc7412 *Erc7412TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Erc7412TransactorRaw) Transfer ¶
func (_Erc7412 *Erc7412TransactorRaw) 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 Erc7412TransactorSession ¶
type Erc7412TransactorSession struct { Contract *Erc7412Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Erc7412TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Erc7412TransactorSession) Fallback ¶ added in v0.1.28
func (_Erc7412 *Erc7412TransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*Erc7412TransactorSession) FulfillOracleQuery ¶
func (_Erc7412 *Erc7412TransactorSession) FulfillOracleQuery(signedOffchainData []byte) (*types.Transaction, error)
FulfillOracleQuery is a paid mutator transaction binding the contract method 0x14b95956.
Solidity: function fulfillOracleQuery(bytes signedOffchainData) payable returns()
func (*Erc7412TransactorSession) Receive ¶ added in v0.1.28
func (_Erc7412 *Erc7412TransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()