2020-08-04 18:19:42 +00:00
|
|
|
// Code generated - DO NOT EDIT.
|
|
|
|
// This file is a generated binding and any manual changes will be lost.
|
|
|
|
|
2020-08-06 14:16:00 +00:00
|
|
|
package aggregator
|
2020-08-04 18:19:42 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"math/big"
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
ethereum "github.com/ethereum/go-ethereum"
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi"
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
|
|
"github.com/ethereum/go-ethereum/event"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var (
|
|
|
|
_ = big.NewInt
|
|
|
|
_ = strings.NewReader
|
|
|
|
_ = ethereum.NotFound
|
|
|
|
_ = bind.Bind
|
|
|
|
_ = common.Big1
|
|
|
|
_ = types.BloomLookup
|
|
|
|
_ = event.NewSubscription
|
|
|
|
)
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorABI is the input ABI used to generate the binding from.
|
|
|
|
const AggregatorABI = "[{\"inputs\":[{\"internalType\":\"contractWhitelist\",\"name\":\"_whitelist\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"reqID\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"data\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"callbackAddress\",\"type\":\"address\"},{\"internalType\":\"bytes4\",\"name\":\"callbackMethodID\",\"type\":\"bytes4\"}],\"name\":\"collectData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
|
2020-08-04 18:19:42 +00:00
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// Aggregator is an auto generated Go binding around an Ethereum contract.
|
|
|
|
type Aggregator struct {
|
|
|
|
AggregatorCaller // Read-only binding to the contract
|
|
|
|
AggregatorTransactor // Write-only binding to the contract
|
|
|
|
AggregatorFilterer // Log filterer for contract events
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorCaller is an auto generated read-only Go binding around an Ethereum contract.
|
|
|
|
type AggregatorCaller struct {
|
2020-08-04 18:19:42 +00:00
|
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorTransactor is an auto generated write-only Go binding around an Ethereum contract.
|
|
|
|
type AggregatorTransactor struct {
|
2020-08-04 18:19:42 +00:00
|
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
|
|
|
|
type AggregatorFilterer struct {
|
2020-08-04 18:19:42 +00:00
|
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorSession is an auto generated Go binding around an Ethereum contract,
|
2020-08-04 18:19:42 +00:00
|
|
|
// with pre-set call and transact options.
|
2020-10-30 05:23:08 +00:00
|
|
|
type AggregatorSession struct {
|
|
|
|
Contract *Aggregator // Generic contract binding to set the session for
|
2020-08-04 18:19:42 +00:00
|
|
|
CallOpts bind.CallOpts // Call options to use throughout this session
|
|
|
|
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorCallerSession is an auto generated read-only Go binding around an Ethereum contract,
|
2020-08-04 18:19:42 +00:00
|
|
|
// with pre-set call options.
|
2020-10-30 05:23:08 +00:00
|
|
|
type AggregatorCallerSession struct {
|
|
|
|
Contract *AggregatorCaller // Generic contract caller binding to set the session for
|
|
|
|
CallOpts bind.CallOpts // Call options to use throughout this session
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
|
2020-08-04 18:19:42 +00:00
|
|
|
// with pre-set transact options.
|
2020-10-30 05:23:08 +00:00
|
|
|
type AggregatorTransactorSession struct {
|
|
|
|
Contract *AggregatorTransactor // Generic contract transactor binding to set the session for
|
|
|
|
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorRaw is an auto generated low-level Go binding around an Ethereum contract.
|
|
|
|
type AggregatorRaw struct {
|
|
|
|
Contract *Aggregator // Generic contract binding to access the raw methods on
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
|
|
|
|
type AggregatorCallerRaw struct {
|
|
|
|
Contract *AggregatorCaller // Generic read-only contract binding to access the raw methods on
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// AggregatorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
|
|
|
|
type AggregatorTransactorRaw struct {
|
|
|
|
Contract *AggregatorTransactor // Generic write-only contract binding to access the raw methods on
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// NewAggregator creates a new instance of Aggregator, bound to a specific deployed contract.
|
|
|
|
func NewAggregator(address common.Address, backend bind.ContractBackend) (*Aggregator, error) {
|
|
|
|
contract, err := bindAggregator(address, backend, backend, backend)
|
2020-08-04 18:19:42 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2020-10-30 05:23:08 +00:00
|
|
|
return &Aggregator{AggregatorCaller: AggregatorCaller{contract: contract}, AggregatorTransactor: AggregatorTransactor{contract: contract}, AggregatorFilterer: AggregatorFilterer{contract: contract}}, nil
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// NewAggregatorCaller creates a new read-only instance of Aggregator, bound to a specific deployed contract.
|
|
|
|
func NewAggregatorCaller(address common.Address, caller bind.ContractCaller) (*AggregatorCaller, error) {
|
|
|
|
contract, err := bindAggregator(address, caller, nil, nil)
|
2020-08-04 18:19:42 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2020-10-30 05:23:08 +00:00
|
|
|
return &AggregatorCaller{contract: contract}, nil
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// NewAggregatorTransactor creates a new write-only instance of Aggregator, bound to a specific deployed contract.
|
|
|
|
func NewAggregatorTransactor(address common.Address, transactor bind.ContractTransactor) (*AggregatorTransactor, error) {
|
|
|
|
contract, err := bindAggregator(address, nil, transactor, nil)
|
2020-08-04 18:19:42 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2020-10-30 05:23:08 +00:00
|
|
|
return &AggregatorTransactor{contract: contract}, nil
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// NewAggregatorFilterer creates a new log filterer instance of Aggregator, bound to a specific deployed contract.
|
|
|
|
func NewAggregatorFilterer(address common.Address, filterer bind.ContractFilterer) (*AggregatorFilterer, error) {
|
|
|
|
contract, err := bindAggregator(address, nil, nil, filterer)
|
2020-08-04 18:19:42 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2020-10-30 05:23:08 +00:00
|
|
|
return &AggregatorFilterer{contract: contract}, nil
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 05:23:08 +00:00
|
|
|
// bindAggregator binds a generic wrapper to an already deployed contract.
|
|
|
|
func bindAggregator(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
|
|
|
|
parsed, err := abi.JSON(strings.NewReader(AggregatorABI))
|
2020-08-04 18:19:42 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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.
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
|
|
|
|
return _Aggregator.Contract.AggregatorCaller.contract.Call(opts, result, method, params...)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Transfer initiates a plain transaction to move funds to the contract, calling
|
|
|
|
// its default method if one is available.
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
|
|
return _Aggregator.Contract.AggregatorTransactor.contract.Transfer(opts)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Transact invokes the (paid) contract method with params as input values.
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
|
|
|
return _Aggregator.Contract.AggregatorTransactor.contract.Transact(opts, method, params...)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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.
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
|
|
|
|
return _Aggregator.Contract.contract.Call(opts, result, method, params...)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Transfer initiates a plain transaction to move funds to the contract, calling
|
|
|
|
// its default method if one is available.
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
|
|
return _Aggregator.Contract.contract.Transfer(opts)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Transact invokes the (paid) contract method with params as input values.
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
|
|
|
return _Aggregator.Contract.contract.Transact(opts, method, params...)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CollectData is a paid mutator transaction binding the contract method 0x05187092.
|
|
|
|
//
|
|
|
|
// Solidity: function collectData(uint256 reqID, string data, address callbackAddress, bytes4 callbackMethodID) returns()
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorTransactor) CollectData(opts *bind.TransactOpts, reqID *big.Int, data string, callbackAddress common.Address, callbackMethodID [4]byte) (*types.Transaction, error) {
|
|
|
|
return _Aggregator.contract.Transact(opts, "collectData", reqID, data, callbackAddress, callbackMethodID)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CollectData is a paid mutator transaction binding the contract method 0x05187092.
|
|
|
|
//
|
|
|
|
// Solidity: function collectData(uint256 reqID, string data, address callbackAddress, bytes4 callbackMethodID) returns()
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorSession) CollectData(reqID *big.Int, data string, callbackAddress common.Address, callbackMethodID [4]byte) (*types.Transaction, error) {
|
|
|
|
return _Aggregator.Contract.CollectData(&_Aggregator.TransactOpts, reqID, data, callbackAddress, callbackMethodID)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CollectData is a paid mutator transaction binding the contract method 0x05187092.
|
|
|
|
//
|
|
|
|
// Solidity: function collectData(uint256 reqID, string data, address callbackAddress, bytes4 callbackMethodID) returns()
|
2020-10-30 05:23:08 +00:00
|
|
|
func (_Aggregator *AggregatorTransactorSession) CollectData(reqID *big.Int, data string, callbackAddress common.Address, callbackMethodID [4]byte) (*types.Transaction, error) {
|
|
|
|
return _Aggregator.Contract.CollectData(&_Aggregator.TransactOpts, reqID, data, callbackAddress, callbackMethodID)
|
2020-08-04 18:19:42 +00:00
|
|
|
}
|