Sepolia Testnet

Token

TestFactory (TF)
ERC-721

Overview

Max Total Supply

7 TF

Holders

4

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Balance
1 TF
0x8beaa3bc881aa5ca48b424af1c22bb2ecdeaca71
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x420b40AD...e51642a32
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
UserCollectionProxy

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2023-09-12
*/

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

pragma solidity 0.8.19;

/**
 * @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 {}
}


// Proxy for Public Mintable User NFT Collection
contract UserCollectionProxy is Proxy {

    struct AddressSlot {
        address value;
    }
    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    constructor(
        address _implAddress, 
        address _creator,
        string memory name_,
        string memory symbol_,
        string memory _baseurl
    ) 
    {
        getAddressSlot(_IMPLEMENTATION_SLOT).value = _implAddress;
        emit Upgraded(_implAddress);
        (bool success, ) = 
        _implAddress.delegatecall(
            abi.encodeWithSignature(
                "initialize(address,string,string,string)"
                , _creator, name_, symbol_, _baseurl
            )
        );
        require(success, "Construction failed");
    }


    /**
     * @dev Returns the current implementation address.
     */
    function _implementation() internal view virtual override returns (address impl) {
        return getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_implAddress","type":"address"},{"internalType":"address","name":"_creator","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"_baseurl","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060405161046338038061046383398101604081905261002f9161026a565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0387169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000856001600160a01b0316858585856040516024016100b89493929190610340565b60408051601f198184030181529181526020820180516001600160e01b0316635f1e6f6d60e01b179052516100ed9190610395565b600060405180830381855af49150503d8060008114610128576040519150601f19603f3d011682016040523d82523d6000602084013e61012d565b606091505b50509050806101825760405162461bcd60e51b815260206004820152601360248201527f436f6e737472756374696f6e206661696c656400000000000000000000000000604482015260640160405180910390fd5b5050505050506103b1565b80516001600160a01b03811681146101a457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156101da5781810151838201526020016101c2565b50506000910152565b600082601f8301126101f457600080fd5b81516001600160401b038082111561020e5761020e6101a9565b604051601f8301601f19908116603f01168101908282118183101715610236576102366101a9565b8160405283815286602085880101111561024f57600080fd5b6102608460208301602089016101bf565b9695505050505050565b600080600080600060a0868803121561028257600080fd5b61028b8661018d565b94506102996020870161018d565b60408701519094506001600160401b03808211156102b657600080fd5b6102c289838a016101e3565b945060608801519150808211156102d857600080fd5b6102e489838a016101e3565b935060808801519150808211156102fa57600080fd5b50610307888289016101e3565b9150509295509295909350565b6000815180845261032c8160208601602086016101bf565b601f01601f19169290920160200192915050565b6001600160a01b038516815260806020820181905260009061036490830186610314565b82810360408401526103768186610314565b9050828103606084015261038a8185610314565b979650505050505050565b600082516103a78184602087016101bf565b9190910192915050565b60a4806103bf6000396000f3fe608060405236601057600e6013565b005b600e5b604960457f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b604b565b565b3660008037600080366000845af43d6000803e8080156069573d6000f35b3d6000fdfea2646970667358221220a3ee67d8e3f75ae5aa52b89ee243396ea40e4f06e116d8f96138fee82e2dddd364736f6c6343000813003300000000000000000000000075e819f904ba49721b7def206be176de2882d931000000000000000000000000dda2f2e159d2ce413bd0e1df5988ee7a803432e300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001e454e56454c4f502037323120774e465420436f6c6c656374696f6e204d53000000000000000000000000000000000000000000000000000000000000000000034d61780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f6170692e656e76656c6f702e69732f6d657461646174612f

Deployed Bytecode

0x608060405236601057600e6013565b005b600e5b604960457f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b604b565b565b3660008037600080366000845af43d6000803e8080156069573d6000f35b3d6000fdfea2646970667358221220a3ee67d8e3f75ae5aa52b89ee243396ea40e4f06e116d8f96138fee82e2dddd364736f6c63430008130033

Deployed Bytecode Sourcemap

3387:1705:0:-:0;;;;;;2973:11;:9;:11::i;:::-;3387:1705;;2742:11;2379:113;2456:28;2466:17;3764:66;4741:42;-1:-1:-1;;;;;4741:42:0;;4642:149;2466:17;2456:9;:28::i;:::-;2379:113::o;969:918::-;1312:14;1309:1;1306;1293:34;1530:1;1527;1511:14;1508:1;1492:14;1485:5;1472:60;1609:16;1606:1;1603;1588:38;1649:6;1718:68;;;;1837:16;1834:1;1827:27;1718:68;1754:16;1751:1;1744:27

Swarm Source

ipfs://a3ee67d8e3f75ae5aa52b89ee243396ea40e4f06e116d8f96138fee82e2dddd3
[ 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.