UNPKG

randomness-js

Version:

A library for consuming, verifying and using randomness from the dcipher network

223 lines (219 loc) 4.28 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { IVRFSubscriptionV2Plus, IVRFSubscriptionV2PlusInterface, } from "../IVRFSubscriptionV2Plus"; const _abi = [ { 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: "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: "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: "pendingRequestExists", inputs: [ { name: "subId", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "", type: "bool", internalType: "bool", }, ], stateMutability: "view", }, { type: "function", name: "removeConsumer", inputs: [ { name: "subId", type: "uint256", internalType: "uint256", }, { name: "consumer", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "requestSubscriptionOwnerTransfer", inputs: [ { name: "subId", type: "uint256", internalType: "uint256", }, { name: "newOwner", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, ] as const; export class IVRFSubscriptionV2Plus__factory { static readonly abi = _abi; static createInterface(): IVRFSubscriptionV2PlusInterface { return new Interface(_abi) as IVRFSubscriptionV2PlusInterface; } static connect( address: string, runner?: ContractRunner | null ): IVRFSubscriptionV2Plus { return new Contract( address, _abi, runner ) as unknown as IVRFSubscriptionV2Plus; } }