Contract 0xdf45b26A949dd58a2CE354c2C3157EE0A15A2ec9

Token Contract 
 
 
Txn Hash
Method
Block
From
To
Value
0x82cacea9a548c53896cd860d56cba218692b51295cc6260ba429f91b8083e20fGrant Role152874362022-08-06 7:37:29125 days 1 hr ago0x92075ff8ea4c5c8a58dcc68b9f68430b6d310cdc IN  The Good Blockchain: Token0 Ether0.00035254 6.24892183
0x0c6489570de11aa10b73f68248e817b8920d2ad7532c17cb973790337df980c3Grant Role152869422022-08-06 5:43:38125 days 3 hrs ago0x92075ff8ea4c5c8a58dcc68b9f68430b6d310cdc IN  The Good Blockchain: Token0 Ether0.00038268 6.78307487
0x078e9824b57d876a55fb575349b775d1200dc08dab024430e7e0beacf32f5ae0Grant Role152866382022-08-06 4:33:24125 days 4 hrs agoNFTFair Deployer IN  The Good Blockchain: Token0 Ether0.00042132 7.51925775
[ Download CSV Export 

OVERVIEW

100 one-of-a-kind National Day NFTs by artists with disabilities are available for redemption for the first time.

Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x74afbca5d70bfbe167f484fc9617d78b3b56aeba6f64306eb8fd4f755ee9dc76152865682022-08-06 4:19:48125 days 5 hrs ago 0xa451cff8b7fcf845e7bfeefb1a865571bf9f0bd1  Contract Creation0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFTFairTokenProxy

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-08-06
*/

// Sources flattened with hardhat v2.10.0 https://hardhat.org

// File @openzeppelin/contracts/proxy/[email protected]

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overridden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {}
}


// File contracts/NFTCreator/tokens/NFTFairTokenProxy.sol

pragma solidity ^0.8.0;

contract NFTFairTokenProxy is Proxy {
    address private _impl;

    constructor(address _tokenImpl, bytes memory _data) {
        (bool success, ) = _tokenImpl.delegatecall(_data);
        require(success, "Token initialization failed");
        _impl = _tokenImpl;
    }

    function _implementation() internal view override returns (address) {
        return _impl;
    }

    function implementation() external view returns (address) {
        return _impl;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenImpl","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060405161031138038061031183398101604081905261002f9161014b565b6000826001600160a01b0316826040516100499190610219565b600060405180830381855af49150503d8060008114610084576040519150601f19603f3d011682016040523d82523d6000602084013e610089565b606091505b50509050806100de5760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e20696e697469616c697a6174696f6e206661696c65640000000000604482015260640160405180910390fd5b5050600080546001600160a01b0319166001600160a01b0392909216919091179055610235565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561013657818101518382015260200161011e565b83811115610145576000848401525b50505050565b6000806040838503121561015e57600080fd5b82516001600160a01b038116811461017557600080fd5b60208401519092506001600160401b038082111561019257600080fd5b818501915085601f8301126101a657600080fd5b8151818111156101b8576101b8610105565b604051601f8201601f19908116603f011681019083821181831017156101e0576101e0610105565b816040528281528860208487010111156101f957600080fd5b61020a83602083016020880161011b565b80955050505050509250929050565b6000825161022b81846020870161011b565b9190910192915050565b60ce806102436000396000f3fe608060405260043610601f5760003560e01c80635c60da1b14603157602b565b36602b576029605c565b005b6029605c565b348015603c57600080fd5b50600054604080516001600160a01b039092168252519081900360200190f35b6073606f6000546001600160a01b031690565b6075565b565b3660008037600080366000845af43d6000803e8080156093573d6000f35b3d6000fdfea264697066735822122037a3944e60218a783ca34fc29e21ad777010537776a1fc7dbdc09ea039e8f76464736f6c6343000809003300000000000000000000000028dc66db1530747fb0dcd671b76e3830ccf9be2b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e42158707b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001425330349d91ec14181a1057fc5e97802ffd940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000002a544742204e6174696f6e616c2044617920323032322046756e6472616973696e672043616d706169676e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569626a68697570756933337037766e377437787337697964366e7835326d6b726635637676647871716c6d676d66356d76646269792f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000028dc66db1530747fb0dcd671b76e3830ccf9be2b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e42158707b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001425330349d91ec14181a1057fc5e97802ffd940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000002a544742204e6174696f6e616c2044617920323032322046756e6472616973696e672043616d706169676e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569626a68697570756933337037766e377437787337697964366e7835326d6b726635637676647871716c6d676d66356d76646269792f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenImpl (address): 0x28Dc66db1530747fB0DCD671B76e3830ccf9BE2B
Arg [1] : _data (bytes): 0x2158707b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001425330349d91ec14181a1057fc5e97802ffd940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000002a544742204e6174696f6e616c2044617920323032322046756e6472616973696e672043616d706169676e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569626a68697570756933337037766e377437787337697964366e7835326d6b726635637676647871716c6d676d66356d76646269792f0000000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000028dc66db1530747fb0dcd671b76e3830ccf9be2b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001e4
Arg [3] : 2158707b00000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000001425330349d91ec14181a1057fc5e97
Arg [5] : 802ffd9400000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000006400000000000000000000000000000000000000000000000000000000
Arg [8] : 000000e000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000014000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000016000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000002a544742204e6174696f6e616c2044617920323032322046756e647261
Arg [12] : 6973696e672043616d706169676e000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 00000043697066733a2f2f62616679626569626a68697570756933337037766e
Arg [16] : 377437787337697964366e7835326d6b726635637676647871716c6d676d6635
Arg [17] : 6d76646269792f00000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

3548:487:0:-:0;;;;;;;;;;;;;;;;;;;;;;;3096:11;:9;:11::i;:::-;3548:487;;2865:11;:9;:11::i;3943:89::-;;;;;;;;;;-1:-1:-1;3992:7:0;4019:5;3943:89;;;-1:-1:-1;;;;;4019:5:0;;;160:51:1;;3943:89:0;;;;;148:2:1;3943:89:0;;;2502:113;2579:28;2589:17;3992:7;4019:5;-1:-1:-1;;;;;4019:5:0;;3943:89;2589:17;2579:9;:28::i;:::-;2502:113::o;1092:918::-;1435:14;1432:1;1429;1416:34;1653:1;1650;1634:14;1631:1;1615:14;1608:5;1595:60;1732:16;1729:1;1726;1711:38;1772:6;1841:68;;;;1960:16;1957:1;1950:27;1841:68;1877:16;1874:1;1867:27

Swarm Source

ipfs://37a3944e60218a783ca34fc29e21ad777010537776a1fc7dbdc09ea039e8f764
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.