ERC7412

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERC7412ABI = ERC7412MetaData.ABI

ERC7412ABI is the input ABI used to generate the binding from. Deprecated: Use ERC7412MetaData.ABI instead.

View Source
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 added in v0.3.1

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 added in v0.3.1

func NewERC7412(address common.Address, backend bind.ContractBackend) (*ERC7412, error)

NewERC7412 creates a new instance of ERC7412, bound to a specific deployed contract.

type ERC7412Caller added in v0.3.1

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

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

func NewERC7412Caller added in v0.3.1

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.3.1

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.3.1

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 added in v0.3.1

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.3.1

func (_ERC7412 *ERC7412Caller) PythAddress(opts *bind.CallOpts) (common.Address, error)

PythAddress is a free data retrieval call binding the contract method 0x65f92bac.

Solidity: function pythAddress() view returns(address)

type ERC7412CallerRaw added in v0.3.1

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 added in v0.3.1

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 added in v0.3.1

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.3.1

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.3.1

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 added in v0.3.1

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.3.1

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 added in v0.3.1

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

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

func NewERC7412Filterer added in v0.3.1

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 added in v0.3.1

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 added in v0.3.1

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 added in v0.3.1

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 added in v0.3.1

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 added in v0.3.1

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.3.1

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 added in v0.3.1

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.3.1

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.3.1

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 added in v0.3.1

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.3.1

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.3.1

func (_ERC7412 *ERC7412Session) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

type ERC7412Transactor added in v0.3.1

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

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

func NewERC7412Transactor added in v0.3.1

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.3.1

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 added in v0.3.1

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.3.1

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 added in v0.3.1

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 added in v0.3.1

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 added in v0.3.1

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 added in v0.3.1

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.3.1

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 added in v0.3.1

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.3.1

func (_ERC7412 *ERC7412TransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

Jump to

Keyboard shortcuts

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