/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { IBilling, IBillingInterface } from "../IBilling"; const _abi = [ { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "provider", type: "address", }, { indexed: false, internalType: "bytes32", name: "account", type: "bytes32", }, { indexed: false, internalType: "bytes", name: "bills", type: "bytes", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, { indexed: false, internalType: "uint64", name: "nonce", type: "uint64", }, ], name: "Billing", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "bytes32", name: "hash", type: "bytes32", }, ], name: "BillingTypesHashUpdated", type: "event", }, { inputs: [ { internalType: "address", name: "provider", type: "address", }, ], name: "balanceOf", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "billingTypesHash", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "provider", type: "address", }, { internalType: "bytes32", name: "account", type: "bytes32", }, { internalType: "uint64", name: "nonce", type: "uint64", }, ], name: "nonceExists", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "provider", type: "address", }, { internalType: "bytes32", name: "account", type: "bytes32", }, { internalType: "bytes", name: "bills", type: "bytes", }, { internalType: "uint256", name: "timeout", type: "uint256", }, { internalType: "uint64", name: "nonce", type: "uint64", }, { internalType: "bytes", name: "signature", type: "bytes", }, ], name: "spend", outputs: [ { internalType: "uint256", name: "fee", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, ]; export class IBilling__factory { static readonly abi = _abi; static createInterface(): IBillingInterface { return new utils.Interface(_abi) as IBillingInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): IBilling { return new Contract(address, _abi, signerOrProvider) as IBilling; } }