randomness-js
Version:
A library for consuming, verifying and using randomness from the dcipher network
609 lines (601 loc) • 29.3 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
Contract,
ContractFactory,
ContractTransactionResponse,
Interface,
} from "ethers";
import type {
Signer,
AddressLike,
ContractDeployTransaction,
ContractRunner,
} from "ethers";
import type { NonPayableOverrides } from "../common";
import type {
ChainlinkVRFCoordinatorV2_5Adapter,
ChainlinkVRFCoordinatorV2_5AdapterInterface,
} from "../ChainlinkVRFCoordinatorV2_5Adapter";
const _abi = [
{
type: "constructor",
inputs: [
{
name: "owner",
type: "address",
internalType: "address",
},
{
name: "_randomnessSender",
type: "address",
internalType: "address",
},
],
stateMutability: "nonpayable",
},
{
type: "function",
name: "MAX_NUM_WORDS",
inputs: [],
outputs: [
{
name: "",
type: "uint32",
internalType: "uint32",
},
],
stateMutability: "view",
},
{
type: "function",
name: "acceptOwnership",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "acceptSubscriptionOwnerTransfer",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "addConsumer",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
{
name: "consumer",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "calculateRequestPriceNative",
inputs: [
{
name: "_callbackGasLimit",
type: "uint32",
internalType: "uint32",
},
{
name: "",
type: "uint32",
internalType: "uint32",
},
],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "cancelSubscription",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
{
name: "to",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "createSubscription",
inputs: [],
outputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "nonpayable",
},
{
type: "function",
name: "estimateRequestPriceNative",
inputs: [
{
name: "_callbackGasLimit",
type: "uint32",
internalType: "uint32",
},
{
name: "",
type: "uint32",
internalType: "uint32",
},
{
name: "_requestGasPriceWei",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "fundSubscriptionWithNative",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "payable",
},
{
type: "function",
name: "getActiveSubscriptionIds",
inputs: [
{
name: "startIndex",
type: "uint256",
internalType: "uint256",
},
{
name: "maxCount",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "uint256[]",
internalType: "uint256[]",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getSubscription",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "balance",
type: "uint96",
internalType: "uint96",
},
{
name: "nativeBalance",
type: "uint96",
internalType: "uint96",
},
{
name: "reqCount",
type: "uint64",
internalType: "uint64",
},
{
name: "owner",
type: "address",
internalType: "address",
},
{
name: "consumers",
type: "address[]",
internalType: "address[]",
},
],
stateMutability: "view",
},
{
type: "function",
name: "lastRequestId",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "owner",
inputs: [],
outputs: [
{
name: "",
type: "address",
internalType: "address",
},
],
stateMutability: "view",
},
{
type: "function",
name: "pendingRequestExists",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
type: "function",
name: "randomnessSender",
inputs: [],
outputs: [
{
name: "",
type: "address",
internalType: "contract IRandomnessSender",
},
],
stateMutability: "view",
},
{
type: "function",
name: "receiveRandomness",
inputs: [
{
name: "requestID",
type: "uint256",
internalType: "uint256",
},
{
name: "randomness",
type: "bytes32",
internalType: "bytes32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "removeConsumer",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
{
name: "consumer",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "requestRandomWords",
inputs: [
{
name: "req",
type: "tuple",
internalType: "struct VRFV2PlusClient.RandomWordsRequest",
components: [
{
name: "keyHash",
type: "bytes32",
internalType: "bytes32",
},
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
{
name: "requestConfirmations",
type: "uint16",
internalType: "uint16",
},
{
name: "callbackGasLimit",
type: "uint32",
internalType: "uint32",
},
{
name: "numWords",
type: "uint32",
internalType: "uint32",
},
{
name: "extraArgs",
type: "bytes",
internalType: "bytes",
},
],
},
],
outputs: [
{
name: "requestId",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "nonpayable",
},
{
type: "function",
name: "requestSubscriptionOwnerTransfer",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
{
name: "newOwner",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "s_callbacks",
inputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "callbackAddress",
type: "address",
internalType: "address",
},
{
name: "callbackGasLimit",
type: "uint32",
internalType: "uint32",
},
{
name: "requestGasPrice",
type: "uint64",
internalType: "uint64",
},
],
stateMutability: "view",
},
{
type: "function",
name: "setWrapperGasOverhead",
inputs: [
{
name: "_s_wrapperGasOverhead",
type: "uint32",
internalType: "uint32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "transferOwnership",
inputs: [
{
name: "to",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "event",
name: "OwnershipTransferRequested",
inputs: [
{
name: "from",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "to",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "OwnershipTransferred",
inputs: [
{
name: "from",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "to",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "WrapperFulfillmentFailed",
inputs: [
{
name: "requestId",
type: "uint256",
indexed: true,
internalType: "uint256",
},
{
name: "consumer",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "WrapperGasOverheadUpdated",
inputs: [
{
name: "newWrapperGasOverhead",
type: "uint32",
indexed: false,
internalType: "uint32",
},
],
anonymous: false,
},
{
type: "error",
name: "ReentrancyGuardReentrantCall",
inputs: [],
},
] as const;
const _bytecode =
"0x60806040526003805463ffffffff60a01b1916610c3560a51b179055348015610026575f5ffd5b50604051612195380380612195833981016040819052610045916101c9565b60015f908155829081906001600160a01b0382166100aa5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420736574206f776e657220746f207a65726f000000000000000060448201526064015b60405180910390fd5b600180546001600160a01b0319166001600160a01b03848116919091179091558116156100da576100da81610105565b5050600380546001600160a01b0319166001600160a01b039390931692909217909155506101fa9050565b336001600160a01b0382160361015d5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c6600000000000000000060448201526064016100a1565b600280546001600160a01b0319166001600160a01b03838116918217909255600154604051919216907fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae1278905f90a350565b80516001600160a01b03811681146101c4575f5ffd5b919050565b5f5f604083850312156101da575f5ffd5b6101e3836101ae565b91506101f1602084016101ae565b90509250929050565b611f8e806102075f395ff3fe60806040526004361061016d575f3560e01c8063aefb212f116100c6578063dac83d291161007c578063e1cab74511610057578063e1cab745146104cc578063f2fde38b146104eb578063fc2a88c31461050a575f5ffd5b8063dac83d2914610451578063dc311dd314610470578063df3fafe8146104a0575f5ffd5b8063bec4c08c116100ac578063bec4c08c146103f4578063c40684f014610413578063cb63179714610432575f5ffd5b8063aefb212f146103a9578063b2a7cac5146103d5575f5ffd5b806348baa1c51161012657806395b55cfc1161010157806395b55cfc146103635780639b1c385e14610376578063a21a23e414610395575f5ffd5b806348baa1c51461023b57806379ba5097146103045780638da5cb5b14610318575f5ffd5b806340d6bb821161015657806340d6bb82146101c457806341af6c87146101ed578063431ac6571461021c575f5ffd5b80630ae095401461017157806313c34b7f14610192575b5f5ffd5b34801561017c575f5ffd5b5061019061018b366004611a0c565b61051f565b005b34801561019d575f5ffd5b506101b16101ac366004611a4d565b61063f565b6040519081526020015b60405180910390f35b3480156101cf575f5ffd5b506101d8600181565b60405163ffffffff90911681526020016101bb565b3480156101f8575f5ffd5b5061020c610207366004611a7e565b61070f565b60405190151581526020016101bb565b348015610227575f5ffd5b50610190610236366004611a95565b6107a0565b348015610246575f5ffd5b506102c3610255366004611a7e565b60066020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff81169074010000000000000000000000000000000000000000810463ffffffff16907801000000000000000000000000000000000000000000000000900467ffffffffffffffff1683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845263ffffffff909216602084015267ffffffffffffffff16908201526060016101bb565b34801561030f575f5ffd5b50610190610839565b348015610323575f5ffd5b5060015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101bb565b610190610371366004611a7e565b610939565b348015610381575f5ffd5b506101b1610390366004611ab5565b6109be565b3480156103a0575f5ffd5b506101b1610d50565b3480156103b4575f5ffd5b506103c86103c3366004611a95565b610ea1565b6040516101bb9190611b2d565b3480156103e0575f5ffd5b506101906103ef366004611a7e565b610f5a565b3480156103ff575f5ffd5b5061019061040e366004611a0c565b611052565b34801561041e575f5ffd5b5061019061042d366004611b3f565b61113f565b34801561043d575f5ffd5b5061019061044c366004611a0c565b6111cd565b34801561045c575f5ffd5b5061019061046b366004611a0c565b6112ba565b34801561047b575f5ffd5b5061048f61048a366004611a7e565b611319565b6040516101bb959493929190611b58565b3480156104ab575f5ffd5b5060035461033e9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156104d7575f5ffd5b506101b16104e6366004611c0c565b6113f0565b3480156104f6575f5ffd5b50610190610505366004611c46565b6114c6565b348015610515575f5ffd5b506101b160045481565b5f82815260056020526040902054829073ffffffffffffffffffffffffffffffffffffffff1633146105b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f43616c6c6572206973206e6f7420737562736372697074696f6e206f776e657260448201526064015b60405180910390fd5b6003546040517f0ae095400000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff848116602483015290911690630ae09540906044015b5f604051808303815f87803b158015610624575f5ffd5b505af1158015610636573d5f5f3e3d5ffd5b50505050505050565b6003545f9073ffffffffffffffffffffffffffffffffffffffff811690634b1609359061068a9074010000000000000000000000000000000000000000900463ffffffff1686611c61565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815263ffffffff919091166004820152602401602060405180830381865afa1580156106e2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107069190611ca2565b90505b92915050565b6003546040517f41af6c87000000000000000000000000000000000000000000000000000000008152600481018390525f9173ffffffffffffffffffffffffffffffffffffffff16906341af6c8790602401602060405180830381865afa15801561077c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107099190611cb9565b60035473ffffffffffffffffffffffffffffffffffffffff163314610821576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f6e6c792072616e646f6d6e65737353656e6465722063616e2063616c6c000060448201526064016105a9565b610835826108308360016114da565b611585565b5050565b60025473ffffffffffffffffffffffffffffffffffffffff1633146108ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d7573742062652070726f706f736564206f776e65720000000000000000000060448201526064016105a9565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000008082163390811790935560028054909116905560405173ffffffffffffffffffffffffffffffffffffffff909116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a350565b6003546040517f95b55cfc0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff909116906395b55cfc9034906024015f604051808303818588803b1580156109a4575f5ffd5b505af11580156109b6573d5f5f3e3d5ffd5b505050505050565b5f6109c76117bf565b6003546040517fdc311dd3000000000000000000000000000000000000000000000000000000008152602084013560048201819052915f9173ffffffffffffffffffffffffffffffffffffffff9091169063dc311dd3906024015f60405180830381865afa158015610a3b573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a809190810190611d77565b5f8681526005602052604090205490945073ffffffffffffffffffffffffffffffffffffffff1633149250829150610abf90505750610abf3382611800565b610b4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f43616c6c6572206973206e6f7420737562736372697074696f6e206f776e657260448201527f206f7220617070726f76656420636f6e73756d6572000000000000000000000060648201526084016105a9565b60035473ffffffffffffffffffffffffffffffffffffffff811690631da53c9f9074010000000000000000000000000000000000000000900463ffffffff16610b9a6080880160608901611b3f565b610ba49190611c61565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815263ffffffff919091166004820152602087013560248201526044016020604051808303815f875af1158015610c07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c2b9190611ca2565b925060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001856060016020810190610c679190611b3f565b63ffffffff908116825267ffffffffffffffff3a81166020938401525f878152600684526040908190208551815495870151969092015190921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9590931674010000000000000000000000000000000000000000027fffffffffffffffff00000000000000000000000000000000000000000000000090941673ffffffffffffffffffffffffffffffffffffffff90911617929092179290921691909117905560048390555050610d4b60015f55565b919050565b600354604080517fa21a23e400000000000000000000000000000000000000000000000000000000815290515f9273ffffffffffffffffffffffffffffffffffffffff169163a21a23e4916004808301926020929190829003018187875af1158015610dbe573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610de29190611ca2565b5f818152600560205260409081902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317905560035490517fbec4c08c0000000000000000000000000000000000000000000000000000000081526004810183905230602482015291925073ffffffffffffffffffffffffffffffffffffffff169063bec4c08c906044015f604051808303815f87803b158015610e88575f5ffd5b505af1158015610e9a573d5f5f3e3d5ffd5b5050505090565b6003546040517faefb212f000000000000000000000000000000000000000000000000000000008152600481018490526024810183905260609173ffffffffffffffffffffffffffffffffffffffff169063aefb212f906044015f60405180830381865afa158015610f15573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526107069190810190611e6c565b5f81815260056020526040902054819073ffffffffffffffffffffffffffffffffffffffff163314610fe8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f43616c6c6572206973206e6f7420737562736372697074696f6e206f776e657260448201526064016105a9565b6003546040517fb2a7cac50000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff9091169063b2a7cac5906024015b5f604051808303815f87803b1580156109a4575f5ffd5b5f82815260056020526040902054829073ffffffffffffffffffffffffffffffffffffffff1633146110e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f43616c6c6572206973206e6f7420737562736372697074696f6e206f776e657260448201526064016105a9565b6003546040517fbec4c08c0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff84811660248301529091169063bec4c08c9060440161060d565b611147611873565b600380547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff8481168202929092179283905560405192041681527f06072508f4be461bb306c2111807a859ab85e8ae617fbb868cb18a078665072d9060200160405180910390a150565b5f82815260056020526040902054829073ffffffffffffffffffffffffffffffffffffffff16331461125b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f43616c6c6572206973206e6f7420737562736372697074696f6e206f776e657260448201526064016105a9565b6003546040517fcb6317970000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff84811660248301529091169063cb6317979060440161060d565b6003546040517fdac83d290000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff83811660248301529091169063dac83d299060440161103b565b6003546040517fdc311dd3000000000000000000000000000000000000000000000000000000008152600481018390525f91829182918291606091839182918291829173ffffffffffffffffffffffffffffffffffffffff169063dc311dd3906024015f60405180830381865afa158015611396573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526113db9190810190611d77565b5f9e939d50919b509950975095505050505050565b6003545f9073ffffffffffffffffffffffffffffffffffffffff811690633255c4569061143b9074010000000000000000000000000000000000000000900463ffffffff1687611c61565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815263ffffffff91909116600482015260248101859052604401602060405180830381865afa15801561149a573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114be9190611ca2565b949350505050565b6114ce611873565b6114d7816118f6565b50565b60605f8267ffffffffffffffff8111156114f6576114f6611cd8565b60405190808252806020026020018201604052801561151f578160200160208202803683370190505b5090505f5b8381101561157d576040805160208101879052908101829052606001604051602081830303815290604052805190602001205f1c82828151811061156a5761156a611efd565b6020908102919091010152600101611524565b509392505050565b5f8281526006602081815260408084208151606081018352815473ffffffffffffffffffffffffffffffffffffffff808216835274010000000000000000000000000000000000000000820463ffffffff1683870152780100000000000000000000000000000000000000000000000090910467ffffffffffffffff16938201939093528786529390925292905580519091811661167f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f72657175657374206e6f7420666f756e6400000000000000000000000000000060448201526064016105a9565b5f5f631fe543e360e01b868660405160240161169c929190611f2a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f8373ffffffffffffffffffffffffffffffffffffffff16856020015163ffffffff168360405161172c9190611f42565b5f604051808303815f8787f1925050503d805f8114611766576040519150601f19603f3d011682016040523d82523d5f602084013e61176b565b606091505b50509050806106365760405173ffffffffffffffffffffffffffffffffffffffff85169088907fc551b83c151f2d1c7eeb938ac59008e0409f1c1dc1e2f112449d4d79b4589022905f90a350505050505050565b60025f54036117fa576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025f55565b5f805b825181101561186a578373ffffffffffffffffffffffffffffffffffffffff1683828151811061183557611835611efd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1603611862576001915050610709565b600101611803565b505f9392505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146118f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f6e6c792063616c6c61626c65206279206f776e65720000000000000000000060448201526064016105a9565b565b3373ffffffffffffffffffffffffffffffffffffffff821603611975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c6600000000000000000060448201526064016105a9565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff838116918217909255600154604051919216907fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae1278905f90a350565b73ffffffffffffffffffffffffffffffffffffffff811681146114d7575f5ffd5b5f5f60408385031215611a1d575f5ffd5b823591506020830135611a2f816119eb565b809150509250929050565b803563ffffffff81168114610d4b575f5ffd5b5f5f60408385031215611a5e575f5ffd5b611a6783611a3a565b9150611a7560208401611a3a565b90509250929050565b5f60208284031215611a8e575f5ffd5b5035919050565b5f5f60408385031215611aa6575f5ffd5b50508035926020909101359150565b5f60208284031215611ac5575f5ffd5b813567ffffffffffffffff811115611adb575f5ffd5b820160c08185031215611aec575f5ffd5b9392505050565b5f8151808452602084019350602083015f5b82811015611b23578151865260209586019590910190600101611b05565b5093949350505050565b602081525f6107066020830184611af3565b5f60208284031215611b4f575f5ffd5b61070682611a3a565b5f60a082016bffffffffffffffffffffffff881683526bffffffffffffffffffffffff8716602084015267ffffffffffffffff8616604084015273ffffffffffffffffffffffffffffffffffffffff8516606084015260a0608084015280845180835260c0850191506020860192505f5b81811015611bfd57835173ffffffffffffffffffffffffffffffffffffffff16835260209384019390920191600101611bc9565b50909998505050505050505050565b5f5f5f60608486031215611c1e575f5ffd5b611c2784611a3a565b9250611c3560208501611a3a565b929592945050506040919091013590565b5f60208284031215611c56575f5ffd5b8135611aec816119eb565b63ffffffff8181168382160190811115610709577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f60208284031215611cb2575f5ffd5b5051919050565b5f60208284031215611cc9575f5ffd5b81518015158114611aec575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d4c57611d4c611cd8565b604052919050565b5f67ffffffffffffffff821115611d6d57611d6d611cd8565b5060051b60200190565b5f5f5f5f60808587031215611d8a575f5ffd5b84516bffffffffffffffffffffffff81168114611da5575f5ffd5b602086015190945067ffffffffffffffff81168114611dc2575f5ffd5b6040860151909350611dd3816119eb565b606086015190925067ffffffffffffffff811115611def575f5ffd5b8501601f81018713611dff575f5ffd5b8051611e12611e0d82611d54565b611d05565b8082825260208201915060208360051b850101925089831115611e33575f5ffd5b6020840193505b82841015611e5e578351611e4d816119eb565b825260209384019390910190611e3a565b969995985093965050505050565b5f60208284031215611e7c575f5ffd5b815167ffffffffffffffff811115611e92575f5ffd5b8201601f81018413611ea2575f5ffd5b8051611eb0611e0d82611d54565b8082825260208201915060208360051b850101925086831115611ed1575f5ffd5b6020840193505b82841015611ef3578351825260209384019390910190611ed8565b9695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b828152604060208201525f6114be6040830184611af3565b5f82518060208501845e5f92019182525091905056fea2646970667358221220a8ac9a21208416d556424d3fd9cb5fe0fa2bc028c32368330767c267a1913a1064736f6c634300081c0033";
type ChainlinkVRFCoordinatorV2_5AdapterConstructorParams =
| [signer?: Signer]
| ConstructorParameters<typeof ContractFactory>;
const isSuperArgs = (
xs: ChainlinkVRFCoordinatorV2_5AdapterConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
export class ChainlinkVRFCoordinatorV2_5Adapter__factory extends ContractFactory {
constructor(...args: ChainlinkVRFCoordinatorV2_5AdapterConstructorParams) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi, _bytecode, args[0]);
}
}
override getDeployTransaction(
owner: AddressLike,
_randomnessSender: AddressLike,
overrides?: NonPayableOverrides & { from?: string }
): Promise<ContractDeployTransaction> {
return super.getDeployTransaction(
owner,
_randomnessSender,
overrides || {}
);
}
override deploy(
owner: AddressLike,
_randomnessSender: AddressLike,
overrides?: NonPayableOverrides & { from?: string }
) {
return super.deploy(owner, _randomnessSender, overrides || {}) as Promise<
ChainlinkVRFCoordinatorV2_5Adapter & {
deploymentTransaction(): ContractTransactionResponse;
}
>;
}
override connect(
runner: ContractRunner | null
): ChainlinkVRFCoordinatorV2_5Adapter__factory {
return super.connect(runner) as ChainlinkVRFCoordinatorV2_5Adapter__factory;
}
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): ChainlinkVRFCoordinatorV2_5AdapterInterface {
return new Interface(_abi) as ChainlinkVRFCoordinatorV2_5AdapterInterface;
}
static connect(
address: string,
runner?: ContractRunner | null
): ChainlinkVRFCoordinatorV2_5Adapter {
return new Contract(
address,
_abi,
runner
) as unknown as ChainlinkVRFCoordinatorV2_5Adapter;
}
}