oracle_wrapper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const OracleABI = "" /* 5448-byte string literal not displayed */

Variables

View Source
var OracleBin = "" /* 12964-byte string literal not displayed */

Functions

This section is empty.

Types

type Oracle

type Oracle struct {
	OracleCaller
	OracleTransactor
	OracleFilterer
	// contains filtered or unexported fields
}

func DeployOracle

func DeployOracle(auth *bind.TransactOpts, backend bind.ContractBackend, _link common.Address) (common.Address, *types.Transaction, *Oracle, error)

func NewOracle

func NewOracle(address common.Address, backend bind.ContractBackend) (*Oracle, error)

func (*Oracle) Address

func (_Oracle *Oracle) Address() common.Address

func (*Oracle) ParseLog

func (_Oracle *Oracle) ParseLog(log types.Log) (generated.AbigenLog, error)

type OracleCaller

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

func NewOracleCaller

func NewOracleCaller(address common.Address, caller bind.ContractCaller) (*OracleCaller, error)

func (*OracleCaller) EXPIRYTIME

func (_Oracle *OracleCaller) EXPIRYTIME(opts *bind.CallOpts) (*big.Int, error)

func (*OracleCaller) GetAdamoracleToken

func (_Oracle *OracleCaller) GetAdamoracleToken(opts *bind.CallOpts) (common.Address, error)

func (*OracleCaller) GetAuthorizationStatus

func (_Oracle *OracleCaller) GetAuthorizationStatus(opts *bind.CallOpts, _node common.Address) (bool, error)

func (*OracleCaller) IsOwner

func (_Oracle *OracleCaller) IsOwner(opts *bind.CallOpts) (bool, error)

func (*OracleCaller) Owner

func (_Oracle *OracleCaller) Owner(opts *bind.CallOpts) (common.Address, error)

func (*OracleCaller) Withdrawable

func (_Oracle *OracleCaller) Withdrawable(opts *bind.CallOpts) (*big.Int, error)

type OracleCallerRaw

type OracleCallerRaw struct {
	Contract *OracleCaller
}

func (*OracleCallerRaw) Call

func (_Oracle *OracleCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

type OracleCallerSession

type OracleCallerSession struct {
	Contract *OracleCaller
	CallOpts bind.CallOpts
}

func (*OracleCallerSession) EXPIRYTIME

func (_Oracle *OracleCallerSession) EXPIRYTIME() (*big.Int, error)

func (*OracleCallerSession) GetAdamoracleToken

func (_Oracle *OracleCallerSession) GetAdamoracleToken() (common.Address, error)

func (*OracleCallerSession) GetAuthorizationStatus

func (_Oracle *OracleCallerSession) GetAuthorizationStatus(_node common.Address) (bool, error)

func (*OracleCallerSession) IsOwner

func (_Oracle *OracleCallerSession) IsOwner() (bool, error)

func (*OracleCallerSession) Owner

func (_Oracle *OracleCallerSession) Owner() (common.Address, error)

func (*OracleCallerSession) Withdrawable

func (_Oracle *OracleCallerSession) Withdrawable() (*big.Int, error)

type OracleCancelOracleRequest

type OracleCancelOracleRequest struct {
	RequestId [32]byte
	Raw       types.Log
}

func (OracleCancelOracleRequest) Topic

type OracleCancelOracleRequestIterator

type OracleCancelOracleRequestIterator struct {
	Event *OracleCancelOracleRequest
	// contains filtered or unexported fields
}

func (*OracleCancelOracleRequestIterator) Close

func (*OracleCancelOracleRequestIterator) Error

func (*OracleCancelOracleRequestIterator) Next

type OracleFilterer

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

func NewOracleFilterer

func NewOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*OracleFilterer, error)

func (*OracleFilterer) FilterCancelOracleRequest

func (_Oracle *OracleFilterer) FilterCancelOracleRequest(opts *bind.FilterOpts, requestId [][32]byte) (*OracleCancelOracleRequestIterator, error)

func (*OracleFilterer) FilterOracleRequest

func (_Oracle *OracleFilterer) FilterOracleRequest(opts *bind.FilterOpts, specId [][32]byte) (*OracleOracleRequestIterator, error)

func (*OracleFilterer) FilterOwnershipTransferred

func (_Oracle *OracleFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OracleOwnershipTransferredIterator, error)

func (*OracleFilterer) ParseCancelOracleRequest

func (_Oracle *OracleFilterer) ParseCancelOracleRequest(log types.Log) (*OracleCancelOracleRequest, error)

func (*OracleFilterer) ParseOracleRequest

func (_Oracle *OracleFilterer) ParseOracleRequest(log types.Log) (*OracleOracleRequest, error)

func (*OracleFilterer) ParseOwnershipTransferred

func (_Oracle *OracleFilterer) ParseOwnershipTransferred(log types.Log) (*OracleOwnershipTransferred, error)

func (*OracleFilterer) WatchCancelOracleRequest

func (_Oracle *OracleFilterer) WatchCancelOracleRequest(opts *bind.WatchOpts, sink chan<- *OracleCancelOracleRequest, requestId [][32]byte) (event.Subscription, error)

func (*OracleFilterer) WatchOracleRequest

func (_Oracle *OracleFilterer) WatchOracleRequest(opts *bind.WatchOpts, sink chan<- *OracleOracleRequest, specId [][32]byte) (event.Subscription, error)

func (*OracleFilterer) WatchOwnershipTransferred

func (_Oracle *OracleFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OracleOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

type OracleInterface

type OracleInterface interface {
	EXPIRYTIME(opts *bind.CallOpts) (*big.Int, error)

	GetAuthorizationStatus(opts *bind.CallOpts, _node common.Address) (bool, error)

	GetAdamoracleToken(opts *bind.CallOpts) (common.Address, error)

	IsOwner(opts *bind.CallOpts) (bool, error)

	Owner(opts *bind.CallOpts) (common.Address, error)

	Withdrawable(opts *bind.CallOpts) (*big.Int, error)

	CancelOracleRequest(opts *bind.TransactOpts, _requestId [32]byte, _payment *big.Int, _callbackFunc [4]byte, _expiration *big.Int) (*types.Transaction, error)

	FulfillOracleRequest(opts *bind.TransactOpts, _requestId [32]byte, _payment *big.Int, _callbackAddress common.Address, _callbackFunctionId [4]byte, _expiration *big.Int, _data [32]byte) (*types.Transaction, error)

	OnTokenTransfer(opts *bind.TransactOpts, _sender common.Address, _amount *big.Int, _data []byte) (*types.Transaction, error)

	OracleRequest(opts *bind.TransactOpts, _sender common.Address, _payment *big.Int, _specId [32]byte, _callbackAddress common.Address, _callbackFunctionId [4]byte, _nonce *big.Int, _dataVersion *big.Int, _data []byte) (*types.Transaction, error)

	SetFulfillmentPermission(opts *bind.TransactOpts, _node common.Address, _allowed bool) (*types.Transaction, error)

	TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

	Withdraw(opts *bind.TransactOpts, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)

	FilterCancelOracleRequest(opts *bind.FilterOpts, requestId [][32]byte) (*OracleCancelOracleRequestIterator, error)

	WatchCancelOracleRequest(opts *bind.WatchOpts, sink chan<- *OracleCancelOracleRequest, requestId [][32]byte) (event.Subscription, error)

	ParseCancelOracleRequest(log types.Log) (*OracleCancelOracleRequest, error)

	FilterOracleRequest(opts *bind.FilterOpts, specId [][32]byte) (*OracleOracleRequestIterator, error)

	WatchOracleRequest(opts *bind.WatchOpts, sink chan<- *OracleOracleRequest, specId [][32]byte) (event.Subscription, error)

	ParseOracleRequest(log types.Log) (*OracleOracleRequest, error)

	FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OracleOwnershipTransferredIterator, error)

	WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OracleOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

	ParseOwnershipTransferred(log types.Log) (*OracleOwnershipTransferred, error)

	ParseLog(log types.Log) (generated.AbigenLog, error)

	Address() common.Address
}

type OracleOracleRequest

type OracleOracleRequest struct {
	SpecId             [32]byte
	Requester          common.Address
	RequestId          [32]byte
	Payment            *big.Int
	CallbackAddr       common.Address
	CallbackFunctionId [4]byte
	CancelExpiration   *big.Int
	DataVersion        *big.Int
	Data               []byte
	Raw                types.Log
}

func (OracleOracleRequest) Topic

type OracleOracleRequestIterator

type OracleOracleRequestIterator struct {
	Event *OracleOracleRequest
	// contains filtered or unexported fields
}

func (*OracleOracleRequestIterator) Close

func (it *OracleOracleRequestIterator) Close() error

func (*OracleOracleRequestIterator) Error

func (it *OracleOracleRequestIterator) Error() error

func (*OracleOracleRequestIterator) Next

func (it *OracleOracleRequestIterator) Next() bool

type OracleOwnershipTransferred

type OracleOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log
}

func (OracleOwnershipTransferred) Topic

type OracleOwnershipTransferredIterator

type OracleOwnershipTransferredIterator struct {
	Event *OracleOwnershipTransferred
	// contains filtered or unexported fields
}

func (*OracleOwnershipTransferredIterator) Close

func (*OracleOwnershipTransferredIterator) Error

func (*OracleOwnershipTransferredIterator) Next

type OracleRaw

type OracleRaw struct {
	Contract *Oracle
}

func (*OracleRaw) Call

func (_Oracle *OracleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

func (*OracleRaw) Transact

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

func (*OracleRaw) Transfer

func (_Oracle *OracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type OracleSession

type OracleSession struct {
	Contract     *Oracle
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*OracleSession) CancelOracleRequest

func (_Oracle *OracleSession) CancelOracleRequest(_requestId [32]byte, _payment *big.Int, _callbackFunc [4]byte, _expiration *big.Int) (*types.Transaction, error)

func (*OracleSession) EXPIRYTIME

func (_Oracle *OracleSession) EXPIRYTIME() (*big.Int, error)

func (*OracleSession) FulfillOracleRequest

func (_Oracle *OracleSession) FulfillOracleRequest(_requestId [32]byte, _payment *big.Int, _callbackAddress common.Address, _callbackFunctionId [4]byte, _expiration *big.Int, _data [32]byte) (*types.Transaction, error)

func (*OracleSession) GetAdamoracleToken

func (_Oracle *OracleSession) GetAdamoracleToken() (common.Address, error)

func (*OracleSession) GetAuthorizationStatus

func (_Oracle *OracleSession) GetAuthorizationStatus(_node common.Address) (bool, error)

func (*OracleSession) IsOwner

func (_Oracle *OracleSession) IsOwner() (bool, error)

func (*OracleSession) OnTokenTransfer

func (_Oracle *OracleSession) OnTokenTransfer(_sender common.Address, _amount *big.Int, _data []byte) (*types.Transaction, error)

func (*OracleSession) OracleRequest

func (_Oracle *OracleSession) OracleRequest(_sender common.Address, _payment *big.Int, _specId [32]byte, _callbackAddress common.Address, _callbackFunctionId [4]byte, _nonce *big.Int, _dataVersion *big.Int, _data []byte) (*types.Transaction, error)

func (*OracleSession) Owner

func (_Oracle *OracleSession) Owner() (common.Address, error)

func (*OracleSession) SetFulfillmentPermission

func (_Oracle *OracleSession) SetFulfillmentPermission(_node common.Address, _allowed bool) (*types.Transaction, error)

func (*OracleSession) TransferOwnership

func (_Oracle *OracleSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

func (*OracleSession) Withdraw

func (_Oracle *OracleSession) Withdraw(_recipient common.Address, _amount *big.Int) (*types.Transaction, error)

func (*OracleSession) Withdrawable

func (_Oracle *OracleSession) Withdrawable() (*big.Int, error)

type OracleTransactor

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

func NewOracleTransactor

func NewOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*OracleTransactor, error)

func (*OracleTransactor) CancelOracleRequest

func (_Oracle *OracleTransactor) CancelOracleRequest(opts *bind.TransactOpts, _requestId [32]byte, _payment *big.Int, _callbackFunc [4]byte, _expiration *big.Int) (*types.Transaction, error)

func (*OracleTransactor) FulfillOracleRequest

func (_Oracle *OracleTransactor) FulfillOracleRequest(opts *bind.TransactOpts, _requestId [32]byte, _payment *big.Int, _callbackAddress common.Address, _callbackFunctionId [4]byte, _expiration *big.Int, _data [32]byte) (*types.Transaction, error)

func (*OracleTransactor) OnTokenTransfer

func (_Oracle *OracleTransactor) OnTokenTransfer(opts *bind.TransactOpts, _sender common.Address, _amount *big.Int, _data []byte) (*types.Transaction, error)

func (*OracleTransactor) OracleRequest

func (_Oracle *OracleTransactor) OracleRequest(opts *bind.TransactOpts, _sender common.Address, _payment *big.Int, _specId [32]byte, _callbackAddress common.Address, _callbackFunctionId [4]byte, _nonce *big.Int, _dataVersion *big.Int, _data []byte) (*types.Transaction, error)

func (*OracleTransactor) SetFulfillmentPermission

func (_Oracle *OracleTransactor) SetFulfillmentPermission(opts *bind.TransactOpts, _node common.Address, _allowed bool) (*types.Transaction, error)

func (*OracleTransactor) TransferOwnership

func (_Oracle *OracleTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

func (*OracleTransactor) Withdraw

func (_Oracle *OracleTransactor) Withdraw(opts *bind.TransactOpts, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)

type OracleTransactorRaw

type OracleTransactorRaw struct {
	Contract *OracleTransactor
}

func (*OracleTransactorRaw) Transact

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

func (*OracleTransactorRaw) Transfer

func (_Oracle *OracleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type OracleTransactorSession

type OracleTransactorSession struct {
	Contract     *OracleTransactor
	TransactOpts bind.TransactOpts
}

func (*OracleTransactorSession) CancelOracleRequest

func (_Oracle *OracleTransactorSession) CancelOracleRequest(_requestId [32]byte, _payment *big.Int, _callbackFunc [4]byte, _expiration *big.Int) (*types.Transaction, error)

func (*OracleTransactorSession) FulfillOracleRequest

func (_Oracle *OracleTransactorSession) FulfillOracleRequest(_requestId [32]byte, _payment *big.Int, _callbackAddress common.Address, _callbackFunctionId [4]byte, _expiration *big.Int, _data [32]byte) (*types.Transaction, error)

func (*OracleTransactorSession) OnTokenTransfer

func (_Oracle *OracleTransactorSession) OnTokenTransfer(_sender common.Address, _amount *big.Int, _data []byte) (*types.Transaction, error)

func (*OracleTransactorSession) OracleRequest

func (_Oracle *OracleTransactorSession) OracleRequest(_sender common.Address, _payment *big.Int, _specId [32]byte, _callbackAddress common.Address, _callbackFunctionId [4]byte, _nonce *big.Int, _dataVersion *big.Int, _data []byte) (*types.Transaction, error)

func (*OracleTransactorSession) SetFulfillmentPermission

func (_Oracle *OracleTransactorSession) SetFulfillmentPermission(_node common.Address, _allowed bool) (*types.Transaction, error)

func (*OracleTransactorSession) TransferOwnership

func (_Oracle *OracleTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

func (*OracleTransactorSession) Withdraw

func (_Oracle *OracleTransactorSession) Withdraw(_recipient common.Address, _amount *big.Int) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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