ETH Price: $3,110.84 (+0.12%)

Contract

0xc81E0a00ba9feB8064C0323c6a8b75B5747c6D64
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60c06040144358912022-03-22 11:39:38974 days ago1647949178IN
 Create: MetroLookup
0 ETH0.0048796734.38718189

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MetroLookup

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 2 : MetroLookup.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.12;

import "./interfaces/IMetroNFTLookup.sol";

contract MetroLookup is IMetroNFTLookup {

    address immutable genesisAddress;

    address immutable blackoutAddress;

    constructor(
        address _genesisAddress, 
        address _blackoutAddress
    ) {
        genesisAddress = _genesisAddress;
        blackoutAddress = _blackoutAddress;
    }

    function getNFTContractAddress(uint256 tokenId) external view returns (address) {
        require(tokenId > 0 && tokenId <= 20000, "Invalid token id");
        return tokenId <= 10_000 ? genesisAddress : blackoutAddress;
    }
}

File 2 of 2 : IMetroNFTLookup.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity 0.8.12;

interface IMetroNFTLookup {

    function getNFTContractAddress(uint256 tokenId) external view returns (address);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_genesisAddress","type":"address"},{"internalType":"address","name":"_blackoutAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getNFTContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b5060405161024938038061024983398101604081905261002f91610062565b6001600160a01b039182166080521660a052610095565b80516001600160a01b038116811461005d57600080fd5b919050565b6000806040838503121561007557600080fd5b61007e83610046565b915061008c60208401610046565b90509250929050565b60805160a0516101906100b9600039600060f50152600061011b01526101906000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063ead9189e14610030575b600080fd5b61004361003e366004610141565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000808211801561007f5750614e208211155b6100e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420746f6b656e20696400000000000000000000000000000000604482015260640160405180910390fd5b612710821115610119577f000000000000000000000000000000000000000000000000000000000000000061013b565b7f00000000000000000000000000000000000000000000000000000000000000005b92915050565b60006020828403121561015357600080fd5b503591905056fea26469706673582212200efb8f3fc48ea031d86cb81687919d887083f3895caae13139fa1532a07841aa64736f6c634300080c00330000000000000000000000000e9d6552b85be180d941f1ca73ae3e318d2d4f1f00000000000000000000000025cd67e2dfec471acd3cdd3b22ccf7147596dd8b

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063ead9189e14610030575b600080fd5b61004361003e366004610141565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000808211801561007f5750614e208211155b6100e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420746f6b656e20696400000000000000000000000000000000604482015260640160405180910390fd5b612710821115610119577f00000000000000000000000025cd67e2dfec471acd3cdd3b22ccf7147596dd8b61013b565b7f0000000000000000000000000e9d6552b85be180d941f1ca73ae3e318d2d4f1f5b92915050565b60006020828403121561015357600080fd5b503591905056fea26469706673582212200efb8f3fc48ea031d86cb81687919d887083f3895caae13139fa1532a07841aa64736f6c634300080c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000e9d6552b85be180d941f1ca73ae3e318d2d4f1f00000000000000000000000025cd67e2dfec471acd3cdd3b22ccf7147596dd8b

-----Decoded View---------------
Arg [0] : _genesisAddress (address): 0x0e9d6552b85BE180d941f1cA73Ae3E318D2D4F1F
Arg [1] : _blackoutAddress (address): 0x25cD67e2DFec471aCd3cdd3B22cCf7147596DD8B

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000e9d6552b85be180d941f1ca73ae3e318d2d4f1f
Arg [1] : 00000000000000000000000025cd67e2dfec471acd3cdd3b22ccf7147596dd8b


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.