ETH Price: $3,342.67 (-1.64%)

Contract

0x974B3f0A7f52b6389319f7a02e861D1335eb843D
 

Overview

ETH Balance

0.005 ETH

Eth Value

$16.71 (@ $3,342.67/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...168797102023-03-22 0:57:35647 days ago1679446655IN
0x974B3f0A...335eb843D
0 ETH0.0007782713.68994113
Set Approval For...167955362023-03-10 4:59:59659 days ago1678424399IN
0x974B3f0A...335eb843D
0 ETH0.0012545122.05782284
Set Approval For...167728412023-03-07 0:23:11662 days ago1678148591IN
0x974B3f0A...335eb843D
0 ETH0.0018089131.81908311
Mint166900592023-02-23 8:58:35674 days ago1677142715IN
0x974B3f0A...335eb843D
0 ETH0.0021251325.5602555
Mint166900432023-02-23 8:55:23674 days ago1677142523IN
0x974B3f0A...335eb843D
0 ETH0.002209626.57629825
Set Approval For...166900382023-02-23 8:54:23674 days ago1677142463IN
0x974B3f0A...335eb843D
0 ETH0.0016035328.20638802
Mint166900222023-02-23 8:50:59674 days ago1677142259IN
0x974B3f0A...335eb843D
0 ETH0.0028229333.95322555
Mint166900132023-02-23 8:48:47674 days ago1677142127IN
0x974B3f0A...335eb843D
0 ETH0.0021908926.35119127
Mint166900102023-02-23 8:48:11674 days ago1677142091IN
0x974B3f0A...335eb843D
0 ETH0.0023468428.22692153
Mint166900052023-02-23 8:47:11674 days ago1677142031IN
0x974B3f0A...335eb843D
0 ETH0.0017199926.04396658
Mint166899912023-02-23 8:44:23674 days ago1677141863IN
0x974B3f0A...335eb843D
0 ETH0.0015888324.05800771
Mint166899862023-02-23 8:43:23674 days ago1677141803IN
0x974B3f0A...335eb843D
0 ETH0.0016323424.71677734
Mint166899842023-02-23 8:42:59674 days ago1677141779IN
0x974B3f0A...335eb843D
0 ETH0.0020923325.16577179
Set Approval For...166899632023-02-23 8:38:47674 days ago1677141527IN
0x974B3f0A...335eb843D
0 ETH0.0014608525.69668065
Mint166899202023-02-23 8:30:11674 days ago1677141011IN
0x974B3f0A...335eb843D
0 ETH0.0020645824.83203415
Mint166899202023-02-23 8:30:11674 days ago1677141011IN
0x974B3f0A...335eb843D
0 ETH0.0017720426.83203415
Mint166899162023-02-23 8:29:23674 days ago1677140963IN
0x974B3f0A...335eb843D
0 ETH0.0022257626.77063458
Mint166899072023-02-23 8:27:35674 days ago1677140855IN
0x974B3f0A...335eb843D
0.005 ETH0.0023512427.08022618
Mint166899042023-02-23 8:26:59674 days ago1677140819IN
0x974B3f0A...335eb843D
0 ETH0.0022566327.14194228
Mint166899022023-02-23 8:26:35674 days ago1677140795IN
0x974B3f0A...335eb843D
0 ETH0.0019457823.40313497
Mint166899022023-02-23 8:26:35674 days ago1677140795IN
0x974B3f0A...335eb843D
0 ETH0.001684325.50356504
Mint166898872023-02-23 8:23:35674 days ago1677140615IN
0x974B3f0A...335eb843D
0 ETH0.0022465927.02121913
Mint166898842023-02-23 8:22:59674 days ago1677140579IN
0x974B3f0A...335eb843D
0 ETH0.0017260326.135384
Set Approval For...166898842023-02-23 8:22:59674 days ago1677140579IN
0x974B3f0A...335eb843D
0 ETH0.0014857926.135384
Set Approval For...166898822023-02-23 8:22:35674 days ago1677140555IN
0x974B3f0A...335eb843D
0 ETH0.0014393525.31853211
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:
TheRainbow

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 4: ERC1967Trans.sol
// SPDX-License-Identifier: GPL-3.0                                                                                                                                                                                                                                                          
// --- Don't Copy. Be careful your asset ---
pragma solidity ^0.8.7;

import "./ERC1967Proxy.sol";

contract TheRainbow is ERC1967Proxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.
     */
    constructor(address _logic) payable ERC1967Proxy(_logic, bytes("")) {}

    /**
     * @dev Returns the current implementation.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     */
    function implementation() public view returns (address) {
        return _implementation();
    }
}

File 2 of 4: ERC1967Proxy.sol
// SPDX-License-Identifier: GPL-3.0                                                                                                                                                                                                                                                          
// --- Bruno721Drop Contract. --- 
// --- Don't Copy. Be careful your asset ---
pragma solidity ^0.8.7;
import "./proxy.sol";
import "./ERC1967Upgrade.sol";

contract ERC1967Proxy is Proxy, ERC1967Upgrade {
    /**
     * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
     *
     * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
     * function call, and allows initializing the storage of the proxy like a Solidity constructor.
     */
    constructor(address _logic, bytes memory _data) payable {
        _upgradeToAndCall(_logic, _data, false);
    }

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

File 3 of 4: ERC1967Upgrade.sol
// SPDX-License-Identifier: GPL-3.0                                                                                                                                                                                                                                                          
// --- Bruno721Drop Contract. --- 
// --- Don't Copy. Be careful your asset ---
pragma solidity ^0.8.7;

abstract contract ERC1967Upgrade {
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @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);

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

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        // require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {
        _upgradeTo(newImplementation);
        // if (data.length > 0 || forceCall) {
        //     functionDelegateCall(newImplementation, data, "Address: low-level delegate call failed");
        // }
    }

    struct AddressSlot {
        address value;
    }
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }
}

File 4 of 4: proxy.sol
// SPDX-License-Identifier: GPL-3.0                                                                                                                                                                                                                                                          

pragma solidity ^0.8.7;

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 {
        _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();
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_logic","type":"address"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052604051610210380380610210833981016040819052610022916100cc565b80604051806020016040528060008152506100458282600061004d60201b60201c565b5050506100fc565b6100568361005b565b505050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0383161790556040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000602082840312156100de57600080fd5b81516001600160a01b03811681146100f557600080fd5b9392505050565b6101058061010b6000396000f3fe608060405260043610601f5760003560e01c80635c60da1b14603157602b565b36602b576029605f565b005b6029605f565b348015603c57600080fd5b506043606d565b6040516001600160a01b03909116815260200160405180910390f35b606b6067607a565b60ac565b565b60006075607a565b905090565b600060757f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b3660008037600080366000845af43d6000803e80801560ca573d6000f35b3d6000fdfea2646970667358221220efe80f32ea8d0517070db7cb0255122ec319b8f67919c66a8c7710276442fbe364736f6c63430008110033000000000000000000000000e5acef88bd526092c66c4ef6d639d2d6bffb3c92

Deployed Bytecode

0x608060405260043610601f5760003560e01c80635c60da1b14603157602b565b36602b576029605f565b005b6029605f565b348015603c57600080fd5b506043606d565b6040516001600160a01b03909116815260200160405180910390f35b606b6067607a565b60ac565b565b60006075607a565b905090565b600060757f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b3660008037600080366000845af43d6000803e80801560ca573d6000f35b3d6000fdfea2646970667358221220efe80f32ea8d0517070db7cb0255122ec319b8f67919c66a8c7710276442fbe364736f6c63430008110033

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

000000000000000000000000e5acef88bd526092c66c4ef6d639d2d6bffb3c92

-----Decoded View---------------
Arg [0] : _logic (address): 0xe5aceF88Bd526092C66C4Ef6d639d2D6Bffb3C92

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e5acef88bd526092c66c4ef6d639d2d6bffb3c92


Deployed Bytecode Sourcemap

386:886:1:-:0;;;;;;;;;;;;;;;;;;;;;;;2460:11:3;:9;:11::i;:::-;386:886:1;;2237:11:3;:9;:11::i;1173:97:1:-;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;178:32:4;;;160:51;;148:2;133:18;1173:97:1;;;;;;;1911:83:3;1959:28;1969:17;:15;:17::i;:::-;1959:9;:28::i;:::-;1911:83::o;1173:97:1:-;1220:7;1246:17;:15;:17::i;:::-;1239:24;;1173:97;:::o;1025:140:0:-;1092:12;1123:35;892:66:2;1242:42;-1:-1:-1;;;;;1242:42:2;;1163:128;537:895:3;875:14;872:1;869;856:34;1089:1;1086;1070:14;1067:1;1051:14;1044:5;1031:60;1165:16;1162:1;1159;1144:38;1203:6;1270:66;;;;1385:16;1382:1;1375:27;1270:66;1305:16;1302:1;1295:27

Swarm Source

ipfs://efe80f32ea8d0517070db7cb0255122ec319b8f67919c66a8c7710276442fbe3

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.