From da8e48647854ba243e468d56bb6b4357100766b5 Mon Sep 17 00:00:00 2001 From: Neeraj Kashyap Date: Thu, 10 Aug 2023 09:13:59 -0700 Subject: [PATCH] Updated all ABIs --- abi/ClaimProxy.json | 139 +++++ abi/CraftingFacet.json | 300 +++++++++++ abi/DropperFacet.json | 18 + abi/ERC1155CompatibleClaimProxy.json | 178 +++++++ abi/ERC721CompatibleClaimProxy.json | 173 +++++++ abi/IInventory.json | 553 ++++++++++++++++++++ abi/ITerminus.json | 126 +++++ abi/InventoryFacet.json | 726 +++++++++++++++++++++++++++ abi/LibInventory.json | 1 + abi/Lootbox.json | 31 ++ abi/TokenDrainerFacet.json | 117 +++++ 11 files changed, 2362 insertions(+) create mode 100644 abi/ClaimProxy.json create mode 100644 abi/ERC1155CompatibleClaimProxy.json create mode 100644 abi/ERC721CompatibleClaimProxy.json create mode 100644 abi/IInventory.json create mode 100644 abi/InventoryFacet.json create mode 100644 abi/LibInventory.json create mode 100644 abi/TokenDrainerFacet.json diff --git a/abi/ClaimProxy.json b/abi/ClaimProxy.json new file mode 100644 index 00000000..3943d5f8 --- /dev/null +++ b/abi/ClaimProxy.json @@ -0,0 +1,139 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "_dropperAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "DropperAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "dropId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "requestID", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "blockDeadline", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "claim", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "drain", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/abi/CraftingFacet.json b/abi/CraftingFacet.json index 5a10fd2e..f845fa1e 100644 --- a/abi/CraftingFacet.json +++ b/abi/CraftingFacet.json @@ -1,4 +1,215 @@ [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "recipeId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "player", + "type": "address" + } + ], + "name": "Craft", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "recipeId", + "type": "uint256" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "tokenAction", + "type": "uint256" + } + ], + "internalType": "struct CraftingInputItem[]", + "name": "inputs", + "type": "tuple[]" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "tokenAction", + "type": "uint256" + } + ], + "internalType": "struct CraftingOutputItem[]", + "name": "outputs", + "type": "tuple[]" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct Recipe", + "name": "recipe", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "RecipeCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "recipeId", + "type": "uint256" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "tokenAction", + "type": "uint256" + } + ], + "internalType": "struct CraftingInputItem[]", + "name": "inputs", + "type": "tuple[]" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "tokenAction", + "type": "uint256" + } + ], + "internalType": "struct CraftingOutputItem[]", + "name": "outputs", + "type": "tuple[]" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct Recipe", + "name": "recipe", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "RecipeUpdated", + "type": "event" + }, { "inputs": [ { @@ -347,5 +558,94 @@ ], "stateMutability": "view", "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "recipeId", + "type": "uint256" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "tokenAction", + "type": "uint256" + } + ], + "internalType": "struct CraftingInputItem[]", + "name": "inputs", + "type": "tuple[]" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "tokenAction", + "type": "uint256" + } + ], + "internalType": "struct CraftingOutputItem[]", + "name": "outputs", + "type": "tuple[]" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "internalType": "struct Recipe", + "name": "recipe", + "type": "tuple" + } + ], + "name": "updateRecipe", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } ] \ No newline at end of file diff --git a/abi/DropperFacet.json b/abi/DropperFacet.json index 02bc44e4..b5ad43d9 100644 --- a/abi/DropperFacet.json +++ b/abi/DropperFacet.json @@ -173,6 +173,24 @@ "name": "Withdrawal", "type": "event" }, + { + "inputs": [], + "name": "adminTerminusInfo", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { diff --git a/abi/ERC1155CompatibleClaimProxy.json b/abi/ERC1155CompatibleClaimProxy.json new file mode 100644 index 00000000..6087cca1 --- /dev/null +++ b/abi/ERC1155CompatibleClaimProxy.json @@ -0,0 +1,178 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "_dropperAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "DropperAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "dropId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "requestID", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "blockDeadline", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "claim", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "drain", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "onERC1155Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/abi/ERC721CompatibleClaimProxy.json b/abi/ERC721CompatibleClaimProxy.json new file mode 100644 index 00000000..2729e727 --- /dev/null +++ b/abi/ERC721CompatibleClaimProxy.json @@ -0,0 +1,173 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "_dropperAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "DropperAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "dropId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "requestID", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "blockDeadline", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "claim", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "drain", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "onERC721Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/abi/IInventory.json b/abi/IInventory.json new file mode 100644 index 00000000..858b1151 --- /dev/null +++ b/abi/IInventory.json @@ -0,0 +1,553 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "equippedBy", + "type": "address" + } + ], + "name": "ItemEquipped", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemPoolId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "maxAmount", + "type": "uint256" + } + ], + "name": "ItemMarkedAsEquippableInSlot", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "unequippedBy", + "type": "address" + } + ], + "name": "ItemUnequipped", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bool", + "name": "persistent", + "type": "bool" + } + ], + "name": "NewSlotPersistence", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "NewSlotURI", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "contractAddress", + "type": "address" + } + ], + "name": "NewSubjectAddress", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "creator", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "slot", + "type": "uint256" + } + ], + "name": "SlotCreated", + "type": "event" + }, + { + "inputs": [], + "name": "adminTerminusInfo", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "persistent", + "type": "bool" + }, + { + "internalType": "string", + "name": "slotURI", + "type": "string" + } + ], + "name": "createSlot", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "itemTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "equip", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + } + ], + "name": "getEquippedItem", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "ItemType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "ItemAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "ItemTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "Amount", + "type": "uint256" + } + ], + "internalType": "struct EquippedItem", + "name": "item", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "getSlotById", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "SlotURI", + "type": "string" + }, + { + "internalType": "bool", + "name": "SlotIsPersistent", + "type": "bool" + } + ], + "internalType": "struct Slot", + "name": "slots", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "getSlotURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "itemPoolId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxAmount", + "type": "uint256" + } + ], + "name": "markItemAsEquippableInSlot", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "itemPoolId", + "type": "uint256" + } + ], + "name": "maxAmountOfItemInSlot", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "numSlots", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "persistent", + "type": "bool" + } + ], + "name": "setSlotPersistent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "newSlotURI", + "type": "string" + }, + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "setSlotURI", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "slotIsPersistent", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "subject", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "unequipAll", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "unequip", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/abi/ITerminus.json b/abi/ITerminus.json index 87dff1a2..b287ac54 100644 --- a/abi/ITerminus.json +++ b/abi/ITerminus.json @@ -285,6 +285,40 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_capacity", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "_transferable", + "type": "bool" + }, + { + "internalType": "bool", + "name": "_burnable", + "type": "bool" + }, + { + "internalType": "string", + "name": "poolURI", + "type": "string" + } + ], + "name": "createPoolV2", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -434,6 +468,44 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "poolID", + "type": "uint256" + } + ], + "name": "poolIsBurnable", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "poolID", + "type": "uint256" + } + ], + "name": "poolIsTransferable", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -593,6 +665,24 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "poolID", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "burnable", + "type": "bool" + } + ], + "name": "setPoolBurnable", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -611,6 +701,24 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "poolID", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "transferable", + "type": "bool" + } + ], + "name": "setPoolTransferable", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -731,6 +839,24 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "poolID", + "type": "uint256" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "unapproveForPool", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { diff --git a/abi/InventoryFacet.json b/abi/InventoryFacet.json new file mode 100644 index 00000000..18c9627c --- /dev/null +++ b/abi/InventoryFacet.json @@ -0,0 +1,726 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "adminTerminusAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "adminTerminusPoolId", + "type": "uint256" + } + ], + "name": "AdministratorDesignated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "equippedBy", + "type": "address" + } + ], + "name": "ItemEquipped", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemPoolId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "maxAmount", + "type": "uint256" + } + ], + "name": "ItemMarkedAsEquippableInSlot", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "itemTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "unequippedBy", + "type": "address" + } + ], + "name": "ItemUnequipped", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bool", + "name": "persistent", + "type": "bool" + } + ], + "name": "NewSlotPersistence", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "NewSlotURI", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "contractAddress", + "type": "address" + } + ], + "name": "NewSubjectAddress", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "creator", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "slot", + "type": "uint256" + } + ], + "name": "SlotCreated", + "type": "event" + }, + { + "inputs": [], + "name": "adminTerminusInfo", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "persistent", + "type": "bool" + }, + { + "internalType": "string", + "name": "slotURI", + "type": "string" + } + ], + "name": "createSlot", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "itemTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "equip", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + } + ], + "name": "getEquippedItem", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "ItemType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "ItemAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "ItemTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "Amount", + "type": "uint256" + } + ], + "internalType": "struct EquippedItem", + "name": "item", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "getSlotById", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "SlotURI", + "type": "string" + }, + { + "internalType": "bool", + "name": "SlotIsPersistent", + "type": "bool" + } + ], + "internalType": "struct Slot", + "name": "slot", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "getSlotURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "adminTerminusAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "adminTerminusPoolId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "contractAddress", + "type": "address" + } + ], + "name": "init", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "itemPoolId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxAmount", + "type": "uint256" + } + ], + "name": "markItemAsEquippableInSlot", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "itemAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "itemPoolId", + "type": "uint256" + } + ], + "name": "maxAmountOfItemInSlot", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "numSlots", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155BatchReceived", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC721Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "persistent", + "type": "bool" + } + ], + "name": "setSlotPersistent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "newSlotURI", + "type": "string" + }, + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "setSlotURI", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "slotId", + "type": "uint256" + } + ], + "name": "slotIsPersistent", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "subject", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "subjectTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slot", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "unequipAll", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "unequip", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/abi/LibInventory.json b/abi/LibInventory.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/abi/LibInventory.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/abi/Lootbox.json b/abi/Lootbox.json index 7b05ca39..a08180bc 100644 --- a/abi/Lootbox.json +++ b/abi/Lootbox.json @@ -6,6 +6,11 @@ "name": "_terminusAddress", "type": "address" }, + { + "internalType": "address", + "name": "_administratorTerminusAddress", + "type": "address" + }, { "internalType": "uint256", "name": "_administratorPoolId", @@ -365,6 +370,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "TERMINUS_MINTABLE_REWARD_TYPE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -423,6 +441,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "administratorTerminusAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { diff --git a/abi/TokenDrainerFacet.json b/abi/TokenDrainerFacet.json new file mode 100644 index 00000000..632484a5 --- /dev/null +++ b/abi/TokenDrainerFacet.json @@ -0,0 +1,117 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiverAddress", + "type": "address" + } + ], + "name": "drainERC1155", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "receiverAddress", + "type": "address" + } + ], + "name": "drainERC20", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiverAddress", + "type": "address" + } + ], + "name": "withdrawERC1155", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiverAddress", + "type": "address" + } + ], + "name": "withdrawERC20", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiverAddress", + "type": "address" + } + ], + "name": "withdrawERC721", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file