randomness-js
Version:
A library for consuming, verifying and using randomness from the dcipher network
200 lines (196 loc) • 3.78 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Interface, type ContractRunner } from "ethers";
import type {
VRFConsumerBaseV2Plus,
VRFConsumerBaseV2PlusInterface,
} from "../VRFConsumerBaseV2Plus";
const _abi = [
{
type: "function",
name: "acceptOwnership",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "owner",
inputs: [],
outputs: [
{
name: "",
type: "address",
internalType: "address",
},
],
stateMutability: "view",
},
{
type: "function",
name: "rawFulfillRandomWords",
inputs: [
{
name: "requestId",
type: "uint256",
internalType: "uint256",
},
{
name: "randomWords",
type: "uint256[]",
internalType: "uint256[]",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "s_vrfCoordinator",
inputs: [],
outputs: [
{
name: "",
type: "address",
internalType: "contract IVRFCoordinatorV2Plus",
},
],
stateMutability: "view",
},
{
type: "function",
name: "setCoordinator",
inputs: [
{
name: "_vrfCoordinator",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "transferOwnership",
inputs: [
{
name: "to",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "event",
name: "CoordinatorSet",
inputs: [
{
name: "vrfCoordinator",
type: "address",
indexed: false,
internalType: "address",
},
],
anonymous: false,
},
{
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: "error",
name: "OnlyCoordinatorCanFulfill",
inputs: [
{
name: "have",
type: "address",
internalType: "address",
},
{
name: "want",
type: "address",
internalType: "address",
},
],
},
{
type: "error",
name: "OnlyOwnerOrCoordinator",
inputs: [
{
name: "have",
type: "address",
internalType: "address",
},
{
name: "owner",
type: "address",
internalType: "address",
},
{
name: "coordinator",
type: "address",
internalType: "address",
},
],
},
{
type: "error",
name: "ZeroAddress",
inputs: [],
},
] as const;
export class VRFConsumerBaseV2Plus__factory {
static readonly abi = _abi;
static createInterface(): VRFConsumerBaseV2PlusInterface {
return new Interface(_abi) as VRFConsumerBaseV2PlusInterface;
}
static connect(
address: string,
runner?: ContractRunner | null
): VRFConsumerBaseV2Plus {
return new Contract(
address,
_abi,
runner
) as unknown as VRFConsumerBaseV2Plus;
}
}