Skip to content
Verified contractPartialMIT

CryptoFoxesShop

Address0x66b2c032b2bd17543dceaef29cf0265c46e2e5e6
Balance

0 ETH

 

Transactions

1,766

 

Compiler

solc 0.8.10

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.10+commit.fc410830
Language
solidity
Optimization
Yes, 1,500 runs
EVM version
london
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
14,179,892
Creation transaction
0x93e1c3f39e…1b332cbc0a

Read17

  • allowedContracts(address) → (bool)
  • cryptoFoxesSteak() → (address)
  • getParts() → (tuple[])
  • getProduct(string) → (tuple)
  • getProductPrice(string,uint256) → (uint256)
  • getProductStock(string) → (uint256)
  • getProducts() → (tuple[])
  • getSlugs() → (string[])
  • getTotalProductPurchased(string) → (uint256)
  • getTotalProductPurchasedWallet(string,address) → (uint256)
  • owner() → (address)
  • parts(uint256) → (address,uint256,uint256)
  • productSlugs(uint256) → (string)
  • products(string) → (uint256,uint256,uint256,uint256,uint256,bool,bool)
  • purchaseId() → (uint256)
  • purchasedProduct(string) → (uint256)
  • purchasedProductWallet(string,address) → (uint256)

Write12

  • addProduct(string,tuple)
  • changePart(tuple[])
  • editProduct(string,tuple)
  • purchase(string,uint256)
  • purchaseByContract(address,string,uint256)
  • purchaseCart(string[],uint256[])
  • purchaseCartByContract(address,string[],uint256[])
  • renounceOwnership()
  • setAllowedContract(address,bool)
  • statusProduct(string,bool)
  • transferOwnership(address)
  • withdrawAndBurn()

Events2

  • OwnershipTransferred(address,address)
  • Purchase(address,string,uint256,uint256)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_cryptoFoxesSteak",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "OwnershipTransferred",
    "type": "event",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Purchase",
    "type": "event",
    "inputs": [
      {
        "name": "_owner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "_slug",
        "type": "string",
        "indexed": true,
        "internalType": "string"
      },
      {
        "name": "_quantity",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "_id",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "addProduct",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "_product",
        "type": "tuple",
        "components": [
          {
            "name": "price",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "start",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "end",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "maxPerWallet",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "quantityMax",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "enable",
            "type": "bool",
            "internalType": "bool"
          },
          {
            "name": "isValid",
            "type": "bool",
            "internalType": "bool"
          }
        ],
        "internalType": "struct ICryptoFoxesShopStruct.Product"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "allowedContracts",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "changePart",
    "type": "function",
    "inputs": [
      {
        "name": "_parts",
        "type": "tuple[]",
        "components": [
          {
            "name": "wallet",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "part",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "timestamp",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct CryptoFoxesShopWithdraw.Part[]"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "cryptoFoxesSteak",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract ICryptoFoxesSteakBurnableShop"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "editProduct",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "_product",
        "type": "tuple",
        "components": [
          {
            "name": "price",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "start",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "end",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "maxPerWallet",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "quantityMax",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "enable",
            "type": "bool",
            "internalType": "bool"
          },
          {
            "name": "isValid",
            "type": "bool",
            "internalType": "bool"
          }
        ],
        "internalType": "struct ICryptoFoxesShopStruct.Product"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "getParts",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "tuple[]",
        "components": [
          {
            "name": "wallet",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "part",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "timestamp",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct CryptoFoxesShopWithdraw.Part[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getProduct",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "tuple",
        "components": [
          {
            "name": "price",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "start",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "end",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "maxPerWallet",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "quantityMax",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "enable",
            "type": "bool",
            "internalType": "bool"
          },
          {
            "name": "isValid",
            "type": "bool",
            "internalType": "bool"
          }
        ],
        "internalType": "struct ICryptoFoxesShopStruct.Product"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getProductPrice",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "_quantity",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getProductStock",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getProducts",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "tuple[]",
        "components": [
          {
            "name": "price",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "start",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "end",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "maxPerWallet",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "quantityMax",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "enable",
            "type": "bool",
            "internalType": "bool"
          },
          {
            "name": "isValid",
            "type": "bool",
            "internalType": "bool"
          }
        ],
        "internalType": "struct ICryptoFoxesShopStruct.Product[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getSlugs",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string[]",
        "internalType": "string[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getTotalProductPurchased",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getTotalProductPurchasedWallet",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "_wallet",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "parts",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "wallet",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "part",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "timestamp",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "productSlugs",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "products",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [
      {
        "name": "price",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "start",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "end",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "maxPerWallet",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "quantityMax",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "enable",
        "type": "bool",
        "internalType": "bool"
      },
      {
        "name": "isValid",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "purchase",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "_quantity",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "purchaseByContract",
    "type": "function",
    "inputs": [
      {
        "name": "_wallet",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "_quantity",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "purchaseCart",
    "type": "function",
    "inputs": [
      {
        "name": "_slugs",
        "type": "string[]",
        "internalType": "string[]"
      },
      {
        "name": "_quantities",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "purchaseCartByContract",
    "type": "function",
    "inputs": [
      {
        "name": "_wallet",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_slugs",
        "type": "string[]",
        "internalType": "string[]"
      },
      {
        "name": "_quantities",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "purchaseId",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "purchasedProduct",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "purchasedProductWallet",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "renounceOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setAllowedContract",
    "type": "function",
    "inputs": [
      {
        "name": "_contract",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_allowed",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "statusProduct",
    "type": "function",
    "inputs": [
      {
        "name": "_slug",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "_enable",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "withdrawAndBurn",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.