oracleService

package
v1.4.1-rc-386 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DiaOracleABI = "" /* 1383-byte string literal not displayed */

DiaOracleABI is the input ABI used to generate the binding from.

Variables

View Source
var DiaOracleBin = "" /* 3902-byte string literal not displayed */

DiaOracleBin is the compiled bytecode used for deploying new contracts.

View Source
var DiaOracleFuncSigs = map[string]string{
	"a6f9dae1": "changeOwner(address)",
	"e1221400": "getCoinInfo(string)",
	"45cc0a2f": "updateCoinInfo(string,string,uint256,uint256,uint256)",
}

DiaOracleFuncSigs maps the 4-byte function signature to its string representation.

Functions

This section is empty.

Types

type DiaOracle

type DiaOracle struct {
	DiaOracleCaller     // Read-only binding to the contract
	DiaOracleTransactor // Write-only binding to the contract
	DiaOracleFilterer   // Log filterer for contract events
}

DiaOracle is an auto generated Go binding around an Ethereum contract.

func DeployDiaOracle

func DeployDiaOracle(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *DiaOracle, error)

DeployDiaOracle deploys a new Ethereum contract, binding an instance of DiaOracle to it.

func NewDiaOracle

func NewDiaOracle(address common.Address, backend bind.ContractBackend) (*DiaOracle, error)

NewDiaOracle creates a new instance of DiaOracle, bound to a specific deployed contract.

type DiaOracleCaller

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

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

func NewDiaOracleCaller

func NewDiaOracleCaller(address common.Address, caller bind.ContractCaller) (*DiaOracleCaller, error)

NewDiaOracleCaller creates a new read-only instance of DiaOracle, bound to a specific deployed contract.

func (*DiaOracleCaller) GetCoinInfo

func (_DiaOracle *DiaOracleCaller) GetCoinInfo(opts *bind.CallOpts, name string) (*big.Int, *big.Int, *big.Int, string, error)

GetCoinInfo is a free data retrieval call binding the contract method 0xe1221400.

Solidity: function getCoinInfo(string name) view returns(uint256, uint256, uint256, string)

type DiaOracleCallerRaw

type DiaOracleCallerRaw struct {
	Contract *DiaOracleCaller // Generic read-only contract binding to access the raw methods on
}

DiaOracleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*DiaOracleCallerRaw) Call

func (_DiaOracle *DiaOracleCallerRaw) 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 DiaOracleCallerSession

type DiaOracleCallerSession struct {
	Contract *DiaOracleCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts    // Call options to use throughout this session
}

DiaOracleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*DiaOracleCallerSession) GetCoinInfo

func (_DiaOracle *DiaOracleCallerSession) GetCoinInfo(name string) (*big.Int, *big.Int, *big.Int, string, error)

GetCoinInfo is a free data retrieval call binding the contract method 0xe1221400.

Solidity: function getCoinInfo(string name) view returns(uint256, uint256, uint256, string)

type DiaOracleFilterer

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

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

func NewDiaOracleFilterer

func NewDiaOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*DiaOracleFilterer, error)

NewDiaOracleFilterer creates a new log filterer instance of DiaOracle, bound to a specific deployed contract.

func (*DiaOracleFilterer) FilterNewCoinInfo

func (_DiaOracle *DiaOracleFilterer) FilterNewCoinInfo(opts *bind.FilterOpts) (*DiaOracleNewCoinInfoIterator, error)

FilterNewCoinInfo is a free log retrieval operation binding the contract event 0x8d468b5f823f8d38322e9c4433d184adf453fd3eaa28cef280056aa0664981f0.

Solidity: event newCoinInfo(string name, string symbol, uint256 price, uint256 supply, uint256 lastUpdateTimestamp)

func (*DiaOracleFilterer) ParseNewCoinInfo

func (_DiaOracle *DiaOracleFilterer) ParseNewCoinInfo(log types.Log) (*DiaOracleNewCoinInfo, error)

ParseNewCoinInfo is a log parse operation binding the contract event 0x8d468b5f823f8d38322e9c4433d184adf453fd3eaa28cef280056aa0664981f0.

Solidity: event newCoinInfo(string name, string symbol, uint256 price, uint256 supply, uint256 lastUpdateTimestamp)

func (*DiaOracleFilterer) WatchNewCoinInfo

func (_DiaOracle *DiaOracleFilterer) WatchNewCoinInfo(opts *bind.WatchOpts, sink chan<- *DiaOracleNewCoinInfo) (event.Subscription, error)

WatchNewCoinInfo is a free log subscription operation binding the contract event 0x8d468b5f823f8d38322e9c4433d184adf453fd3eaa28cef280056aa0664981f0.

Solidity: event newCoinInfo(string name, string symbol, uint256 price, uint256 supply, uint256 lastUpdateTimestamp)

type DiaOracleNewCoinInfo

type DiaOracleNewCoinInfo struct {
	Name                string
	Symbol              string
	Price               *big.Int
	Supply              *big.Int
	LastUpdateTimestamp *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

DiaOracleNewCoinInfo represents a NewCoinInfo event raised by the DiaOracle contract.

type DiaOracleNewCoinInfoIterator

type DiaOracleNewCoinInfoIterator struct {
	Event *DiaOracleNewCoinInfo // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

DiaOracleNewCoinInfoIterator is returned from FilterNewCoinInfo and is used to iterate over the raw logs and unpacked data for NewCoinInfo events raised by the DiaOracle contract.

func (*DiaOracleNewCoinInfoIterator) Close

func (it *DiaOracleNewCoinInfoIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*DiaOracleNewCoinInfoIterator) Error

func (it *DiaOracleNewCoinInfoIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DiaOracleNewCoinInfoIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DiaOracleRaw

type DiaOracleRaw struct {
	Contract *DiaOracle // Generic contract binding to access the raw methods on
}

DiaOracleRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*DiaOracleRaw) Call

func (_DiaOracle *DiaOracleRaw) 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 (*DiaOracleRaw) Transact

func (_DiaOracle *DiaOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*DiaOracleRaw) Transfer

func (_DiaOracle *DiaOracleRaw) 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 DiaOracleSession

type DiaOracleSession struct {
	Contract     *DiaOracle        // 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
}

DiaOracleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*DiaOracleSession) ChangeOwner

func (_DiaOracle *DiaOracleSession) ChangeOwner(newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*DiaOracleSession) GetCoinInfo

func (_DiaOracle *DiaOracleSession) GetCoinInfo(name string) (*big.Int, *big.Int, *big.Int, string, error)

GetCoinInfo is a free data retrieval call binding the contract method 0xe1221400.

Solidity: function getCoinInfo(string name) view returns(uint256, uint256, uint256, string)

func (*DiaOracleSession) UpdateCoinInfo

func (_DiaOracle *DiaOracleSession) UpdateCoinInfo(name string, symbol string, newPrice *big.Int, newSupply *big.Int, newTimestamp *big.Int) (*types.Transaction, error)

UpdateCoinInfo is a paid mutator transaction binding the contract method 0x45cc0a2f.

Solidity: function updateCoinInfo(string name, string symbol, uint256 newPrice, uint256 newSupply, uint256 newTimestamp) returns()

type DiaOracleTransactor

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

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

func NewDiaOracleTransactor

func NewDiaOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*DiaOracleTransactor, error)

NewDiaOracleTransactor creates a new write-only instance of DiaOracle, bound to a specific deployed contract.

func (*DiaOracleTransactor) ChangeOwner

func (_DiaOracle *DiaOracleTransactor) ChangeOwner(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*DiaOracleTransactor) UpdateCoinInfo

func (_DiaOracle *DiaOracleTransactor) UpdateCoinInfo(opts *bind.TransactOpts, name string, symbol string, newPrice *big.Int, newSupply *big.Int, newTimestamp *big.Int) (*types.Transaction, error)

UpdateCoinInfo is a paid mutator transaction binding the contract method 0x45cc0a2f.

Solidity: function updateCoinInfo(string name, string symbol, uint256 newPrice, uint256 newSupply, uint256 newTimestamp) returns()

type DiaOracleTransactorRaw

type DiaOracleTransactorRaw struct {
	Contract *DiaOracleTransactor // Generic write-only contract binding to access the raw methods on
}

DiaOracleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*DiaOracleTransactorRaw) Transact

func (_DiaOracle *DiaOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*DiaOracleTransactorRaw) Transfer

func (_DiaOracle *DiaOracleTransactorRaw) 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 DiaOracleTransactorSession

type DiaOracleTransactorSession struct {
	Contract     *DiaOracleTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts    // Transaction auth options to use throughout this session
}

DiaOracleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*DiaOracleTransactorSession) ChangeOwner

func (_DiaOracle *DiaOracleTransactorSession) ChangeOwner(newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*DiaOracleTransactorSession) UpdateCoinInfo

func (_DiaOracle *DiaOracleTransactorSession) UpdateCoinInfo(name string, symbol string, newPrice *big.Int, newSupply *big.Int, newTimestamp *big.Int) (*types.Transaction, error)

UpdateCoinInfo is a paid mutator transaction binding the contract method 0x45cc0a2f.

Solidity: function updateCoinInfo(string name, string symbol, uint256 newPrice, uint256 newSupply, uint256 newTimestamp) returns()

Jump to

Keyboard shortcuts

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