/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { IRiverBox, IRiverBoxInterface } from "../IRiverBox"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "payer", type: "address", }, { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "eventTime", type: "uint256", }, ], name: "BoxAwarded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "from", type: "uint256", }, { indexed: true, internalType: "uint256", name: "to", type: "uint256", }, ], name: "BoxPriceChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "payer", type: "address", }, { indexed: true, internalType: "uint256", name: "tokenId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "eventTime", type: "uint256", }, ], name: "FusedItemAwarded", type: "event", }, { inputs: [ { internalType: "address[]", name: "receivers", type: "address[]", }, { internalType: "uint256[]", name: "qualitys", type: "uint256[]", }, ], name: "batchAirDrop", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "quality", type: "uint256", }, { internalType: "address", name: "referrer", type: "address", }, ], name: "buy", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "claim", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256[]", name: "tokenIds", type: "uint256[]", }, ], name: "fuse", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "implementationVersion", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "newBaseURI", type: "string", }, ], name: "setBaseURI", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "newPrice", type: "uint256", }, ], name: "setBoxPrice", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bool", name: "lock", type: "bool", }, ], name: "setFuseLock", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint16[]", name: "locationIds", type: "uint16[]", }, { internalType: "uint16[]", name: "parentTokenIds", type: "uint16[]", }, { internalType: "uint16[][]", name: "listChildTokenIds", type: "uint16[][]", }, ], name: "setHierarchy", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newAddress", type: "address", }, ], name: "setRandomGenerator", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_funderAddress", type: "address", }, { internalType: "address", name: "_devAddress", type: "address", }, { internalType: "address", name: "_marketAddress", type: "address", }, { internalType: "uint8", name: "_devShare", type: "uint8", }, { internalType: "uint8", name: "_marketShare", type: "uint8", }, ], name: "setShare", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, { internalType: "string", name: "_tokenURI", type: "string", }, ], name: "setTokenURI", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "tokenDetail", outputs: [ { components: [ { internalType: "uint16", name: "locationId", type: "uint16", }, { internalType: "uint16", name: "fusionCount", type: "uint16", }, { internalType: "uint32", name: "signature", type: "uint32", }, { internalType: "uint256[]", name: "parts", type: "uint256[]", }, ], internalType: "struct IRiverBox.Product", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "locationId", type: "uint256", }, ], name: "tokenHierarchy", outputs: [ { components: [ { internalType: "uint16", name: "parentLocationId", type: "uint16", }, { internalType: "uint16[]", name: "childLocationIds", type: "uint16[]", }, ], internalType: "struct IRiverBox.Hierarchy", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "tokenURI", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "unPause", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256[]", name: "tokenIds", type: "uint256[]", }, ], name: "verifyFusion", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "withdraw", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; export class IRiverBox__factory { static readonly abi = _abi; static createInterface(): IRiverBoxInterface { return new utils.Interface(_abi) as IRiverBoxInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): IRiverBox { return new Contract(address, _abi, signerOrProvider) as IRiverBox; } }