klocoracle

package
v0.0.0-...-3caebc8 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

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

View Source
const OracleBinRuntime = ``

OracleBinRuntime is the compiled bytecode used for adding genesis block without deploying code.

Variables

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

OracleBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Oracle

type Oracle struct {
	OracleCaller     // Read-only binding to the contract
	OracleTransactor // Write-only binding to the contract
	OracleFilterer   // Log filterer for contract events
}

Oracle is an auto generated Go binding around a Klaytn contract.

func DeployOracle

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

DeployOracle deploys a new Klaytn contract, binding an instance of Oracle to it.

func NewOracle

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

NewOracle creates a new instance of Oracle, bound to a specific deployed contract.

type OracleCaller

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

OracleCaller is an auto generated read-only Go binding around a Klaytn contract.

func NewOracleCaller

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

NewOracleCaller creates a new read-only instance of Oracle, bound to a specific deployed contract.

func (*OracleCaller) AdapterId

func (_Oracle *OracleCaller) AdapterId(opts *bind.CallOpts) (string, error)

AdapterId is a free data retrieval call binding the contract method 0x5fb86b01.

Solidity: function adapterId() view returns(string)

func (*OracleCaller) NodeAddress

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

NodeAddress is a free data retrieval call binding the contract method 0x2aa8481f.

Solidity: function nodeAddress() view returns(address)

func (*OracleCaller) Requests

func (_Oracle *OracleCaller) Requests(opts *bind.CallOpts, arg0 *big.Int) (struct {
	RequestId          *big.Int
	NodeAddress        common.Address
	AdapterId          string
	CallbackFunctionId [4]byte
	CallBackContract   common.Address
	Data               [32]byte
}, error)

Requests is a free data retrieval call binding the contract method 0x81d12c58.

Solidity: function requests(uint256 ) view returns(uint256 requestId, address nodeAddress, string adapterId, bytes4 callbackFunctionId, address callBackContract, bytes32 data)

type OracleCallerRaw

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

OracleCallerRaw is an auto generated low-level read-only Go binding around a Klaytn contract.

func (*OracleCallerRaw) Call

func (_Oracle *OracleCallerRaw) 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 OracleCallerSession

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

OracleCallerSession is an auto generated read-only Go binding around a Klaytn contract, with pre-set call options.

func (*OracleCallerSession) AdapterId

func (_Oracle *OracleCallerSession) AdapterId() (string, error)

AdapterId is a free data retrieval call binding the contract method 0x5fb86b01.

Solidity: function adapterId() view returns(string)

func (*OracleCallerSession) NodeAddress

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

NodeAddress is a free data retrieval call binding the contract method 0x2aa8481f.

Solidity: function nodeAddress() view returns(address)

func (*OracleCallerSession) Requests

func (_Oracle *OracleCallerSession) Requests(arg0 *big.Int) (struct {
	RequestId          *big.Int
	NodeAddress        common.Address
	AdapterId          string
	CallbackFunctionId [4]byte
	CallBackContract   common.Address
	Data               [32]byte
}, error)

Requests is a free data retrieval call binding the contract method 0x81d12c58.

Solidity: function requests(uint256 ) view returns(uint256 requestId, address nodeAddress, string adapterId, bytes4 callbackFunctionId, address callBackContract, bytes32 data)

type OracleFilterer

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

OracleFilterer is an auto generated log filtering Go binding around a Klaytn contract events.

func NewOracleFilterer

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

NewOracleFilterer creates a new log filterer instance of Oracle, bound to a specific deployed contract.

func (*OracleFilterer) FilterNewOracleRequest

func (_Oracle *OracleFilterer) FilterNewOracleRequest(opts *bind.FilterOpts, requestId []*big.Int) (*OracleNewOracleRequestIterator, error)

FilterNewOracleRequest is a free log retrieval operation binding the contract event 0x394611a31616be6c6ac9b70c798c776a5d7533f25ad93f61d72db1968d3ec206.

Solidity: event NewOracleRequest(string adapterId, uint256 indexed requestId)

func (*OracleFilterer) ParseNewOracleRequest

func (_Oracle *OracleFilterer) ParseNewOracleRequest(log types.Log) (*OracleNewOracleRequest, error)

ParseNewOracleRequest is a log parse operation binding the contract event 0x394611a31616be6c6ac9b70c798c776a5d7533f25ad93f61d72db1968d3ec206.

Solidity: event NewOracleRequest(string adapterId, uint256 indexed requestId)

func (*OracleFilterer) WatchNewOracleRequest

func (_Oracle *OracleFilterer) WatchNewOracleRequest(opts *bind.WatchOpts, sink chan<- *OracleNewOracleRequest, requestId []*big.Int) (event.Subscription, error)

WatchNewOracleRequest is a free log subscription operation binding the contract event 0x394611a31616be6c6ac9b70c798c776a5d7533f25ad93f61d72db1968d3ec206.

Solidity: event NewOracleRequest(string adapterId, uint256 indexed requestId)

type OracleNewOracleRequest

type OracleNewOracleRequest struct {
	AdapterId string
	RequestId *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

OracleNewOracleRequest represents a NewOracleRequest event raised by the Oracle contract.

type OracleNewOracleRequestIterator

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

OracleNewOracleRequestIterator is returned from FilterNewOracleRequest and is used to iterate over the raw logs and unpacked data for NewOracleRequest events raised by the Oracle contract.

func (*OracleNewOracleRequestIterator) Close

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

func (*OracleNewOracleRequestIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OracleNewOracleRequestIterator) 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 OracleRaw

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

OracleRaw is an auto generated low-level Go binding around a Klaytn contract.

func (*OracleRaw) Call

func (_Oracle *OracleRaw) 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 (*OracleRaw) Transact

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

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

func (*OracleRaw) Transfer

func (_Oracle *OracleRaw) 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 OracleSession

type OracleSession struct {
	Contract     *Oracle           // 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
}

OracleSession is an auto generated Go binding around a Klaytn contract, with pre-set call and transact options.

func (*OracleSession) AdapterId

func (_Oracle *OracleSession) AdapterId() (string, error)

AdapterId is a free data retrieval call binding the contract method 0x5fb86b01.

Solidity: function adapterId() view returns(string)

func (*OracleSession) FulfillOracleRequest

func (_Oracle *OracleSession) FulfillOracleRequest(requestId *big.Int, data [32]byte) (*types.Transaction, error)

FulfillOracleRequest is a paid mutator transaction binding the contract method 0xeb3377d5.

Solidity: function fulfillOracleRequest(uint256 requestId, bytes32 data) returns(bool)

func (*OracleSession) NewOracleRequest

func (_Oracle *OracleSession) NewOracleRequest(callbackFunctionId [4]byte, adapterID string, callBackContract common.Address) (*types.Transaction, error)

NewOracleRequest is a paid mutator transaction binding the contract method 0x5cd3275c.

Solidity: function newOracleRequest(bytes4 callbackFunctionId, string adapterID, address callBackContract) returns(bool)

func (*OracleSession) NodeAddress

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

NodeAddress is a free data retrieval call binding the contract method 0x2aa8481f.

Solidity: function nodeAddress() view returns(address)

func (*OracleSession) Requests

func (_Oracle *OracleSession) Requests(arg0 *big.Int) (struct {
	RequestId          *big.Int
	NodeAddress        common.Address
	AdapterId          string
	CallbackFunctionId [4]byte
	CallBackContract   common.Address
	Data               [32]byte
}, error)

Requests is a free data retrieval call binding the contract method 0x81d12c58.

Solidity: function requests(uint256 ) view returns(uint256 requestId, address nodeAddress, string adapterId, bytes4 callbackFunctionId, address callBackContract, bytes32 data)

type OracleTransactor

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

OracleTransactor is an auto generated write-only Go binding around a Klaytn contract.

func NewOracleTransactor

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

NewOracleTransactor creates a new write-only instance of Oracle, bound to a specific deployed contract.

func (*OracleTransactor) FulfillOracleRequest

func (_Oracle *OracleTransactor) FulfillOracleRequest(opts *bind.TransactOpts, requestId *big.Int, data [32]byte) (*types.Transaction, error)

FulfillOracleRequest is a paid mutator transaction binding the contract method 0xeb3377d5.

Solidity: function fulfillOracleRequest(uint256 requestId, bytes32 data) returns(bool)

func (*OracleTransactor) NewOracleRequest

func (_Oracle *OracleTransactor) NewOracleRequest(opts *bind.TransactOpts, callbackFunctionId [4]byte, adapterID string, callBackContract common.Address) (*types.Transaction, error)

NewOracleRequest is a paid mutator transaction binding the contract method 0x5cd3275c.

Solidity: function newOracleRequest(bytes4 callbackFunctionId, string adapterID, address callBackContract) returns(bool)

type OracleTransactorRaw

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

OracleTransactorRaw is an auto generated low-level write-only Go binding around a Klaytn contract.

func (*OracleTransactorRaw) Transact

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

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

func (*OracleTransactorRaw) Transfer

func (_Oracle *OracleTransactorRaw) 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 OracleTransactorSession

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

OracleTransactorSession is an auto generated write-only Go binding around a Klaytn contract, with pre-set transact options.

func (*OracleTransactorSession) FulfillOracleRequest

func (_Oracle *OracleTransactorSession) FulfillOracleRequest(requestId *big.Int, data [32]byte) (*types.Transaction, error)

FulfillOracleRequest is a paid mutator transaction binding the contract method 0xeb3377d5.

Solidity: function fulfillOracleRequest(uint256 requestId, bytes32 data) returns(bool)

func (*OracleTransactorSession) NewOracleRequest

func (_Oracle *OracleTransactorSession) NewOracleRequest(callbackFunctionId [4]byte, adapterID string, callBackContract common.Address) (*types.Transaction, error)

NewOracleRequest is a paid mutator transaction binding the contract method 0x5cd3275c.

Solidity: function newOracleRequest(bytes4 callbackFunctionId, string adapterID, address callBackContract) returns(bool)

Jump to

Keyboard shortcuts

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