ocr2dr_client_example

package
v1.12.1-beta4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 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\":[],\"name\":\"MAX_CALLBACK_GAS\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":\"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\"},{\"inputs\":[],\"name\":\"lastError\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastErrorLength\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRequestId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastResponse\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastResponseLength\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"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: "0x60806040523480156200001157600080fd5b5060405162001eaa38038062001eaa833981016040819052620000349162000199565b600080546001600160a01b0319166001600160a01b038316178155339081906001600160a01b038216620000af5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420736574206f776e657220746f207a65726f000000000000000060448201526064015b60405180910390fd5b600280546001600160a01b0319166001600160a01b0384811691909117909155811615620000e257620000e281620000ec565b50505050620001cb565b6001600160a01b038116331415620001475760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c660000000000000000006044820152606401620000a6565b600380546001600160a01b0319166001600160a01b03838116918217909255600254604051919216907fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127890600090a350565b600060208284031215620001ac57600080fd5b81516001600160a01b0381168114620001c457600080fd5b9392505050565b611ccf80620001db6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80638da5cb5b1161008c578063d4b3917511610066578063d4b39175146101aa578063d769717e146101da578063f2fde38b146101ed578063fc2a88c31461020057600080fd5b80638da5cb5b1461015d578063b48cffea14610185578063d328a91e1461019557600080fd5b806362747e42116100bd57806362747e42146101425780636d9809a01461014b57806379ba50971461015557600080fd5b80630ca76175146100e457806329f0de3f146100f95780632c29166b14610115575b600080fd5b6100f76100f2366004611557565b610209565b005b61010260065481565b6040519081526020015b60405180910390f35b60075461012d90640100000000900463ffffffff1681565b60405163ffffffff909116815260200161010c565b61010260055481565b61012d6201117081565b6100f76102d4565b60025460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010c565b60075461012d9063ffffffff1681565b61019d6103da565b60405161010c9190611897565b6101bd6101b836600461170d565b6104a3565b6040516bffffffffffffffffffffffff909116815260200161010c565b6100f76101e8366004611632565b610546565b6100f76101fb366004611504565b610648565b61010260045481565b600083815260016020526040902054839073ffffffffffffffffffffffffffffffffffffffff163314610268576040517fa0c5ec6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008181526001602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555182917f85e1543bf2f84fe80c6badbce3648c8539ad1df4d2b3d822938ca0538be727e691a26102ce84848461065c565b50505050565b60035473ffffffffffffffffffffffffffffffffffffffff16331461035a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d7573742062652070726f706f736564206f776e65720000000000000000000060448201526064015b60405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000008082163390811790935560038054909116905560405173ffffffffffffffffffffffffffffffffffffffff909116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b60008054604080517fd328a91e000000000000000000000000000000000000000000000000000000008152905160609373ffffffffffffffffffffffffffffffffffffffff9093169263d328a91e9260048082019391829003018186803b15801561044457600080fd5b505afa158015610458573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261049e91908101906115c4565b905090565b6000805473ffffffffffffffffffffffffffffffffffffffff1663d227d245856104cc8861072a565b86866040518563ffffffff1660e01b81526004016104ed94939291906118aa565b60206040518083038186803b15801561050557600080fd5b505afa158015610519573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053d919061181f565b95945050505050565b61054e6109c0565b6105886040805160c08101909152806000815260200160008152602001600081526020016060815260200160608152602001606081525090565b6105ca88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508593925050610a439050565b84156106125761061286868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508593925050610a549050565b821561062c5761062c6106258486611b37565b8290610a9b565b61063b8183620111703a610adb565b6004555050505050505050565b6106506109c0565b61065981610c9c565b50565b826004541461069a576040517fd068bf5b00000000000000000000000000000000000000000000000000000000815260048101849052602401610351565b6106a382610d93565b6005558151600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000001663ffffffff9092169190911790556106e581610d93565b600655516007805463ffffffff909216640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9092169190911790555050565b6060610749604051806040016040528060608152602001600081525090565b61075581610100610e1b565b5060408051808201909152600c81527f636f64654c6f636174696f6e00000000000000000000000000000000000000006020820152610795908290610e86565b82516107b39060018111156107ac576107ac611c13565b8290610ea2565b60408051808201909152600881527f6c616e677561676500000000000000000000000000000000000000000000000060208201526107f2908290610e86565b60408301516108099080156107ac576107ac611c13565b60408051808201909152600681527f736f7572636500000000000000000000000000000000000000000000000000006020820152610848908290610e86565b6060830151610858908290610e86565b60a083015151156109075760408051808201909152600481527f617267730000000000000000000000000000000000000000000000000000000060208201526108a2908290610e86565b6108ab81610ec8565b60005b8360a00151518110156108fd576108eb8460a0015182815181106108d4576108d4611c42565b602002602001015183610e8690919063ffffffff16565b806108f581611b70565b9150506108ae565b5061090781610ed3565b608083015151156109b95760408051808201909152600f81527f736563726574734c6f636174696f6e00000000000000000000000000000000006020820152610951908290610e86565b61096a836020015160018111156107ac576107ac611c13565b60408051808201909152600781527f736563726574730000000000000000000000000000000000000000000000000060208201526109a9908290610e86565b60808301516109b9908290610ede565b5192915050565b60025473ffffffffffffffffffffffffffffffffffffffff163314610a41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f6e6c792063616c6c61626c65206279206f776e6572000000000000000000006044820152606401610351565b565b610a508260008084610eeb565b5050565b8051610a8c576040517fe889636f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006020830152608090910152565b8051610ad3576040517ffe936cb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60a090910152565b60008054819073ffffffffffffffffffffffffffffffffffffffff1663a98eb20686610b068961072a565b87876040518563ffffffff1660e01b8152600401610b2794939291906118aa565b602060405180830381600087803b158015610b4157600080fd5b505af1158015610b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b79919061153e565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635ab1bd536040518163ffffffff1660e01b815260040160206040518083038186803b158015610be157600080fd5b505afa158015610bf5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c199190611521565b60008281526001602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9490941693909317909255905182917f1131472297a800fee664d1d89cfa8f7676ff07189ecc53f80bbb5f4969099db891a295945050505050565b73ffffffffffffffffffffffffffffffffffffffff8116331415610d1c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c660000000000000000006044820152606401610351565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff838116918217909255600254604051919216907fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127890600090a350565b600080600060209050602084511015610daa575082515b60005b81811015610e1257610dc0816008611ae3565b858281518110610dd257610dd2611c42565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016901c929092179180610e0a81611b70565b915050610dad565b50909392505050565b604080518082019091526060815260006020820152610e3b602083611ba9565b15610e6357610e4b602083611ba9565b610e56906020611b20565b610e6090836119a4565b91505b506020808301829052604080518085526000815283019091019052815b92915050565b610e938260038351610f7f565b610e9d828261108e565b505050565b67ffffffffffffffff811115610ebc57610a5082826110bc565b610a5082600083610f7f565b6106598160046110f3565b6106598160076110f3565b610e938260028351610f7f565b8051610f23576040517f22ce3edd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83836001811115610f3657610f36611c13565b90816001811115610f4957610f49611c13565b90525060408401828015610f5f57610f5f611c13565b90818015610f6f57610f6f611c13565b9052506060909301929092525050565b60178167ffffffffffffffff1611610fa4576102ce8360e0600585901b168317611104565b60ff8167ffffffffffffffff1611610fe257610fcb836018611fe0600586901b1617611104565b506102ce8367ffffffffffffffff83166001611129565b61ffff8167ffffffffffffffff16116110215761100a836019611fe0600586901b1617611104565b506102ce8367ffffffffffffffff83166002611129565b63ffffffff8167ffffffffffffffff16116110625761104b83601a611fe0600586901b1617611104565b506102ce8367ffffffffffffffff83166004611129565b61107783601b611fe0600586901b1617611104565b506102ce8367ffffffffffffffff83166008611129565b6040805180820190915260608152600060208201526110b583846000015151848551611157565b9392505050565b6110c78260c2611104565b50610a5082826040516020016110df91815260200190565b604051602081830303815290604052610ede565b610e9d82601f611fe0600585901b16175b6040805180820190915260608152600060208201526110b5838460000151518461125f565b60408051808201909152606081526000602082015261114f8485600001515185856112bb565b949350505050565b604080518082019091526060815260006020820152825182111561117a57600080fd5b602085015161118983866119a4565b11156111bc576111bc856111ac876020015187866111a791906119a4565b61133c565b6111b7906002611ae3565b611353565b6000808651805187602083010193508088870111156111db5787860182525b505050602084015b6020841061121b57805182526111fa6020836119a4565b91506112076020826119a4565b9050611214602085611b20565b93506111e3565b5181517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60208690036101000a019081169019919091161790525083949350505050565b604080518082019091526060815260006020820152836020015183106112945761129484856020015160026111b79190611ae3565b8351805160208583010184815350808514156112b1576001810182525b5093949350505050565b60408051808201909152606081526000602082015260208501516112df85846119a4565b11156112f3576112f3856111ac86856119a4565b6000600161130384610100611a1d565b61130d9190611b20565b90508551838682010185831982511617815250805184870111156113315783860181525b509495945050505050565b60008183111561134d575081610e80565b50919050565b815161135f8383610e1b565b506102ce838261108e565b600067ffffffffffffffff8084111561138557611385611c71565b8360051b602061139681830161190f565b8681529350808401858381018910156113ae57600080fd5b60009350835b888110156113e9578135868111156113ca578586fd5b6113d68b828b0161145f565b84525091830191908301906001016113b4565b5050505050509392505050565b600082601f83011261140757600080fd5b6110b58383356020850161136a565b60008083601f84011261142857600080fd5b50813567ffffffffffffffff81111561144057600080fd5b60208301915083602082850101111561145857600080fd5b9250929050565b600082601f83011261147057600080fd5b813561148361147e8261195e565b61190f565b81815284602083860101111561149857600080fd5b816020850160208301376000918101602001919091529392505050565b8035600181106114c457600080fd5b919050565b8035600281106114c457600080fd5b803563ffffffff811681146114c457600080fd5b803567ffffffffffffffff811681146114c457600080fd5b60006020828403121561151657600080fd5b81356110b581611ca0565b60006020828403121561153357600080fd5b81516110b581611ca0565b60006020828403121561155057600080fd5b5051919050565b60008060006060848603121561156c57600080fd5b83359250602084013567ffffffffffffffff8082111561158b57600080fd5b6115978783880161145f565b935060408601359150808211156115ad57600080fd5b506115ba8682870161145f565b9150509250925092565b6000602082840312156115d657600080fd5b815167ffffffffffffffff8111156115ed57600080fd5b8201601f810184136115fe57600080fd5b805161160c61147e8261195e565b81815285602083850101111561162157600080fd5b61053d826020830160208601611b44565b60008060008060008060006080888a03121561164d57600080fd5b873567ffffffffffffffff8082111561166557600080fd5b6116718b838c01611416565b909950975060208a013591508082111561168a57600080fd5b6116968b838c01611416565b909750955060408a01359150808211156116af57600080fd5b818a0191508a601f8301126116c357600080fd5b8135818111156116d257600080fd5b8b60208260051b85010111156116e757600080fd5b6020830195508094505050506116ff606089016114ec565b905092959891949750929550565b6000806000806080858703121561172357600080fd5b843567ffffffffffffffff8082111561173b57600080fd5b9086019060c0828903121561174f57600080fd5b6117576118e6565b611760836114c9565b815261176e602084016114c9565b602082015261177f604084016114b5565b604082015260608301358281111561179657600080fd5b6117a28a82860161145f565b6060830152506080830135828111156117ba57600080fd5b6117c68a82860161145f565b60808301525060a0830135828111156117de57600080fd5b6117ea8a8286016113f6565b60a0830152509550611801915050602086016114ec565b925061180f604086016114d8565b9396929550929360600135925050565b60006020828403121561183157600080fd5b81516bffffffffffffffffffffffff811681146110b557600080fd5b60008151808452611865816020860160208601611b44565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006110b5602083018461184d565b67ffffffffffffffff851681526080602082015260006118cd608083018661184d565b63ffffffff949094166040830152506060015292915050565b60405160c0810167ffffffffffffffff8111828210171561190957611909611c71565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561195657611956611c71565b604052919050565b600067ffffffffffffffff82111561197857611978611c71565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082198211156119b7576119b7611be4565b500190565b600181815b80851115611a1557817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156119fb576119fb611be4565b80851615611a0857918102915b93841c93908002906119c1565b509250929050565b60006110b58383600082611a3357506001610e80565b81611a4057506000610e80565b8160018114611a565760028114611a6057611a7c565b6001915050610e80565b60ff841115611a7157611a71611be4565b50506001821b610e80565b5060208310610133831016604e8410600b8410161715611a9f575081810a610e80565b611aa983836119bc565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115611adb57611adb611be4565b029392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611b1b57611b1b611be4565b500290565b600082821015611b3257611b32611be4565b500390565b60006110b536848461136a565b60005b83811015611b5f578181015183820152602001611b47565b838111156102ce5750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ba257611ba2611be4565b5060010190565b600082611bdf577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461065957600080fdfea164736f6c6343000806000a",
}

Functions

This section is empty.

Types

type FunctionsRequest added in v1.12.0

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

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 FunctionsRequest, subscriptionId uint64, gasLimit uint32, gasPrice *big.Int) (*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) ([32]byte, error)

func (*OCR2DRClientExampleCaller) LastErrorLength added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleCaller) LastErrorLength(opts *bind.CallOpts) (uint32, error)

func (*OCR2DRClientExampleCaller) LastRequestId

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

func (*OCR2DRClientExampleCaller) LastResponse

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

func (*OCR2DRClientExampleCaller) LastResponseLength added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleCaller) LastResponseLength(opts *bind.CallOpts) (uint32, error)

func (*OCR2DRClientExampleCaller) MAXCALLBACKGAS added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleCaller) MAXCALLBACKGAS(opts *bind.CallOpts) (uint32, 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 FunctionsRequest, subscriptionId uint64, gasLimit uint32, gasPrice *big.Int) (*big.Int, error)

func (*OCR2DRClientExampleCallerSession) GetDONPublicKey

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

func (*OCR2DRClientExampleCallerSession) LastError

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

func (*OCR2DRClientExampleCallerSession) LastErrorLength added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) LastErrorLength() (uint32, error)

func (*OCR2DRClientExampleCallerSession) LastRequestId

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

func (*OCR2DRClientExampleCallerSession) LastResponse

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

func (*OCR2DRClientExampleCallerSession) LastResponseLength added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) LastResponseLength() (uint32, error)

func (*OCR2DRClientExampleCallerSession) MAXCALLBACKGAS added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleCallerSession) MAXCALLBACKGAS() (uint32, 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 {
	MAXCALLBACKGAS(opts *bind.CallOpts) (uint32, error)

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

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

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

	LastErrorLength(opts *bind.CallOpts) (uint32, error)

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

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

	LastResponseLength(opts *bind.CallOpts) (uint32, 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 FunctionsRequest, subscriptionId uint64, gasLimit uint32, gasPrice *big.Int) (*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() ([32]byte, error)

func (*OCR2DRClientExampleSession) LastErrorLength added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleSession) LastErrorLength() (uint32, error)

func (*OCR2DRClientExampleSession) LastRequestId

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

func (*OCR2DRClientExampleSession) LastResponse

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

func (*OCR2DRClientExampleSession) LastResponseLength added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleSession) LastResponseLength() (uint32, error)

func (*OCR2DRClientExampleSession) MAXCALLBACKGAS added in v1.12.0

func (_OCR2DRClientExample *OCR2DRClientExampleSession) MAXCALLBACKGAS() (uint32, 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)

Jump to

Keyboard shortcuts

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