ETH Price: $2,309.91 (-0.26%)

Token

Nakamigos (Nakamigos)
 

Overview

Max Total Supply

0 Nakamigos

Holders

10

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
halid-ibn-al-walid.eth
Balance
1 Nakamigos
0x6340968f3498C1fC33E319A7552F9b979Af74cee
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Proxy

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : Proxy.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.17;

import "./LibRawResult.sol";
import "./Implementation.sol";

/// @notice Base class for all proxy contracts.
contract Proxy {
    using LibRawResult for bytes;

    /// @notice The address of the implementation contract used by this proxy.
    Implementation public immutable IMPL;

    // Made `payable` to allow initialized crowdfunds to receive ETH as an
    // initial contribution.
    constructor(Implementation impl, bytes memory initCallData) payable {
        IMPL = impl;
        (bool s, bytes memory r) = address(impl).delegatecall(initCallData);
        if (!s) {
            r.rawRevert();
        }
    }

    // Forward all calls to the implementation.
    fallback() external payable {
        Implementation impl = IMPL;
        assembly {
            calldatacopy(0x00, 0x00, calldatasize())
            let s := delegatecall(gas(), impl, 0x00, calldatasize(), 0x00, 0)
            returndatacopy(0x00, 0x00, returndatasize())
            if iszero(s) {
                revert(0x00, returndatasize())
            }
            return(0x00, returndatasize())
        }
    }
}

File 2 of 3 : Implementation.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.17;

// Base contract for all contracts intended to be delegatecalled into.
abstract contract Implementation {
    error OnlyDelegateCallError();
    error OnlyConstructorError();

    address public immutable IMPL;

    constructor() {
        IMPL = address(this);
    }

    // Reverts if the current function context is not inside of a delegatecall.
    modifier onlyDelegateCall() virtual {
        if (address(this) == IMPL) {
            revert OnlyDelegateCallError();
        }
        _;
    }

    // Reverts if the current function context is not inside of a constructor.
    modifier onlyConstructor() {
        if (address(this).code.length != 0) {
            revert OnlyConstructorError();
        }
        _;
    }
}

File 3 of 3 : LibRawResult.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.17;

library LibRawResult {
    // Revert with the data in `b`.
    function rawRevert(bytes memory b) internal pure {
        assembly {
            revert(add(b, 32), mload(b))
        }
    }

    // Return with the data in `b`.
    function rawReturn(bytes memory b) internal pure {
        assembly {
            return(add(b, 32), mload(b))
        }
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {},
  "viaIR": false
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract Implementation","name":"impl","type":"address"},{"internalType":"bytes","name":"initCallData","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"IMPL","outputs":[{"internalType":"contract Implementation","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a06040526040516102df3803806102df833981016040819052610022916100ec565b6001600160a01b038216608081905260405160009182916100449085906101ba565b600060405180830381855af49150503d806000811461007f576040519150601f19603f3d011682016040523d82523d6000602084013e610084565b606091505b5091509150816100a1576100a1816100aa60201b6100ad1760201c565b505050506101d6565b805160208201fd5b634e487b7160e01b600052604160045260246000fd5b60005b838110156100e35781810151838201526020016100cb565b50506000910152565b600080604083850312156100ff57600080fd5b82516001600160a01b038116811461011657600080fd5b60208401519092506001600160401b038082111561013357600080fd5b818501915085601f83011261014757600080fd5b815181811115610159576101596100b2565b604051601f8201601f19908116603f01168101908382118183101715610181576101816100b2565b8160405282815288602084870101111561019a57600080fd5b6101ab8360208301602088016100c8565b80955050505050509250929050565b600082516101cc8184602087016100c8565b9190910192915050565b60805160eb6101f460003960008181601e0152606f015260eb6000f3fe608060405260043610601c5760003560e01c806356973ee514605f575b7f00000000000000000000000000000000000000000000000000000000000000003660008037600080366000845af43d6000803e806059573d6000fd5b503d6000f35b348015606a57600080fd5b5060917f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b805160208201fdfea2646970667358221220f69f2432cca74aef79957f227310d20da733b89c622e991b4602ce9c8662c91364736f6c6343000811003300000000000000000000000052010e220e5c8ef2217d86cfa58da51da39e8ec4000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000003843c4815760000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000041f01675c52ef9c444c3774a42bd4842a611f4a1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000005c2604d1dc9800000000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000f7f52dd34bc21eda08c0b804c7c1dbc48375820f0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000e01c3b247e99b21e1f5a0081bb00891a32c1457c0000000000000000000000001263e7e4de403357699ebb3e83455769d6f86bae000000000000000000000000ed34ad18f09a367733e20b3bd57bfa4a32d7eb1700000000000000000000000000000000000000000000000000000000000000094e616b616d69676f73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094e616b616d69676f7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000d774557b647330c91bf44cfeab205095f7e6c36700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000ec100000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405260043610601c5760003560e01c806356973ee514605f575b7f00000000000000000000000052010e220e5c8ef2217d86cfa58da51da39e8ec43660008037600080366000845af43d6000803e806059573d6000fd5b503d6000f35b348015606a57600080fd5b5060917f00000000000000000000000052010e220e5c8ef2217d86cfa58da51da39e8ec481565b6040516001600160a01b03909116815260200160405180910390f35b805160208201fdfea2646970667358221220f69f2432cca74aef79957f227310d20da733b89c622e991b4602ce9c8662c91364736f6c63430008110033

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

00000000000000000000000052010e220e5c8ef2217d86cfa58da51da39e8ec4000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000003843c4815760000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000041f01675c52ef9c444c3774a42bd4842a611f4a1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000005c2604d1dc9800000000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000f7f52dd34bc21eda08c0b804c7c1dbc48375820f0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000e01c3b247e99b21e1f5a0081bb00891a32c1457c0000000000000000000000001263e7e4de403357699ebb3e83455769d6f86bae000000000000000000000000ed34ad18f09a367733e20b3bd57bfa4a32d7eb1700000000000000000000000000000000000000000000000000000000000000094e616b616d69676f73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094e616b616d69676f7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000d774557b647330c91bf44cfeab205095f7e6c36700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000ec100000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : impl (address): 0x52010E220E5C8eF2217D86cfA58da51Da39e8ec4
Arg [1] : initCallData (bytes): 0x3c4815760000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000041f01675c52ef9c444c3774a42bd4842a611f4a1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000005c2604d1dc9800000000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000f7f52dd34bc21eda08c0b804c7c1dbc48375820f0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000e01c3b247e99b21e1f5a0081bb00891a32c1457c0000000000000000000000001263e7e4de403357699ebb3e83455769d6f86bae000000000000000000000000ed34ad18f09a367733e20b3bd57bfa4a32d7eb1700000000000000000000000000000000000000000000000000000000000000094e616b616d69676f73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094e616b616d69676f7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000d774557b647330c91bf44cfeab205095f7e6c36700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000ec1

-----Encoded View---------------
32 Constructor Arguments found :
Arg [0] : 00000000000000000000000052010e220e5c8ef2217d86cfa58da51da39e8ec4
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000384
Arg [3] : 3c48157600000000000000000000000000000000000000000000000000000000
Arg [4] : 0000002000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000008000000000000000000000000000000000000000000000000000000000
Arg [6] : 000002e000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000032000000000000000000000000041f01675c52ef9c444c3774a42bd4842
Arg [8] : a611f4a100000000000000000000000000000000000000000000000000000000
Arg [9] : 0000008000000000000000000000000000000000000000000000000000000000
Arg [10] : 000001e000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000022000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [13] : 000000e000000000000000000000000000000000000000000000000000000000
Arg [14] : 00093a8000000000000000000000000000000000000000000000000000000000
Arg [15] : 0001518000000000000000000000000000000000000000000000000000000000
Arg [16] : 00000bb800000000000000000000000000000000000000000000000005c2604d
Arg [17] : 1dc9800000000000000000000000000000000000000000000000000000000000
Arg [18] : 000000fa000000000000000000000000f7f52dd34bc21eda08c0b804c7c1dbc4
Arg [19] : 8375820f00000000000000000000000000000000000000000000000000000000
Arg [20] : 00000003000000000000000000000000e01c3b247e99b21e1f5a0081bb00891a
Arg [21] : 32c1457c0000000000000000000000001263e7e4de403357699ebb3e83455769
Arg [22] : d6f86bae000000000000000000000000ed34ad18f09a367733e20b3bd57bfa4a
Arg [23] : 32d7eb1700000000000000000000000000000000000000000000000000000000
Arg [24] : 000000094e616b616d69676f7300000000000000000000000000000000000000
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [26] : 000000094e616b616d69676f7300000000000000000000000000000000000000
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [28] : 00000001000000000000000000000000d774557b647330c91bf44cfeab205095
Arg [29] : f7e6c36700000000000000000000000000000000000000000000000000000000
Arg [30] : 0000000100000000000000000000000000000000000000000000000000000000
Arg [31] : 00000ec100000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.