ETH Price: $3,096.73 (+1.19%)
Gas: 7 Gwei

Contract

0x5e72AD4Bf50c952B11A63B6769d02bB486A9a897
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve195038412024-03-24 10:34:35108 days ago1711276475IN
0x5e72AD4B...486A9a897
0 ETH0.0007705114.76622327
Approve192751722024-02-21 9:34:47140 days ago1708508087IN
0x5e72AD4B...486A9a897
0 ETH0.0016301331.42073769
Migrate From V1192345022024-02-15 16:24:23146 days ago1708014263IN
0x5e72AD4B...486A9a897
0 ETH0.0043954941.03262953
Migrate From V2192041092024-02-11 10:03:59150 days ago1707645839IN
0x5e72AD4B...486A9a897
0 ETH0.0034984633.32796249
Approve192015272024-02-11 1:21:47150 days ago1707614507IN
0x5e72AD4B...486A9a897
0 ETH0.0010841620.75316399
Approve191772302024-02-07 15:32:59154 days ago1707319979IN
0x5e72AD4B...486A9a897
0 ETH0.0023542245.34590611
Migrate From V1191681472024-02-06 8:55:23155 days ago1707209723IN
0x5e72AD4B...486A9a897
0 ETH0.0026331324.94139915
Migrate From V1191681392024-02-06 8:53:47155 days ago1707209627IN
0x5e72AD4B...486A9a897
0 ETH0.0030522128.9109111
Approve191500232024-02-03 19:51:35157 days ago1706989895IN
0x5e72AD4B...486A9a897
0 ETH0.0007221313.83900496
Approve191499312024-02-03 19:33:11157 days ago1706988791IN
0x5e72AD4B...486A9a897
0 ETH0.0006866813.14462053
Approve191340762024-02-01 14:08:23160 days ago1706796503IN
0x5e72AD4B...486A9a897
0 ETH0.0015226429.18003329
Approve191168162024-01-30 4:04:23162 days ago1706587463IN
0x5e72AD4B...486A9a897
0 ETH0.000593211.42598485
Approve191167992024-01-30 4:00:59162 days ago1706587259IN
0x5e72AD4B...486A9a897
0 ETH0.0006350112.23141413
Migrate From V2191123102024-01-29 12:53:59163 days ago1706532839IN
0x5e72AD4B...486A9a897
0 ETH0.0020311919.07460742
Approve190984632024-01-27 14:18:35165 days ago1706365115IN
0x5e72AD4B...486A9a897
0 ETH0.0010210719.6629958
Approve190698752024-01-23 14:10:23169 days ago1706019023IN
0x5e72AD4B...486A9a897
0 ETH0.001473528.38187179
Approve190557332024-01-21 14:07:59171 days ago1705846079IN
0x5e72AD4B...486A9a897
0 ETH0.0009534218.27150981
Approve190517972024-01-21 0:56:47171 days ago1705798607IN
0x5e72AD4B...486A9a897
0 ETH0.0006011411.57891568
Migrate From V1190497792024-01-20 18:10:35172 days ago1705774235IN
0x5e72AD4B...486A9a897
0 ETH0.0017138916.23417188
Approve190417392024-01-19 15:15:11173 days ago1705677311IN
0x5e72AD4B...486A9a897
0 ETH0.0026387750.56963697
Approve190348392024-01-18 16:08:35174 days ago1705594115IN
0x5e72AD4B...486A9a897
0 ETH0.0020914140.07992405
Approve190256192024-01-17 9:09:35175 days ago1705482575IN
0x5e72AD4B...486A9a897
0 ETH0.0016725432.05269757
Approve190153492024-01-15 22:44:59176 days ago1705358699IN
0x5e72AD4B...486A9a897
0 ETH0.0011466421.94910121
Approve190144822024-01-15 19:50:47176 days ago1705348247IN
0x5e72AD4B...486A9a897
0 ETH0.0013874926.59008207
Approve190144782024-01-15 19:49:59176 days ago1705348199IN
0x5e72AD4B...486A9a897
0 ETH0.0013105325.11524981
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
188491172023-12-23 14:30:23200 days ago1703341823
0x5e72AD4B...486A9a897
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Lucky8TokenProxy

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 5 : TokenProxy.sol
/*
    Copyright 2020 Empty Set Squad <[email protected]>
    Copyright 2023 Lucky8 Lottery

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.8.20;
pragma experimental ABIEncoderV2;

import "../external/UpgradeabilityProxy.sol";

contract Lucky8TokenProxy is UpgradeabilityProxy {
    constructor (address implementation) UpgradeabilityProxy(
        implementation,
        abi.encodeWithSignature("initialize()")
    ) public { }
}

File 2 of 5 : Address.sol
pragma solidity ^0.8.20;

/**
 * Utility library of inline functions on addresses
 *
 * Source https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-solidity/v2.1.3/contracts/utils/Address.sol
 * This contract is copied here and renamed from the original to avoid clashes in the compiled artifacts
 * when the user imports a zos-lib contract (that transitively causes this contract to be compiled and added to the
 * build/artifacts folder) as well as the vanilla Address implementation from an openzeppelin version.
 */
library OpenZeppelinUpgradesAddress {
    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

File 3 of 5 : BaseUpgradeabilityProxy.sol
pragma solidity ^0.8.20;

import './Proxy.sol';
import './Address.sol';

/**
 * @title BaseUpgradeabilityProxy
 * @dev This contract implements a proxy that allows to change the
 * implementation address to which it will delegate.
 * Such a change is called an implementation upgrade.
 */
contract BaseUpgradeabilityProxy is Proxy {
  /**
   * @dev Emitted when the implementation is upgraded.
   * @param implementation Address of the new implementation.
   */
  event Upgraded(address indexed implementation);

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

  function _implementation() override internal view returns (address impl) {
    bytes32 slot = IMPLEMENTATION_SLOT;
    assembly {
      impl := sload(slot)
    }
  }

  /**
   * @dev Upgrades the proxy to a new implementation.
   * @param newImplementation Address of the new implementation.
   */
  function _upgradeTo(address newImplementation) internal {
    _setImplementation(newImplementation);
    emit Upgraded(newImplementation);
  }

  /**
   * @dev Sets the implementation address of the proxy.
   * @param newImplementation Address of the new implementation.
   */
  function _setImplementation(address newImplementation) internal {
    require(OpenZeppelinUpgradesAddress.isContract(newImplementation), "Cannot set a proxy implementation to a non-contract address");

    bytes32 slot = IMPLEMENTATION_SLOT;

    assembly {
      sstore(slot, newImplementation)
    }
  }
}

File 4 of 5 : Proxy.sol
pragma solidity ^0.8.20;

/**
 * @title Proxy
 * @dev Implements delegation of calls to other contracts, with proper
 * forwarding of return values and bubbling of failures.
 * It defines a fallback function that delegates all calls to the address
 * returned by the abstract _implementation() internal function.
 */
abstract contract Proxy {
  /**
   * @dev Fallback function.
   * Implemented entirely in `_fallback`.
   */
  fallback () payable external {
    _fallback();
  }

  /**
   * @return The Address of the implementation.
   */
  function _implementation() virtual internal view returns (address);

  /**
   * @dev Delegates execution to an implementation contract.
   * This is a low level function that doesn't return to its internal call site.
   * It will return to the external caller whatever the implementation returns.
   * @param implementation Address to delegate.
   */
  function _delegate(address implementation) internal {
    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 Function that is run as the first thing in the fallback function.
   * Can be redefined in derived contracts to add functionality.
   * Redefinitions must call super._willFallback().
   */
  function _willFallback() internal {
  }

  /**
   * @dev fallback implementation.
   * Extracted to enable manual triggering.
   */
  function _fallback() internal {
    _willFallback();
    _delegate(_implementation());
  }
}

File 5 of 5 : UpgradeabilityProxy.sol
pragma solidity ^0.8.20;

import './BaseUpgradeabilityProxy.sol';

/**
 * @title UpgradeabilityProxy
 * @dev Extends BaseUpgradeabilityProxy with a constructor for initializing
 * implementation and init data.
 */
contract UpgradeabilityProxy is BaseUpgradeabilityProxy {
  /**
   * @dev Contract constructor.
   * @param _logic Address of the initial implementation.
   * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.
   * It should include the signature and the parameters of the function to be called, as described in
   * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
   * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.
   */
  constructor(address _logic, bytes memory _data) public payable {
    assert(IMPLEMENTATION_SLOT == bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1));
    _setImplementation(_logic);
    if(_data.length > 0) {
      (bool success, bytes memory err) = _logic.delegatecall(_data);
      if(!success) {
        revert(string(err));
      }
    }
  }  
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"}]

608060405234801561001057600080fd5b50604051610608380380610608833981810160405281019061003291906102e1565b806040516024016040516020818303038152906040527f8129fc1c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd60001c6100e69190610347565b60001b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b1461011b5761011a61037b565b5b61012a826101ee60201b60201c565b6000815111156101e6576000808373ffffffffffffffffffffffffffffffffffffffff168360405161015c919061041b565b600060405180830381855af49150503d8060008114610197576040519150601f19603f3d011682016040523d82523d6000602084013e61019c565b606091505b5091509150816101e357806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101da9190610498565b60405180910390fd5b50505b50505061054c565b6101fd8161026b60201b60201c565b61023c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102339061052c565b60405180910390fd5b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b90508181555050565b600080823b905060008111915050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006102ae82610283565b9050919050565b6102be816102a3565b81146102c957600080fd5b50565b6000815190506102db816102b5565b92915050565b6000602082840312156102f7576102f661027e565b5b6000610305848285016102cc565b91505092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006103528261030e565b915061035d8361030e565b925082820390508181111561037557610374610318565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b600081519050919050565b600081905092915050565b60005b838110156103de5780820151818401526020810190506103c3565b60008484015250505050565b60006103f5826103aa565b6103ff81856103b5565b935061040f8185602086016103c0565b80840191505092915050565b600061042782846103ea565b915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000601f19601f8301169050919050565b600061046a82610432565b610474818561043d565b93506104848185602086016103c0565b61048d8161044e565b840191505092915050565b600060208201905081810360008301526104b2818461045f565b905092915050565b7f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60008201527f6e20746f2061206e6f6e2d636f6e747261637420616464726573730000000000602082015250565b6000610516603b8361043d565b9150610521826104ba565b604082019050919050565b6000602082019050818103600083015261054581610509565b9050919050565b60ae8061055a6000396000f3fe6080604052600a600c565b005b60126020565b601e601a6022565b6053565b565b565b6000807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050805491505090565b3660008037600080366000845af43d6000803e80600081146073573d6000f35b3d6000fdfea26469706673582212205f0823f49aafcec1badc24642d4dc514a667fa201ca49ecfa8b42f0998e1fc8664736f6c63430008140033000000000000000000000000f554b803d113e1b724f816543dda77fd19801a34

Deployed Bytecode

0x6080604052600a600c565b005b60126020565b601e601a6022565b6053565b565b565b6000807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050805491505090565b3660008037600080366000845af43d6000803e80600081146073573d6000f35b3d6000fdfea26469706673582212205f0823f49aafcec1badc24642d4dc514a667fa201ca49ecfa8b42f0998e1fc8664736f6c63430008140033

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

000000000000000000000000f554b803d113e1b724f816543dda77fd19801a34

-----Decoded View---------------
Arg [0] : implementation (address): 0xf554b803D113E1b724f816543dDA77fd19801a34

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


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  ]
[ 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.