UNPKG

blocklock-js

Version:

A library for encrypting and decrypting data for the future

250 lines (246 loc) 4.92 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { IDecryptionSender, IDecryptionSenderInterface, } from "../IDecryptionSender"; const _abi = [ { type: "function", name: "fulfillDecryptionRequest", inputs: [ { name: "requestId", type: "uint256", internalType: "uint256", }, { name: "decryptionKey", type: "bytes", internalType: "bytes", }, { 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: "getRequest", inputs: [ { name: "requestId", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "", type: "tuple", internalType: "struct TypesLib.DecryptionRequest", components: [ { name: "schemeID", type: "string", internalType: "string", }, { name: "ciphertext", type: "bytes", internalType: "bytes", }, { name: "condition", type: "bytes", internalType: "bytes", }, { name: "decryptionKey", type: "bytes", internalType: "bytes", }, { name: "signature", type: "bytes", internalType: "bytes", }, { name: "callback", type: "address", internalType: "address", }, { 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: "registerCiphertext", inputs: [ { name: "schemeID", type: "string", internalType: "string", }, { name: "ciphertext", type: "bytes", internalType: "bytes", }, { name: "condition", type: "bytes", internalType: "bytes", }, ], outputs: [ { name: "requestId", type: "uint256", internalType: "uint256", }, ], 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 IDecryptionSender__factory { static readonly abi = _abi; static createInterface(): IDecryptionSenderInterface { return new Interface(_abi) as IDecryptionSenderInterface; } static connect( address: string, runner?: ContractRunner | null ): IDecryptionSender { return new Contract(address, _abi, runner) as unknown as IDecryptionSender; } }