import { Contract , Signer } from "ethers" ; import { Provider } from "ethers/providers" ; import { Rarity } from "../Rarity" ; export class Rarity__factory { static connect ( address , signerOrProvider ) { return new Contract ( address , _abi , signerOrProvider ) as Rarity ; } } const _abi = [ { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "owner" , type : "address" , } , { indexed : true , internalType : "address" , name : "approved" , type : "address" , } , { indexed : true , internalType : "uint256" , name : "tokenId" , type : "uint256" , } , ] , name : "Approval" , type : "event" , } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "owner" , type : "address" , } , { indexed : true , internalType : "address" , name : "operator" , type : "address" , } , { indexed : false , internalType : "bool" , name : "approved" , type : "bool" , } , ] , name : "ApprovalForAll" , type : "event" , } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "from" , type : "address" , } , { indexed : true , internalType : "address" , name : "to" , type : "address" , } , { indexed : true , internalType : "uint256" , name : "tokenId" , type : "uint256" , } , ] , name : "Transfer" , type : "event" , } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "owner" , type : "address" , } , { indexed : false , internalType : "uint256" , name : "level" , type : "uint256" , } , { indexed : false , internalType : "uint256" , name : "summoner" , type : "uint256" , } , ] , name : "leveled" , type : "event" , } , { anonymous : false , inputs : [ { indexed : true , internalType : "address" , name : "owner" , type : "address" , } , { indexed : false , internalType : "uint256" , name : "class" , type : "uint256" , } , { indexed : false , internalType : "uint256" , name : "summoner" , type : "uint256" , } , ] , name : "summoned" , type : "event" , } , { inputs : [ { internalType : "uint256" , name : "_summoner" , type : "uint256" , } , ] , name : "adventure" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , name : "adventurers_log" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "address" , name : "to" , type : "address" , } , { internalType : "uint256" , name : "tokenId" , type : "uint256" , } , ] , name : "approve" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "owner" , type : "address" , } , ] , name : "balanceOf" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , name : "class" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "id" , type : "uint256" , } , ] , name : "classes" , outputs : [ { internalType : "string" , name : "description" , type : "string" , } , ] , stateMutability : "pure" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "tokenId" , type : "uint256" , } , ] , name : "getApproved" , outputs : [ { internalType : "address" , name : "" , type : "address" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "address" , name : "owner" , type : "address" , } , { internalType : "address" , name : "operator" , type : "address" , } , ] , name : "isApprovedForAll" , outputs : [ { internalType : "bool" , name : "" , type : "bool" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , name : "level" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "_summoner" , type : "uint256" , } , ] , name : "level_up" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ ] , name : "next_summoner" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "tokenId" , type : "uint256" , } , ] , name : "ownerOf" , outputs : [ { internalType : "address" , name : "" , type : "address" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "address" , name : "from" , type : "address" , } , { internalType : "address" , name : "to" , type : "address" , } , { internalType : "uint256" , name : "tokenId" , type : "uint256" , } , ] , name : "safeTransferFrom" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "from" , type : "address" , } , { internalType : "address" , name : "to" , type : "address" , } , { internalType : "uint256" , name : "tokenId" , type : "uint256" , } , { internalType : "bytes" , name : "_data" , type : "bytes" , } , ] , name : "safeTransferFrom" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "operator" , type : "address" , } , { internalType : "bool" , name : "approved" , type : "bool" , } , ] , name : "setApprovalForAll" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "_summoner" , type : "uint256" , } , { internalType : "uint256" , name : "_xp" , type : "uint256" , } , ] , name : "spend_xp" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "_class" , type : "uint256" , } , ] , name : "summon" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "_summoner" , type : "uint256" , } , ] , name : "summoner" , outputs : [ { internalType : "uint256" , name : "_xp" , type : "uint256" , } , { internalType : "uint256" , name : "_log" , type : "uint256" , } , { internalType : "uint256" , name : "_class" , type : "uint256" , } , { internalType : "uint256" , name : "_level" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "index" , type : "uint256" , } , ] , name : "tokenByIndex" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "address" , name : "owner" , type : "address" , } , { internalType : "uint256" , name : "index" , type : "uint256" , } , ] , name : "tokenOfOwnerByIndex" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "_summoner" , type : "uint256" , } , ] , name : "tokenURI" , 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 : "from" , type : "address" , } , { internalType : "address" , name : "to" , type : "address" , } , { internalType : "uint256" , name : "tokenId" , type : "uint256" , } , ] , name : "transferFrom" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , name : "xp" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "uint256" , name : "curent_level" , type : "uint256" , } , ] , name : "xp_required" , outputs : [ { internalType : "uint256" , name : "xp_to_next_level" , type : "uint256" , } , ] , stateMutability : "pure" , type : "function" , } , ] ;