UNPKG

randomness-js

Version:

A library for consuming, verifying and using randomness from the dcipher network

269 lines (265 loc) 4.97 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { LinkTokenInterface, LinkTokenInterfaceInterface, } from "../LinkTokenInterface"; const _abi = [ { type: "function", name: "allowance", inputs: [ { name: "owner", type: "address", internalType: "address", }, { name: "spender", type: "address", internalType: "address", }, ], outputs: [ { name: "remaining", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "approve", inputs: [ { name: "spender", type: "address", internalType: "address", }, { name: "value", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "success", type: "bool", internalType: "bool", }, ], stateMutability: "nonpayable", }, { type: "function", name: "balanceOf", inputs: [ { name: "owner", type: "address", internalType: "address", }, ], outputs: [ { name: "balance", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "decimals", inputs: [], outputs: [ { name: "decimalPlaces", type: "uint8", internalType: "uint8", }, ], stateMutability: "view", }, { type: "function", name: "decreaseApproval", inputs: [ { name: "spender", type: "address", internalType: "address", }, { name: "addedValue", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "success", type: "bool", internalType: "bool", }, ], stateMutability: "nonpayable", }, { type: "function", name: "increaseApproval", inputs: [ { name: "spender", type: "address", internalType: "address", }, { name: "subtractedValue", type: "uint256", internalType: "uint256", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "name", inputs: [], outputs: [ { name: "tokenName", type: "string", internalType: "string", }, ], stateMutability: "view", }, { type: "function", name: "symbol", inputs: [], outputs: [ { name: "tokenSymbol", type: "string", internalType: "string", }, ], stateMutability: "view", }, { type: "function", name: "totalSupply", inputs: [], outputs: [ { name: "totalTokensIssued", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "transfer", inputs: [ { name: "to", type: "address", internalType: "address", }, { name: "value", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "success", type: "bool", internalType: "bool", }, ], stateMutability: "nonpayable", }, { type: "function", name: "transferAndCall", inputs: [ { name: "to", type: "address", internalType: "address", }, { name: "value", type: "uint256", internalType: "uint256", }, { name: "data", type: "bytes", internalType: "bytes", }, ], outputs: [ { name: "success", type: "bool", internalType: "bool", }, ], stateMutability: "nonpayable", }, { type: "function", name: "transferFrom", inputs: [ { name: "from", type: "address", internalType: "address", }, { name: "to", type: "address", internalType: "address", }, { name: "value", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "success", type: "bool", internalType: "bool", }, ], stateMutability: "nonpayable", }, ] as const; export class LinkTokenInterface__factory { static readonly abi = _abi; static createInterface(): LinkTokenInterfaceInterface { return new Interface(_abi) as LinkTokenInterfaceInterface; } static connect( address: string, runner?: ContractRunner | null ): LinkTokenInterface { return new Contract(address, _abi, runner) as unknown as LinkTokenInterface; } }