oracle

package
v0.0.0-...-698e449 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const KlayOracleABI = "" /* 4165-byte string literal not displayed */

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

View Source
const KlayOracleBinRuntime = ``

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

View Source
const KlayOracleInterfaceABI = "" /* 736-byte string literal not displayed */

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

View Source
const KlayOracleInterfaceBinRuntime = ``

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

View Source
const OracleConsumerSampleABI = "" /* 857-byte string literal not displayed */

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

View Source
const OracleConsumerSampleBinRuntime = ``

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

View Source
const OracleProviderSampleABI = "" /* 4394-byte string literal not displayed */

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

View Source
const OracleProviderSampleBinRuntime = ``

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

Variables

View Source
var OracleConsumerSampleBin = "" /* 2624-byte string literal not displayed */

OracleConsumerSampleBin is the compiled bytecode used for deploying new contracts.

View Source
var OracleProviderSampleBin = "" /* 14290-byte string literal not displayed */

OracleProviderSampleBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type KlayOracle

type KlayOracle struct {
	KlayOracleCaller     // Read-only binding to the contract
	KlayOracleTransactor // Write-only binding to the contract
	KlayOracleFilterer   // Log filterer for contract events
}

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

func NewKlayOracle

func NewKlayOracle(address common.Address, backend bind.ContractBackend) (*KlayOracle, error)

NewKlayOracle creates a new instance of KlayOracle, bound to a specific deployed contract.

type KlayOracleCaller

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

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

func NewKlayOracleCaller

func NewKlayOracleCaller(address common.Address, caller bind.ContractCaller) (*KlayOracleCaller, error)

NewKlayOracleCaller creates a new read-only instance of KlayOracle, bound to a specific deployed contract.

func (*KlayOracleCaller) AdapterId

func (_KlayOracle *KlayOracleCaller) AdapterId(opts *bind.CallOpts) ([32]byte, error)

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

Solidity: function adapterId() view returns(bytes32)

func (*KlayOracleCaller) FulfilledCount

func (_KlayOracle *KlayOracleCaller) FulfilledCount(opts *bind.CallOpts) (*big.Int, error)

FulfilledCount is a free data retrieval call binding the contract method 0xc5c28fd1.

Solidity: function fulfilledCount() view returns(uint256)

func (*KlayOracleCaller) GetHash

func (_KlayOracle *KlayOracleCaller) GetHash(opts *bind.CallOpts, roundAnswer [32]byte, roundTime *big.Int) ([32]byte, error)

GetHash is a free data retrieval call binding the contract method 0x77d3bfb9.

Solidity: function _getHash(bytes32 roundAnswer, uint256 roundTime) view returns(bytes32)

func (*KlayOracleCaller) LatestRound

func (_KlayOracle *KlayOracleCaller) LatestRound(opts *bind.CallOpts) (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*KlayOracleCaller) NodeAddress

func (_KlayOracle *KlayOracleCaller) 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 (*KlayOracleCaller) Requests

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

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

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

func (*KlayOracleCaller) Rounds

func (_KlayOracle *KlayOracleCaller) Rounds(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

Rounds is a free data retrieval call binding the contract method 0x8c65c81f.

Solidity: function rounds(uint256 ) view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*KlayOracleCaller) SplitSignature

func (_KlayOracle *KlayOracleCaller) SplitSignature(opts *bind.CallOpts, sig []byte) (struct {
	R [32]byte
	S [32]byte
	V uint8
}, error)

SplitSignature is a free data retrieval call binding the contract method 0xa7bb5803.

Solidity: function splitSignature(bytes sig) pure returns(bytes32 r, bytes32 s, uint8 v)

func (*KlayOracleCaller) VERSION

func (_KlayOracle *KlayOracleCaller) VERSION(opts *bind.CallOpts) (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

func (*KlayOracleCaller) VerifyKlaytnMessage

func (_KlayOracle *KlayOracleCaller) VerifyKlaytnMessage(opts *bind.CallOpts, _hashedMessage [32]byte, _v uint8, _r [32]byte, _s [32]byte) (common.Address, error)

VerifyKlaytnMessage is a free data retrieval call binding the contract method 0xbe2bb8cd.

Solidity: function VerifyKlaytnMessage(bytes32 _hashedMessage, uint8 _v, bytes32 _r, bytes32 _s) pure returns(address)

type KlayOracleCallerRaw

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

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

func (*KlayOracleCallerRaw) Call

func (_KlayOracle *KlayOracleCallerRaw) 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 KlayOracleCallerSession

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

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

func (*KlayOracleCallerSession) AdapterId

func (_KlayOracle *KlayOracleCallerSession) AdapterId() ([32]byte, error)

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

Solidity: function adapterId() view returns(bytes32)

func (*KlayOracleCallerSession) FulfilledCount

func (_KlayOracle *KlayOracleCallerSession) FulfilledCount() (*big.Int, error)

FulfilledCount is a free data retrieval call binding the contract method 0xc5c28fd1.

Solidity: function fulfilledCount() view returns(uint256)

func (*KlayOracleCallerSession) GetHash

func (_KlayOracle *KlayOracleCallerSession) GetHash(roundAnswer [32]byte, roundTime *big.Int) ([32]byte, error)

GetHash is a free data retrieval call binding the contract method 0x77d3bfb9.

Solidity: function _getHash(bytes32 roundAnswer, uint256 roundTime) view returns(bytes32)

func (*KlayOracleCallerSession) LatestRound

func (_KlayOracle *KlayOracleCallerSession) LatestRound() (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*KlayOracleCallerSession) NodeAddress

func (_KlayOracle *KlayOracleCallerSession) NodeAddress() (common.Address, error)

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

Solidity: function nodeAddress() view returns(address)

func (*KlayOracleCallerSession) Requests

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

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

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

func (*KlayOracleCallerSession) Rounds

func (_KlayOracle *KlayOracleCallerSession) Rounds(arg0 *big.Int) (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

Rounds is a free data retrieval call binding the contract method 0x8c65c81f.

Solidity: function rounds(uint256 ) view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*KlayOracleCallerSession) SplitSignature

func (_KlayOracle *KlayOracleCallerSession) SplitSignature(sig []byte) (struct {
	R [32]byte
	S [32]byte
	V uint8
}, error)

SplitSignature is a free data retrieval call binding the contract method 0xa7bb5803.

Solidity: function splitSignature(bytes sig) pure returns(bytes32 r, bytes32 s, uint8 v)

func (*KlayOracleCallerSession) VERSION

func (_KlayOracle *KlayOracleCallerSession) VERSION() (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

func (*KlayOracleCallerSession) VerifyKlaytnMessage

func (_KlayOracle *KlayOracleCallerSession) VerifyKlaytnMessage(_hashedMessage [32]byte, _v uint8, _r [32]byte, _s [32]byte) (common.Address, error)

VerifyKlaytnMessage is a free data retrieval call binding the contract method 0xbe2bb8cd.

Solidity: function VerifyKlaytnMessage(bytes32 _hashedMessage, uint8 _v, bytes32 _r, bytes32 _s) pure returns(address)

type KlayOracleFilterer

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

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

func NewKlayOracleFilterer

func NewKlayOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*KlayOracleFilterer, error)

NewKlayOracleFilterer creates a new log filterer instance of KlayOracle, bound to a specific deployed contract.

func (*KlayOracleFilterer) FilterNewOracleRequest

func (_KlayOracle *KlayOracleFilterer) FilterNewOracleRequest(opts *bind.FilterOpts) (*KlayOracleNewOracleRequestIterator, error)

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

Solidity: event NewOracleRequest(bytes32 requestId)

func (*KlayOracleFilterer) ParseNewOracleRequest

func (_KlayOracle *KlayOracleFilterer) ParseNewOracleRequest(log types.Log) (*KlayOracleNewOracleRequest, error)

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

Solidity: event NewOracleRequest(bytes32 requestId)

func (*KlayOracleFilterer) WatchNewOracleRequest

func (_KlayOracle *KlayOracleFilterer) WatchNewOracleRequest(opts *bind.WatchOpts, sink chan<- *KlayOracleNewOracleRequest) (event.Subscription, error)

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

Solidity: event NewOracleRequest(bytes32 requestId)

type KlayOracleInterface

type KlayOracleInterface struct {
	KlayOracleInterfaceCaller     // Read-only binding to the contract
	KlayOracleInterfaceTransactor // Write-only binding to the contract
	KlayOracleInterfaceFilterer   // Log filterer for contract events
}

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

func NewKlayOracleInterface

func NewKlayOracleInterface(address common.Address, backend bind.ContractBackend) (*KlayOracleInterface, error)

NewKlayOracleInterface creates a new instance of KlayOracleInterface, bound to a specific deployed contract.

type KlayOracleInterfaceCaller

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

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

func NewKlayOracleInterfaceCaller

func NewKlayOracleInterfaceCaller(address common.Address, caller bind.ContractCaller) (*KlayOracleInterfaceCaller, error)

NewKlayOracleInterfaceCaller creates a new read-only instance of KlayOracleInterface, bound to a specific deployed contract.

type KlayOracleInterfaceCallerRaw

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

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

func (*KlayOracleInterfaceCallerRaw) Call

func (_KlayOracleInterface *KlayOracleInterfaceCallerRaw) 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 KlayOracleInterfaceCallerSession

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

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

type KlayOracleInterfaceFilterer

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

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

func NewKlayOracleInterfaceFilterer

func NewKlayOracleInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*KlayOracleInterfaceFilterer, error)

NewKlayOracleInterfaceFilterer creates a new log filterer instance of KlayOracleInterface, bound to a specific deployed contract.

type KlayOracleInterfaceRaw

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

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

func (*KlayOracleInterfaceRaw) Call

func (_KlayOracleInterface *KlayOracleInterfaceRaw) 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 (*KlayOracleInterfaceRaw) Transact

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

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

func (*KlayOracleInterfaceRaw) Transfer

func (_KlayOracleInterface *KlayOracleInterfaceRaw) 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 KlayOracleInterfaceSession

type KlayOracleInterfaceSession struct {
	Contract     *KlayOracleInterface // 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
}

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

func (*KlayOracleInterfaceSession) NewOracleRequest

func (_KlayOracleInterface *KlayOracleInterfaceSession) NewOracleRequest(callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*KlayOracleInterfaceSession) NewRoundData

func (_KlayOracleInterface *KlayOracleInterfaceSession) NewRoundData(roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

type KlayOracleInterfaceTransactor

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

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

func NewKlayOracleInterfaceTransactor

func NewKlayOracleInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*KlayOracleInterfaceTransactor, error)

NewKlayOracleInterfaceTransactor creates a new write-only instance of KlayOracleInterface, bound to a specific deployed contract.

func (*KlayOracleInterfaceTransactor) NewOracleRequest

func (_KlayOracleInterface *KlayOracleInterfaceTransactor) NewOracleRequest(opts *bind.TransactOpts, callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*KlayOracleInterfaceTransactor) NewRoundData

func (_KlayOracleInterface *KlayOracleInterfaceTransactor) NewRoundData(opts *bind.TransactOpts, roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

type KlayOracleInterfaceTransactorRaw

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

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

func (*KlayOracleInterfaceTransactorRaw) Transact

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

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

func (*KlayOracleInterfaceTransactorRaw) Transfer

func (_KlayOracleInterface *KlayOracleInterfaceTransactorRaw) 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 KlayOracleInterfaceTransactorSession

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

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

func (*KlayOracleInterfaceTransactorSession) NewOracleRequest

func (_KlayOracleInterface *KlayOracleInterfaceTransactorSession) NewOracleRequest(callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*KlayOracleInterfaceTransactorSession) NewRoundData

func (_KlayOracleInterface *KlayOracleInterfaceTransactorSession) NewRoundData(roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

type KlayOracleNewOracleRequest

type KlayOracleNewOracleRequest struct {
	RequestId [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

KlayOracleNewOracleRequest represents a NewOracleRequest event raised by the KlayOracle contract.

type KlayOracleNewOracleRequestIterator

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

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

func (*KlayOracleNewOracleRequestIterator) Close

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

func (*KlayOracleNewOracleRequestIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*KlayOracleNewOracleRequestIterator) 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 KlayOracleRaw

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

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

func (*KlayOracleRaw) Call

func (_KlayOracle *KlayOracleRaw) 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 (*KlayOracleRaw) Transact

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

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

func (*KlayOracleRaw) Transfer

func (_KlayOracle *KlayOracleRaw) 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 KlayOracleSession

type KlayOracleSession struct {
	Contract     *KlayOracle       // 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
}

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

func (*KlayOracleSession) AdapterId

func (_KlayOracle *KlayOracleSession) AdapterId() ([32]byte, error)

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

Solidity: function adapterId() view returns(bytes32)

func (*KlayOracleSession) FulfilledCount

func (_KlayOracle *KlayOracleSession) FulfilledCount() (*big.Int, error)

FulfilledCount is a free data retrieval call binding the contract method 0xc5c28fd1.

Solidity: function fulfilledCount() view returns(uint256)

func (*KlayOracleSession) GetHash

func (_KlayOracle *KlayOracleSession) GetHash(roundAnswer [32]byte, roundTime *big.Int) ([32]byte, error)

GetHash is a free data retrieval call binding the contract method 0x77d3bfb9.

Solidity: function _getHash(bytes32 roundAnswer, uint256 roundTime) view returns(bytes32)

func (*KlayOracleSession) LatestRound

func (_KlayOracle *KlayOracleSession) LatestRound() (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*KlayOracleSession) NewOracleRequest

func (_KlayOracle *KlayOracleSession) NewOracleRequest(callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*KlayOracleSession) NewRoundData

func (_KlayOracle *KlayOracleSession) NewRoundData(roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

func (*KlayOracleSession) NodeAddress

func (_KlayOracle *KlayOracleSession) NodeAddress() (common.Address, error)

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

Solidity: function nodeAddress() view returns(address)

func (*KlayOracleSession) Requests

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

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

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

func (*KlayOracleSession) Rounds

func (_KlayOracle *KlayOracleSession) Rounds(arg0 *big.Int) (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

Rounds is a free data retrieval call binding the contract method 0x8c65c81f.

Solidity: function rounds(uint256 ) view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*KlayOracleSession) SplitSignature

func (_KlayOracle *KlayOracleSession) SplitSignature(sig []byte) (struct {
	R [32]byte
	S [32]byte
	V uint8
}, error)

SplitSignature is a free data retrieval call binding the contract method 0xa7bb5803.

Solidity: function splitSignature(bytes sig) pure returns(bytes32 r, bytes32 s, uint8 v)

func (*KlayOracleSession) VERSION

func (_KlayOracle *KlayOracleSession) VERSION() (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

func (*KlayOracleSession) VerifyKlaytnMessage

func (_KlayOracle *KlayOracleSession) VerifyKlaytnMessage(_hashedMessage [32]byte, _v uint8, _r [32]byte, _s [32]byte) (common.Address, error)

VerifyKlaytnMessage is a free data retrieval call binding the contract method 0xbe2bb8cd.

Solidity: function VerifyKlaytnMessage(bytes32 _hashedMessage, uint8 _v, bytes32 _r, bytes32 _s) pure returns(address)

type KlayOracleTransactor

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

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

func NewKlayOracleTransactor

func NewKlayOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*KlayOracleTransactor, error)

NewKlayOracleTransactor creates a new write-only instance of KlayOracle, bound to a specific deployed contract.

func (*KlayOracleTransactor) NewOracleRequest

func (_KlayOracle *KlayOracleTransactor) NewOracleRequest(opts *bind.TransactOpts, callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*KlayOracleTransactor) NewRoundData

func (_KlayOracle *KlayOracleTransactor) NewRoundData(opts *bind.TransactOpts, roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

type KlayOracleTransactorRaw

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

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

func (*KlayOracleTransactorRaw) Transact

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

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

func (*KlayOracleTransactorRaw) Transfer

func (_KlayOracle *KlayOracleTransactorRaw) 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 KlayOracleTransactorSession

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

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

func (*KlayOracleTransactorSession) NewOracleRequest

func (_KlayOracle *KlayOracleTransactorSession) NewOracleRequest(callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*KlayOracleTransactorSession) NewRoundData

func (_KlayOracle *KlayOracleTransactorSession) NewRoundData(roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

type OracleConsumerSample

type OracleConsumerSample struct {
	OracleConsumerSampleCaller     // Read-only binding to the contract
	OracleConsumerSampleTransactor // Write-only binding to the contract
	OracleConsumerSampleFilterer   // Log filterer for contract events
}

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

func DeployOracleConsumerSample

func DeployOracleConsumerSample(auth *bind.TransactOpts, backend bind.ContractBackend, _oracleAddress common.Address) (common.Address, *types.Transaction, *OracleConsumerSample, error)

DeployOracleConsumerSample deploys a new Klaytn contract, binding an instance of OracleConsumerSample to it.

func NewOracleConsumerSample

func NewOracleConsumerSample(address common.Address, backend bind.ContractBackend) (*OracleConsumerSample, error)

NewOracleConsumerSample creates a new instance of OracleConsumerSample, bound to a specific deployed contract.

type OracleConsumerSampleCaller

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

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

func NewOracleConsumerSampleCaller

func NewOracleConsumerSampleCaller(address common.Address, caller bind.ContractCaller) (*OracleConsumerSampleCaller, error)

NewOracleConsumerSampleCaller creates a new read-only instance of OracleConsumerSample, bound to a specific deployed contract.

func (*OracleConsumerSampleCaller) KlayOutput

func (_OracleConsumerSample *OracleConsumerSampleCaller) KlayOutput(opts *bind.CallOpts) (*big.Int, error)

KlayOutput is a free data retrieval call binding the contract method 0xd92a047c.

Solidity: function klayOutput() view returns(uint256)

func (*OracleConsumerSampleCaller) OracleAddress

func (_OracleConsumerSample *OracleConsumerSampleCaller) OracleAddress(opts *bind.CallOpts) (common.Address, error)

OracleAddress is a free data retrieval call binding the contract method 0xa89ae4ba.

Solidity: function oracleAddress() view returns(address)

type OracleConsumerSampleCallerRaw

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

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

func (*OracleConsumerSampleCallerRaw) Call

func (_OracleConsumerSample *OracleConsumerSampleCallerRaw) 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 OracleConsumerSampleCallerSession

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

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

func (*OracleConsumerSampleCallerSession) KlayOutput

func (_OracleConsumerSample *OracleConsumerSampleCallerSession) KlayOutput() (*big.Int, error)

KlayOutput is a free data retrieval call binding the contract method 0xd92a047c.

Solidity: function klayOutput() view returns(uint256)

func (*OracleConsumerSampleCallerSession) OracleAddress

func (_OracleConsumerSample *OracleConsumerSampleCallerSession) OracleAddress() (common.Address, error)

OracleAddress is a free data retrieval call binding the contract method 0xa89ae4ba.

Solidity: function oracleAddress() view returns(address)

type OracleConsumerSampleFilterer

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

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

func NewOracleConsumerSampleFilterer

func NewOracleConsumerSampleFilterer(address common.Address, filterer bind.ContractFilterer) (*OracleConsumerSampleFilterer, error)

NewOracleConsumerSampleFilterer creates a new log filterer instance of OracleConsumerSample, bound to a specific deployed contract.

type OracleConsumerSampleRaw

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

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

func (*OracleConsumerSampleRaw) Call

func (_OracleConsumerSample *OracleConsumerSampleRaw) 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 (*OracleConsumerSampleRaw) Transact

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

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

func (*OracleConsumerSampleRaw) Transfer

func (_OracleConsumerSample *OracleConsumerSampleRaw) 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 OracleConsumerSampleSession

type OracleConsumerSampleSession struct {
	Contract     *OracleConsumerSample // 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
}

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

func (*OracleConsumerSampleSession) KlayOutput

func (_OracleConsumerSample *OracleConsumerSampleSession) KlayOutput() (*big.Int, error)

KlayOutput is a free data retrieval call binding the contract method 0xd92a047c.

Solidity: function klayOutput() view returns(uint256)

func (*OracleConsumerSampleSession) OracleAddress

func (_OracleConsumerSample *OracleConsumerSampleSession) OracleAddress() (common.Address, error)

OracleAddress is a free data retrieval call binding the contract method 0xa89ae4ba.

Solidity: function oracleAddress() view returns(address)

func (*OracleConsumerSampleSession) Swap

func (_OracleConsumerSample *OracleConsumerSampleSession) Swap(_klayOutput *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x94b918de.

Solidity: function swap(uint256 _klayOutput) returns()

func (*OracleConsumerSampleSession) SwapEthtoKlay

func (_OracleConsumerSample *OracleConsumerSampleSession) SwapEthtoKlay() (*types.Transaction, error)

SwapEthtoKlay is a paid mutator transaction binding the contract method 0x760b78b0.

Solidity: function swapEthtoKlay() returns(bool)

type OracleConsumerSampleTransactor

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

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

func NewOracleConsumerSampleTransactor

func NewOracleConsumerSampleTransactor(address common.Address, transactor bind.ContractTransactor) (*OracleConsumerSampleTransactor, error)

NewOracleConsumerSampleTransactor creates a new write-only instance of OracleConsumerSample, bound to a specific deployed contract.

func (*OracleConsumerSampleTransactor) Swap

func (_OracleConsumerSample *OracleConsumerSampleTransactor) Swap(opts *bind.TransactOpts, _klayOutput *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x94b918de.

Solidity: function swap(uint256 _klayOutput) returns()

func (*OracleConsumerSampleTransactor) SwapEthtoKlay

func (_OracleConsumerSample *OracleConsumerSampleTransactor) SwapEthtoKlay(opts *bind.TransactOpts) (*types.Transaction, error)

SwapEthtoKlay is a paid mutator transaction binding the contract method 0x760b78b0.

Solidity: function swapEthtoKlay() returns(bool)

type OracleConsumerSampleTransactorRaw

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

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

func (*OracleConsumerSampleTransactorRaw) Transact

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

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

func (*OracleConsumerSampleTransactorRaw) Transfer

func (_OracleConsumerSample *OracleConsumerSampleTransactorRaw) 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 OracleConsumerSampleTransactorSession

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

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

func (*OracleConsumerSampleTransactorSession) Swap

func (_OracleConsumerSample *OracleConsumerSampleTransactorSession) Swap(_klayOutput *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x94b918de.

Solidity: function swap(uint256 _klayOutput) returns()

func (*OracleConsumerSampleTransactorSession) SwapEthtoKlay

func (_OracleConsumerSample *OracleConsumerSampleTransactorSession) SwapEthtoKlay() (*types.Transaction, error)

SwapEthtoKlay is a paid mutator transaction binding the contract method 0x760b78b0.

Solidity: function swapEthtoKlay() returns(bool)

type OracleProviderSample

type OracleProviderSample struct {
	OracleProviderSampleCaller     // Read-only binding to the contract
	OracleProviderSampleTransactor // Write-only binding to the contract
	OracleProviderSampleFilterer   // Log filterer for contract events
}

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

func DeployOracleProviderSample

func DeployOracleProviderSample(auth *bind.TransactOpts, backend bind.ContractBackend, _nodeAddress common.Address, _adapterId [32]byte) (common.Address, *types.Transaction, *OracleProviderSample, error)

DeployOracleProviderSample deploys a new Klaytn contract, binding an instance of OracleProviderSample to it.

func NewOracleProviderSample

func NewOracleProviderSample(address common.Address, backend bind.ContractBackend) (*OracleProviderSample, error)

NewOracleProviderSample creates a new instance of OracleProviderSample, bound to a specific deployed contract.

type OracleProviderSampleCaller

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

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

func NewOracleProviderSampleCaller

func NewOracleProviderSampleCaller(address common.Address, caller bind.ContractCaller) (*OracleProviderSampleCaller, error)

NewOracleProviderSampleCaller creates a new read-only instance of OracleProviderSample, bound to a specific deployed contract.

func (*OracleProviderSampleCaller) AdapterId

func (_OracleProviderSample *OracleProviderSampleCaller) AdapterId(opts *bind.CallOpts) ([32]byte, error)

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

Solidity: function adapterId() view returns(bytes32)

func (*OracleProviderSampleCaller) FulfilledCount

func (_OracleProviderSample *OracleProviderSampleCaller) FulfilledCount(opts *bind.CallOpts) (*big.Int, error)

FulfilledCount is a free data retrieval call binding the contract method 0xc5c28fd1.

Solidity: function fulfilledCount() view returns(uint256)

func (*OracleProviderSampleCaller) GetHash

func (_OracleProviderSample *OracleProviderSampleCaller) GetHash(opts *bind.CallOpts, roundAnswer [32]byte, roundTime *big.Int) ([32]byte, error)

GetHash is a free data retrieval call binding the contract method 0x77d3bfb9.

Solidity: function _getHash(bytes32 roundAnswer, uint256 roundTime) view returns(bytes32)

func (*OracleProviderSampleCaller) LatestRound

func (_OracleProviderSample *OracleProviderSampleCaller) LatestRound(opts *bind.CallOpts) (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*OracleProviderSampleCaller) NodeAddress

func (_OracleProviderSample *OracleProviderSampleCaller) 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 (*OracleProviderSampleCaller) Requests

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

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

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

func (*OracleProviderSampleCaller) Rounds

func (_OracleProviderSample *OracleProviderSampleCaller) Rounds(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

Rounds is a free data retrieval call binding the contract method 0x8c65c81f.

Solidity: function rounds(uint256 ) view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*OracleProviderSampleCaller) SplitSignature

func (_OracleProviderSample *OracleProviderSampleCaller) SplitSignature(opts *bind.CallOpts, sig []byte) (struct {
	R [32]byte
	S [32]byte
	V uint8
}, error)

SplitSignature is a free data retrieval call binding the contract method 0xa7bb5803.

Solidity: function splitSignature(bytes sig) pure returns(bytes32 r, bytes32 s, uint8 v)

func (*OracleProviderSampleCaller) VERSION

func (_OracleProviderSample *OracleProviderSampleCaller) VERSION(opts *bind.CallOpts) (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

func (*OracleProviderSampleCaller) VerifyKlaytnMessage

func (_OracleProviderSample *OracleProviderSampleCaller) VerifyKlaytnMessage(opts *bind.CallOpts, _hashedMessage [32]byte, _v uint8, _r [32]byte, _s [32]byte) (common.Address, error)

VerifyKlaytnMessage is a free data retrieval call binding the contract method 0xbe2bb8cd.

Solidity: function VerifyKlaytnMessage(bytes32 _hashedMessage, uint8 _v, bytes32 _r, bytes32 _s) pure returns(address)

type OracleProviderSampleCallerRaw

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

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

func (*OracleProviderSampleCallerRaw) Call

func (_OracleProviderSample *OracleProviderSampleCallerRaw) 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 OracleProviderSampleCallerSession

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

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

func (*OracleProviderSampleCallerSession) AdapterId

func (_OracleProviderSample *OracleProviderSampleCallerSession) AdapterId() ([32]byte, error)

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

Solidity: function adapterId() view returns(bytes32)

func (*OracleProviderSampleCallerSession) FulfilledCount

func (_OracleProviderSample *OracleProviderSampleCallerSession) FulfilledCount() (*big.Int, error)

FulfilledCount is a free data retrieval call binding the contract method 0xc5c28fd1.

Solidity: function fulfilledCount() view returns(uint256)

func (*OracleProviderSampleCallerSession) GetHash

func (_OracleProviderSample *OracleProviderSampleCallerSession) GetHash(roundAnswer [32]byte, roundTime *big.Int) ([32]byte, error)

GetHash is a free data retrieval call binding the contract method 0x77d3bfb9.

Solidity: function _getHash(bytes32 roundAnswer, uint256 roundTime) view returns(bytes32)

func (*OracleProviderSampleCallerSession) LatestRound

func (_OracleProviderSample *OracleProviderSampleCallerSession) LatestRound() (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*OracleProviderSampleCallerSession) NodeAddress

func (_OracleProviderSample *OracleProviderSampleCallerSession) NodeAddress() (common.Address, error)

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

Solidity: function nodeAddress() view returns(address)

func (*OracleProviderSampleCallerSession) Requests

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

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

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

func (*OracleProviderSampleCallerSession) Rounds

func (_OracleProviderSample *OracleProviderSampleCallerSession) Rounds(arg0 *big.Int) (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

Rounds is a free data retrieval call binding the contract method 0x8c65c81f.

Solidity: function rounds(uint256 ) view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*OracleProviderSampleCallerSession) SplitSignature

func (_OracleProviderSample *OracleProviderSampleCallerSession) SplitSignature(sig []byte) (struct {
	R [32]byte
	S [32]byte
	V uint8
}, error)

SplitSignature is a free data retrieval call binding the contract method 0xa7bb5803.

Solidity: function splitSignature(bytes sig) pure returns(bytes32 r, bytes32 s, uint8 v)

func (*OracleProviderSampleCallerSession) VERSION

func (_OracleProviderSample *OracleProviderSampleCallerSession) VERSION() (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

func (*OracleProviderSampleCallerSession) VerifyKlaytnMessage

func (_OracleProviderSample *OracleProviderSampleCallerSession) VerifyKlaytnMessage(_hashedMessage [32]byte, _v uint8, _r [32]byte, _s [32]byte) (common.Address, error)

VerifyKlaytnMessage is a free data retrieval call binding the contract method 0xbe2bb8cd.

Solidity: function VerifyKlaytnMessage(bytes32 _hashedMessage, uint8 _v, bytes32 _r, bytes32 _s) pure returns(address)

type OracleProviderSampleFilterer

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

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

func NewOracleProviderSampleFilterer

func NewOracleProviderSampleFilterer(address common.Address, filterer bind.ContractFilterer) (*OracleProviderSampleFilterer, error)

NewOracleProviderSampleFilterer creates a new log filterer instance of OracleProviderSample, bound to a specific deployed contract.

func (*OracleProviderSampleFilterer) FilterNewOracleRequest

func (_OracleProviderSample *OracleProviderSampleFilterer) FilterNewOracleRequest(opts *bind.FilterOpts) (*OracleProviderSampleNewOracleRequestIterator, error)

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

Solidity: event NewOracleRequest(bytes32 requestId)

func (*OracleProviderSampleFilterer) ParseNewOracleRequest

func (_OracleProviderSample *OracleProviderSampleFilterer) ParseNewOracleRequest(log types.Log) (*OracleProviderSampleNewOracleRequest, error)

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

Solidity: event NewOracleRequest(bytes32 requestId)

func (*OracleProviderSampleFilterer) WatchNewOracleRequest

func (_OracleProviderSample *OracleProviderSampleFilterer) WatchNewOracleRequest(opts *bind.WatchOpts, sink chan<- *OracleProviderSampleNewOracleRequest) (event.Subscription, error)

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

Solidity: event NewOracleRequest(bytes32 requestId)

type OracleProviderSampleNewOracleRequest

type OracleProviderSampleNewOracleRequest struct {
	RequestId [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

OracleProviderSampleNewOracleRequest represents a NewOracleRequest event raised by the OracleProviderSample contract.

type OracleProviderSampleNewOracleRequestIterator

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

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

func (*OracleProviderSampleNewOracleRequestIterator) Close

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

func (*OracleProviderSampleNewOracleRequestIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OracleProviderSampleNewOracleRequestIterator) 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 OracleProviderSampleRaw

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

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

func (*OracleProviderSampleRaw) Call

func (_OracleProviderSample *OracleProviderSampleRaw) 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 (*OracleProviderSampleRaw) Transact

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

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

func (*OracleProviderSampleRaw) Transfer

func (_OracleProviderSample *OracleProviderSampleRaw) 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 OracleProviderSampleSession

type OracleProviderSampleSession struct {
	Contract     *OracleProviderSample // 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
}

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

func (*OracleProviderSampleSession) AdapterId

func (_OracleProviderSample *OracleProviderSampleSession) AdapterId() ([32]byte, error)

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

Solidity: function adapterId() view returns(bytes32)

func (*OracleProviderSampleSession) FulfilledCount

func (_OracleProviderSample *OracleProviderSampleSession) FulfilledCount() (*big.Int, error)

FulfilledCount is a free data retrieval call binding the contract method 0xc5c28fd1.

Solidity: function fulfilledCount() view returns(uint256)

func (*OracleProviderSampleSession) GetHash

func (_OracleProviderSample *OracleProviderSampleSession) GetHash(roundAnswer [32]byte, roundTime *big.Int) ([32]byte, error)

GetHash is a free data retrieval call binding the contract method 0x77d3bfb9.

Solidity: function _getHash(bytes32 roundAnswer, uint256 roundTime) view returns(bytes32)

func (*OracleProviderSampleSession) LatestRound

func (_OracleProviderSample *OracleProviderSampleSession) LatestRound() (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*OracleProviderSampleSession) NewOracleRequest

func (_OracleProviderSample *OracleProviderSampleSession) NewOracleRequest(callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*OracleProviderSampleSession) NewRoundData

func (_OracleProviderSample *OracleProviderSampleSession) NewRoundData(roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

func (*OracleProviderSampleSession) NodeAddress

func (_OracleProviderSample *OracleProviderSampleSession) NodeAddress() (common.Address, error)

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

Solidity: function nodeAddress() view returns(address)

func (*OracleProviderSampleSession) Requests

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

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

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

func (*OracleProviderSampleSession) Rounds

func (_OracleProviderSample *OracleProviderSampleSession) Rounds(arg0 *big.Int) (struct {
	Answer    [32]byte
	RoundTime *big.Int
	Timestamp *big.Int
}, error)

Rounds is a free data retrieval call binding the contract method 0x8c65c81f.

Solidity: function rounds(uint256 ) view returns(bytes32 answer, uint256 roundTime, uint256 timestamp)

func (*OracleProviderSampleSession) SplitSignature

func (_OracleProviderSample *OracleProviderSampleSession) SplitSignature(sig []byte) (struct {
	R [32]byte
	S [32]byte
	V uint8
}, error)

SplitSignature is a free data retrieval call binding the contract method 0xa7bb5803.

Solidity: function splitSignature(bytes sig) pure returns(bytes32 r, bytes32 s, uint8 v)

func (*OracleProviderSampleSession) VERSION

func (_OracleProviderSample *OracleProviderSampleSession) VERSION() (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

func (*OracleProviderSampleSession) VerifyKlaytnMessage

func (_OracleProviderSample *OracleProviderSampleSession) VerifyKlaytnMessage(_hashedMessage [32]byte, _v uint8, _r [32]byte, _s [32]byte) (common.Address, error)

VerifyKlaytnMessage is a free data retrieval call binding the contract method 0xbe2bb8cd.

Solidity: function VerifyKlaytnMessage(bytes32 _hashedMessage, uint8 _v, bytes32 _r, bytes32 _s) pure returns(address)

type OracleProviderSampleTransactor

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

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

func NewOracleProviderSampleTransactor

func NewOracleProviderSampleTransactor(address common.Address, transactor bind.ContractTransactor) (*OracleProviderSampleTransactor, error)

NewOracleProviderSampleTransactor creates a new write-only instance of OracleProviderSample, bound to a specific deployed contract.

func (*OracleProviderSampleTransactor) NewOracleRequest

func (_OracleProviderSample *OracleProviderSampleTransactor) NewOracleRequest(opts *bind.TransactOpts, callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*OracleProviderSampleTransactor) NewRoundData

func (_OracleProviderSample *OracleProviderSampleTransactor) NewRoundData(opts *bind.TransactOpts, roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

type OracleProviderSampleTransactorRaw

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

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

func (*OracleProviderSampleTransactorRaw) Transact

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

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

func (*OracleProviderSampleTransactorRaw) Transfer

func (_OracleProviderSample *OracleProviderSampleTransactorRaw) 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 OracleProviderSampleTransactorSession

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

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

func (*OracleProviderSampleTransactorSession) NewOracleRequest

func (_OracleProviderSample *OracleProviderSampleTransactorSession) NewOracleRequest(callbackFunctionId [4]byte, callBackContract common.Address) (*types.Transaction, error)

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

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

func (*OracleProviderSampleTransactorSession) NewRoundData

func (_OracleProviderSample *OracleProviderSampleTransactorSession) NewRoundData(roundTime *big.Int, roundAnswer [32]byte, signature []byte) (*types.Transaction, error)

NewRoundData is a paid mutator transaction binding the contract method 0x09c980c1.

Solidity: function newRoundData(uint256 roundTime, bytes32 roundAnswer, bytes signature) returns(bool)

Jump to

Keyboard shortcuts

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