ocr2dr_client

package
v2.12.1-starknet-06212024 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OCR2DRClientABI = OCR2DRClientMetaData.ABI
View Source
var OCR2DRClientMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"NoInlineSecrets\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RequestIsAlreadyPending\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RequestIsNotPending\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SenderIsNotRegistry\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"RequestFulfilled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"RequestSent\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enumFunctions.Location\",\"name\":\"codeLocation\",\"type\":\"uint8\"},{\"internalType\":\"enumFunctions.Location\",\"name\":\"secretsLocation\",\"type\":\"uint8\"},{\"internalType\":\"enumFunctions.CodeLanguage\",\"name\":\"language\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"source\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"secrets\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"args\",\"type\":\"string[]\"}],\"internalType\":\"structFunctions.Request\",\"name\":\"req\",\"type\":\"tuple\"},{\"internalType\":\"uint64\",\"name\":\"subscriptionId\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"}],\"name\":\"estimateCost\",\"outputs\":[{\"internalType\":\"uint96\",\"name\":\"\",\"type\":\"uint96\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDONPublicKey\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"requestId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"response\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"err\",\"type\":\"bytes\"}],\"name\":\"handleOracleFulfillment\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

Functions

This section is empty.

Types

type FunctionsRequest

type FunctionsRequest struct {
	CodeLocation    uint8
	SecretsLocation uint8
	Language        uint8
	Source          string
	Secrets         []byte
	Args            []string
}

type OCR2DRClient

type OCR2DRClient struct {
	OCR2DRClientCaller
	OCR2DRClientTransactor
	OCR2DRClientFilterer
	// contains filtered or unexported fields
}

func NewOCR2DRClient

func NewOCR2DRClient(address common.Address, backend bind.ContractBackend) (*OCR2DRClient, error)

func (*OCR2DRClient) Address

func (_OCR2DRClient *OCR2DRClient) Address() common.Address

func (*OCR2DRClient) ParseLog

func (_OCR2DRClient *OCR2DRClient) ParseLog(log types.Log) (generated.AbigenLog, error)

type OCR2DRClientCaller

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

func NewOCR2DRClientCaller

func NewOCR2DRClientCaller(address common.Address, caller bind.ContractCaller) (*OCR2DRClientCaller, error)

func (*OCR2DRClientCaller) EstimateCost

func (_OCR2DRClient *OCR2DRClientCaller) EstimateCost(opts *bind.CallOpts, req FunctionsRequest, subscriptionId uint64, gasLimit uint32, gasPrice *big.Int) (*big.Int, error)

func (*OCR2DRClientCaller) GetDONPublicKey

func (_OCR2DRClient *OCR2DRClientCaller) GetDONPublicKey(opts *bind.CallOpts) ([]byte, error)

type OCR2DRClientCallerRaw

type OCR2DRClientCallerRaw struct {
	Contract *OCR2DRClientCaller
}

func (*OCR2DRClientCallerRaw) Call

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

type OCR2DRClientCallerSession

type OCR2DRClientCallerSession struct {
	Contract *OCR2DRClientCaller
	CallOpts bind.CallOpts
}

func (*OCR2DRClientCallerSession) EstimateCost

func (_OCR2DRClient *OCR2DRClientCallerSession) EstimateCost(req FunctionsRequest, subscriptionId uint64, gasLimit uint32, gasPrice *big.Int) (*big.Int, error)

func (*OCR2DRClientCallerSession) GetDONPublicKey

func (_OCR2DRClient *OCR2DRClientCallerSession) GetDONPublicKey() ([]byte, error)

type OCR2DRClientFilterer

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

func NewOCR2DRClientFilterer

func NewOCR2DRClientFilterer(address common.Address, filterer bind.ContractFilterer) (*OCR2DRClientFilterer, error)

func (*OCR2DRClientFilterer) FilterRequestFulfilled

func (_OCR2DRClient *OCR2DRClientFilterer) FilterRequestFulfilled(opts *bind.FilterOpts, id [][32]byte) (*OCR2DRClientRequestFulfilledIterator, error)

func (*OCR2DRClientFilterer) FilterRequestSent

func (_OCR2DRClient *OCR2DRClientFilterer) FilterRequestSent(opts *bind.FilterOpts, id [][32]byte) (*OCR2DRClientRequestSentIterator, error)

func (*OCR2DRClientFilterer) ParseRequestFulfilled

func (_OCR2DRClient *OCR2DRClientFilterer) ParseRequestFulfilled(log types.Log) (*OCR2DRClientRequestFulfilled, error)

func (*OCR2DRClientFilterer) ParseRequestSent

func (_OCR2DRClient *OCR2DRClientFilterer) ParseRequestSent(log types.Log) (*OCR2DRClientRequestSent, error)

func (*OCR2DRClientFilterer) WatchRequestFulfilled

func (_OCR2DRClient *OCR2DRClientFilterer) WatchRequestFulfilled(opts *bind.WatchOpts, sink chan<- *OCR2DRClientRequestFulfilled, id [][32]byte) (event.Subscription, error)

func (*OCR2DRClientFilterer) WatchRequestSent

func (_OCR2DRClient *OCR2DRClientFilterer) WatchRequestSent(opts *bind.WatchOpts, sink chan<- *OCR2DRClientRequestSent, id [][32]byte) (event.Subscription, error)

type OCR2DRClientInterface

type OCR2DRClientInterface interface {
	EstimateCost(opts *bind.CallOpts, req FunctionsRequest, subscriptionId uint64, gasLimit uint32, gasPrice *big.Int) (*big.Int, error)

	GetDONPublicKey(opts *bind.CallOpts) ([]byte, error)

	HandleOracleFulfillment(opts *bind.TransactOpts, requestId [32]byte, response []byte, err []byte) (*types.Transaction, error)

	FilterRequestFulfilled(opts *bind.FilterOpts, id [][32]byte) (*OCR2DRClientRequestFulfilledIterator, error)

	WatchRequestFulfilled(opts *bind.WatchOpts, sink chan<- *OCR2DRClientRequestFulfilled, id [][32]byte) (event.Subscription, error)

	ParseRequestFulfilled(log types.Log) (*OCR2DRClientRequestFulfilled, error)

	FilterRequestSent(opts *bind.FilterOpts, id [][32]byte) (*OCR2DRClientRequestSentIterator, error)

	WatchRequestSent(opts *bind.WatchOpts, sink chan<- *OCR2DRClientRequestSent, id [][32]byte) (event.Subscription, error)

	ParseRequestSent(log types.Log) (*OCR2DRClientRequestSent, error)

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

	Address() common.Address
}

type OCR2DRClientRaw

type OCR2DRClientRaw struct {
	Contract *OCR2DRClient
}

func (*OCR2DRClientRaw) Call

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

func (*OCR2DRClientRaw) Transact

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

func (*OCR2DRClientRaw) Transfer

func (_OCR2DRClient *OCR2DRClientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type OCR2DRClientRequestFulfilled

type OCR2DRClientRequestFulfilled struct {
	Id  [32]byte
	Raw types.Log
}

func (OCR2DRClientRequestFulfilled) Topic

type OCR2DRClientRequestFulfilledIterator

type OCR2DRClientRequestFulfilledIterator struct {
	Event *OCR2DRClientRequestFulfilled
	// contains filtered or unexported fields
}

func (*OCR2DRClientRequestFulfilledIterator) Close

func (*OCR2DRClientRequestFulfilledIterator) Error

func (*OCR2DRClientRequestFulfilledIterator) Next

type OCR2DRClientRequestSent

type OCR2DRClientRequestSent struct {
	Id  [32]byte
	Raw types.Log
}

func (OCR2DRClientRequestSent) Topic

type OCR2DRClientRequestSentIterator

type OCR2DRClientRequestSentIterator struct {
	Event *OCR2DRClientRequestSent
	// contains filtered or unexported fields
}

func (*OCR2DRClientRequestSentIterator) Close

func (*OCR2DRClientRequestSentIterator) Error

func (*OCR2DRClientRequestSentIterator) Next

type OCR2DRClientSession

type OCR2DRClientSession struct {
	Contract     *OCR2DRClient
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*OCR2DRClientSession) EstimateCost

func (_OCR2DRClient *OCR2DRClientSession) EstimateCost(req FunctionsRequest, subscriptionId uint64, gasLimit uint32, gasPrice *big.Int) (*big.Int, error)

func (*OCR2DRClientSession) GetDONPublicKey

func (_OCR2DRClient *OCR2DRClientSession) GetDONPublicKey() ([]byte, error)

func (*OCR2DRClientSession) HandleOracleFulfillment

func (_OCR2DRClient *OCR2DRClientSession) HandleOracleFulfillment(requestId [32]byte, response []byte, err []byte) (*types.Transaction, error)

type OCR2DRClientTransactor

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

func NewOCR2DRClientTransactor

func NewOCR2DRClientTransactor(address common.Address, transactor bind.ContractTransactor) (*OCR2DRClientTransactor, error)

func (*OCR2DRClientTransactor) HandleOracleFulfillment

func (_OCR2DRClient *OCR2DRClientTransactor) HandleOracleFulfillment(opts *bind.TransactOpts, requestId [32]byte, response []byte, err []byte) (*types.Transaction, error)

type OCR2DRClientTransactorRaw

type OCR2DRClientTransactorRaw struct {
	Contract *OCR2DRClientTransactor
}

func (*OCR2DRClientTransactorRaw) Transact

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

func (*OCR2DRClientTransactorRaw) Transfer

func (_OCR2DRClient *OCR2DRClientTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type OCR2DRClientTransactorSession

type OCR2DRClientTransactorSession struct {
	Contract     *OCR2DRClientTransactor
	TransactOpts bind.TransactOpts
}

func (*OCR2DRClientTransactorSession) HandleOracleFulfillment

func (_OCR2DRClient *OCR2DRClientTransactorSession) HandleOracleFulfillment(requestId [32]byte, response []byte, err []byte) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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