ufomarketplace-sdk-new
Version:
SDK to interact with set ufo marketplace contracts
2 lines (1 loc) • 22.6 kB
JSON
[{ "type": "constructor", "inputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "DEFAULT_ADMIN_ROLE", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "PRICE_UPDATE_ROLE", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "addUpdatePriceRole", "inputs": [{ "name": "addr", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "alreadyMintedGenesisNFT", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "alreadyPurchasedLootBoxCount", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "alreadyUsedSignature", "inputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "backendSigner", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "beamAmountPerNft", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "blockNumberWaitingForRandom", "inputs": [{ "name": "", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "burnWallet", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "concatSignature", "inputs": [{ "name": "v", "type": "uint8", "internalType": "uint8" }, { "name": "r", "type": "bytes32", "internalType": "bytes32" }, { "name": "s", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "stateMutability": "pure" }, { "type": "function", "name": "factoryHelper", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "getRoleAdmin", "inputs": [{ "name": "role", "type": "bytes32", "internalType": "bytes32" }], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "getWeaponUsdtPrice", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "grantRole", "inputs": [{ "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "hasRole", "inputs": [{ "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "initialize", "inputs": [{ "name": "_admin", "type": "address", "internalType": "address" }, { "name": "_beacon", "type": "address", "internalType": "address" }, { "name": "_plasmaAddr", "type": "address", "internalType": "address" }, { "name": "_plasmaAmountPerNFT", "type": "uint256", "internalType": "uint256" }, { "name": "_weaponPrice", "type": "uint256", "internalType": "uint256" }, { "name": "_uap", "type": "address", "internalType": "address" }, { "name": "_factoryHelper", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "isSuperGalaticNFTContract", "inputs": [{ "name": "_nftAddress", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "isSuperGalatics", "inputs": [{ "name": "", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "marketplaceContract", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "merkleRoot", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "mintBatchSuperGalatic", "inputs": [{ "name": "categoryIds", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "amounts", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "_merkleProof", "type": "bytes32[]", "internalType": "bytes32[]" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "mintWithBeam", "inputs": [{ "name": "categoryIds", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "amounts", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "_merkleProof", "type": "bytes32[]", "internalType": "bytes32[]" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "mintWithUSDT", "inputs": [{ "name": "categoryIds", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "amounts", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "_merkleProof", "type": "bytes32[]", "internalType": "bytes32[]" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "nftContracts", "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "openLootBoxBySignature", "inputs": [{ "name": "v", "type": "uint8", "internalType": "uint8" }, { "name": "r", "type": "bytes32", "internalType": "bytes32" }, { "name": "s", "type": "bytes32", "internalType": "bytes32" }, { "name": "_info", "type": "tuple", "internalType": "struct EIP712SuperGalaticFactory.WeaponInfo", "components": [{ "name": "rarity", "type": "uint256", "internalType": "uint256" }, { "name": "weaponType", "type": "uint256", "internalType": "uint256" }, { "name": "owner", "type": "address", "internalType": "address" }, { "name": "salt", "type": "uint256", "internalType": "uint256" }, { "name": "tokenId", "type": "uint256", "internalType": "uint256" }] }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "openRound", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "phase", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "plasmaAddr", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plasmaAmountPerNFT", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "purchaseLootbox", "inputs": [{ "name": "quantity", "type": "uint256", "internalType": "uint256" }, { "name": "_tokenType", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "purchaseLootboxAndSendGift", "inputs": [{ "name": "quantity", "type": "uint256", "internalType": "uint256" }, { "name": "_giftReceiver", "type": "address", "internalType": "address" }, { "name": "_tokenType", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "registerForMint", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "removeUpdatePriceSole", "inputs": [{ "name": "addr", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "renounceRole", "inputs": [{ "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "reserveWallet", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "revenueWallet", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "revokeRole", "inputs": [{ "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "round1End", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "round1Start", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "round2End", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "round2Start", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "round3End", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "round3Start", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "setBackendSigner", "inputs": [{ "name": "_bkSigner", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMarketplaceAddress", "inputs": [{ "name": "_marketplace", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMerkeRoot", "inputs": [{ "name": "merkleRootHash", "type": "bytes32", "internalType": "bytes32" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPhase", "inputs": [{ "name": "phaseValue", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setRoundInfo", "inputs": [{ "name": "startTime", "type": "uint256", "internalType": "uint256" }, { "name": "endTime", "type": "uint256", "internalType": "uint256" }, { "name": "round", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setRouterAddress", "inputs": [{ "name": "router", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setTokenAddresses", "inputs": [{ "name": "_weth", "type": "address", "internalType": "address" }, { "name": "_ufo", "type": "address", "internalType": "address" }, { "name": "_usdt", "type": "address", "internalType": "address" }, { "name": "_uap", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "slippage", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "supportsInterface", "inputs": [{ "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "totalUSerOwnedCount", "inputs": [{ "name": "", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "uapAddr", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "ufoAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "updateAlreadyMintedGenesisNft", "inputs": [{ "name": "count", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateBeamPriceOfNft", "inputs": [{ "name": "price", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateFactoryHelperAddr", "inputs": [{ "name": "_factoryHelperAddr", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateGenesisNftPrice", "inputs": [{ "name": "_priceInUSDT", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateNFTBodypart", "inputs": [{ "name": "nftContract", "type": "address", "internalType": "address" }, { "name": "nftId", "type": "uint256", "internalType": "uint256" }, { "name": "bodyType", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updatePlasmaAddr", "inputs": [{ "name": "_plasma", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updatePlasmaAmountPerNFT", "inputs": [{ "name": "_plasmaAmount", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updatePriceOfWeaponNFT", "inputs": [{ "name": "_price", "type": "uint256", "internalType": "uint256" }, { "name": "_tokenType", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateWeapon", "inputs": [{ "name": "_weaponId", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateWeaponAddr", "inputs": [{ "name": "_weapon", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "usdtAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "usdtAmountPerNFT", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "weaponNFT", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "weaponPrice", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "weaponUfoPrice", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "weaponUsdtPrice", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "wethAddr", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "withdraw", "inputs": [{ "name": "receiver", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdrawPlasma", "inputs": [{ "name": "recipient", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdrawUSDT", "inputs": [{ "name": "recipient", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "CreateSuperGalatic", "inputs": [{ "name": "nftIndex", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "nftContract", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "GrantPriceUpdateRole", "inputs": [{ "name": "addr", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "Initialized", "inputs": [{ "name": "version", "type": "uint8", "indexed": false, "internalType": "uint8" }], "anonymous": false }, { "type": "event", "name": "RemovePriceUpdateRole", "inputs": [{ "name": "addr", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "RoleAdminChanged", "inputs": [{ "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "previousAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "newAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" }], "anonymous": false }, { "type": "event", "name": "RoleGranted", "inputs": [{ "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "RoleRevoked", "inputs": [{ "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "SetBackendSigner", "inputs": [{ "name": "signer", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "UpdateFactoryHelper", "inputs": [{ "name": "newHelperAddr", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "UpdateGenesisNftPrice", "inputs": [{ "name": "usdtPrice", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UpdateMarketplaceAddr", "inputs": [{ "name": "newMarketplace", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "UpdateMerkleRoot", "inputs": [{ "name": "root", "type": "bytes32", "indexed": false, "internalType": "bytes32" }], "anonymous": false }, { "type": "event", "name": "UpdateNftBeamPrice", "inputs": [{ "name": "price", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UpdateNftPriceInPlasma", "inputs": [{ "name": "plasmaPrice", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UpdatePhase", "inputs": [{ "name": "phase", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UpdatePlasmaAddr", "inputs": [{ "name": "newPlasma", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "UpdateRoundInfo", "inputs": [{ "name": "start", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "end", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "round", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UpdateUapAddress", "inputs": [{ "name": "newUap", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "UpdateUfoAddr", "inputs": [{ "name": "ufo", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "UpdateUsdtAddr", "inputs": [{ "name": "usdt", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "UpdateWeaponAddr", "inputs": [{ "name": "newWeapon", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "UpdateWeaponPrice", "inputs": [{ "name": "price", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "tokenType", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "UpdateWrappedNativeAddr", "inputs": [{ "name": "wNative", "type": "address", "indexed": false, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "Withdraw", "inputs": [{ "name": "receiver", "type": "address", "indexed": false, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "WithdrawPlasma", "inputs": [{ "name": "recipient", "type": "address", "indexed": false, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "error", "name": "AddressNotNull", "inputs": [] }, { "type": "error", "name": "CannotMintMore", "inputs": [] }, { "type": "error", "name": "CannotMintRandomNft", "inputs": [] }, { "type": "error", "name": "InvalidSignature", "inputs": [] }, { "type": "error", "name": "NotEnoughBEAM", "inputs": [] }, { "type": "error", "name": "OnlyAvailableInBetaOpen", "inputs": [] }, { "type": "error", "name": "SetInfoEndTimeError", "inputs": [{ "name": "time", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "SetInfoError", "inputs": [{ "name": "start", "type": "uint256", "internalType": "uint256" }, { "name": "end", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "SetInfoStartTimeError", "inputs": [{ "name": "time", "type": "uint256", "internalType": "uint256" }] }, { "type": "error", "name": "WrongParameters", "inputs": [] }, { "type": "error", "name": "WrongRound", "inputs": [] }]