Versions in this module Expand all Collapse all v1 v1.10.17 Oct 18, 2021 Changes in this version + var ConsumerABI = ConsumerMetaData.ABI + var ConsumerBin = ConsumerMetaData.Bin + var ConsumerMetaData = &bind.MetaData + type Consumer struct + func DeployConsumer(auth *bind.TransactOpts, backend bind.ContractBackend, _link common.Address, ...) (common.Address, *types.Transaction, *Consumer, error) + func NewConsumer(address common.Address, backend bind.ContractBackend) (*Consumer, error) + func (_Consumer *Consumer) Address() common.Address + func (_Consumer *Consumer) ParseLog(log types.Log) (generated.AbigenLog, error) + type ConsumerCaller struct + func NewConsumerCaller(address common.Address, caller bind.ContractCaller) (*ConsumerCaller, error) + func (_Consumer *ConsumerCaller) CurrentPrice(opts *bind.CallOpts) ([32]byte, error) + func (_Consumer *ConsumerCaller) CurrentPriceInt(opts *bind.CallOpts) (*big.Int, error) + type ConsumerCallerRaw struct + Contract *ConsumerCaller + func (_Consumer *ConsumerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type ConsumerCallerSession struct + CallOpts bind.CallOpts + Contract *ConsumerCaller + func (_Consumer *ConsumerCallerSession) CurrentPrice() ([32]byte, error) + func (_Consumer *ConsumerCallerSession) CurrentPriceInt() (*big.Int, error) + type ConsumerChainlinkCancelled struct + Id [32]byte + Raw types.Log + func (ConsumerChainlinkCancelled) Topic() common.Hash + type ConsumerChainlinkCancelledIterator struct + Event *ConsumerChainlinkCancelled + func (it *ConsumerChainlinkCancelledIterator) Close() error + func (it *ConsumerChainlinkCancelledIterator) Error() error + func (it *ConsumerChainlinkCancelledIterator) Next() bool + type ConsumerChainlinkFulfilled struct + Id [32]byte + Raw types.Log + func (ConsumerChainlinkFulfilled) Topic() common.Hash + type ConsumerChainlinkFulfilledIterator struct + Event *ConsumerChainlinkFulfilled + func (it *ConsumerChainlinkFulfilledIterator) Close() error + func (it *ConsumerChainlinkFulfilledIterator) Error() error + func (it *ConsumerChainlinkFulfilledIterator) Next() bool + type ConsumerChainlinkRequested struct + Id [32]byte + Raw types.Log + func (ConsumerChainlinkRequested) Topic() common.Hash + type ConsumerChainlinkRequestedIterator struct + Event *ConsumerChainlinkRequested + func (it *ConsumerChainlinkRequestedIterator) Close() error + func (it *ConsumerChainlinkRequestedIterator) Error() error + func (it *ConsumerChainlinkRequestedIterator) Next() bool + type ConsumerFilterer struct + func NewConsumerFilterer(address common.Address, filterer bind.ContractFilterer) (*ConsumerFilterer, error) + func (_Consumer *ConsumerFilterer) FilterChainlinkCancelled(opts *bind.FilterOpts, id [][32]byte) (*ConsumerChainlinkCancelledIterator, error) + func (_Consumer *ConsumerFilterer) FilterChainlinkFulfilled(opts *bind.FilterOpts, id [][32]byte) (*ConsumerChainlinkFulfilledIterator, error) + func (_Consumer *ConsumerFilterer) FilterChainlinkRequested(opts *bind.FilterOpts, id [][32]byte) (*ConsumerChainlinkRequestedIterator, error) + func (_Consumer *ConsumerFilterer) FilterRequestFulfilled(opts *bind.FilterOpts, requestId [][32]byte, price [][32]byte) (*ConsumerRequestFulfilledIterator, error) + func (_Consumer *ConsumerFilterer) ParseChainlinkCancelled(log types.Log) (*ConsumerChainlinkCancelled, error) + func (_Consumer *ConsumerFilterer) ParseChainlinkFulfilled(log types.Log) (*ConsumerChainlinkFulfilled, error) + func (_Consumer *ConsumerFilterer) ParseChainlinkRequested(log types.Log) (*ConsumerChainlinkRequested, error) + func (_Consumer *ConsumerFilterer) ParseRequestFulfilled(log types.Log) (*ConsumerRequestFulfilled, error) + func (_Consumer *ConsumerFilterer) WatchChainlinkCancelled(opts *bind.WatchOpts, sink chan<- *ConsumerChainlinkCancelled, id [][32]byte) (event.Subscription, error) + func (_Consumer *ConsumerFilterer) WatchChainlinkFulfilled(opts *bind.WatchOpts, sink chan<- *ConsumerChainlinkFulfilled, id [][32]byte) (event.Subscription, error) + func (_Consumer *ConsumerFilterer) WatchChainlinkRequested(opts *bind.WatchOpts, sink chan<- *ConsumerChainlinkRequested, id [][32]byte) (event.Subscription, error) + func (_Consumer *ConsumerFilterer) WatchRequestFulfilled(opts *bind.WatchOpts, sink chan<- *ConsumerRequestFulfilled, ...) (event.Subscription, error) + type ConsumerInterface interface + AddExternalRequest func(opts *bind.TransactOpts, _oracle common.Address, _requestId [32]byte) (*types.Transaction, error) + Address func() common.Address + CancelRequest func(opts *bind.TransactOpts, _oracle common.Address, _requestId [32]byte, ...) (*types.Transaction, error) + CurrentPrice func(opts *bind.CallOpts) ([32]byte, error) + CurrentPriceInt func(opts *bind.CallOpts) (*big.Int, error) + FilterChainlinkCancelled func(opts *bind.FilterOpts, id [][32]byte) (*ConsumerChainlinkCancelledIterator, error) + FilterChainlinkFulfilled func(opts *bind.FilterOpts, id [][32]byte) (*ConsumerChainlinkFulfilledIterator, error) + FilterChainlinkRequested func(opts *bind.FilterOpts, id [][32]byte) (*ConsumerChainlinkRequestedIterator, error) + FilterRequestFulfilled func(opts *bind.FilterOpts, requestId [][32]byte, price [][32]byte) (*ConsumerRequestFulfilledIterator, error) + Fulfill func(opts *bind.TransactOpts, _requestId [32]byte, _price [32]byte) (*types.Transaction, error) + FulfillParametersWithCustomURLs func(opts *bind.TransactOpts, _requestId [32]byte, _price *big.Int) (*types.Transaction, error) + ParseChainlinkCancelled func(log types.Log) (*ConsumerChainlinkCancelled, error) + ParseChainlinkFulfilled func(log types.Log) (*ConsumerChainlinkFulfilled, error) + ParseChainlinkRequested func(log types.Log) (*ConsumerChainlinkRequested, error) + ParseLog func(log types.Log) (generated.AbigenLog, error) + ParseRequestFulfilled func(log types.Log) (*ConsumerRequestFulfilled, error) + RequestEthereumPrice func(opts *bind.TransactOpts, _currency string, _payment *big.Int) (*types.Transaction, error) + RequestMultipleParametersWithCustomURLs func(opts *bind.TransactOpts, _urlUSD string, _pathUSD string, _payment *big.Int) (*types.Transaction, error) + SetSpecID func(opts *bind.TransactOpts, _specId [32]byte) (*types.Transaction, error) + WatchChainlinkCancelled func(opts *bind.WatchOpts, sink chan<- *ConsumerChainlinkCancelled, id [][32]byte) (event.Subscription, error) + WatchChainlinkFulfilled func(opts *bind.WatchOpts, sink chan<- *ConsumerChainlinkFulfilled, id [][32]byte) (event.Subscription, error) + WatchChainlinkRequested func(opts *bind.WatchOpts, sink chan<- *ConsumerChainlinkRequested, id [][32]byte) (event.Subscription, error) + WatchRequestFulfilled func(opts *bind.WatchOpts, sink chan<- *ConsumerRequestFulfilled, ...) (event.Subscription, error) + WithdrawLink func(opts *bind.TransactOpts) (*types.Transaction, error) + type ConsumerRaw struct + Contract *Consumer + func (_Consumer *ConsumerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Consumer *ConsumerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Consumer *ConsumerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ConsumerRequestFulfilled struct + Price [32]byte + Raw types.Log + RequestId [32]byte + func (ConsumerRequestFulfilled) Topic() common.Hash + type ConsumerRequestFulfilledIterator struct + Event *ConsumerRequestFulfilled + func (it *ConsumerRequestFulfilledIterator) Close() error + func (it *ConsumerRequestFulfilledIterator) Error() error + func (it *ConsumerRequestFulfilledIterator) Next() bool + type ConsumerSession struct + CallOpts bind.CallOpts + Contract *Consumer + TransactOpts bind.TransactOpts + func (_Consumer *ConsumerSession) AddExternalRequest(_oracle common.Address, _requestId [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerSession) CancelRequest(_oracle common.Address, _requestId [32]byte, _payment *big.Int, ...) (*types.Transaction, error) + func (_Consumer *ConsumerSession) CurrentPrice() ([32]byte, error) + func (_Consumer *ConsumerSession) CurrentPriceInt() (*big.Int, error) + func (_Consumer *ConsumerSession) Fulfill(_requestId [32]byte, _price [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerSession) FulfillParametersWithCustomURLs(_requestId [32]byte, _price *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerSession) RequestEthereumPrice(_currency string, _payment *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerSession) RequestMultipleParametersWithCustomURLs(_urlUSD string, _pathUSD string, _payment *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerSession) SetSpecID(_specId [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerSession) WithdrawLink() (*types.Transaction, error) + type ConsumerTransactor struct + func NewConsumerTransactor(address common.Address, transactor bind.ContractTransactor) (*ConsumerTransactor, error) + func (_Consumer *ConsumerTransactor) AddExternalRequest(opts *bind.TransactOpts, _oracle common.Address, _requestId [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerTransactor) CancelRequest(opts *bind.TransactOpts, _oracle common.Address, _requestId [32]byte, ...) (*types.Transaction, error) + func (_Consumer *ConsumerTransactor) Fulfill(opts *bind.TransactOpts, _requestId [32]byte, _price [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerTransactor) FulfillParametersWithCustomURLs(opts *bind.TransactOpts, _requestId [32]byte, _price *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerTransactor) RequestEthereumPrice(opts *bind.TransactOpts, _currency string, _payment *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerTransactor) RequestMultipleParametersWithCustomURLs(opts *bind.TransactOpts, _urlUSD string, _pathUSD string, _payment *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerTransactor) SetSpecID(opts *bind.TransactOpts, _specId [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerTransactor) WithdrawLink(opts *bind.TransactOpts) (*types.Transaction, error) + type ConsumerTransactorRaw struct + Contract *ConsumerTransactor + func (_Consumer *ConsumerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Consumer *ConsumerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ConsumerTransactorSession struct + Contract *ConsumerTransactor + TransactOpts bind.TransactOpts + func (_Consumer *ConsumerTransactorSession) AddExternalRequest(_oracle common.Address, _requestId [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerTransactorSession) CancelRequest(_oracle common.Address, _requestId [32]byte, _payment *big.Int, ...) (*types.Transaction, error) + func (_Consumer *ConsumerTransactorSession) Fulfill(_requestId [32]byte, _price [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerTransactorSession) FulfillParametersWithCustomURLs(_requestId [32]byte, _price *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerTransactorSession) RequestEthereumPrice(_currency string, _payment *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerTransactorSession) RequestMultipleParametersWithCustomURLs(_urlUSD string, _pathUSD string, _payment *big.Int) (*types.Transaction, error) + func (_Consumer *ConsumerTransactorSession) SetSpecID(_specId [32]byte) (*types.Transaction, error) + func (_Consumer *ConsumerTransactorSession) WithdrawLink() (*types.Transaction, error)