Skip to content
Verified contractExactMIT

HVMTLForge

Address0x4e8ca5cb9fca486d09ee7c8dbbfe99ac96ec1982
Balance

0 ETH

 

Transactions

21,647

 

Compiler

solc 0.8.17

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.17+commit.8df45f5f
Language
solidity
Optimization
Yes, 200 runs
EVM version
london
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
17,538,495
Creation transaction
0x8b52a2c1df…3915f915ff

Read5

  • apeCoinContract() → (address)
  • getPurchasesByPlayer(address) → (uint256)
  • isForgePurchasesEnabled() → (bool)
  • operator() → (address)
  • owner() → (address)

Write7

  • purchase(uint256)
  • renounceOwnership()
  • setIsForgePurchasesEnabled(bool)
  • setOperator(address)
  • transferOwnership(address)
  • withdraw(address)
  • withdrawAPE()

Events3

  • ForgePurchase(address,uint256)
  • OperatorChanged(address)
  • OwnershipTransferred(address,address)

Errors3

  • ForgePurchasesNotEnabled()
  • OnlyOperatorError()
  • OperatorZeroAddressCheck()

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_apeCoinContract",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_operator",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "ForgePurchasesNotEnabled",
    "type": "error",
    "inputs": []
  },
  {
    "name": "OnlyOperatorError",
    "type": "error",
    "inputs": []
  },
  {
    "name": "OperatorZeroAddressCheck",
    "type": "error",
    "inputs": []
  },
  {
    "name": "ForgePurchase",
    "type": "event",
    "inputs": [
      {
        "name": "playerAddress",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "amountApePurchased",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "OperatorChanged",
    "type": "event",
    "inputs": [
      {
        "name": "operator",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "OwnershipTransferred",
    "type": "event",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "apeCoinContract",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getPurchasesByPlayer",
    "type": "function",
    "inputs": [
      {
        "name": "playerAddress",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "isForgePurchasesEnabled",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "operator",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "purchase",
    "type": "function",
    "inputs": [
      {
        "name": "quantity",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "renounceOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setIsForgePurchasesEnabled",
    "type": "function",
    "inputs": [
      {
        "name": "isEnabled",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setOperator",
    "type": "function",
    "inputs": [
      {
        "name": "_operator",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "withdraw",
    "type": "function",
    "inputs": [
      {
        "name": "coinContract",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "withdrawAPE",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.