randomness-js
Version:
A library for consuming, verifying and using randomness from the dcipher network
289 lines (285 loc) • 5.56 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Interface, type ContractRunner } from "ethers";
import type {
ISignatureSender,
ISignatureSenderInterface,
} from "../ISignatureSender";
const _abi = [
{
type: "function",
name: "fulfilSignatureRequest",
inputs: [
{
name: "requestID",
type: "uint256",
internalType: "uint256",
},
{
name: "signature",
type: "bytes",
internalType: "bytes",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "getAllErroredRequestIds",
inputs: [],
outputs: [
{
name: "",
type: "uint256[]",
internalType: "uint256[]",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getAllFulfilledRequestIds",
inputs: [],
outputs: [
{
name: "",
type: "uint256[]",
internalType: "uint256[]",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getAllUnfulfilledRequestIds",
inputs: [],
outputs: [
{
name: "",
type: "uint256[]",
internalType: "uint256[]",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getCountOfUnfulfilledRequestIds",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getPublicKey",
inputs: [],
outputs: [
{
name: "",
type: "uint256[2]",
internalType: "uint256[2]",
},
{
name: "",
type: "uint256[2]",
internalType: "uint256[2]",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getPublicKeyBytes",
inputs: [],
outputs: [
{
name: "",
type: "bytes",
internalType: "bytes",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getRequest",
inputs: [
{
name: "requestID",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "tuple",
internalType: "struct TypesLib.SignatureRequest",
components: [
{
name: "message",
type: "bytes",
internalType: "bytes",
},
{
name: "messageHash",
type: "bytes",
internalType: "bytes",
},
{
name: "condition",
type: "bytes",
internalType: "bytes",
},
{
name: "schemeID",
type: "string",
internalType: "string",
},
{
name: "callback",
type: "address",
internalType: "address",
},
{
name: "signature",
type: "bytes",
internalType: "bytes",
},
{
name: "isFulfilled",
type: "bool",
internalType: "bool",
},
],
},
],
stateMutability: "view",
},
{
type: "function",
name: "hasErrored",
inputs: [
{
name: "requestID",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
type: "function",
name: "isInFlight",
inputs: [
{
name: "requestID",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
type: "function",
name: "requestSignature",
inputs: [
{
name: "schemeID",
type: "string",
internalType: "string",
},
{
name: "message",
type: "bytes",
internalType: "bytes",
},
{
name: "condition",
type: "bytes",
internalType: "bytes",
},
],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "nonpayable",
},
{
type: "function",
name: "retryCallback",
inputs: [
{
name: "requestID",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setSignatureSchemeAddressProvider",
inputs: [
{
name: "newSignatureSchemeAddressProvider",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "version",
inputs: [],
outputs: [
{
name: "",
type: "string",
internalType: "string",
},
],
stateMutability: "pure",
},
] as const;
export class ISignatureSender__factory {
static readonly abi = _abi;
static createInterface(): ISignatureSenderInterface {
return new Interface(_abi) as ISignatureSenderInterface;
}
static connect(
address: string,
runner?: ContractRunner | null
): ISignatureSender {
return new Contract(address, _abi, runner) as unknown as ISignatureSender;
}
}