blocklock-js
Version:
A library for encrypting and decrypting data for the future
348 lines (344 loc) • 6.39 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Interface, type ContractRunner } from "ethers";
import type {
AbstractBlocklockReceiver,
AbstractBlocklockReceiverInterface,
} from "../AbstractBlocklockReceiver";
const _abi = [
{
type: "receive",
stateMutability: "payable",
},
{
type: "function",
name: "acceptOwnership",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "blocklock",
inputs: [],
outputs: [
{
name: "",
type: "address",
internalType: "contract IBlocklockSender",
},
],
stateMutability: "view",
},
{
type: "function",
name: "createSubscriptionAndFundNative",
inputs: [],
outputs: [],
stateMutability: "payable",
},
{
type: "function",
name: "fundContractNative",
inputs: [],
outputs: [],
stateMutability: "payable",
},
{
type: "function",
name: "getBalance",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "isInFlight",
inputs: [
{
name: "requestId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
type: "function",
name: "owner",
inputs: [],
outputs: [
{
name: "",
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: "receiveBlocklock",
inputs: [
{
name: "requestId",
type: "uint256",
internalType: "uint256",
},
{
name: "decryptionKey",
type: "bytes",
internalType: "bytes",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setBlocklock",
inputs: [
{
name: "_blocklock",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setSubId",
inputs: [
{
name: "subId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "subscriptionId",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "topUpSubscriptionNative",
inputs: [],
outputs: [],
stateMutability: "payable",
},
{
type: "function",
name: "transferOwnership",
inputs: [
{
name: "to",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "updateSubscription",
inputs: [
{
name: "consumers",
type: "address[]",
internalType: "address[]",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "withdrawNative",
inputs: [
{
name: "amount",
type: "uint256",
internalType: "uint256",
},
{
name: "recipient",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "event",
name: "Funded",
inputs: [
{
name: "sender",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "amount",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "NewSubscriptionId",
inputs: [
{
name: "subscriptionId",
type: "uint256",
indexed: true,
internalType: "uint256",
},
],
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: "event",
name: "Received",
inputs: [
{
name: "",
type: "address",
indexed: false,
internalType: "address",
},
{
name: "",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "Withdrawn",
inputs: [
{
name: "recipient",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "amount",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
] as const;
export class AbstractBlocklockReceiver__factory {
static readonly abi = _abi;
static createInterface(): AbstractBlocklockReceiverInterface {
return new Interface(_abi) as AbstractBlocklockReceiverInterface;
}
static connect(
address: string,
runner?: ContractRunner | null
): AbstractBlocklockReceiver {
return new Contract(
address,
_abi,
runner
) as unknown as AbstractBlocklockReceiver;
}
}