ocr2dr_client_example

package
v1.11.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OCR2DRClientExampleABI = OCR2DRClientExampleMetaData.ABI
View Source
var OCR2DRClientExampleBin = OCR2DRClientExampleMetaData.Bin
View Source
var OCR2DRClientExampleMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"EmptyArgs\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptySecrets\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptySource\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RequestIsAlreadyPending\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RequestIsNotPending\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SenderIsNotRegistry\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"requestId\",\"type\":\"bytes32\"}],\"name\":\"UnexpectedRequestID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"OwnershipTransferRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"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\":[{\"internalType\":\"string\",\"name\":\"source\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"secrets\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"args\",\"type\":\"string[]\"},{\"internalType\":\"uint64\",\"name\":\"subscriptionId\",\"type\":\"uint64\"}],\"name\":\"SendRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enumOCR2DR.Location\",\"name\":\"codeLocation\",\"type\":\"uint8\"},{\"internalType\":\"enumOCR2DR.Location\",\"name\":\"secretsLocation\",\"type\":\"uint8\"},{\"internalType\":\"enumOCR2DR.CodeLanguage\",\"name\":\"language\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"source\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"secrets\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"args\",\"type\":\"string[]\"}],\"internalType\":\"structOCR2DR.Request\",\"name\":\"req\",\"type\":\"tuple\"},{\"internalType\":\"uint64\",\"name\":\"subscriptionId\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"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\"},{\"inputs\":[],\"name\":\"lastError\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRequestId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastResponse\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60806040523480156200001157600080fd5b5060405162001ea938038062001ea9833981016040819052620000349162000199565b600080546001600160a01b0319166001600160a01b038316178155339081906001600160a01b038216620000af5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420736574206f776e657220746f207a65726f000000000000000060448201526064015b60405180910390fd5b600280546001600160a01b0319166001600160a01b0384811691909117909155811615620000e257620000e281620000ec565b50505050620001cb565b6001600160a01b038116331415620001475760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c660000000000000000006044820152606401620000a6565b600380546001600160a01b0319166001600160a01b03838116918217909255600254604051919216907fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127890600090a350565b600060208284031215620001ac57600080fd5b81516001600160a01b0381168114620001c457600080fd5b9392505050565b611cce80620001db6000396000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c8063977efb8a11610076578063d769717e1161005b578063d769717e14610166578063f2fde38b14610179578063fc2a88c31461018c57600080fd5b8063977efb8a1461012e578063d328a91e1461015e57600080fd5b806362747e42116100a757806362747e42146100f657806379ba5097146100fe5780638da5cb5b1461010657600080fd5b80630ca76175146100c357806329f0de3f146100d8575b600080fd5b6100d66100d136600461150a565b6101a3565b005b6100e061026e565b6040516100ed919061184b565b60405180910390f35b6100e06102fc565b6100d6610309565b60025460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100ed565b61014161013c3660046116c9565b61040f565b6040516bffffffffffffffffffffffff90911681526020016100ed565b6100e06104af565b6100d66101743660046115ee565b610578565b6100d66101873660046114b7565b610678565b61019560045481565b6040519081526020016100ed565b600083815260016020526040902054839073ffffffffffffffffffffffffffffffffffffffff163314610202576040517fa0c5ec6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008181526001602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555182917f85e1543bf2f84fe80c6badbce3648c8539ad1df4d2b3d822938ca0538be727e691a261026884848461068c565b50505050565b6006805461027b90611b21565b80601f01602080910402602001604051908101604052809291908181526020018280546102a790611b21565b80156102f45780601f106102c9576101008083540402835291602001916102f4565b820191906000526020600020905b8154815290600101906020018083116102d757829003601f168201915b505050505081565b6005805461027b90611b21565b60035473ffffffffffffffffffffffffffffffffffffffff16331461038f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d7573742062652070726f706f736564206f776e65720000000000000000000060448201526064015b60405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000008082163390811790935560038054909116905560405173ffffffffffffffffffffffffffffffffffffffff909116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b6000805473ffffffffffffffffffffffffffffffffffffffff1663779e296b84610438876106f1565b856040518463ffffffff1660e01b81526004016104579392919061185e565b60206040518083038186803b15801561046f57600080fd5b505afa158015610483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a791906117d3565b949350505050565b60008054604080517fd328a91e000000000000000000000000000000000000000000000000000000008152905160609373ffffffffffffffffffffffffffffffffffffffff9093169263d328a91e9260048082019391829003018186803b15801561051957600080fd5b505afa15801561052d573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526105739190810190611577565b905090565b610580610982565b6105ba6040805160c08101909152806000815260200160008152602001600081526020016060815260200160608152602001606081525090565b6105fc88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508593925050610a059050565b84156106445761064486868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508593925050610a169050565b821561065e5761065e6106578486611ae8565b8290610a5d565b61066b818361c350610a9d565b6004555050505050505050565b610680610982565b61068981610c5b565b50565b82600454146106ca576040517fd068bf5b00000000000000000000000000000000000000000000000000000000815260048101849052602401610386565b81516106dd906005906020850190611293565b508051610268906006906020840190611293565b6060610710604051806040016040528060608152602001600081525090565b61071c81610100610d52565b5060408051808201909152600c81527f636f64654c6f636174696f6e0000000000000000000000000000000000000000602082015261075c908290610dbd565b825161077790801561077057610770611c12565b8290610dd9565b60408051808201909152600881527f6c616e677561676500000000000000000000000000000000000000000000000060208201526107b6908290610dbd565b60408301516107cd90801561077057610770611c12565b60408051808201909152600681527f736f757263650000000000000000000000000000000000000000000000000000602082015261080c908290610dbd565b606083015161081c908290610dbd565b60a083015151156108cb5760408051808201909152600481527f61726773000000000000000000000000000000000000000000000000000000006020820152610866908290610dbd565b61086f81610dff565b60005b8360a00151518110156108c1576108af8460a00151828151811061089857610898611c41565b602002602001015183610dbd90919063ffffffff16565b806108b981611b6f565b915050610872565b506108cb81610e0a565b6080830151511561097b5760408051808201909152600f81527f736563726574734c6f636174696f6e00000000000000000000000000000000006020820152610915908290610dbd565b602083015161092c90801561077057610770611c12565b60408051808201909152600781527f7365637265747300000000000000000000000000000000000000000000000000602082015261096b908290610dbd565b608083015161097b908290610e15565b5192915050565b60025473ffffffffffffffffffffffffffffffffffffffff163314610a03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f6e6c792063616c6c61626c65206279206f776e6572000000000000000000006044820152606401610386565b565b610a128260008084610e22565b5050565b8051610a4e576040517fe889636f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006020830152608090910152565b8051610a95576040517ffe936cb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60a090910152565b60008054819073ffffffffffffffffffffffffffffffffffffffff166328242b0485610ac8886106f1565b866040518463ffffffff1660e01b8152600401610ae79392919061185e565b602060405180830381600087803b158015610b0157600080fd5b505af1158015610b15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3991906114f1565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635ab1bd536040518163ffffffff1660e01b815260040160206040518083038186803b158015610ba157600080fd5b505afa158015610bb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd991906114d4565b60008281526001602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9490941693909317909255905182917f1131472297a800fee664d1d89cfa8f7676ff07189ecc53f80bbb5f4969099db891a2949350505050565b73ffffffffffffffffffffffffffffffffffffffff8116331415610cdb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c660000000000000000006044820152606401610386565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff838116918217909255600254604051919216907fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127890600090a350565b604080518082019091526060815260006020820152610d72602083611ba8565b15610d9a57610d82602083611ba8565b610d8d906020611ad1565b610d979083611955565b91505b506020808301829052604080518085526000815283019091019052815b92915050565b610dca8260038351610eb0565b610dd48282610fbf565b505050565b67ffffffffffffffff811115610df357610a128282610fed565b610a1282600083610eb0565b610689816004611024565b610689816007611024565b610dca8260028351610eb0565b8051610e5a576040517f22ce3edd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83838015610e6a57610e6a611c12565b90818015610e7a57610e7a611c12565b90525060408401828015610e9057610e90611c12565b90818015610ea057610ea0611c12565b9052506060909301929092525050565b60178167ffffffffffffffff1611610ed5576102688360e0600585901b168317611035565b60ff8167ffffffffffffffff1611610f1357610efc836018611fe0600586901b1617611035565b506102688367ffffffffffffffff8316600161105a565b61ffff8167ffffffffffffffff1611610f5257610f3b836019611fe0600586901b1617611035565b506102688367ffffffffffffffff8316600261105a565b63ffffffff8167ffffffffffffffff1611610f9357610f7c83601a611fe0600586901b1617611035565b506102688367ffffffffffffffff8316600461105a565b610fa883601b611fe0600586901b1617611035565b506102688367ffffffffffffffff8316600861105a565b604080518082019091526060815260006020820152610fe683846000015151848551611080565b9392505050565b610ff88260c2611035565b50610a12828260405160200161101091815260200190565b604051602081830303815290604052610e15565b610dd482601f611fe0600585901b16175b604080518082019091526060815260006020820152610fe68384600001515184611188565b6040805180820190915260608152600060208201526104a78485600001515185856111e4565b60408051808201909152606081526000602082015282518211156110a357600080fd5b60208501516110b28386611955565b11156110e5576110e5856110d5876020015187866110d09190611955565b611265565b6110e0906002611a94565b61127c565b6000808651805187602083010193508088870111156111045787860182525b505050602084015b602084106111445780518252611123602083611955565b9150611130602082611955565b905061113d602085611ad1565b935061110c565b5181517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60208690036101000a019081169019919091161790525083949350505050565b604080518082019091526060815260006020820152836020015183106111bd576111bd84856020015160026110e09190611a94565b8351805160208583010184815350808514156111da576001810182525b5093949350505050565b60408051808201909152606081526000602082015260208501516112088584611955565b111561121c5761121c856110d58685611955565b6000600161122c846101006119ce565b6112369190611ad1565b905085518386820101858319825116178152508051848701111561125a5783860181525b509495945050505050565b600081831115611276575081610db7565b50919050565b81516112888383610d52565b506102688382610fbf565b82805461129f90611b21565b90600052602060002090601f0160209004810192826112c15760008555611307565b82601f106112da57805160ff1916838001178555611307565b82800160010185558215611307579182015b828111156113075782518255916020019190600101906112ec565b50611313929150611317565b5090565b5b808211156113135760008155600101611318565b600067ffffffffffffffff8084111561134757611347611c70565b8360051b60206113588183016118c0565b86815293508084018583810189101561137057600080fd5b60009350835b888110156113ab5781358681111561138c578586fd5b6113988b828b01611421565b8452509183019190830190600101611376565b5050505050509392505050565b600082601f8301126113c957600080fd5b610fe68383356020850161132c565b60008083601f8401126113ea57600080fd5b50813567ffffffffffffffff81111561140257600080fd5b60208301915083602082850101111561141a57600080fd5b9250929050565b600082601f83011261143257600080fd5b81356114456114408261190f565b6118c0565b81815284602083860101111561145a57600080fd5b816020850160208301376000918101602001919091529392505050565b80356001811061148657600080fd5b919050565b803563ffffffff8116811461148657600080fd5b803567ffffffffffffffff8116811461148657600080fd5b6000602082840312156114c957600080fd5b8135610fe681611c9f565b6000602082840312156114e657600080fd5b8151610fe681611c9f565b60006020828403121561150357600080fd5b5051919050565b60008060006060848603121561151f57600080fd5b83359250602084013567ffffffffffffffff8082111561153e57600080fd5b61154a87838801611421565b9350604086013591508082111561156057600080fd5b5061156d86828701611421565b9150509250925092565b60006020828403121561158957600080fd5b815167ffffffffffffffff8111156115a057600080fd5b8201601f810184136115b157600080fd5b80516115bf6114408261190f565b8181528560208385010111156115d457600080fd5b6115e5826020830160208601611af5565b95945050505050565b60008060008060008060006080888a03121561160957600080fd5b873567ffffffffffffffff8082111561162157600080fd5b61162d8b838c016113d8565b909950975060208a013591508082111561164657600080fd5b6116528b838c016113d8565b909750955060408a013591508082111561166b57600080fd5b818a0191508a601f83011261167f57600080fd5b81358181111561168e57600080fd5b8b60208260051b85010111156116a357600080fd5b6020830195508094505050506116bb6060890161149f565b905092959891949750929550565b6000806000606084860312156116de57600080fd5b833567ffffffffffffffff808211156116f657600080fd5b9085019060c0828803121561170a57600080fd5b611712611897565b61171b83611477565b815261172960208401611477565b602082015261173a60408401611477565b604082015260608301358281111561175157600080fd5b61175d89828601611421565b60608301525060808301358281111561177557600080fd5b61178189828601611421565b60808301525060a08301358281111561179957600080fd5b6117a5898286016113b8565b60a08301525094506117bc9150506020850161149f565b91506117ca6040850161148b565b90509250925092565b6000602082840312156117e557600080fd5b81516bffffffffffffffffffffffff81168114610fe657600080fd5b60008151808452611819816020860160208601611af5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610fe66020830184611801565b67ffffffffffffffff841681526060602082015260006118816060830185611801565b905063ffffffff83166040830152949350505050565b60405160c0810167ffffffffffffffff811182821017156118ba576118ba611c70565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561190757611907611c70565b604052919050565b600067ffffffffffffffff82111561192957611929611c70565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000821982111561196857611968611be3565b500190565b600181815b808511156119c657817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156119ac576119ac611be3565b808516156119b957918102915b93841c9390800290611972565b509250929050565b6000610fe683836000826119e457506001610db7565b816119f157506000610db7565b8160018114611a075760028114611a1157611a2d565b6001915050610db7565b60ff841115611a2257611a22611be3565b50506001821b610db7565b5060208310610133831016604e8410600b8410161715611a50575081810a610db7565b611a5a838361196d565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115611a8c57611a8c611be3565b029392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611acc57611acc611be3565b500290565b600082821015611ae357611ae3611be3565b500390565b6000610fe636848461132c565b60005b83811015611b10578181015183820152602001611af8565b838111156102685750506000910152565b600181811c90821680611b3557607f821691505b60208210811415611276577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ba157611ba1611be3565b5060010190565b600082611bde577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461068957600080fdfea164736f6c6343000806000a",
}

Functions

This section is empty.

Types

type OCR2DRClientExample

type OCR2DRClientExample struct {
	OCR2DRClientExampleCaller
	OCR2DRClientExampleTransactor
	OCR2DRClientExampleFilterer
	// contains filtered or unexported fields
}

func NewOCR2DRClientExample

func NewOCR2DRClientExample(address common.Address, backend bind.ContractBackend) (*OCR2DRClientExample, error)

func (*OCR2DRClientExample) Address

func (_OCR2DRClientExample *OCR2DRClientExample) Address() common.Address

func (*OCR2DRClientExample) ParseLog

func (_OCR2DRClientExample *OCR2DRClientExample) ParseLog(log types.Log) (generated.AbigenLog, error)

type OCR2DRClientExampleCaller

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

func NewOCR2DRClientExampleCaller

func NewOCR2DRClientExampleCaller(address common.Address, caller bind.ContractCaller) (*OCR2DRClientExampleCaller, error)

func (*OCR2DRClientExampleCaller) EstimateCost

func (_OCR2DRClientExample *OCR2DRClientExampleCaller) EstimateCost(opts *bind.CallOpts, req OCR2DRRequest, subscriptionId uint64, gasLimit uint32) (*big.Int, error)

func (*OCR2DRClientExampleCaller) GetDONPublicKey

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

func (*OCR2DRClientExampleCaller) LastError

func (_OCR2DRClientExample *OCR2DRClientExampleCaller) LastError(opts *bind.CallOpts) ([]byte, error)

func (*OCR2DRClientExampleCaller) LastRequestId

func (_OCR2DRClientExample *OCR2DRClientExampleCaller) LastRequestId(opts *bind.CallOpts) ([32]byte, error)

func (*OCR2DRClientExampleCaller) LastResponse

func (_OCR2DRClientExample *OCR2DRClientExampleCaller) LastResponse(opts *bind.CallOpts) ([]byte, error)

func (*OCR2DRClientExampleCaller) Owner

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

type OCR2DRClientExampleCallerRaw

type OCR2DRClientExampleCallerRaw struct {
	Contract *OCR2DRClientExampleCaller
}

func (*OCR2DRClientExampleCallerRaw) Call

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

type OCR2DRClientExampleCallerSession

type OCR2DRClientExampleCallerSession struct {
	Contract *OCR2DRClientExampleCaller
	CallOpts bind.CallOpts
}

func (*OCR2DRClientExampleCallerSession) EstimateCost

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) EstimateCost(req OCR2DRRequest, subscriptionId uint64, gasLimit uint32) (*big.Int, error)

func (*OCR2DRClientExampleCallerSession) GetDONPublicKey

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) GetDONPublicKey() ([]byte, error)

func (*OCR2DRClientExampleCallerSession) LastError

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) LastError() ([]byte, error)

func (*OCR2DRClientExampleCallerSession) LastRequestId

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) LastRequestId() ([32]byte, error)

func (*OCR2DRClientExampleCallerSession) LastResponse

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) LastResponse() ([]byte, error)

func (*OCR2DRClientExampleCallerSession) Owner

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) Owner() (common.Address, error)

type OCR2DRClientExampleFilterer

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

func NewOCR2DRClientExampleFilterer

func NewOCR2DRClientExampleFilterer(address common.Address, filterer bind.ContractFilterer) (*OCR2DRClientExampleFilterer, error)

func (*OCR2DRClientExampleFilterer) FilterOwnershipTransferRequested

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) FilterOwnershipTransferRequested(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*OCR2DRClientExampleOwnershipTransferRequestedIterator, error)

func (*OCR2DRClientExampleFilterer) FilterOwnershipTransferred

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*OCR2DRClientExampleOwnershipTransferredIterator, error)

func (*OCR2DRClientExampleFilterer) FilterRequestFulfilled

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) FilterRequestFulfilled(opts *bind.FilterOpts, id [][32]byte) (*OCR2DRClientExampleRequestFulfilledIterator, error)

func (*OCR2DRClientExampleFilterer) FilterRequestSent

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) FilterRequestSent(opts *bind.FilterOpts, id [][32]byte) (*OCR2DRClientExampleRequestSentIterator, error)

func (*OCR2DRClientExampleFilterer) ParseOwnershipTransferRequested

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) ParseOwnershipTransferRequested(log types.Log) (*OCR2DRClientExampleOwnershipTransferRequested, error)

func (*OCR2DRClientExampleFilterer) ParseOwnershipTransferred

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) ParseOwnershipTransferred(log types.Log) (*OCR2DRClientExampleOwnershipTransferred, error)

func (*OCR2DRClientExampleFilterer) ParseRequestFulfilled

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) ParseRequestFulfilled(log types.Log) (*OCR2DRClientExampleRequestFulfilled, error)

func (*OCR2DRClientExampleFilterer) ParseRequestSent

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) ParseRequestSent(log types.Log) (*OCR2DRClientExampleRequestSent, error)

func (*OCR2DRClientExampleFilterer) WatchOwnershipTransferRequested

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *OCR2DRClientExampleOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error)

func (*OCR2DRClientExampleFilterer) WatchOwnershipTransferred

func (_OCR2DRClientExample *OCR2DRClientExampleFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OCR2DRClientExampleOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error)

func (*OCR2DRClientExampleFilterer) WatchRequestFulfilled

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

func (*OCR2DRClientExampleFilterer) WatchRequestSent

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

type OCR2DRClientExampleInterface

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

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

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

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

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

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

	SendRequest(opts *bind.TransactOpts, source string, secrets []byte, args []string, subscriptionId uint64) (*types.Transaction, error)

	AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

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

	FilterOwnershipTransferRequested(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*OCR2DRClientExampleOwnershipTransferRequestedIterator, error)

	WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *OCR2DRClientExampleOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error)

	ParseOwnershipTransferRequested(log types.Log) (*OCR2DRClientExampleOwnershipTransferRequested, error)

	FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*OCR2DRClientExampleOwnershipTransferredIterator, error)

	WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OCR2DRClientExampleOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error)

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

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

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

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

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

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

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

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

	Address() common.Address
}

type OCR2DRClientExampleOwnershipTransferRequested

type OCR2DRClientExampleOwnershipTransferRequested struct {
	From common.Address
	To   common.Address
	Raw  types.Log
}

func (OCR2DRClientExampleOwnershipTransferRequested) Topic

type OCR2DRClientExampleOwnershipTransferRequestedIterator

type OCR2DRClientExampleOwnershipTransferRequestedIterator struct {
	Event *OCR2DRClientExampleOwnershipTransferRequested
	// contains filtered or unexported fields
}

func (*OCR2DRClientExampleOwnershipTransferRequestedIterator) Close

func (*OCR2DRClientExampleOwnershipTransferRequestedIterator) Error

func (*OCR2DRClientExampleOwnershipTransferRequestedIterator) Next

type OCR2DRClientExampleOwnershipTransferred

type OCR2DRClientExampleOwnershipTransferred struct {
	From common.Address
	To   common.Address
	Raw  types.Log
}

func (OCR2DRClientExampleOwnershipTransferred) Topic

type OCR2DRClientExampleOwnershipTransferredIterator

type OCR2DRClientExampleOwnershipTransferredIterator struct {
	Event *OCR2DRClientExampleOwnershipTransferred
	// contains filtered or unexported fields
}

func (*OCR2DRClientExampleOwnershipTransferredIterator) Close

func (*OCR2DRClientExampleOwnershipTransferredIterator) Error

func (*OCR2DRClientExampleOwnershipTransferredIterator) Next

type OCR2DRClientExampleRaw

type OCR2DRClientExampleRaw struct {
	Contract *OCR2DRClientExample
}

func (*OCR2DRClientExampleRaw) Call

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

func (*OCR2DRClientExampleRaw) Transact

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

func (*OCR2DRClientExampleRaw) Transfer

func (_OCR2DRClientExample *OCR2DRClientExampleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type OCR2DRClientExampleRequestFulfilled

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

func (OCR2DRClientExampleRequestFulfilled) Topic

type OCR2DRClientExampleRequestFulfilledIterator

type OCR2DRClientExampleRequestFulfilledIterator struct {
	Event *OCR2DRClientExampleRequestFulfilled
	// contains filtered or unexported fields
}

func (*OCR2DRClientExampleRequestFulfilledIterator) Close

func (*OCR2DRClientExampleRequestFulfilledIterator) Error

func (*OCR2DRClientExampleRequestFulfilledIterator) Next

type OCR2DRClientExampleRequestSent

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

func (OCR2DRClientExampleRequestSent) Topic

type OCR2DRClientExampleRequestSentIterator

type OCR2DRClientExampleRequestSentIterator struct {
	Event *OCR2DRClientExampleRequestSent
	// contains filtered or unexported fields
}

func (*OCR2DRClientExampleRequestSentIterator) Close

func (*OCR2DRClientExampleRequestSentIterator) Error

func (*OCR2DRClientExampleRequestSentIterator) Next

type OCR2DRClientExampleSession

type OCR2DRClientExampleSession struct {
	Contract     *OCR2DRClientExample
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*OCR2DRClientExampleSession) AcceptOwnership

func (_OCR2DRClientExample *OCR2DRClientExampleSession) AcceptOwnership() (*types.Transaction, error)

func (*OCR2DRClientExampleSession) EstimateCost

func (_OCR2DRClientExample *OCR2DRClientExampleSession) EstimateCost(req OCR2DRRequest, subscriptionId uint64, gasLimit uint32) (*big.Int, error)

func (*OCR2DRClientExampleSession) GetDONPublicKey

func (_OCR2DRClientExample *OCR2DRClientExampleSession) GetDONPublicKey() ([]byte, error)

func (*OCR2DRClientExampleSession) HandleOracleFulfillment

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

func (*OCR2DRClientExampleSession) LastError

func (_OCR2DRClientExample *OCR2DRClientExampleSession) LastError() ([]byte, error)

func (*OCR2DRClientExampleSession) LastRequestId

func (_OCR2DRClientExample *OCR2DRClientExampleSession) LastRequestId() ([32]byte, error)

func (*OCR2DRClientExampleSession) LastResponse

func (_OCR2DRClientExample *OCR2DRClientExampleSession) LastResponse() ([]byte, error)

func (*OCR2DRClientExampleSession) Owner

func (_OCR2DRClientExample *OCR2DRClientExampleSession) Owner() (common.Address, error)

func (*OCR2DRClientExampleSession) SendRequest

func (_OCR2DRClientExample *OCR2DRClientExampleSession) SendRequest(source string, secrets []byte, args []string, subscriptionId uint64) (*types.Transaction, error)

func (*OCR2DRClientExampleSession) TransferOwnership

func (_OCR2DRClientExample *OCR2DRClientExampleSession) TransferOwnership(to common.Address) (*types.Transaction, error)

type OCR2DRClientExampleTransactor

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

func NewOCR2DRClientExampleTransactor

func NewOCR2DRClientExampleTransactor(address common.Address, transactor bind.ContractTransactor) (*OCR2DRClientExampleTransactor, error)

func (*OCR2DRClientExampleTransactor) AcceptOwnership

func (_OCR2DRClientExample *OCR2DRClientExampleTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

func (*OCR2DRClientExampleTransactor) HandleOracleFulfillment

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

func (*OCR2DRClientExampleTransactor) SendRequest

func (_OCR2DRClientExample *OCR2DRClientExampleTransactor) SendRequest(opts *bind.TransactOpts, source string, secrets []byte, args []string, subscriptionId uint64) (*types.Transaction, error)

func (*OCR2DRClientExampleTransactor) TransferOwnership

func (_OCR2DRClientExample *OCR2DRClientExampleTransactor) TransferOwnership(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

type OCR2DRClientExampleTransactorRaw

type OCR2DRClientExampleTransactorRaw struct {
	Contract *OCR2DRClientExampleTransactor
}

func (*OCR2DRClientExampleTransactorRaw) Transact

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

func (*OCR2DRClientExampleTransactorRaw) Transfer

func (_OCR2DRClientExample *OCR2DRClientExampleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type OCR2DRClientExampleTransactorSession

type OCR2DRClientExampleTransactorSession struct {
	Contract     *OCR2DRClientExampleTransactor
	TransactOpts bind.TransactOpts
}

func (*OCR2DRClientExampleTransactorSession) AcceptOwnership

func (_OCR2DRClientExample *OCR2DRClientExampleTransactorSession) AcceptOwnership() (*types.Transaction, error)

func (*OCR2DRClientExampleTransactorSession) HandleOracleFulfillment

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

func (*OCR2DRClientExampleTransactorSession) SendRequest

func (_OCR2DRClientExample *OCR2DRClientExampleTransactorSession) SendRequest(source string, secrets []byte, args []string, subscriptionId uint64) (*types.Transaction, error)

func (*OCR2DRClientExampleTransactorSession) TransferOwnership

func (_OCR2DRClientExample *OCR2DRClientExampleTransactorSession) TransferOwnership(to common.Address) (*types.Transaction, error)

type OCR2DRRequest

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

Jump to

Keyboard shortcuts

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