randomness-js
Version:
A library for consuming, verifying and using randomness from the dcipher network
48 lines (44 loc) • 1.04 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Interface, type ContractRunner } from "ethers";
import type {
IRandomnessReceiver,
IRandomnessReceiverInterface,
} from "../IRandomnessReceiver";
const _abi = [
{
type: "function",
name: "receiveRandomness",
inputs: [
{
name: "requestID",
type: "uint256",
internalType: "uint256",
},
{
name: "randomness",
type: "bytes32",
internalType: "bytes32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
] as const;
export class IRandomnessReceiver__factory {
static readonly abi = _abi;
static createInterface(): IRandomnessReceiverInterface {
return new Interface(_abi) as IRandomnessReceiverInterface;
}
static connect(
address: string,
runner?: ContractRunner | null
): IRandomnessReceiver {
return new Contract(
address,
_abi,
runner
) as unknown as IRandomnessReceiver;
}
}