UNPKG

aizaworld_sdk

Version:

NFT, GameFi, Blockchain, Dapp, LoanForPlay, PlayToEarn

1,373 lines (1,372 loc) 29.5 kB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": true, "internalType": "contract IERC721", "name": "nftAddress", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "nftID", "type": "uint256" } ], "name": "CancelledListing", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": true, "internalType": "contract IERC721", "name": "nftAddress", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "nftID", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newPrice", "type": "uint256" } ], "name": "ListingPriceChange", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": true, "internalType": "contract IERC721", "name": "nftAddress", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "nftID", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "newTargetBuyer", "type": "address" } ], "name": "ListingTargetBuyerChange", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": true, "internalType": "contract IERC721", "name": "nftAddress", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "nftID", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "price", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "targetBuyer", "type": "address" } ], "name": "NewListing", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "buyer", "type": "address" }, { "indexed": false, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": true, "internalType": "contract IERC721", "name": "nftAddress", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "nftID", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "price", "type": "uint256" } ], "name": "PurchasedListing", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" } ], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleRevoked", "type": "event" }, { "inputs": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "GAME_ADMIN", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "addFee", "outputs": [ { "internalType": "int128", "name": "", "type": "int128" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "aizaWorldToken", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "changeFee", "outputs": [ { "internalType": "int128", "name": "", "type": "int128" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "defaultTax", "outputs": [ { "internalType": "int128", "name": "", "type": "int128" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "name": "getRoleAdmin", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "hasRole", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "isTokenBanned", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "isUserBanned", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "priceOracleAizaPerUsd", "outputs": [ { "internalType": "contract IPriceOracle", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "tax", "outputs": [ { "internalType": "int128", "name": "", "type": "int128" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "taxRecipient", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC20", "name": "_aizaWorldToken", "type": "address" }, { "internalType": "address", "name": "_taxRecipient", "type": "address" }, { "internalType": "contract Characters", "name": "_charactersContract", "type": "address" }, { "internalType": "contract SupplyBoxs", "name": "_supplyBoxsContract", "type": "address" }, { "internalType": "contract IPriceOracle", "name": "_priceOracleAizaPerUsd", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" } ], "name": "isTokenAllowed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "getAllowedTokenTypes", "outputs": [ { "internalType": "contract IERC721[]", "name": "", "type": "address[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } ], "name": "getSellerOfNftID", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "defaultTaxAsRoundedPercentRoughEstimate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "getListedTokenTypes", "outputs": [ { "internalType": "contract IERC721[]", "name": "", "type": "address[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" } ], "name": "getListingIDs", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "address", "name": "_seller", "type": "address" } ], "name": "getNumberOfListingsBySeller", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "address", "name": "_seller", "type": "address" } ], "name": "getListingIDsBySeller", "outputs": [ { "internalType": "uint256[]", "name": "tokens", "type": "uint256[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" } ], "name": "getNumberOfListingsForToken", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint8", "name": "_trait", "type": "uint8" }, { "internalType": "uint8", "name": "_minLevel", "type": "uint8" }, { "internalType": "uint8", "name": "_maxLevel", "type": "uint8" } ], "name": "getNumberOfCharacterListings", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" } ], "name": "getNumberOfSupplyBoxListings", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "getSellerPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "getFinalPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "getTaxOnListing", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "getTargetBuyer", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "start", "type": "uint256" }, { "internalType": "uint256", "name": "length", "type": "uint256" } ], "name": "getListingSlice", "outputs": [ { "internalType": "uint256", "name": "returnedCount", "type": "uint256" }, { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "internalType": "address[]", "name": "sellers", "type": "address[]" }, { "internalType": "uint256[]", "name": "prices", "type": "uint256[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" }, { "internalType": "uint256", "name": "_price", "type": "uint256" }, { "internalType": "address", "name": "_targetBuyer", "type": "address" } ], "name": "addListing", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" }, { "internalType": "uint256", "name": "_newPrice", "type": "uint256" } ], "name": "changeListingPrice", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" }, { "internalType": "address", "name": "_newTargetBuyer", "type": "address" } ], "name": "changeListingTargetBuyer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "cancelListing", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" }, { "internalType": "uint256", "name": "_maxPrice", "type": "uint256" } ], "name": "purchaseListing", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "cents", "type": "uint256" } ], "name": "setAddValue", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "cents", "type": "uint256" } ], "name": "setChangeValue", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_taxRecipient", "type": "address" } ], "name": "setTaxRecipient", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "int128", "name": "_defaultTax", "type": "int128" } ], "name": "setDefaultTax", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_numerator", "type": "uint256" }, { "internalType": "uint256", "name": "_denominator", "type": "uint256" } ], "name": "setDefaultTaxAsRational", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_percent", "type": "uint256" } ], "name": "setDefaultTaxAsPercent", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "int128", "name": "_newTax", "type": "int128" } ], "name": "setTaxOnTokenType", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_numerator", "type": "uint256" }, { "internalType": "uint256", "name": "_denominator", "type": "uint256" } ], "name": "setTaxOnTokenTypeAsRational", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_percent", "type": "uint256" } ], "name": "setTaxOnTokenTypeAsPercent", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "bool", "name": "to", "type": "bool" } ], "name": "setUserBan", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "users", "type": "address[]" }, { "internalType": "bool", "name": "to", "type": "bool" } ], "name": "setUserBans", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "unlistItem", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" }, { "internalType": "uint256[]", "name": "_ids", "type": "uint256[]" } ], "name": "unlistItems", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" } ], "name": "allowToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC721", "name": "_tokenAddress", "type": "address" } ], "name": "disallowToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "recoverAiza", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "int128", "name": "usdAmount", "type": "int128" } ], "name": "usdToAiza", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "onERC721Received", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "view", "type": "function", "constant": true } ], "networks": { "97": { "address": "0xa33c68158D25205a41A738e8740a763610e5793A" }, "5777": { "address": "0xaE121B0c2e6819847B0A6a7b959deE213cf54ec5" } } }