/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { UniqueRefungibleToken, UniqueRefungibleTokenInterface, } from "../UniqueRefungibleToken"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address", }, { indexed: true, internalType: "address", name: "spender", type: "address", }, { indexed: false, internalType: "uint256", name: "value", type: "uint256", }, ], name: "Approval", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "from", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: false, internalType: "uint256", name: "value", type: "uint256", }, ], name: "Transfer", type: "event", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, { internalType: "address", name: "spender", type: "address", }, ], name: "allowance", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "owner", type: "tuple", }, { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "spender", type: "tuple", }, ], name: "allowanceCross", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "spender", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "approve", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "spender", type: "tuple", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "approveCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, ], name: "balanceOf", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "owner", type: "tuple", }, ], name: "balanceOfCross", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "from", type: "tuple", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "burnFromCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "decimals", outputs: [ { internalType: "uint8", name: "", type: "uint8", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "name", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "parentToken", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "parentTokenId", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "repartition", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes4", name: "interfaceID", type: "bytes4", }, ], name: "supportsInterface", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "symbol", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "totalSupply", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "transfer", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "to", type: "tuple", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "transferCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "transferFrom", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "from", type: "tuple", }, { components: [ { internalType: "address", name: "eth", type: "address", }, { internalType: "uint256", name: "sub", type: "uint256", }, ], internalType: "struct CrossAddress", name: "to", type: "tuple", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "transferFromCross", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, ] as const; export class UniqueRefungibleToken__factory { static readonly abi = _abi; static createInterface(): UniqueRefungibleTokenInterface { return new Interface(_abi) as UniqueRefungibleTokenInterface; } static connect( address: string, runner?: ContractRunner | null ): UniqueRefungibleToken { return new Contract( address, _abi, runner ) as unknown as UniqueRefungibleToken; } }