ETH Price: $2,482.03 (-1.42%)

Contract

0x52073637b42D8947f8EDBD07aF7C8Fb628636a61
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint165505452023-02-03 20:08:23637 days ago1675454903IN
0x52073637...628636a61
0 ETH0.000738634.72194586
Mint165505052023-02-03 20:00:11637 days ago1675454411IN
0x52073637...628636a61
0 ETH0.0007703436.21392462
Mint165505042023-02-03 19:59:59637 days ago1675454399IN
0x52073637...628636a61
0 ETH0.0032083143.19684759
Mint165505032023-02-03 19:59:47637 days ago1675454387IN
0x52073637...628636a61
0 ETH0.0029058439.12433055
Mint165505012023-02-03 19:59:23637 days ago1675454363IN
0x52073637...628636a61
0 ETH0.0034085545.89286431
Mint165504982023-02-03 19:58:47637 days ago1675454327IN
0x52073637...628636a61
0 ETH0.0031204742.01414363
Mint165504972023-02-03 19:58:35637 days ago1675454315IN
0x52073637...628636a61
0 ETH0.0032369743.58266509
Mint165504952023-02-03 19:58:11637 days ago1675454291IN
0x52073637...628636a61
0 ETH0.0028793438.767552
Mint165504952023-02-03 19:58:11637 days ago1675454291IN
0x52073637...628636a61
0 ETH0.0032878344.267552
Mint165504942023-02-03 19:57:59637 days ago1675454279IN
0x52073637...628636a61
0 ETH0.0026642535.8716176
Mint165504942023-02-03 19:57:59637 days ago1675454279IN
0x52073637...628636a61
0 ETH0.0027377836.8616176
Mint165504942023-02-03 19:57:59637 days ago1675454279IN
0x52073637...628636a61
0 ETH0.0027377836.8616176
Mint165504942023-02-03 19:57:59637 days ago1675454279IN
0x52073637...628636a61
0 ETH0.0027377836.8616176
Mint165504932023-02-03 19:57:47637 days ago1675454267IN
0x52073637...628636a61
0 ETH0.0027442136.94817331
Mint165504932023-02-03 19:57:47637 days ago1675454267IN
0x52073637...628636a61
0 ETH0.0027442136.94817331
Mint165504932023-02-03 19:57:47637 days ago1675454267IN
0x52073637...628636a61
0 ETH0.0027442136.94817331
Mint165504882023-02-03 19:56:47637 days ago1675454207IN
0x52073637...628636a61
0 ETH0.0027887937.5483843
Mint165504752023-02-03 19:54:11637 days ago1675454051IN
0x52073637...628636a61
0 ETH0.0030455641.00552736
Mint165504592023-02-03 19:50:59637 days ago1675453859IN
0x52073637...628636a61
0 ETH0.0029840140.17681016
Mint165504562023-02-03 19:50:23637 days ago1675453823IN
0x52073637...628636a61
0 ETH0.0029400139.58441292
Mint165504502023-02-03 19:49:11637 days ago1675453751IN
0x52073637...628636a61
0 ETH0.0025307234.07373463
Mint165504492023-02-03 19:48:59637 days ago1675453739IN
0x52073637...628636a61
0 ETH0.0027780137.40320994
Mint165504482023-02-03 19:48:47637 days ago1675453727IN
0x52073637...628636a61
0 ETH0.0028572238.4697006
Mint165504452023-02-03 19:48:11637 days ago1675453691IN
0x52073637...628636a61
0 ETH0.0028371838.19991007
Mint165504452023-02-03 19:48:11637 days ago1675453691IN
0x52073637...628636a61
0 ETH0.0028371838.19991007
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Spaces

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 4 : Spaces.sol
/* SPDX-License-Identifier: MIT
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNXXXXKKXWWWMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNXXNNWWWMMMMMMMMMMMMMMWXKOkxdooollolloxkkOKNMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMWNK0kxddolodxxkO0XNWMWWWWWNKOxolccccccccccccccccllxXWWWWWWMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMWX0xolccccccccccccccldkOOOkxxolcccccccc:::::::::::::::oxddddxk0NWMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMWN0xocccccc::;;;;;;;;;;::::::::ccccc:::::;;;;;;;;;;;;,,,;:::::;,;:dOXNWMMMMMMM
MMMMMMMMMMMMMMMMMMMWX0xolcccc::;;;;;:::::::::::;;;;;;:::;;;;;:cccc:::;;;;;;;;;::::;;;,,,;:lx0NMMMMMM
MMMMMMMMMMMMMMMMMWXkoc::cc::;;;;::ccccccc::;;;;;;;;;;;;,,,;;;;:::;;,,,;:::;::;,''''',;ccc:;;lxKNWWMM
MMMMMMMMMMMMMMMWXOocccccc:;;;:ccccccc:::;;;,,,,;;;;;;;;;;,,,''',,,,;;:::::lc,...     .lOXX0kdokXWMMM
MMMMMMMMMMMMMWNOoccccccccc::cccccc::;;;;;;;;::::::::;;:coolc:;;,,;::::cok0k, .od, ... .:0WMMNK0XWMMM
MMMMMMMMMMMMMXxlcccccccccccccccc:;;;;;;;::::c;'.....  .'lkKXXX0kc,;cdOKNWO;  .''.'xKx'  cKMMMNKKWMMM
MMMMMMMMMMMWKdcccccccccccccc:::;;;;;;;::::lo;..co,.  ... .c0WMMNklxKWWMMNo.  .:;..;l;.  'kNX0O0NWMMM
MMMMMMMMWN0xc;:ccccccccccccc:;;;;;;::;;:oOKx' .,:.  .l0x'  ;0WMWXXWMMMMMNx.   ;o:.      'ldookXWMMMM
MMMMMMWNOdlc;;:cccccccccc:;;;;;;;:::cld0NWK:    .;,..;oc.  .lXN0xkKNNXXXXO:.  .',.   ..';:coOXWMMMMM
MMMMMWXxlcc:,,:cccccccccc:;;;;;;,;lkKNWMMMXc    ;xkc.      .,ll:,;coolllll:,''',,,,;;:::ldOXWMMMMMMM
MMMMWXklccc::;:cccccccccccc:::::;:cdxkO0XNNk'   .;ol'   ..',;;;;;::::::::::ccc:::ccccc:cd0NWMMMMMMMM
MMMMNOlcccccccccccccccccccccccccccccccc::ccc;'...',,,,,;::ccc:ccccccccccccccccccccccccco0NMWWWMMMMMM
MMMW0occccccccccccccccccccccccccccccc:;,',,,,,,;;;;:::ccccccccccccccccccccccccccccccc:;;lOWMMMMMMMMM
MMMXdcccccccccccccccccccccccccccccccc;',::;;;;;;,,,,,,,,,;;:::::cccccccccccccc::::;;,,,,;oXWMMMMMMMM
MMWOl:ccccccccccccccccccccccccccccccc;'';:'..'',,;;;;;;;,,,,,,,,;;;;;;;;;;;;;,,,,,,,,,:oOXWWMMMMMMMM
MMXd::cccccccccccccccccccccccccccccccc:,,,;,'...'''''',,,,;;;;;;;;,,,,,,,,,'','''''.;d0NWMMMMMMMMMMM
MWKo:cccccccccccccccccccccccccccccccccc:;,,;;,,''.'''.......''''''''''...':llooc;'',cxKWMMMMMMMMMMMM
MWKdccccccccccccccccccccccccccccccccccccc:;,,,;;;,'...';c:;,'..'''''''''..:k0000Odc',:lkNMMMMMMMMMMM
WWKdlcccccccccccccccccccccccccccccccccccccc::;,,;;;;;,;:cooool:'...'''''..:x00OOOko,';;:OWMMMMMMMMMM
WN0occcccccccccccccccccccccccccccccccccccc:::c::;,',,;;;;;;;:cc:,. .....'ldxdolc:;;;;;;oKWMMMMMMMMMM
WKo::cccccccccccccccccccccccccccccccccccccccccccc:::;,'',,;;;;;;;,,,,',,::::;;;;;;,.':xXWMMMMMMMMMMM
WKl,,;:cccccccccccccccccccccccccccccccccccccccccccccc::;;,,',,,,,,,,,,,,,,,'''''''..c0WMMMMMMMMMMMMM
Nk:'''',;::cccccccccccccccccccccccccccccccccccccccccc:ccccc:::;;,'''''''''''',;;::,,lOXXKXNMMMMMMMMM
Ko,''''''',,;;;;::::cccccccccccccccccccccccccccccccccccccccccccccc::::::::;;;;;;,,'',;:::lkXWMMMMMMM
0l''''''''''''''',,,,,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,,,,'''''''''''''''''''';cxKWMMMMM
o,'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''',ckXWMMM
:''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';dKWMM
,'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''',oKWM
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';kNM
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';kNM
*/

pragma solidity 0.8.15;

import {IZooOfNeuralAutomata} from "../interfaces/IZooOfNeuralAutomata.sol";
import {Owned} from "../../lib/solmate/src/auth/Owned.sol";

contract Spaces is Owned {

    address public immutable zona;
    uint256 public immutable startTime;
    uint256 public immutable endTime;

    mapping(address => bool) public claimed;

    constructor(
        address _owner, 
        address _zona, 
        uint256 _startTime
    ) Owned(_owner) {
        zona = _zona;
        startTime = _startTime;
        endTime = _startTime + 2 hours;
    }

    function mint() external {
        require(startTime <= block.timestamp || msg.sender == owner);
        require(endTime >= block.timestamp);
        require(!claimed[msg.sender]);
        claimed[msg.sender] = true;
        IZooOfNeuralAutomata(zona).mint(msg.sender, 4, 1);
    }
}

File 2 of 4 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnershipTransferred(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function transferOwnership(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnershipTransferred(msg.sender, newOwner);
    }
}

File 3 of 4 : INeuralAutomataEngine.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

struct NCAParams {
    string seed;
    string bg;
    string fg1;
    string fg2;
    string matrix;
    string activation;
    string rand;
    string mods;
}

interface INeuralAutomataEngine {
    function baseScript() external view returns(string memory);

    function parameters(NCAParams memory _params) external pure returns(string memory);

    function p5() external view returns(string memory);

    function script(NCAParams memory _params) external view returns(string memory);

    function page(NCAParams memory _params) external view returns(string memory);
}

File 4 of 4 : IZooOfNeuralAutomata.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

import {NCAParams} from "./INeuralAutomataEngine.sol";

interface IZooOfNeuralAutomata {

    function updateEngine(address _engine) external;

    function updateContractURI(string memory _contractURI) external;

    function updateParams(uint256 _id, NCAParams memory _params) external;

    function updateMinter(uint256 _id, address _minter) external;

    function updateBurner(uint256 _id, address _burner) external;

    function updateBaseURI(uint256 _id, string memory _baseURI) external;

    function freeze(uint256 _id) external;

    function newToken(
        uint256 _id,
        NCAParams memory _params, 
        address _minter, 
        address _burner,
        string memory _baseURI
    ) external;

    function mint(
        address _to,
        uint256 _id,
        uint256 _amount
    ) external;

    function burn(
        address _from,
        uint256 _id,
        uint256 _amount
    ) external;
    
}

Settings
{
  "remappings": [
    "ds-test/=lib/solmate/lib/ds-test/src/",
    "ethfs/=lib/ethfs/",
    "ethier/=lib/ethfs/packages/contracts/lib/ethier/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin/=lib/ethfs/packages/contracts/lib/openzeppelin-contracts/contracts/",
    "solady/=lib/ethfs/packages/contracts/lib/solady/src/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_zona","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zona","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e060405234801561001057600080fd5b506040516105c43803806105c483398101604081905261002f916100be565b600080546001600160a01b0319166001600160a01b03851690811782556040518592907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b03821660805260a081905261009681611c206100fa565b60c05250610120915050565b80516001600160a01b03811681146100b957600080fd5b919050565b6000806000606084860312156100d357600080fd5b6100dc846100a2565b92506100ea602085016100a2565b9150604084015190509250925092565b6000821982111561011b57634e487b7160e01b600052601160045260246000fd5b500190565b60805160a05160c05161046261016260003960008181609101526101f101526000818161011701526101a201526000818160cb01526102c501526104626000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806378e979251161005b57806378e97925146101125780638da5cb5b14610139578063c884ef8314610159578063f2fde38b1461018c57600080fd5b80631249c58b146100825780633197cbb61461008c57806344b170fe146100c6575b600080fd5b61008a61019f565b005b6100b37f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6100ed7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100bd565b6100b37f000000000000000000000000000000000000000000000000000000000000000081565b6000546100ed9073ffffffffffffffffffffffffffffffffffffffff1681565b61017c610167366004610418565b60016020526000908152604090205460ff1681565b60405190151581526020016100bd565b61008a61019a366004610418565b610323565b427f00000000000000000000000000000000000000000000000000000000000000001115806101e5575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6101ee57600080fd5b427f0000000000000000000000000000000000000000000000000000000000000000101561021b57600080fd5b3360009081526001602052604090205460ff161561023857600080fd5b3360008181526001602081905260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168217905590517f156e29f60000000000000000000000000000000000000000000000000000000081526004808201939093526024810192909252604482015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063156e29f690606401600060405180830381600087803b15801561030957600080fd5b505af115801561031d573d6000803e3d6000fd5b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640160405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b60006020828403121561042a57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461044e57600080fd5b939250505056fea164736f6c634300080f000a0000000000000000000000000aa0bc25769c52e623d09a9764e079a221bea2a1000000000000000000000000acbd6089ac5d2de7f49b53269416dbaea4da9f270000000000000000000000000000000000000000000000000000000063dd4ba0

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806378e979251161005b57806378e97925146101125780638da5cb5b14610139578063c884ef8314610159578063f2fde38b1461018c57600080fd5b80631249c58b146100825780633197cbb61461008c57806344b170fe146100c6575b600080fd5b61008a61019f565b005b6100b37f0000000000000000000000000000000000000000000000000000000063dd67c081565b6040519081526020015b60405180910390f35b6100ed7f000000000000000000000000acbd6089ac5d2de7f49b53269416dbaea4da9f2781565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100bd565b6100b37f0000000000000000000000000000000000000000000000000000000063dd4ba081565b6000546100ed9073ffffffffffffffffffffffffffffffffffffffff1681565b61017c610167366004610418565b60016020526000908152604090205460ff1681565b60405190151581526020016100bd565b61008a61019a366004610418565b610323565b427f0000000000000000000000000000000000000000000000000000000063dd4ba01115806101e5575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6101ee57600080fd5b427f0000000000000000000000000000000000000000000000000000000063dd67c0101561021b57600080fd5b3360009081526001602052604090205460ff161561023857600080fd5b3360008181526001602081905260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168217905590517f156e29f60000000000000000000000000000000000000000000000000000000081526004808201939093526024810192909252604482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000acbd6089ac5d2de7f49b53269416dbaea4da9f27169063156e29f690606401600060405180830381600087803b15801561030957600080fd5b505af115801561031d573d6000803e3d6000fd5b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640160405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b60006020828403121561042a57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461044e57600080fd5b939250505056fea164736f6c634300080f000a

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

0000000000000000000000000aa0bc25769c52e623d09a9764e079a221bea2a1000000000000000000000000acbd6089ac5d2de7f49b53269416dbaea4da9f270000000000000000000000000000000000000000000000000000000063dd4ba0

-----Decoded View---------------
Arg [0] : _owner (address): 0x0aa0Bc25769C52e623D09A9764e079A221BeA2a1
Arg [1] : _zona (address): 0xacbD6089ac5d2dE7f49B53269416DbaeA4da9f27
Arg [2] : _startTime (uint256): 1675447200

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000aa0bc25769c52e623d09a9764e079a221bea2a1
Arg [1] : 000000000000000000000000acbd6089ac5d2de7f49b53269416dbaea4da9f27
Arg [2] : 0000000000000000000000000000000000000000000000000000000063dd4ba0


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.