ETH Price: $2,952.50 (-0.03%)

Contract

0x22c327eE42478AE5341bf6b9d954211508f6c6C7

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

1 Internal Transaction found.

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
76793382025-04-26 12:29:08273 days ago1745670548  Contract Creation0 ETH
Cross-Chain Transactions
Loading...
Loading

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

Contract Name:
ElementDrop

Compiler Version
v0.8.17+commit.8df45f5f

ZkSolc Version
v1.5.12

Optimization Enabled:
Yes with Mode 3

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "./libs/Ownable.sol";

contract ElementDrop is Ownable {

    // methodID -> implementation
    mapping(bytes4 => address) private implementations;

    event MethodUpdated(bytes4 indexed methodID, address oldImpl, address newImpl);

    function registerMethods(address impl, bytes4[] calldata methodIDs) external onlyOwner {
        if (impl != address(0)) {
            require(impl.code.length > 0, "Invalid implementation address");
        }
        for (uint256 i = 0; i < methodIDs.length; i++) {
            bytes4 methodID = methodIDs[i];
            address oldImpl = implementations[methodID];
            implementations[methodID] = impl;
            emit MethodUpdated(methodID, oldImpl, impl);
        }
    }

    function getMethodImplementation(bytes4 methodID) external view returns (address) {
        return implementations[methodID];
    }

    receive() external payable {}

    fallback() external payable {
        address impl = implementations[msg.sig];
        require(impl != address(0), "Not implemented method.");
        assembly {
            calldatacopy(0, 0, calldatasize())

            if delegatecall(gas(), impl, 0, calldatasize(), 0, 0) {
                returndatacopy(0, 0, returndatasize())
                return(0, returndatasize())
            }

            returndatacopy(0, 0, returndatasize())
            revert(0, returndatasize())
        }
    }
}

// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

import "../storage/LibOwnableStorage.sol";


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable {

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(tx.origin);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return LibOwnableStorage.getStorage().owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) private {
        LibOwnableStorage.Storage storage stor = LibOwnableStorage.getStorage();
        address oldOwner = stor.owner;
        stor.owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 3 : LibOwnableStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;


library LibOwnableStorage {

    uint256 constant STORAGE_ID_OWNABLE = 1 << 128;

    struct Storage {
        address owner;
    }

    /// @dev Get the storage bucket for this contract.
    function getStorage() internal pure returns (Storage storage stor) {
        assembly { stor.slot := STORAGE_ID_OWNABLE }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "mode": "3"
  },
  "outputSelection": {
    "*": {
      "*": [
        "abi"
      ]
    }
  },
  "detectMissingLibraries": false,
  "forceEVMLA": false,
  "enableEraVMExtensions": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"methodID","type":"bytes4"},{"indexed":false,"internalType":"address","name":"oldImpl","type":"address"},{"indexed":false,"internalType":"address","name":"newImpl","type":"address"}],"name":"MethodUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"bytes4","name":"methodID","type":"bytes4"}],"name":"getMethodImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"impl","type":"address"},{"internalType":"bytes4[]","name":"methodIDs","type":"bytes4[]"}],"name":"registerMethods","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

0x9c4d535b0000000000000000000000000000000000000000000000000000000000000000010000897980ffa3927f95817ae0074b77b1bf7cd08f9ab374f3bbe8273f979600000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x0002000000000002000600000000000200010000000103550000006003100270000000660030019d0000008004000039000000400040043f0000000100200190000000190000c13d0000006602300197000000040020008c000000410000413d000000000301043b000000e0043002700000006f0040009c000000450000213d000000720040009c000000880000613d000000730040009c000000670000c13d0000000001000416000000000001004b0000012b0000c13d0000006701000041000000d20000013d0000000001000416000000000001004b0000012b0000c13d0000006701000041000000000101041a000600000001001d000000680100004100000000001004430000000001000414000000660010009c0000006601008041000000c00110021000000069011001c70000800b02000039019201880000040f0000000100200190000000c40000613d000000000601043b00000006020000290000006a01200197000000000116019f0000006703000041000000000013041b00000000010004140000006b05200197000000660010009c0000006601008041000000c0011002100000006c011001c70000800d0200003900000003030000390000006d04000041019201830000040f00000001002001900000012b0000613d0000002001000039000001000010044300000120000004430000006e01000041000001930001042e000000000002004b000000660000c13d0000000001000019000001930001042e000000700040009c000000c50000613d000000710040009c000000670000c13d000000240020008c0000012b0000413d0000000002000416000000000002004b0000012b0000c13d0000000401100370000000000601043b0000006b0060009c0000012b0000213d0000006701000041000000000101041a0000006b051001970000000002000411000000000025004b000001130000c13d000000000006004b0000011c0000c13d0000007401000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f0000007501000041000000c40010043f0000007601000041000000e40010043f00000077010000410000019400010430000000000301043b0000007901300197000000000010043f000000200000043f0000000001000414000000660010009c0000006601008041000000c00110021000000082011001c70000801002000039019201880000040f00000001002001900000012b0000613d000000000101043b000000000101041a0000006b02100198000000d70000c13d000000400100043d00000044021000390000008503000041000000000032043500000024021000390000001703000039000000000032043500000074020000410000000000210435000000040210003900000020030000390000000000320435000000660010009c0000006601008041000000400110021000000081011001c70000019400010430000000440020008c0000012b0000413d0000000003000416000000000003004b0000012b0000c13d0000000403100370000000000303043b000300000003001d0000006b0030009c0000012b0000213d0000002403100370000000000303043b0000007b0030009c0000012b0000213d0000002304300039000000000024004b0000012b0000813d0000000404300039000000000141034f000000000101043b000200000001001d0000007b0010009c0000012b0000213d000100240030003d000000020100002900000005011002100000000101100029000000000021004b0000012b0000213d0000006701000041000000000101041a0000006b011001970000000002000411000000000021004b000001130000c13d000000030000006b0000012d0000613d0000007e010000410000000000100443000000030100002900000004001004430000000001000414000000660010009c0000006601008041000000c0011002100000007f011001c70000800202000039019201880000040f0000000100200190000000c40000613d000000000101043b000000000001004b0000012d0000c13d000000400100043d00000044021000390000008003000041000000000032043500000024021000390000001e030000390000007d0000013d000000000001042f000000240020008c0000012b0000413d0000000002000416000000000002004b0000012b0000c13d0000000401100370000000000101043b00000078001001980000012b0000c13d0000007901100197000000000010043f000000200000043f019201760000040f000000000101041a0000006b01100197000000800010043f0000007a01000041000001930001042e0000000104000367000000000100003100000086031001980000001f0510018f000000e20000613d000000000604034f0000000007000019000000006806043c0000000007870436000000000037004b000000de0000c13d000000000005004b000000ef0000613d000000000434034f0000000305500210000000000603043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f000000000043043500000060011002100000000003000414000000660030009c0000006603008041000000c00330021000000000011300190192018d0000040f00000060051002700000001f0450018f0000008403500198000001000000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000037004b000000fc0000c13d0000006605500197000000000004004b0000010e0000613d000000000131034f0000000304400210000000000603043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f000000000013043500000060015002100000000100200190000001120000613d000001930001042e00000194000104300000007401000041000000800010043f0000002001000039000000840010043f000000a40010043f0000007c01000041000000c40010043f0000007d0100004100000194000104300000006a01100197000000000161019f0000006702000041000000000012041b0000000001000414000000660010009c0000006601008041000000c0011002100000006c011001c70000800d0200003900000003030000390000006d04000041019201830000040f0000000100200190000000430000c13d00000000010000190000019400010430000000020000006b000000430000613d000600000000001d0000000601000029000000050110021000000001011000290000000101100367000000000101043b00000078001001980000012b0000c13d0000007901100197000500000001001d000000000010043f000000200000043f0000000001000414000000660010009c0000006601008041000000c00110021000000082011001c70000801002000039019201880000040f00000001002001900000012b0000613d000000000101043b000000000101041a000400000001001d0000000501000029000000000010043f000000200000043f0000000001000414000000660010009c0000006601008041000000c00110021000000082011001c70000801002000039019201880000040f00000001002001900000012b0000613d000000000101043b000000000201041a0000006a022001970000000303000029000000000232019f000000000021041b000000400100043d0000002002100039000000000032043500000004020000290000006b022001970000000000210435000000660010009c000000660100804100000040011002100000000002000414000000660020009c0000006602008041000000c002200210000000000112019f00000082011001c70000800d02000039000000020300003900000083040000410000000505000029019201830000040f00000001002001900000012b0000613d00000006020000290000000102200039000600000002001d000000020020006c000001300000413d000000430000013d000000000001042f0000000001000414000000660010009c0000006601008041000000c00110021000000082011001c70000801002000039019201880000040f0000000100200190000001810000613d000000000101043b000000000001042d0000000001000019000001940001043000000186002104210000000102000039000000000001042d0000000002000019000000000001042d0000018b002104230000000102000039000000000001042d0000000002000019000000000001042d00000190002104250000000102000039000000000001042d0000000002000019000000000001042d0000019200000432000001930001042e000001940001043000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff0000000000000000000000000000000100000000000000000000000000000000938b5f3299a1f3b18e458564efbb950733226014eece26fae19012d850b48d830200000200000000000000000000000000000004000000000000000000000000ffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff02000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000b31de22400000000000000000000000000000000000000000000000000000000b31de22500000000000000000000000000000000000000000000000000000000f2fde38b000000000000000000000000000000000000000000000000000000004f333d35000000000000000000000000000000000000000000000000000000008da5cb5b08c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008400000080000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000800000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000640000008000000000000000001806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000496e76616c696420696d706c656d656e746174696f6e20616464726573730000000000000000000000000000000000000000006400000000000000000000000002000000000000000000000000000000000000400000000000000000000000009f13558563f4afe89886ace8e041189e663ef4e4d1dad61cd64cc601a89b372500000000000000000000000000000000000000000000000000000000ffffffe04e6f7420696d706c656d656e746564206d6574686f642e000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00000000000000000000000000000000000000000000000000000000000000000d0002a630620caf2775b6467e1361a47141f1dbb2f6076b0fe904aee4a70d698

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.