ETH Price: $3,343.05 (-0.32%)

Contract

0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419
 

Multichain Info

Transaction Hash
Method
Block
From
To
0x4e75bb4b75c81f6f2f364affd6a6c18a2391a9993459648f61600e3d2a047fa1 Deposit(pending)2024-12-23 3:12:5534 mins ago1734923575IN
Starknet: StarkGate ETH Bridge
0.0017346099 ETH(Pending)(Pending)
0x427032d7c21387f1cb00ab7efb9b3e33a149e8e842aa6ccf9141f87790199744 Withdraw(pending)2024-12-23 3:04:3843 mins ago1734923078IN
Starknet: StarkGate ETH Bridge
0 ETH(Pending)(Pending)
0x9306c99087e1e42af0f25674de97eaf0707be3b559e2feb2d83217b7c13ca11e Withdraw(pending)2024-12-23 2:48:071 hrs ago1734922087IN
Starknet: StarkGate ETH Bridge
0 ETH(Pending)(Pending)
0x71678b041a429c8ce5b06f4a996171696df25a6268800b06c0faa5ca986cb004 Deposit(pending)2024-12-23 2:46:041 hr ago1734921964IN
Starknet: StarkGate ETH Bridge
0.001252203 ETH(Pending)(Pending)
0xe994a70ad0233a9038ce03e8d4c988cdc2a46e9a545f8011255b8271c74275f0 Deposit(pending)2024-12-23 2:15:401 hr ago1734920140IN
Starknet: StarkGate ETH Bridge
0.0016835829 ETH(Pending)(Pending)
0x94f2b0886b8fdea672b4e9a7e9fda851306b148218754c61e5a328d908b9c249 Withdraw(pending)2024-12-23 2:06:181 hr ago1734919578IN
Starknet: StarkGate ETH Bridge
0 ETH(Pending)(Pending)
0x0d26b76dde0e8acdf519ae6018a6447383a20037aba54fdfb3634783a3935834 Deposit(pending)2024-12-23 1:27:282 hrs ago1734917248IN
Starknet: StarkGate ETH Bridge
0.0014706516 ETH(Pending)(Pending)
0x9a0febf1939d864f2a91a1d050cab9b6b715240469396a5a77d1877ec01fb35e Withdraw(pending)2024-12-23 1:24:032 hrs ago1734917043IN
Starknet: StarkGate ETH Bridge
0 ETH(Pending)(Pending)
0x661013768b5fdfbabb089b80c4793b97020cc95c0e26f9f910024721ec76dcfe Deposit(pending)2024-12-23 1:22:292 hrs ago1734916949IN
Starknet: StarkGate ETH Bridge
0.0013782754 ETH(Pending)(Pending)
0x3a32063073831017cd1c39d7eb76f43540e60207667b8a77a8e901ca18782f95 Deposit(pending)2024-12-23 1:16:272 hrs ago1734916587IN
Starknet: StarkGate ETH Bridge
0.0017831991 ETH(Pending)(Pending)
0x972148050572d7c52cf9252167a75dbe33e6833125d84e6280b77089ae246133 Withdraw(pending)2024-12-22 16:14:5311 hrs ago1734884093IN
Starknet: StarkGate ETH Bridge
0 ETH(Pending)(Pending)
0xd53a419e16a8efb4b256e588ba9499bf02f248c787d616f012e1aa8620133876 Deposit(pending)2024-12-22 15:13:5012 hrs ago1734880430IN
Starknet: StarkGate ETH Bridge
0.004 ETH(Pending)(Pending)
0x4e03366c156750db73e7e16495c6c50bc11c1e3361b7a0f6f9f78821f2f4a069 Deposit(pending)2024-12-22 14:25:0713 hrs ago1734877507IN
Starknet: StarkGate ETH Bridge
0.0402602565 ETH(Pending)(Pending)
0x9c1e22362c6a083ec98a757487d31137727fe2c60779a7cbbcb5c45f933198a9 Deposit(pending)2024-12-22 9:47:3318 hrs ago1734860853IN
Starknet: StarkGate ETH Bridge
0.0062420508 ETH(Pending)(Pending)
0x8b9ae519a1d62f7bdb33a3c4b56adaff65877128ad3b8b819ad1e08261dfdf42 Deposit(pending)2024-12-22 9:30:2118 hrs ago1734859821IN
Starknet: StarkGate ETH Bridge
0.0004336652 ETH(Pending)(Pending)
0x30cd6db7c23d6d8cc554b781dace9d07ce33fe59d28eeb8bc7dae24e77f08164 Deposit(pending)2024-12-22 9:06:4518 hrs ago1734858405IN
Starknet: StarkGate ETH Bridge
0.002500941 ETH(Pending)(Pending)
0x0a5bb25e2259319508c81593acfb65fa4ccf9f7a3cd1906ecd11382c81e0d2ff Withdraw(pending)2024-12-22 8:03:5519 hrs ago1734854635IN
Starknet: StarkGate ETH Bridge
0 ETH(Pending)(Pending)
0x356b01d4a4e6739f3b2844a8b7a45ed7b8cec18803bf6d796b6e7a569dfe5dba Deposit(pending)2024-12-22 7:50:5719 hrs ago1734853857IN
Starknet: StarkGate ETH Bridge
0.0203937577 ETH(Pending)(Pending)
0x34cb00108da201418c8da5d85aa5bbd5dd0d62b1e421751b1efe9e0462c64f15 Deposit(pending)2024-12-22 7:48:5119 hrs ago1734853731IN
Starknet: StarkGate ETH Bridge
0.2972315522 ETH(Pending)(Pending)
0x4be690a07d416b382ae92606d90000b56e4487af594a792c6dc34e3e98dec8c3 Deposit(pending)2024-12-22 6:21:1821 hrs ago1734848478IN
Starknet: StarkGate ETH Bridge
0.0041940653 ETH(Pending)(Pending)
0x1f62f62e44666da7efcf05e0deaabcdc1a59c104d1c964ec7d45853da3a225a1 Deposit(pending)2024-12-22 6:07:2721 hrs ago1734847647IN
Starknet: StarkGate ETH Bridge
0.0305033968 ETH(Pending)(Pending)
0xb9b6a91897908c2fa35697c8df8b18d9b247db58a31f7c38f8f27cb9b6bf29a7 Deposit(pending)2024-12-22 6:07:2721 hrs ago1734847647IN
Starknet: StarkGate ETH Bridge
0.0034970686 ETH(Pending)(Pending)
0xc00a4250d5b74cfbfb132b5d2dc4fb475d2ea2504ce7c3e8cb2811237bbd7db6 Deposit(pending)2024-12-22 5:08:4822 hrs ago1734844128IN
Starknet: StarkGate ETH Bridge
0.0016019018 ETH(Pending)(Pending)
0x7f051727966908b14d55cae469ed23710348cd5392bdc1947fe750ca4329084e Withdraw(pending)2024-12-22 3:51:3923 hrs ago1734839499IN
Starknet: StarkGate ETH Bridge
0 ETH(Pending)(Pending)
0xb7ed90ab889d1a2bd6360aac8275973ed567c175d00e40f544f4001fd5f492d7 Deposit(pending)2024-12-22 1:46:1926 hrs ago1734831979IN
Starknet: StarkGate ETH Bridge
0.0032128706 ETH(Pending)(Pending)
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
214622442024-12-23 2:35:351 hr ago1734921335
Starknet: StarkGate ETH Bridge
0.00011373 ETH
214618002024-12-23 1:06:232 hrs ago1734915983
Starknet: StarkGate ETH Bridge
0.0005 ETH
214612122024-12-22 23:07:354 hrs ago1734908855
Starknet: StarkGate ETH Bridge
0.012 ETH
214612122024-12-22 23:07:354 hrs ago1734908855
Starknet: StarkGate ETH Bridge
0.013 ETH
214612122024-12-22 23:07:354 hrs ago1734908855
Starknet: StarkGate ETH Bridge
0.015 ETH
214612122024-12-22 23:07:354 hrs ago1734908855
Starknet: StarkGate ETH Bridge
0.0111 ETH
214612122024-12-22 23:07:354 hrs ago1734908855
Starknet: StarkGate ETH Bridge
0.011 ETH
214611292024-12-22 22:50:594 hrs ago1734907859
Starknet: StarkGate ETH Bridge
0.00012025 ETH
214611292024-12-22 22:50:594 hrs ago1734907859
Starknet: StarkGate ETH Bridge
0.00604925 ETH
214610452024-12-22 22:34:115 hrs ago1734906851
Starknet: StarkGate ETH Bridge
75.06 ETH
214607352024-12-22 21:31:236 hrs ago1734903083
Starknet: StarkGate ETH Bridge
0.00014506 ETH
214601352024-12-22 19:30:118 hrs ago1734895811
Starknet: StarkGate ETH Bridge
0.00040534 ETH
214601352024-12-22 19:30:118 hrs ago1734895811
Starknet: StarkGate ETH Bridge
829.06754952 ETH
214601352024-12-22 19:30:118 hrs ago1734895811
Starknet: StarkGate ETH Bridge
829.06714417 ETH
214585912024-12-22 14:19:4713 hrs ago1734877187
Starknet: StarkGate ETH Bridge
0.00015034 ETH
214585912024-12-22 14:19:4713 hrs ago1734877187
Starknet: StarkGate ETH Bridge
0.35015034 ETH
214585682024-12-22 14:15:1113 hrs ago1734876911
Starknet: StarkGate ETH Bridge
0.00015529 ETH
214585472024-12-22 14:10:5913 hrs ago1734876659
Starknet: StarkGate ETH Bridge
0.00015441 ETH
214584722024-12-22 13:55:5913 hrs ago1734875759
Starknet: StarkGate ETH Bridge
0.00014853 ETH
214583202024-12-22 13:25:3514 hrs ago1734873935
Starknet: StarkGate ETH Bridge
0.00015206 ETH
214582812024-12-22 13:17:4714 hrs ago1734873467
Starknet: StarkGate ETH Bridge
0.00014919 ETH
214582322024-12-22 13:07:5914 hrs ago1734872879
Starknet: StarkGate ETH Bridge
0.00014518 ETH
214581992024-12-22 13:01:1114 hrs ago1734872471
Starknet: StarkGate ETH Bridge
0.0001 ETH
214581932024-12-22 12:59:5914 hrs ago1734872399
Starknet: StarkGate ETH Bridge
0 ETH
214579312024-12-22 12:06:5915 hrs ago1734869219
Starknet: StarkGate ETH Bridge
0.015 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Proxy

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity Multiple files format)

File 1 of 8: Proxy.sol
/*
  Copyright 2019-2022 StarkWare Industries Ltd.

  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

  https://www.starkware.co/open-source-license/

  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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;

import "ProxyGovernance.sol";
import "ProxyStorage.sol";
import "StorageSlots.sol";
import "Common.sol";

/**
  The Proxy contract implements delegation of calls to other contracts (`implementations`), with
  proper forwarding of return values and revert reasons. This pattern allows retaining the contract
  storage while replacing implementation code.

  The following operations are supported by the proxy contract:

  - :sol:func:`addImplementation`: Defines a new implementation, the data with which it should be initialized and whether this will be the last version of implementation.
  - :sol:func:`upgradeTo`: Once an implementation is added, the governor may upgrade to that implementation only after a safety time period has passed (time lock), the current implementation is not the last version and the implementation is not frozen (see :sol:mod:`FullWithdrawals`).
  - :sol:func:`removeImplementation`: Any announced implementation may be removed. Removing an implementation is especially important once it has been used for an upgrade in order to avoid an additional unwanted revert to an older version.

  The only entity allowed to perform the above operations is the proxy governor
  (see :sol:mod:`ProxyGovernance`).

  Every implementation is required to have an `initialize` function that replaces the constructor
  of a normal contract. Furthermore, the only parameter of this function is an array of bytes
  (`data`) which may be decoded arbitrarily by the `initialize` function. It is up to the
  implementation to ensure that this function cannot be run more than once if so desired.

  When an implementation is added (:sol:func:`addImplementation`) the initialization `data` is also
  announced, allowing users of the contract to analyze the full effect of an upgrade to the new
  implementation. During an :sol:func:`upgradeTo`, the `data` is provided again and only if it is
  identical to the announced `data` is the upgrade performed by pointing the proxy to the new
  implementation and calling its `initialize` function with this `data`.

  It is the responsibility of the implementation not to overwrite any storage belonging to the
  proxy (`ProxyStorage`). In addition, upon upgrade, the new implementation is assumed to be
  backward compatible with previous implementations with respect to the storage used until that
  point.
*/
contract Proxy is ProxyStorage, ProxyGovernance, StorageSlots {
    // Emitted when the active implementation is replaced.
    event ImplementationUpgraded(address indexed implementation, bytes initializer);

    // Emitted when an implementation is submitted as an upgrade candidate and a time lock
    // is activated.
    event ImplementationAdded(address indexed implementation, bytes initializer, bool finalize);

    // Emitted when an implementation is removed from the list of upgrade candidates.
    event ImplementationRemoved(address indexed implementation, bytes initializer, bool finalize);

    // Emitted when the implementation is finalized.
    event FinalizedImplementation(address indexed implementation);

    using Addresses for address;

    string public constant PROXY_VERSION = "3.0.1";

    constructor(uint256 upgradeActivationDelay) public {
        initGovernance();
        setUpgradeActivationDelay(upgradeActivationDelay);
    }

    function setUpgradeActivationDelay(uint256 delayInSeconds) private {
        bytes32 slot = UPGRADE_DELAY_SLOT;
        assembly {
            sstore(slot, delayInSeconds)
        }
    }

    function getUpgradeActivationDelay() public view returns (uint256 delay) {
        bytes32 slot = UPGRADE_DELAY_SLOT;
        assembly {
            delay := sload(slot)
        }
        return delay;
    }

    /*
      Returns the address of the current implementation.
    */
    // NOLINTNEXTLINE external-function.
    function implementation() public view returns (address _implementation) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        assembly {
            _implementation := sload(slot)
        }
    }

    /*
      Returns true if the implementation is frozen.
      If the implementation was not assigned yet, returns false.
    */
    function implementationIsFrozen() private returns (bool) {
        address _implementation = implementation();

        // We can't call low level implementation before it's assigned. (i.e. ZERO).
        if (_implementation == address(0x0)) {
            return false;
        }

        // NOLINTNEXTLINE: low-level-calls.
        (bool success, bytes memory returndata) = _implementation.delegatecall(
            abi.encodeWithSignature("isFrozen()")
        );
        require(success, string(returndata));
        return abi.decode(returndata, (bool));
    }

    /*
      This method blocks delegation to initialize().
      Only upgradeTo should be able to delegate call to initialize().
    */
    function initialize(
        bytes calldata /*data*/
    ) external pure {
        revert("CANNOT_CALL_INITIALIZE");
    }

    modifier notFinalized() {
        require(isNotFinalized(), "IMPLEMENTATION_FINALIZED");
        _;
    }

    /*
      Forbids calling the function if the implementation is frozen.
      This modifier relies on the lower level (logical contract) implementation of isFrozen().
    */
    modifier notFrozen() {
        require(!implementationIsFrozen(), "STATE_IS_FROZEN");
        _;
    }

    /*
      This entry point serves only transactions with empty calldata. (i.e. pure value transfer tx).
      We don't expect to receive such, thus block them.
    */
    receive() external payable {
        revert("CONTRACT_NOT_EXPECTED_TO_RECEIVE");
    }

    /*
      Contract's default function. Delegates execution to the implementation contract.
      It returns back to the external caller whatever the implementation delegated code returns.
    */
    fallback() external payable {
        address _implementation = implementation();
        require(_implementation != address(0x0), "MISSING_IMPLEMENTATION");

        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 for now, as we don't know the out 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())
            }
        }
    }

    /*
      Sets the implementation address of the proxy.
    */
    function setImplementation(address newImplementation) private {
        bytes32 slot = IMPLEMENTATION_SLOT;
        assembly {
            sstore(slot, newImplementation)
        }
    }

    /*
      Returns true if the contract is not in the finalized state.
    */
    function isNotFinalized() public view returns (bool notFinal) {
        bytes32 slot = FINALIZED_STATE_SLOT;
        uint256 slotValue;
        assembly {
            slotValue := sload(slot)
        }
        notFinal = (slotValue == 0);
    }

    /*
      Marks the current implementation as finalized.
    */
    function setFinalizedFlag() private {
        bytes32 slot = FINALIZED_STATE_SLOT;
        assembly {
            sstore(slot, 0x1)
        }
    }

    /*
      Introduce an implementation and its initialization vector,
      and start the time-lock before it can be upgraded to.
      addImplementation is not blocked when frozen or finalized.
      (upgradeTo API is blocked when finalized or frozen).
    */
    function addImplementation(
        address newImplementation,
        bytes calldata data,
        bool finalize
    ) external onlyGovernance {
        require(newImplementation.isContract(), "ADDRESS_NOT_CONTRACT");

        bytes32 implVectorHash = keccak256(abi.encode(newImplementation, data, finalize));

        uint256 activationTime = block.timestamp + getUpgradeActivationDelay();

        enabledTime[implVectorHash] = activationTime;
        emit ImplementationAdded(newImplementation, data, finalize);
    }

    /*
      Removes a candidate implementation.
      Note that it is possible to remove the current implementation. Doing so doesn't affect the
      current implementation, but rather revokes it as a future candidate.
    */
    function removeImplementation(
        address removedImplementation,
        bytes calldata data,
        bool finalize
    ) external onlyGovernance {
        bytes32 implVectorHash = keccak256(abi.encode(removedImplementation, data, finalize));

        // If we have initializer, we set the hash of it.
        uint256 activationTime = enabledTime[implVectorHash];
        require(activationTime > 0, "UNKNOWN_UPGRADE_INFORMATION");
        delete enabledTime[implVectorHash];
        emit ImplementationRemoved(removedImplementation, data, finalize);
    }

    /*
      Upgrades the proxy to a new implementation, with its initialization.
      to upgrade successfully, implementation must have been added time-lock agreeably
      before, and the init vector must be identical ot the one submitted before.

      Upon assignment of new implementation address,
      its initialize will be called with the initializing vector (even if empty).
      Therefore, the implementation MUST must have such a method.

      Note - Initialization data is committed to in advance, therefore it must remain valid
      until the actual contract upgrade takes place.

      Care should be taken regarding initialization data and flow when planning the contract upgrade.

      When planning contract upgrade, special care is also needed with regard to governance
      (See comments in Governance.sol).
    */
    // NOLINTNEXTLINE: reentrancy-events timestamp.
    function upgradeTo(
        address newImplementation,
        bytes calldata data,
        bool finalize
    ) external payable onlyGovernance notFinalized notFrozen {
        bytes32 implVectorHash = keccak256(abi.encode(newImplementation, data, finalize));
        uint256 activationTime = enabledTime[implVectorHash];
        require(activationTime > 0, "UNKNOWN_UPGRADE_INFORMATION");
        require(newImplementation.isContract(), "ADDRESS_NOT_CONTRACT");

        // On the first time an implementation is set - time-lock should not be enforced.
        require(
            activationTime <= block.timestamp || implementation() == address(0x0),
            "UPGRADE_NOT_ENABLED_YET"
        );

        setImplementation(newImplementation);

        // NOLINTNEXTLINE: low-level-calls controlled-delegatecall.
        (bool success, bytes memory returndata) = newImplementation.delegatecall(
            abi.encodeWithSelector(this.initialize.selector, data)
        );
        require(success, string(returndata));

        // Verify that the new implementation is not frozen post initialization.
        // NOLINTNEXTLINE: low-level-calls controlled-delegatecall.
        (success, returndata) = newImplementation.delegatecall(
            abi.encodeWithSignature("isFrozen()")
        );
        require(success, "CALL_TO_ISFROZEN_REVERTED");
        require(!abi.decode(returndata, (bool)), "NEW_IMPLEMENTATION_FROZEN");

        if (finalize) {
            setFinalizedFlag();
            emit FinalizedImplementation(newImplementation);
        }

        emit ImplementationUpgraded(newImplementation, data);
    }
}

File 2 of 8: Common.sol
/*
  Copyright 2019-2022 StarkWare Industries Ltd.

  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

  https://www.starkware.co/open-source-license/

  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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;

/*
  Common Utility librarries.
  I. Addresses (extending address).
*/
library Addresses {
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    function performEthTransfer(address recipient, uint256 amount) internal {
        (bool success, ) = recipient.call{value: amount}(""); // NOLINT: low-level-calls.
        require(success, "ETH_TRANSFER_FAILED");
    }

    /*
      Safe wrapper around ERC20/ERC721 calls.
      This is required because many deployed ERC20 contracts don't return a value.
      See https://github.com/ethereum/solidity/issues/4116.
    */
    function safeTokenContractCall(address tokenAddress, bytes memory callData) internal {
        require(isContract(tokenAddress), "BAD_TOKEN_ADDRESS");
        // NOLINTNEXTLINE: low-level-calls.
        (bool success, bytes memory returndata) = tokenAddress.call(callData);
        require(success, string(returndata));

        if (returndata.length > 0) {
            require(abi.decode(returndata, (bool)), "TOKEN_OPERATION_FAILED");
        }
    }

    /*
      Validates that the passed contract address is of a real contract,
      and that its id hash (as infered fromn identify()) matched the expected one.
    */
    function validateContractId(address contractAddress, bytes32 expectedIdHash) internal {
        require(isContract(contractAddress), "ADDRESS_NOT_CONTRACT");
        (bool success, bytes memory returndata) = contractAddress.call( // NOLINT: low-level-calls.
            abi.encodeWithSignature("identify()")
        );
        require(success, "FAILED_TO_IDENTIFY_CONTRACT");
        string memory realContractId = abi.decode(returndata, (string));
        require(
            keccak256(abi.encodePacked(realContractId)) == expectedIdHash,
            "UNEXPECTED_CONTRACT_IDENTIFIER"
        );
    }
}

/*
  II. StarkExTypes - Common data types.
*/
library StarkExTypes {
    // Structure representing a list of verifiers (validity/availability).
    // A statement is valid only if all the verifiers in the list agree on it.
    // Adding a verifier to the list is immediate - this is used for fast resolution of
    // any soundness issues.
    // Removing from the list is time-locked, to ensure that any user of the system
    // not content with the announced removal has ample time to leave the system before it is
    // removed.
    struct ApprovalChainData {
        address[] list;
        // Represents the time after which the verifier with the given address can be removed.
        // Removal of the verifier with address A is allowed only in the case the value
        // of unlockedForRemovalTime[A] != 0 and unlockedForRemovalTime[A] < (current time).
        mapping(address => uint256) unlockedForRemovalTime;
    }
}

File 3 of 8: Governance.sol
/*
  Copyright 2019-2022 StarkWare Industries Ltd.

  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

  https://www.starkware.co/open-source-license/

  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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;

import "MGovernance.sol";

/*
  Implements Generic Governance, applicable for both proxy and main contract, and possibly others.
  Notes:
   The use of the same function names by both the Proxy and a delegated implementation
   is not possible since calling the implementation functions is done via the default function
   of the Proxy. For this reason, for example, the implementation of MainContract (MainGovernance)
   exposes mainIsGovernor, which calls the internal _isGovernor method.
*/
abstract contract Governance is MGovernance {
    event LogNominatedGovernor(address nominatedGovernor);
    event LogNewGovernorAccepted(address acceptedGovernor);
    event LogRemovedGovernor(address removedGovernor);
    event LogNominationCancelled();

    function getGovernanceInfo() internal view virtual returns (GovernanceInfoStruct storage);

    /*
      Current code intentionally prevents governance re-initialization.
      This may be a problem in an upgrade situation, in a case that the upgrade-to implementation
      performs an initialization (for real) and within that calls initGovernance().

      Possible workarounds:
      1. Clearing the governance info altogether by changing the MAIN_GOVERNANCE_INFO_TAG.
         This will remove existing main governance information.
      2. Modify the require part in this function, so that it will exit quietly
         when trying to re-initialize (uncomment the lines below).
    */
    function initGovernance() internal {
        GovernanceInfoStruct storage gub = getGovernanceInfo();
        require(!gub.initialized, "ALREADY_INITIALIZED");
        gub.initialized = true; // to ensure addGovernor() won't fail.
        // Add the initial governer.
        addGovernor(msg.sender);
    }

    function _isGovernor(address testGovernor) internal view override returns (bool) {
        GovernanceInfoStruct storage gub = getGovernanceInfo();
        return gub.effectiveGovernors[testGovernor];
    }

    /*
      Cancels the nomination of a governor candidate.
    */
    function _cancelNomination() internal onlyGovernance {
        GovernanceInfoStruct storage gub = getGovernanceInfo();
        gub.candidateGovernor = address(0x0);
        emit LogNominationCancelled();
    }

    function _nominateNewGovernor(address newGovernor) internal onlyGovernance {
        GovernanceInfoStruct storage gub = getGovernanceInfo();
        require(!_isGovernor(newGovernor), "ALREADY_GOVERNOR");
        gub.candidateGovernor = newGovernor;
        emit LogNominatedGovernor(newGovernor);
    }

    /*
      The addGovernor is called in two cases:
      1. by _acceptGovernance when a new governor accepts its role.
      2. by initGovernance to add the initial governor.
      The difference is that the init path skips the nominate step
      that would fail because of the onlyGovernance modifier.
    */
    function addGovernor(address newGovernor) private {
        require(!_isGovernor(newGovernor), "ALREADY_GOVERNOR");
        GovernanceInfoStruct storage gub = getGovernanceInfo();
        gub.effectiveGovernors[newGovernor] = true;
    }

    function _acceptGovernance() internal {
        // The new governor was proposed as a candidate by the current governor.
        GovernanceInfoStruct storage gub = getGovernanceInfo();
        require(msg.sender == gub.candidateGovernor, "ONLY_CANDIDATE_GOVERNOR");

        // Update state.
        addGovernor(gub.candidateGovernor);
        gub.candidateGovernor = address(0x0);

        // Send a notification about the change of governor.
        emit LogNewGovernorAccepted(msg.sender);
    }

    /*
      Remove a governor from office.
    */
    function _removeGovernor(address governorForRemoval) internal onlyGovernance {
        require(msg.sender != governorForRemoval, "GOVERNOR_SELF_REMOVE");
        GovernanceInfoStruct storage gub = getGovernanceInfo();
        require(_isGovernor(governorForRemoval), "NOT_GOVERNOR");
        gub.effectiveGovernors[governorForRemoval] = false;
        emit LogRemovedGovernor(governorForRemoval);
    }
}

File 4 of 8: GovernanceStorage.sol
/*
  Copyright 2019-2022 StarkWare Industries Ltd.

  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

  https://www.starkware.co/open-source-license/

  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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;
import "MGovernance.sol";

/*
  Holds the governance slots for ALL entities, including proxy and the main contract.
*/
contract GovernanceStorage {
    // A map from a Governor tag to its own GovernanceInfoStruct.
    mapping(string => GovernanceInfoStruct) internal governanceInfo; //NOLINT uninitialized-state.
}

File 5 of 8: MGovernance.sol
/*
  Copyright 2019-2022 StarkWare Industries Ltd.

  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

  https://www.starkware.co/open-source-license/

  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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;

struct GovernanceInfoStruct {
    mapping(address => bool) effectiveGovernors;
    address candidateGovernor;
    bool initialized;
}

abstract contract MGovernance {
    function _isGovernor(address testGovernor) internal view virtual returns (bool);

    /*
      Allows calling the function only by a Governor.
    */
    modifier onlyGovernance() {
        require(_isGovernor(msg.sender), "ONLY_GOVERNANCE");
        _;
    }
}

File 6 of 8: ProxyGovernance.sol
/*
  Copyright 2019-2022 StarkWare Industries Ltd.

  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

  https://www.starkware.co/open-source-license/

  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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;

import "Governance.sol";
import "GovernanceStorage.sol";

/**
  The Proxy contract is governed by one or more Governors of which the initial one is the
  deployer of the contract.

  A governor has the sole authority to perform the following operations:

  1. Nominate additional governors (:sol:func:`proxyNominateNewGovernor`)
  2. Remove other governors (:sol:func:`proxyRemoveGovernor`)
  3. Add new `implementations` (proxied contracts)
  4. Remove (new or old) `implementations`
  5. Update `implementations` after a timelock allows it

  Adding governors is performed in a two step procedure:

  1. First, an existing governor nominates a new governor (:sol:func:`proxyNominateNewGovernor`)
  2. Then, the new governor must accept governance to become a governor (:sol:func:`proxyAcceptGovernance`)

  This two step procedure ensures that a governor public key cannot be nominated unless there is an
  entity that has the corresponding private key. This is intended to prevent errors in the addition
  process.

  The governor private key should typically be held in a secure cold wallet or managed via a
  multi-sig contract.
*/
/*
  Implements Governance for the proxy contract.
  It is a thin wrapper to the Governance contract,
  which is needed so that it can have non-colliding function names,
  and a specific tag (key) to allow unique state storage.
*/
contract ProxyGovernance is GovernanceStorage, Governance {
    // The tag is the string key that is used in the Governance storage mapping.
    string public constant PROXY_GOVERNANCE_TAG = "StarkEx.Proxy.2019.GovernorsInformation";

    /*
      Returns the GovernanceInfoStruct associated with the governance tag.
    */
    function getGovernanceInfo() internal view override returns (GovernanceInfoStruct storage) {
        return governanceInfo[PROXY_GOVERNANCE_TAG];
    }

    function proxyIsGovernor(address testGovernor) external view returns (bool) {
        return _isGovernor(testGovernor);
    }

    function proxyNominateNewGovernor(address newGovernor) external {
        _nominateNewGovernor(newGovernor);
    }

    function proxyRemoveGovernor(address governorForRemoval) external {
        _removeGovernor(governorForRemoval);
    }

    function proxyAcceptGovernance() external {
        _acceptGovernance();
    }

    function proxyCancelNomination() external {
        _cancelNomination();
    }
}

File 7 of 8: ProxyStorage.sol
/*
  Copyright 2019-2022 StarkWare Industries Ltd.

  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

  https://www.starkware.co/open-source-license/

  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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;

import "GovernanceStorage.sol";

/*
  Holds the Proxy-specific state variables.
  This contract is inherited by the GovernanceStorage (and indirectly by MainStorage)
  to prevent collision hazard.
*/
contract ProxyStorage is GovernanceStorage {
    // NOLINTNEXTLINE: naming-convention uninitialized-state.
    mapping(address => bytes32) internal initializationHash_DEPRECATED;

    // The time after which we can switch to the implementation.
    // Hash(implementation, data, finalize) => time.
    mapping(bytes32 => uint256) internal enabledTime;

    // A central storage of the flags whether implementation has been initialized.
    // Note - it can be used flexibly enough to accommodate multiple levels of initialization
    // (i.e. using different key salting schemes for different initialization levels).
    mapping(bytes32 => bool) internal initialized;
}

File 8 of 8: StorageSlots.sol
/*
  Copyright 2019-2022 StarkWare Industries Ltd.

  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

  https://www.starkware.co/open-source-license/

  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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;

/**
  StorageSlots holds the arbitrary storage slots used throughout the Proxy pattern.
  Storage address slots are a mechanism to define an arbitrary location, that will not be
  overlapped by the logical contracts.
*/
contract StorageSlots {
    // Storage slot with the address of the current implementation.
    // The address of the slot is keccak256("StarkWare2019.implemntation-slot").
    // We need to keep this variable stored outside of the commonly used space,
    // so that it's not overrun by the logical implementation (the proxied contract).
    bytes32 internal constant IMPLEMENTATION_SLOT =
        0x177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b24;

    // Storage slot with the address of the call-proxy current implementation.
    // The address of the slot is keccak256("'StarkWare2020.CallProxy.Implemntation.Slot'").
    // We need to keep this variable stored outside of the commonly used space.
    // so that it's not overrun by the logical implementation (the proxied contract).
    bytes32 internal constant CALL_PROXY_IMPL_SLOT =
        0x7184681641399eb4ad2fdb92114857ee6ff239f94ad635a1779978947b8843be;

    // This storage slot stores the finalization flag.
    // Once the value stored in this slot is set to non-zero
    // the proxy blocks implementation upgrades.
    // The current implementation is then referred to as Finalized.
    // Web3.solidityKeccak(['string'], ["StarkWare2019.finalization-flag-slot"]).
    bytes32 internal constant FINALIZED_STATE_SLOT =
        0x7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d2;

    // Storage slot to hold the upgrade delay (time-lock).
    // The intention of this slot is to allow modification using an EIC.
    // Web3.solidityKeccak(['string'], ['StarkWare.Upgradibility.Delay.Slot']).
    bytes32 public constant UPGRADE_DELAY_SLOT =
        0xc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f;
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"upgradeActivationDelay","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"FinalizedImplementation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"},{"indexed":false,"internalType":"bytes","name":"initializer","type":"bytes"},{"indexed":false,"internalType":"bool","name":"finalize","type":"bool"}],"name":"ImplementationAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"},{"indexed":false,"internalType":"bytes","name":"initializer","type":"bytes"},{"indexed":false,"internalType":"bool","name":"finalize","type":"bool"}],"name":"ImplementationRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"},{"indexed":false,"internalType":"bytes","name":"initializer","type":"bytes"}],"name":"ImplementationUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"acceptedGovernor","type":"address"}],"name":"LogNewGovernorAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nominatedGovernor","type":"address"}],"name":"LogNominatedGovernor","type":"event"},{"anonymous":false,"inputs":[],"name":"LogNominationCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"removedGovernor","type":"address"}],"name":"LogRemovedGovernor","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"PROXY_GOVERNANCE_TAG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROXY_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADE_DELAY_SLOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"finalize","type":"bool"}],"name":"addImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getUpgradeActivationDelay","outputs":[{"internalType":"uint256","name":"delay","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"_implementation","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"isNotFinalized","outputs":[{"internalType":"bool","name":"notFinal","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyAcceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxyCancelNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"testGovernor","type":"address"}],"name":"proxyIsGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newGovernor","type":"address"}],"name":"proxyNominateNewGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"governorForRemoval","type":"address"}],"name":"proxyRemoveGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"removedImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"finalize","type":"bool"}],"name":"removeImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"finalize","type":"bool"}],"name":"upgradeTo","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162001a8038038062001a80833981810160405260208110156200003757600080fd5b50516200004362000055565b6200004e81620000e9565b5062000243565b6000620000616200010d565b6001810154909150600160a01b900460ff1615620000c6576040805162461bcd60e51b815260206004820152601360248201527f414c52454144595f494e495449414c495a454400000000000000000000000000604482015290519081900360640190fd5b60018101805460ff60a01b1916600160a01b179055620000e6336200018d565b50565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f55565b60008060405180606001604052806027815260200162001a59602791396040518082805190602001908083835b602083106200015b5780518252601f1990920191602091820191016200013a565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209392505050565b620001988162000212565b15620001de576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6000620001ea6200010d565b6001600160a01b0390921660009081526020929092525060409020805460ff19166001179055565b6000806200021f6200010d565b6001600160a01b039390931660009081526020939093525050604090205460ff1690565b61180680620002536000396000f3fe6080604052600436106100ec5760003560e01c80636684b1d61161008a578063b449ea5d11610059578063b449ea5d1461054b578063c5ab845314610592578063e907fa3c146105a7578063f9bcdde4146105bc5761013e565b80636684b1d61461046e5780637147855d1461048357806372a44f07146105035780638757653f146105185761013e565b806356f36dbf116100c657806356f36dbf146102995780635c60da1b146103235780635cef2e86146103545780635e3a97e7146103e15761013e565b806312f16e6d146101c257806320cea94d146101f7578063439fab911461021e5761013e565b3661013e576040805162461bcd60e51b815260206004820181905260248201527f434f4e54524143545f4e4f545f45585045435445445f544f5f52454345495645604482015290519081900360640190fd5b60006101486105d1565b90506001600160a01b03811661019e576040805162461bcd60e51b815260206004820152601660248201527526a4a9a9a4a723afa4a6a82622a6a2a72a20aa24a7a760511b604482015290519081900360640190fd5b3660008037600080366000845af43d6000803e8080156101bd573d6000f35b3d6000fd5b3480156101ce57600080fd5b506101f5600480360360208110156101e557600080fd5b50356001600160a01b03166105f6565b005b34801561020357600080fd5b5061020c610602565b60408051918252519081900360200190f35b34801561022a57600080fd5b506101f56004803603602081101561024157600080fd5b810190602081018135600160201b81111561025b57600080fd5b82018360208201111561026d57600080fd5b803590602001918460018302840111600160201b8311171561028e57600080fd5b509092509050610626565b3480156102a557600080fd5b506102ae61066c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102e85781810151838201526020016102d0565b50505050905090810190601f1680156103155780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561032f57600080fd5b506103386105d1565b604080516001600160a01b039092168252519081900360200190f35b34801561036057600080fd5b506101f56004803603606081101561037757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156103a157600080fd5b8201836020820111156103b357600080fd5b803590602001918460018302840111600160201b831117156103d457600080fd5b9193509150351515610688565b3480156103ed57600080fd5b506101f56004803603606081101561040457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561042e57600080fd5b82018360208201111561044057600080fd5b803590602001918460018302840111600160201b8311171561046157600080fd5b9193509150351515610846565b34801561047a57600080fd5b506101f5610a00565b6101f56004803603606081101561049957600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156104c357600080fd5b8201836020820111156104d557600080fd5b803590602001918460018302840111600160201b831117156104f657600080fd5b9193509150351515610a0a565b34801561050f57600080fd5b5061020c61108d565b34801561052457600080fd5b506101f56004803603602081101561053b57600080fd5b50356001600160a01b03166110b3565b34801561055757600080fd5b5061057e6004803603602081101561056e57600080fd5b50356001600160a01b03166110bc565b604080519115158252519081900360200190f35b34801561059e57600080fd5b506102ae6110cd565b3480156105b357600080fd5b5061057e6110ee565b3480156105c857600080fd5b506101f5611114565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b245490565b6105ff8161111c565b50565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f81565b6040805162461bcd60e51b815260206004820152601660248201527543414e4e4f545f43414c4c5f494e495449414c495a4560501b604482015290519081900360640190fd5b6040518060600160405280602781526020016117aa6027913981565b61069133611269565b6106d4576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60008484848460405160200180856001600160a01b031681526020018060200183151581526020018281038252858582818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050604051602081830303815290604052805190602001209050600060026000838152602001908152602001600020549050600081116107b3576040805162461bcd60e51b815260206004820152601b60248201527f554e4b4e4f574e5f555047524144455f494e464f524d4154494f4e0000000000604482015290519081900360640190fd5b6002600083815260200190815260200160002060009055856001600160a01b03167fe99b980b5259f200e4c1da973ff0251b6d9aaa144714c8773976ecd62b8ebe8d868686604051808060200183151581526020018281038252858582818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a2505050505050565b61084f33611269565b610892576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b6108a4846001600160a01b0316611298565b6108ec576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b60008484848460405160200180856001600160a01b031681526020018060200183151581526020018281038252858582818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050604051602081830303815290604052805190602001209050600061096861108d565b42019050806002600084815260200190815260200160002081905550856001600160a01b03167f723a7080d63c133cf338e44e00705cc1b7b2bde7e88d6218a8d62710a329ce1b868686604051808060200183151581526020018281038252858582818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a2505050505050565b610a0861129e565b565b610a1333611269565b610a56576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b610a5e6110ee565b610aaf576040805162461bcd60e51b815260206004820152601860248201527f494d504c454d454e544154494f4e5f46494e414c495a45440000000000000000604482015290519081900360640190fd5b610ab761136b565b15610afb576040805162461bcd60e51b815260206004820152600f60248201526e29aa20aa22afa4a9afa32927ad22a760891b604482015290519081900360640190fd5b60008484848460405160200180856001600160a01b031681526020018060200183151581526020018281038252858582818152602001925080828437600081840152601f19601f8201169050808301925050509550505050505060405160208183030381529060405280519060200120905060006002600083815260200190815260200160002054905060008111610bda576040805162461bcd60e51b815260206004820152601b60248201527f554e4b4e4f574e5f555047524144455f494e464f524d4154494f4e0000000000604482015290519081900360640190fd5b610bec866001600160a01b0316611298565b610c34576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b4281111580610c5357506000610c486105d1565b6001600160a01b0316145b610ca4576040805162461bcd60e51b815260206004820152601760248201527f555047524144455f4e4f545f454e41424c45445f594554000000000000000000604482015290519081900360640190fd5b610cad866114ce565b60006060876001600160a01b031663439fab9160e01b88886040516024018080602001828103825284848281815260200192508082843760008382015260408051601f909201601f1990811690940182810390940182529283526020810180516001600160e01b03166001600160e01b0319909916989098178852915182519297909650869550935090915081905083835b60208310610d5e5780518252601f199092019160209182019101610d3f565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610dbe576040519150601f19603f3d011682016040523d82523d6000602084013e610dc3565b606091505b5091509150818190610e535760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e18578181015183820152602001610e00565b50505050905090810190601f168015610e455780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516001600160a01b038c169382918083835b60208310610eb05780518252601f199092019160209182019101610e91565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610f10576040519150601f19603f3d011682016040523d82523d6000602084013e610f15565b606091505b50909250905081610f6d576040805162461bcd60e51b815260206004820152601960248201527f43414c4c5f544f5f495346524f5a454e5f524556455254454400000000000000604482015290519081900360640190fd5b808060200190516020811015610f8257600080fd5b505115610fd6576040805162461bcd60e51b815260206004820152601960248201527f4e45575f494d504c454d454e544154494f4e5f46524f5a454e00000000000000604482015290519081900360640190fd5b841561101957610fe46114f2565b6040516001600160a01b038916907fc13b75a5f14b69ebdc2431a5d475b3bff371abe251b5064144306fbd9c4de35c90600090a25b876001600160a01b03167fff14288d542bc1c1d15a652cb52af735f065c0c9d70b48e454a203c260733544888860405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a25050505050505050565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f545b90565b6105ff81611518565b60006110c782611269565b92915050565b60405180604001604052806005815260200164332e302e3160d81b81525081565b7f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d2541590565b610a08611615565b61112533611269565b611168576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b336001600160a01b03821614156111bd576040805162461bcd60e51b8152602060048201526014602482015273474f5645524e4f525f53454c465f52454d4f564560601b604482015290519081900360640190fd5b60006111c76116ac565b90506111d282611269565b611212576040805162461bcd60e51b815260206004820152600c60248201526b2727aa2fa3a7ab22a92727a960a11b604482015290519081900360640190fd5b6001600160a01b03821660008181526020838152604091829020805460ff19169055815192835290517fd75f94825e770b8b512be8e74759e252ad00e102e38f50cce2f7c6f868a295999281900390910190a15050565b6000806112746116ac565b6001600160a01b039390931660009081526020939093525050604090205460ff1690565b3b151590565b60006112a86116ac565b60018101549091506001600160a01b0316331461130c576040805162461bcd60e51b815260206004820152601760248201527f4f4e4c595f43414e4449444154455f474f5645524e4f52000000000000000000604482015290519081900360640190fd5b6001810154611323906001600160a01b0316611729565b6001810180546001600160a01b03191690556040805133815290517fcfb473e6c03f9a29ddaf990e736fa3de5188a0bd85d684f5b6e164ebfbfff5d29181900360200190a150565b6000806113766105d1565b90506001600160a01b0381166113905760009150506110b0565b60408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516000936060936001600160a01b038716939092909182918083835b602083106113f65780518252601f1990920191602091820191016113d7565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50915091508181906114ae5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610e18578181015183820152602001610e00565b508080602001905160208110156114c457600080fd5b5051935050505090565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b2455565b60017f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d255565b61152133611269565b611564576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b600061156e6116ac565b905061157982611269565b156115be576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6001810180546001600160a01b0384166001600160a01b0319909116811790915560408051918252517f6166272c8d3f5f579082f2827532732f97195007983bb5b83ac12c56700b01a69181900360200190a15050565b61161e33611269565b611661576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b600061166b6116ac565b6001810180546001600160a01b03191690556040519091507f7a8dc7dd7fffb43c4807438fa62729225156941e641fd877938f4edade3429f590600090a150565b6000806040518060600160405280602781526020016117aa602791396040518082805190602001908083835b602083106116f75780518252601f1990920191602091820191016116d8565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209392505050565b61173281611269565b15611777576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b60006117816116ac565b6001600160a01b0390921660009081526020929092525060409020805460ff1916600117905556fe537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6ea264697066735822122019c6683d777476043460ce621f3b9666d31557ebfc9234842128779cb5705fc864736f6c634300060c0033537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6e0000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100ec5760003560e01c80636684b1d61161008a578063b449ea5d11610059578063b449ea5d1461054b578063c5ab845314610592578063e907fa3c146105a7578063f9bcdde4146105bc5761013e565b80636684b1d61461046e5780637147855d1461048357806372a44f07146105035780638757653f146105185761013e565b806356f36dbf116100c657806356f36dbf146102995780635c60da1b146103235780635cef2e86146103545780635e3a97e7146103e15761013e565b806312f16e6d146101c257806320cea94d146101f7578063439fab911461021e5761013e565b3661013e576040805162461bcd60e51b815260206004820181905260248201527f434f4e54524143545f4e4f545f45585045435445445f544f5f52454345495645604482015290519081900360640190fd5b60006101486105d1565b90506001600160a01b03811661019e576040805162461bcd60e51b815260206004820152601660248201527526a4a9a9a4a723afa4a6a82622a6a2a72a20aa24a7a760511b604482015290519081900360640190fd5b3660008037600080366000845af43d6000803e8080156101bd573d6000f35b3d6000fd5b3480156101ce57600080fd5b506101f5600480360360208110156101e557600080fd5b50356001600160a01b03166105f6565b005b34801561020357600080fd5b5061020c610602565b60408051918252519081900360200190f35b34801561022a57600080fd5b506101f56004803603602081101561024157600080fd5b810190602081018135600160201b81111561025b57600080fd5b82018360208201111561026d57600080fd5b803590602001918460018302840111600160201b8311171561028e57600080fd5b509092509050610626565b3480156102a557600080fd5b506102ae61066c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102e85781810151838201526020016102d0565b50505050905090810190601f1680156103155780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561032f57600080fd5b506103386105d1565b604080516001600160a01b039092168252519081900360200190f35b34801561036057600080fd5b506101f56004803603606081101561037757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156103a157600080fd5b8201836020820111156103b357600080fd5b803590602001918460018302840111600160201b831117156103d457600080fd5b9193509150351515610688565b3480156103ed57600080fd5b506101f56004803603606081101561040457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561042e57600080fd5b82018360208201111561044057600080fd5b803590602001918460018302840111600160201b8311171561046157600080fd5b9193509150351515610846565b34801561047a57600080fd5b506101f5610a00565b6101f56004803603606081101561049957600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156104c357600080fd5b8201836020820111156104d557600080fd5b803590602001918460018302840111600160201b831117156104f657600080fd5b9193509150351515610a0a565b34801561050f57600080fd5b5061020c61108d565b34801561052457600080fd5b506101f56004803603602081101561053b57600080fd5b50356001600160a01b03166110b3565b34801561055757600080fd5b5061057e6004803603602081101561056e57600080fd5b50356001600160a01b03166110bc565b604080519115158252519081900360200190f35b34801561059e57600080fd5b506102ae6110cd565b3480156105b357600080fd5b5061057e6110ee565b3480156105c857600080fd5b506101f5611114565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b245490565b6105ff8161111c565b50565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f81565b6040805162461bcd60e51b815260206004820152601660248201527543414e4e4f545f43414c4c5f494e495449414c495a4560501b604482015290519081900360640190fd5b6040518060600160405280602781526020016117aa6027913981565b61069133611269565b6106d4576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60008484848460405160200180856001600160a01b031681526020018060200183151581526020018281038252858582818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050604051602081830303815290604052805190602001209050600060026000838152602001908152602001600020549050600081116107b3576040805162461bcd60e51b815260206004820152601b60248201527f554e4b4e4f574e5f555047524144455f494e464f524d4154494f4e0000000000604482015290519081900360640190fd5b6002600083815260200190815260200160002060009055856001600160a01b03167fe99b980b5259f200e4c1da973ff0251b6d9aaa144714c8773976ecd62b8ebe8d868686604051808060200183151581526020018281038252858582818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a2505050505050565b61084f33611269565b610892576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b6108a4846001600160a01b0316611298565b6108ec576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b60008484848460405160200180856001600160a01b031681526020018060200183151581526020018281038252858582818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050604051602081830303815290604052805190602001209050600061096861108d565b42019050806002600084815260200190815260200160002081905550856001600160a01b03167f723a7080d63c133cf338e44e00705cc1b7b2bde7e88d6218a8d62710a329ce1b868686604051808060200183151581526020018281038252858582818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a2505050505050565b610a0861129e565b565b610a1333611269565b610a56576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b610a5e6110ee565b610aaf576040805162461bcd60e51b815260206004820152601860248201527f494d504c454d454e544154494f4e5f46494e414c495a45440000000000000000604482015290519081900360640190fd5b610ab761136b565b15610afb576040805162461bcd60e51b815260206004820152600f60248201526e29aa20aa22afa4a9afa32927ad22a760891b604482015290519081900360640190fd5b60008484848460405160200180856001600160a01b031681526020018060200183151581526020018281038252858582818152602001925080828437600081840152601f19601f8201169050808301925050509550505050505060405160208183030381529060405280519060200120905060006002600083815260200190815260200160002054905060008111610bda576040805162461bcd60e51b815260206004820152601b60248201527f554e4b4e4f574e5f555047524144455f494e464f524d4154494f4e0000000000604482015290519081900360640190fd5b610bec866001600160a01b0316611298565b610c34576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b4281111580610c5357506000610c486105d1565b6001600160a01b0316145b610ca4576040805162461bcd60e51b815260206004820152601760248201527f555047524144455f4e4f545f454e41424c45445f594554000000000000000000604482015290519081900360640190fd5b610cad866114ce565b60006060876001600160a01b031663439fab9160e01b88886040516024018080602001828103825284848281815260200192508082843760008382015260408051601f909201601f1990811690940182810390940182529283526020810180516001600160e01b03166001600160e01b0319909916989098178852915182519297909650869550935090915081905083835b60208310610d5e5780518252601f199092019160209182019101610d3f565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610dbe576040519150601f19603f3d011682016040523d82523d6000602084013e610dc3565b606091505b5091509150818190610e535760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e18578181015183820152602001610e00565b50505050905090810190601f168015610e455780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516001600160a01b038c169382918083835b60208310610eb05780518252601f199092019160209182019101610e91565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610f10576040519150601f19603f3d011682016040523d82523d6000602084013e610f15565b606091505b50909250905081610f6d576040805162461bcd60e51b815260206004820152601960248201527f43414c4c5f544f5f495346524f5a454e5f524556455254454400000000000000604482015290519081900360640190fd5b808060200190516020811015610f8257600080fd5b505115610fd6576040805162461bcd60e51b815260206004820152601960248201527f4e45575f494d504c454d454e544154494f4e5f46524f5a454e00000000000000604482015290519081900360640190fd5b841561101957610fe46114f2565b6040516001600160a01b038916907fc13b75a5f14b69ebdc2431a5d475b3bff371abe251b5064144306fbd9c4de35c90600090a25b876001600160a01b03167fff14288d542bc1c1d15a652cb52af735f065c0c9d70b48e454a203c260733544888860405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a25050505050505050565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f545b90565b6105ff81611518565b60006110c782611269565b92915050565b60405180604001604052806005815260200164332e302e3160d81b81525081565b7f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d2541590565b610a08611615565b61112533611269565b611168576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b336001600160a01b03821614156111bd576040805162461bcd60e51b8152602060048201526014602482015273474f5645524e4f525f53454c465f52454d4f564560601b604482015290519081900360640190fd5b60006111c76116ac565b90506111d282611269565b611212576040805162461bcd60e51b815260206004820152600c60248201526b2727aa2fa3a7ab22a92727a960a11b604482015290519081900360640190fd5b6001600160a01b03821660008181526020838152604091829020805460ff19169055815192835290517fd75f94825e770b8b512be8e74759e252ad00e102e38f50cce2f7c6f868a295999281900390910190a15050565b6000806112746116ac565b6001600160a01b039390931660009081526020939093525050604090205460ff1690565b3b151590565b60006112a86116ac565b60018101549091506001600160a01b0316331461130c576040805162461bcd60e51b815260206004820152601760248201527f4f4e4c595f43414e4449444154455f474f5645524e4f52000000000000000000604482015290519081900360640190fd5b6001810154611323906001600160a01b0316611729565b6001810180546001600160a01b03191690556040805133815290517fcfb473e6c03f9a29ddaf990e736fa3de5188a0bd85d684f5b6e164ebfbfff5d29181900360200190a150565b6000806113766105d1565b90506001600160a01b0381166113905760009150506110b0565b60408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516000936060936001600160a01b038716939092909182918083835b602083106113f65780518252601f1990920191602091820191016113d7565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50915091508181906114ae5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610e18578181015183820152602001610e00565b508080602001905160208110156114c457600080fd5b5051935050505090565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b2455565b60017f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d255565b61152133611269565b611564576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b600061156e6116ac565b905061157982611269565b156115be576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6001810180546001600160a01b0384166001600160a01b0319909116811790915560408051918252517f6166272c8d3f5f579082f2827532732f97195007983bb5b83ac12c56700b01a69181900360200190a15050565b61161e33611269565b611661576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b600061166b6116ac565b6001810180546001600160a01b03191690556040519091507f7a8dc7dd7fffb43c4807438fa62729225156941e641fd877938f4edade3429f590600090a150565b6000806040518060600160405280602781526020016117aa602791396040518082805190602001908083835b602083106116f75780518252601f1990920191602091820191016116d8565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209392505050565b61173281611269565b15611777576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b60006117816116ac565b6001600160a01b0390921660009081526020929092525060409020805460ff1916600117905556fe537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6ea264697066735822122019c6683d777476043460ce621f3b9666d31557ebfc9234842128779cb5705fc864736f6c634300060c0033

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

0000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : upgradeActivationDelay (uint256): 0

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


Deployed Bytecode Sourcemap

3028:9432:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6282:42;;;-1:-1:-1;;;6282:42:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;3028:9432;6573:23;6599:16;:14;:16::i;:::-;6573:42;-1:-1:-1;;;;;;6633:31:4;;6625:66;;;;;-1:-1:-1;;;6625:66:4;;;;;;;;;;;;-1:-1:-1;;;6625:66:4;;;;;;;;;;;;;;;6970:14;6967:1;6964;6951:34;7193:1;7190;7174:14;7171:1;7154:15;7147:5;7134:61;7269:16;7266:1;7263;7248:38;7307:6;7374:66;;;;7489:16;7486:1;7479:27;7374:66;7409:16;7406:1;7399:27;2766:118:5;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2766:118:5;-1:-1:-1;;;;;2766:118:5;;:::i;:::-;;2479:119:7;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;5551:122:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5551:122:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5551:122:4;;;;;;;;;;-1:-1:-1;5551:122:4;;-1:-1:-1;5551:122:4;-1:-1:-1;5551:122:4;:::i;2175:87:5:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4512:195:4;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;4512:195:4;;;;;;;;;;;;;;9368:561;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9368:561:4;;;;;;;;;;;;;;;-1:-1:-1;;;9368:561:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9368:561:4;;;;;;;;;;;;-1:-1:-1;9368:561:4;-1:-1:-1;9368:561:4;;;;:::i;8613:521::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8613:521:4;;;;;;;;;;;;;;;-1:-1:-1;;;8613:521:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8613:521:4;;;;;;;;;;;;-1:-1:-1;8613:521:4;-1:-1:-1;8613:521:4;;;;:::i;2890:78:5:-;;;;;;;;;;;;;:::i;10828:1630:4:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10828:1630:4;;;;;;;;;;;;;;;-1:-1:-1;;;10828:1630:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10828:1630:4;;;;;;;;;;;;-1:-1:-1;10828:1630:4;-1:-1:-1;10828:1630:4;;;;:::i;4187:207::-;;;;;;;;;;;;;:::i;2646:114:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2646:114:5;-1:-1:-1;;;;;2646:114:5;;:::i;2515:125::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2515:125:5;-1:-1:-1;;;;;2515:125:5;;:::i;:::-;;;;;;;;;;;;;;;;;;3792:46:4;;;;;;;;;;;;;:::i;7880:244::-;;;;;;;;;;;;;:::i;2974:78:5:-;;;;;;;;;;;;;:::i;4512:195:4:-;1281:66:7;4680:11:4;;4647:54::o;2766:118:5:-;2842:35;2858:18;2842:15;:35::i;:::-;2766:118;:::o;2479:119:7:-;2532:66;2479:119;:::o;5551:122:4:-;5634:32;;;-1:-1:-1;;;5634:32:4;;;;;;;;;;;;-1:-1:-1;;;5634:32:4;;;;;;;;;;;;;;2175:87:5;;;;;;;;;;;;;;;;;;;:::o;9368:561:4:-;1031:23:3;1043:10;1031:11;:23::i;:::-;1023:51;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;;;;9529:22:4::1;9575:21;9598:4;;9604:8;9564:49;;;;;;-1:-1:-1::0;;;;;9564:49:4::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9554:60;;;;;;9529:85;;9683:22;9708:11;:27;9720:14;9708:27;;;;;;;;;;;;9683:52;;9770:1;9753:14;:18;9745:58;;;::::0;;-1:-1:-1;;;9745:58:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;9820:11;:27;9832:14;9820:27;;;;;;;;;;;9813:34;;;9884:21;-1:-1:-1::0;;;;;9862:60:4::1;;9907:4;;9913:8;9862:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;-1:-1:-1::0;;9862:60:4::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;9862:60:4;;-1:-1:-1;;;;;9862:60:4::1;1084:1:3;;9368:561:4::0;;;;:::o;8613:521::-;1031:23:3;1043:10;1031:11;:23::i;:::-;1023:51;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;;;;8775:30:4::1;:17;-1:-1:-1::0;;;;;8775:28:4::1;;:30::i;:::-;8767:63;;;::::0;;-1:-1:-1;;;8767:63:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;8767:63:4;;;;;;;;;;;;;::::1;;8841:22;8887:17;8906:4;;8912:8;8876:45;;;;;;-1:-1:-1::0;;;;;8876:45:4::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8866:56;;;;;;8841:81;;8933:22;8976:27;:25;:27::i;:::-;8958:15;:45;8933:70;;9044:14;9014:11;:27;9026:14;9014:27;;;;;;;;;;;:44;;;;9093:17;-1:-1:-1::0;;;;;9073:54:4::1;;9112:4;;9118:8;9073:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;-1:-1:-1::0;;9073:54:4::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;9073:54:4;;-1:-1:-1;;;;;9073:54:4::1;1084:1:3;;8613:521:4::0;;;;:::o;2890:78:5:-;2942:19;:17;:19::i;:::-;2890:78::o;10828:1630:4:-;1031:23:3;1043:10;1031:11;:23::i;:::-;1023:51;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;;;;5721:16:4::1;:14;:16::i;:::-;5713:53;;;::::0;;-1:-1:-1;;;5713:53:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;6007:24:::2;:22;:24::i;:::-;6006:25;5998:53;;;::::0;;-1:-1:-1;;;5998:53:4;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;5998:53:4;;;;;;;;;;;;;::::2;;11005:22:::3;11051:17;11070:4;;11076:8;11040:45;;;;;;-1:-1:-1::0;;;;;11040:45:4::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11030:56;;;;;;11005:81;;11096:22;11121:11;:27;11133:14;11121:27;;;;;;;;;;;;11096:52;;11183:1;11166:14;:18;11158:58;;;::::0;;-1:-1:-1;;;11158:58:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;::::3;::::0;;;;;;;;;;;;;::::3;;11234:30;:17;-1:-1:-1::0;;;;;11234:28:4::3;;:30::i;:::-;11226:63;;;::::0;;-1:-1:-1;;;11226:63:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;11226:63:4;;;;;;;;;;;;;::::3;;11429:15;11411:14;:33;;:69;;;-1:-1:-1::0;11476:3:4::3;11448:16;:14;:16::i;:::-;-1:-1:-1::0;;;;;11448:32:4::3;;11411:69;11390:139;;;::::0;;-1:-1:-1;;;11390:139:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;::::3;::::0;;;;;;;;;;;;;::::3;;11540:36;11558:17;11540;:36::i;:::-;11656:12;11670:23;11697:17;-1:-1:-1::0;;;;;11697:30:4::3;11764:24;;;11790:4;;11741:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::3;::::0;::::3;::::0;;::::3;::::0;;::::3;-1:-1:-1::0;;11741:54:4;;::::3;::::0;;::::3;::::0;;::::3;::::0;;;;;;;;::::3;::::0;::::3;::::0;;-1:-1:-1;;;;;11741:54:4::3;-1:-1:-1::0;;;;;;11741:54:4;;::::3;::::0;;;::::3;::::0;;11697:108;;;;11741:54;;11697:108;;-1:-1:-1;11697:108:4;;-1:-1:-1;11741:54:4;-1:-1:-1;11697:108:4;;-1:-1:-1;11697:108:4;;-1:-1:-1;11697:108:4;11741:54;11697:108:::3;;;;;;::::0;;;;-1:-1:-1;;11697:108:4;;;;::::3;::::0;;::::3;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11655:150;;;;11823:7;11839:10;11815:36;;;;;-1:-1:-1::0;;;11815:36:4::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::3;::::0;;;::::3;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;12079:37:4::3;::::0;;;;;::::3;::::0;::::3;::::0;;::::3;::::0;::::3;::::0;;-1:-1:-1;;;;;12079:37:4::3;-1:-1:-1::0;;;12079:37:4::3;::::0;;12035:91;;;;-1:-1:-1;;;;;12035:30:4;::::3;::::0;:91;;;;12079:37;12035:91:::3;;;;;;::::0;;;;-1:-1:-1;;12035:91:4;;;;::::3;::::0;;::::3;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;12011:115:4;;-1:-1:-1;12011:115:4;-1:-1:-1;12011:115:4;12136:45:::3;;;::::0;;-1:-1:-1;;;12136:45:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;::::3;::::0;;;;;;;;;;;;;::::3;;12211:10;12200:30;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;12200:30:4;12199:31:::3;12191:69;;;::::0;;-1:-1:-1;;;12191:69:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;::::3;::::0;;;;;;;;;;;;;::::3;;12275:8;12271:118;;;12299:18;:16;:18::i;:::-;12336:42;::::0;-1:-1:-1;;;;;12336:42:4;::::3;::::0;::::3;::::0;;;::::3;12271:118;12427:17;-1:-1:-1::0;;;;;12404:47:4::3;;12446:4;;12404:47;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::3;::::0;::::3;::::0;::::3;::::0;;::::3;-1:-1:-1::0;;12404:47:4::3;::::0;;::::3;::::0;;::::3;::::0;-1:-1:-1;12404:47:4;;-1:-1:-1;;;;12404:47:4::3;6061:1;;;;10828:1630:::0;;;;:::o;4187:207::-;2532:66:7;4345:11:4;4187:207;;:::o;2646:114:5:-;2720:33;2741:11;2720:20;:33::i;2515:125::-;2585:4;2608:25;2620:12;2608:11;:25::i;:::-;2601:32;2515:125;-1:-1:-1;;2515:125:5:o;3792:46:4:-;;;;;;;;;;;;;;-1:-1:-1;;;3792:46:4;;;;:::o;7880:244::-;2194:66:7;8060:11:4;8102:14;;7880:244::o;2974:78:5:-;3026:19;:17;:19::i;4337:402:1:-;1031:23:3;1043:10;1031:11;:23::i;:::-;1023:51;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;;;;4432:10:1::1;-1:-1:-1::0;;;;;4432:32:1;::::1;;;4424:65;;;::::0;;-1:-1:-1;;;4424:65:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;4424:65:1;;;;;;;;;;;;;::::1;;4499:32;4534:19;:17;:19::i;:::-;4499:54;;4571:31;4583:18;4571:11;:31::i;:::-;4563:56;;;::::0;;-1:-1:-1;;;4563:56:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;4563:56:1;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;4629:42:1;::::1;4674:5;4629:42:::0;;;::::1;::::0;;;;;;;;:50;;-1:-1:-1;;4629:50:1::1;::::0;;4694:38;;;;;;;::::1;::::0;;;;;;;;::::1;1084:1:3;4337:402:1::0;:::o;2423:205::-;2498:4;2514:32;2549:19;:17;:19::i;:::-;-1:-1:-1;;;;;2585:36:1;;;;:22;:36;;;;;;;;-1:-1:-1;;2585:36:1;;;;;;;2423:205::o;757:190:0:-;886:20;932:8;;;757:190::o;3782:498:1:-;3911:32;3946:19;:17;:19::i;:::-;3997:21;;;;;;-1:-1:-1;;;;;;3997:21:1;3983:10;:35;3975:71;;;;;-1:-1:-1;;;3975:71:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;4094:21;;;;4082:34;;-1:-1:-1;;;;;4094:21:1;4082:11;:34::i;:::-;4126:21;;;:36;;-1:-1:-1;;;;;;4126:36:1;;;4239:34;;;4262:10;4239:34;;;;;;;;;;;;;3782:498;:::o;4844:564:4:-;4895:4;4911:23;4937:16;:14;:16::i;:::-;4911:42;-1:-1:-1;;;;;;5053:31:4;;5049:74;;5107:5;5100:12;;;;;5049:74;5261:37;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5261:37:4;-1:-1:-1;;;5261:37:4;;;5219:89;;;;5178:12;;5192:23;;-1:-1:-1;;;;;5219:28:4;;;5261:37;;5219:89;;;;;;5261:37;5219:89;;;;;;;;;;-1:-1:-1;;5219:89:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5177:131;;;;5326:7;5342:10;5318:36;;;;;-1:-1:-1;;;5318:36:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5382:10;5371:30;;;;;;;;;;;;;;;-1:-1:-1;5371:30:4;;-1:-1:-1;;;;4844:564:4;:::o;7608:186::-;1281:66:7;7747:31:4;7733:55::o;8197:147::-;8324:3;2194:66:7;8311:17:4;8297:41::o;2917:303:1:-;1031:23:3;1043:10;1031:11;:23::i;:::-;1023:51;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;;;;3002:32:1::1;3037:19;:17;:19::i;:::-;3002:54;;3075:24;3087:11;3075;:24::i;:::-;3074:25;3066:54;;;::::0;;-1:-1:-1;;;3066:54:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;3066:54:1;;;;;;;;;;;;;::::1;;3130:21;::::0;::::1;:35:::0;;-1:-1:-1;;;;;3130:35:1;::::1;-1:-1:-1::0;;;;;;3130:35:1;;::::1;::::0;::::1;::::0;;;3180:33:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;1084:1:3;2917:303:1::0;:::o;2702:209::-;1031:23:3;1043:10;1031:11;:23::i;:::-;1023:51;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;-1:-1:-1;;;1023:51:3;;;;;;;;;;;;;;;2765:32:1::1;2800:19;:17;:19::i;:::-;2829:21;::::0;::::1;:36:::0;;-1:-1:-1;;;;;;2829:36:1::1;::::0;;2880:24:::1;::::0;2765:54;;-1:-1:-1;2880:24:1::1;::::0;2861:3:::1;::::0;2880:24:::1;1084:1:3;2702:209:1:o:0;2358:151:5:-;2419:28;2466:14;2481:20;;;;;;;;;;;;;;;;;2466:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2466:36:5;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2466:36:5;;;;;;;;;;;;;;;;-1:-1:-1;2466:36:5;;;;;;;;;;;2358:151;-1:-1:-1;;;2358:151:5:o;3539:237:1:-;3608:24;3620:11;3608;:24::i;:::-;3607:25;3599:54;;;;;-1:-1:-1;;;3599:54:1;;;;;;;;;;;;-1:-1:-1;;;3599:54:1;;;;;;;;;;;;;;;3663:32;3698:19;:17;:19::i;:::-;-1:-1:-1;;;;;3727:35:1;;;:22;:35;;;;;;;;-1:-1:-1;3727:35:1;;;:42;;-1:-1:-1;;3727:42:1;3765:4;3727:42;;;3539:237::o

Swarm Source

ipfs://19c6683d777476043460ce621f3b9666d31557ebfc9234842128779cb5705fc8

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.