ETH Price: $3,188.91 (+5.12%)

Contract

0x518FD25AA98100831e0e0170340622Dcb9613b7a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Verify Merkle113702862020-12-02 2:00:091439 days ago1606874409IN
0x518FD25A...cb9613b7a
0 ETH0.0088426840.7
Verify Merkle113702792020-12-02 1:58:131439 days ago1606874293IN
0x518FD25A...cb9613b7a
0 ETH0.0086017939.6
Verify Merkle113691282020-12-01 21:28:051439 days ago1606858085IN
0x518FD25A...cb9613b7a
0 ETH0.0036445217.1
Verify Merkle113691222020-12-01 21:27:411439 days ago1606858061IN
0x518FD25A...cb9613b7a
0 ETH0.0038391418
Verify Merkle113682312020-12-01 18:25:291439 days ago1606847129IN
0x518FD25A...cb9613b7a
0 ETH0.0098958337
Verify Merkle113682312020-12-01 18:25:291439 days ago1606847129IN
0x518FD25A...cb9613b7a
0 ETH0.0098918337
Verify Merkle113678642020-12-01 16:56:151439 days ago1606841775IN
0x518FD25A...cb9613b7a
0 ETH0.015317873
Verify Merkle113678642020-12-01 16:56:151439 days ago1606841775IN
0x518FD25A...cb9613b7a
0 ETH0.0165758579
Verify Merkle113674702020-12-01 15:30:291439 days ago1606836629IN
0x518FD25A...cb9613b7a
0 ETH0.0254787100
Verify Merkle113674702020-12-01 15:30:291439 days ago1606836629IN
0x518FD25A...cb9613b7a
0 ETH0.0254907100
Verify Merkle113652242020-12-01 7:13:461440 days ago1606806826IN
0x518FD25A...cb9613b7a
0 ETH0.0183233667
Verify Merkle113652242020-12-01 7:13:461440 days ago1606806826IN
0x518FD25A...cb9613b7a
0 ETH0.0180498766
Verify Merkle113651512020-12-01 6:57:371440 days ago1606805857IN
0x518FD25A...cb9613b7a
0 ETH0.0197611372.6
Verify Merkle113651452020-12-01 6:56:121440 days ago1606805772IN
0x518FD25A...cb9613b7a
0 ETH0.0194625871.5
Verify Merkle113636232020-12-01 1:20:201440 days ago1606785620IN
0x518FD25A...cb9613b7a
0 ETH0.0196985572
Verify Merkle113636232020-12-01 1:20:201440 days ago1606785620IN
0x518FD25A...cb9613b7a
0 ETH0.0196950972
Verify Merkle113635362020-12-01 1:00:161440 days ago1606784416IN
0x518FD25A...cb9613b7a
0 ETH0.0195172772.6
Verify Merkle113635242020-12-01 0:58:171440 days ago1606784297IN
0x518FD25A...cb9613b7a
0 ETH0.0214651779.86
Verify Merkle113627032020-11-30 21:53:321440 days ago1606773212IN
0x518FD25A...cb9613b7a
0 ETH0.0076446930
Verify Merkle113627032020-11-30 21:53:321440 days ago1606773212IN
0x518FD25A...cb9613b7a
0 ETH0.0076428930
Verify Merkle113627032020-11-30 21:53:321440 days ago1606773212IN
0x518FD25A...cb9613b7a
0 ETH0.0080244630
Verify Merkle113627032020-11-30 21:53:321440 days ago1606773212IN
0x518FD25A...cb9613b7a
0 ETH0.008025930
Verify Merkle113615682020-11-30 17:43:141440 days ago1606758194IN
0x518FD25A...cb9613b7a
0 ETH0.0199141575
Verify Merkle113615682020-11-30 17:43:141440 days ago1606758194IN
0x518FD25A...cb9613b7a
0 ETH0.0199078575
Verify Merkle113614882020-11-30 17:25:091440 days ago1606757109IN
0x518FD25A...cb9613b7a
0 ETH0.03291132120
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MerkleStatementContract

Compiler Version
v0.5.15+commit.6a57276f

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity Multiple files format)

File 1 of 6: MerkleStatementContract.sol
/*
  Copyright 2019,2020 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.
*/
pragma solidity ^0.5.2;

import "FactRegistry.sol";
import "MerkleVerifier.sol";

contract MerkleStatementContract is MerkleVerifier, FactRegistry {
    /*
      This function recieves an initial merkle queue (consists of indices of leaves in the merkle
      in addition to their values) and a merkle view (contains the values of all the nodes
      required to be able to validate the queue). In case of success it registers the Merkle fact,
      which is the hash of the queue together with the resulting root.
    */
    function verifyMerkle(
        uint256[] memory merkleView,
        uint256[] memory initialMerkleQueue,
        uint256 height,
        uint256 expectedRoot
        )
        public
    {
        require(height < 200, "Height must be < 200.");
        require(
            initialMerkleQueue.length <= MAX_N_MERKLE_VERIFIER_QUERIES * 2,
            "TOO_MANY_MERKLE_QUERIES");

        uint256 merkleQueuePtr;
        uint256 channelPtr;
        uint256 nQueries;
        uint256 dataToHashPtr;
        uint256 badInput = 0;

        assembly {
            // Skip 0x20 bytes length at the beginning of the merkleView.
            let merkleViewPtr := add(merkleView, 0x20)
            // Let channelPtr point to a free space.
            channelPtr := mload(0x40) // freePtr.
            // channelPtr will point to the merkleViewPtr because the 'verify' function expects
            // a pointer to the proofPtr.
            mstore(channelPtr, merkleViewPtr)
            // Skip 0x20 bytes length at the beginning of the initialMerkleQueue.
            merkleQueuePtr := add(initialMerkleQueue, 0x20)
            // Get number of queries.
            nQueries := div(mload(initialMerkleQueue), 0x2)
            // Get a pointer to the end of initialMerkleQueue.
            let initialMerkleQueueEndPtr := add(merkleQueuePtr, mul(nQueries, 0x40))
            // Let dataToHashPtr point to a free memory.
            dataToHashPtr := add(channelPtr, 0x20) // Next freePtr.

            // Copy initialMerkleQueue to dataToHashPtr and validaite the indices.
            // The indices need to be in the range [2**height..2*(height+1)-1] and
            // strictly incrementing.

            // First index needs to be >= 2**height.
            let idxLowerLimit := shl(height, 1)
            for { } lt(merkleQueuePtr, initialMerkleQueueEndPtr) { } {
                let curIdx := mload(merkleQueuePtr)
                // badInput |= curIdx < IdxLowerLimit.
                badInput := or(badInput, lt(curIdx, idxLowerLimit))

                // The next idx must be at least curIdx + 1.
                idxLowerLimit := add(curIdx, 1)

                // Copy the pair (idx, hash) to the dataToHash array.
                mstore(dataToHashPtr, curIdx)
                mstore(add(dataToHashPtr, 0x20), mload(add(merkleQueuePtr, 0x20)))

                dataToHashPtr := add(dataToHashPtr, 0x40)
                merkleQueuePtr := add(merkleQueuePtr, 0x40)
            }

            // We need to enforce that lastIdx < 2**(height+1)
            // => fail if lastIdx >= 2**(height+1)
            // => fail if (lastIdx + 1) > 2**(height+1)
            // => fail if idxLowerLimit > 2**(height+1).
            badInput := or(badInput, gt(idxLowerLimit, shl(height, 2)))

            // Reset merkleQueuePtr.
            merkleQueuePtr := add(initialMerkleQueue, 0x20)
            // Let freePtr point to a free memory (one word after the copied queries - reserved
            // for the root).
            mstore(0x40, add(dataToHashPtr, 0x20))
        }
        require(badInput == 0, "INVALID_MERKLE_INDICES");
        bytes32 resRoot = verify(channelPtr, merkleQueuePtr, bytes32(expectedRoot), nQueries);
        bytes32 factHash;
        assembly {
            // Append the resulted root (should be the return value of verify) to dataToHashPtr.
            mstore(dataToHashPtr, resRoot)
            // Reset dataToHashPtr.
            dataToHashPtr := add(channelPtr, 0x20)
            factHash := keccak256(dataToHashPtr, add(mul(nQueries, 0x40), 0x20))
        }

        registerFact(factHash);
    }
}

File 2 of 6: FactRegistry.sol
/*
  Copyright 2019,2020 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.
*/
pragma solidity ^0.5.2;

import "IQueryableFactRegistry.sol";

contract FactRegistry is IQueryableFactRegistry {
    // Mapping: fact hash -> true.
    mapping (bytes32 => bool) private verifiedFact;

    // Indicates whether the Fact Registry has at least one fact registered.
    bool anyFactRegistered;

    /*
      Checks if a fact has been verified.
    */
    function isValid(bytes32 fact)
        external view
        returns(bool)
    {
        return verifiedFact[fact];
    }

    function registerFact(
        bytes32 factHash
        )
        internal
    {
        // This function stores the testiment hash in the mapping.
        verifiedFact[factHash] = true;

        // Mark first time off.
        if (!anyFactRegistered) {
            anyFactRegistered = true;
        }
    }

    /*
      Indicates whether at least one fact was registered.
    */
    function hasRegisteredFact()
        external view
        returns(bool)
    {
        return anyFactRegistered;
    }

}

File 3 of 6: IFactRegistry.sol
/*
  Copyright 2019,2020 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.
*/
pragma solidity ^0.5.2;

/*
  The Fact Registry design pattern is a way to separate cryptographic verification from the
  business logic of the contract flow.

  A fact registry holds a hash table of verified "facts" which are represented by a hash of claims
  that the registry hash check and found valid. This table may be queried by accessing the
  isValid() function of the registry with a given hash.

  In addition, each fact registry exposes a registry specific function for submitting new claims
  together with their proofs. The information submitted varies from one registry to the other
  depending of the type of fact requiring verification.

  For further reading on the Fact Registry design pattern see this
  `StarkWare blog post <https://medium.com/starkware/the-fact-registry-a64aafb598b6>`_.
*/
contract IFactRegistry {
    /*
      Returns true if the given fact was previously registered in the contract.
    */
    function isValid(bytes32 fact)
        external view
        returns(bool);
}

File 4 of 6: IMerkleVerifier.sol
/*
  Copyright 2019,2020 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.
*/
pragma solidity ^0.5.2;

contract IMerkleVerifier {
    uint256 constant internal MAX_N_MERKLE_VERIFIER_QUERIES =  128;

    function verify(
        uint256 channelPtr,
        uint256 queuePtr,
        bytes32 root,
        uint256 n)
        internal view
        returns (bytes32 hash);
}

File 5 of 6: IQueryableFactRegistry.sol
/*
  Copyright 2019,2020 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.
*/
pragma solidity ^0.5.2;

import "IFactRegistry.sol";

/*
  Extends the IFactRegistry interface with a query method that indicates
  whether the fact registry has successfully registered any fact or is still empty of such facts.
*/
contract IQueryableFactRegistry is IFactRegistry {

    /*
      Returns true if at least one fact has been registered.
    */
    function hasRegisteredFact()
        external view
        returns(bool);

}

File 6 of 6: MerkleVerifier.sol
/*
  Copyright 2019,2020 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.
*/
pragma solidity ^0.5.2;

import "IMerkleVerifier.sol";

contract MerkleVerifier is IMerkleVerifier {

    function getHashMask() internal pure returns(uint256) {
        // Default implementation.
        return 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000;
    }

    /*
      Verifies a Merkle tree decommitment for n leaves in a Merkle tree with N leaves.

      The inputs data sits in the queue at queuePtr.
      Each slot in the queue contains a 32 bytes leaf index and a 32 byte leaf value.
      The indices need to be in the range [N..2*N-1] and strictly incrementing.
      Decommitments are read from the channel in the ctx.

      The input data is destroyed during verification.
    */
    function verify(
        uint256 channelPtr,
        uint256 queuePtr,
        bytes32 root,
        uint256 n)
        internal view
        returns (bytes32 hash)
    {
        uint256 lhashMask = getHashMask();
        require(n <= MAX_N_MERKLE_VERIFIER_QUERIES, "TOO_MANY_MERKLE_QUERIES");

        assembly {
            // queuePtr + i * 0x40 gives the i'th index in the queue.
            // hashesPtr + i * 0x40 gives the i'th hash in the queue.
            let hashesPtr := add(queuePtr, 0x20)
            let queueSize := mul(n, 0x40)
            let slotSize := 0x40

            // The items are in slots [0, n-1].
            let rdIdx := 0
            let wrIdx := 0 // = n % n.

            // Iterate the queue until we hit the root.
            let index := mload(add(rdIdx, queuePtr))
            let proofPtr := mload(channelPtr)

            // while(index > 1).
            for { } gt(index, 1) { } {
                let siblingIndex := xor(index, 1)
                // sibblingOffset := 0x20 * lsb(siblingIndex).
                let sibblingOffset := mulmod(siblingIndex, 0x20, 0x40)

                // Store the hash corresponding to index in the correct slot.
                // 0 if index is even and 0x20 if index is odd.
                // The hash of the sibling will be written to the other slot.
                mstore(xor(0x20, sibblingOffset), mload(add(rdIdx, hashesPtr)))
                rdIdx := addmod(rdIdx, slotSize, queueSize)

                // Inline channel operation:
                // Assume we are going to read a new hash from the proof.
                // If this is not the case add(proofPtr, 0x20) will be reverted.
                let newHashPtr := proofPtr
                proofPtr := add(proofPtr, 0x20)

                // Push index/2 into the queue, before reading the next index.
                // The order is important, as otherwise we may try to read from an empty queue (in
                // the case where we are working on one item).
                // wrIdx will be updated after writing the relevant hash to the queue.
                mstore(add(wrIdx, queuePtr), div(index, 2))

                // Load the next index from the queue and check if it is our sibling.
                index := mload(add(rdIdx, queuePtr))
                if eq(index, siblingIndex) {
                    // Take sibling from queue rather than from proof.
                    newHashPtr := add(rdIdx, hashesPtr)
                    // Revert reading from proof.
                    proofPtr := sub(proofPtr, 0x20)
                    rdIdx := addmod(rdIdx, slotSize, queueSize)

                    // Index was consumed, read the next one.
                    // Note that the queue can't be empty at this point.
                    // The index of the parent of the current node was already pushed into the
                    // queue, and the parent is never the sibling.
                    index := mload(add(rdIdx, queuePtr))
                }

                mstore(sibblingOffset, mload(newHashPtr))

                // Push the new hash to the end of the queue.
                mstore(add(wrIdx, hashesPtr), and(lhashMask, keccak256(0x00, 0x40)))
                wrIdx := addmod(wrIdx, slotSize, queueSize)
            }
            hash := mload(add(rdIdx, hashesPtr))

            // Update the proof pointer in the context.
            mstore(channelPtr, proofPtr)
        }
        // emit LogBool(hash == root);
        require(hash == root, "INVALID_MERKLE_PROOF");
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"hasRegisteredFact","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"fact","type":"bytes32"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256[]","name":"merkleView","type":"uint256[]"},{"internalType":"uint256[]","name":"initialMerkleQueue","type":"uint256[]"},{"internalType":"uint256","name":"height","type":"uint256"},{"internalType":"uint256","name":"expectedRoot","type":"uint256"}],"name":"verifyMerkle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061063a806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80633fe317a6146100465780636a93856714610174578063d6354e15146101a5575b600080fd5b6101726004803603608081101561005c57600080fd5b81019060208101813564010000000081111561007757600080fd5b82018360208201111561008957600080fd5b803590602001918460208302840111640100000000831117156100ab57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156100fb57600080fd5b82018360208201111561010d57600080fd5b8035906020019184602083028401116401000000008311171561012f57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356101ad565b005b6101916004803603602081101561018a57600080fd5b50356103ac565b604080519115158252519081900360200190f35b6101916103c1565b60c8821061021c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f486569676874206d757374206265203c203230302e0000000000000000000000604482015290519081900360640190fd5b8251610100101561028e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f544f4f5f4d414e595f4d45524b4c455f51554552494553000000000000000000604482015290519081900360640190fd5b6040805160208681018083528651878301946002909104928481019260009290919085028a01016001891b5b818810156102eb5787518086526020808a0151908701526040988901989095019490811093909317926001016102ba565b60208581016040528b01975060028a1b1092909217915050801561037057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f494e56414c49445f4d45524b4c455f494e444943455300000000000000000000604482015290519081900360640190fd5b600061037e858789876103ca565b90506000818452602086019350602060408602018420905061039f81610571565b5050505050505050505050565b60009081526020819052604090205460ff1690565b60015460ff1690565b6000806103d56105e1565b9050608083111561044757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f544f4f5f4d414e595f4d45524b4c455f51554552494553000000000000000000604482015290519081900360640190fd5b60208501604084026040600080898201518b515b60018211156104eb5760018218604060208209888601518160201852878787086002909404858f01528d8401519395506020830192828514156104ce57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201918589018888880896508e87015194505b8051825260406000208b168a87015288888708955050505061045b565b9290950151918b525094505050848314905061056857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f494e56414c49445f4d45524b4c455f50524f4f46000000000000000000000000604482015290519081900360640190fd5b50949350505050565b600081815260208190526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091555460ff166105de57600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016811790555b50565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009056fea265627a7a723158209c8990626483f313622c168d0bd9c7962329c7847d616a2afe31d0515d2f3c0364736f6c634300050f0032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80633fe317a6146100465780636a93856714610174578063d6354e15146101a5575b600080fd5b6101726004803603608081101561005c57600080fd5b81019060208101813564010000000081111561007757600080fd5b82018360208201111561008957600080fd5b803590602001918460208302840111640100000000831117156100ab57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156100fb57600080fd5b82018360208201111561010d57600080fd5b8035906020019184602083028401116401000000008311171561012f57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356101ad565b005b6101916004803603602081101561018a57600080fd5b50356103ac565b604080519115158252519081900360200190f35b6101916103c1565b60c8821061021c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f486569676874206d757374206265203c203230302e0000000000000000000000604482015290519081900360640190fd5b8251610100101561028e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f544f4f5f4d414e595f4d45524b4c455f51554552494553000000000000000000604482015290519081900360640190fd5b6040805160208681018083528651878301946002909104928481019260009290919085028a01016001891b5b818810156102eb5787518086526020808a0151908701526040988901989095019490811093909317926001016102ba565b60208581016040528b01975060028a1b1092909217915050801561037057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f494e56414c49445f4d45524b4c455f494e444943455300000000000000000000604482015290519081900360640190fd5b600061037e858789876103ca565b90506000818452602086019350602060408602018420905061039f81610571565b5050505050505050505050565b60009081526020819052604090205460ff1690565b60015460ff1690565b6000806103d56105e1565b9050608083111561044757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f544f4f5f4d414e595f4d45524b4c455f51554552494553000000000000000000604482015290519081900360640190fd5b60208501604084026040600080898201518b515b60018211156104eb5760018218604060208209888601518160201852878787086002909404858f01528d8401519395506020830192828514156104ce57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201918589018888880896508e87015194505b8051825260406000208b168a87015288888708955050505061045b565b9290950151918b525094505050848314905061056857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f494e56414c49445f4d45524b4c455f50524f4f46000000000000000000000000604482015290519081900360640190fd5b50949350505050565b600081815260208190526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091555460ff166105de57600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016811790555b50565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009056fea265627a7a723158209c8990626483f313622c168d0bd9c7962329c7847d616a2afe31d0515d2f3c0364736f6c634300050f0032

Deployed Bytecode Sourcemap

678:4056:4:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;678:4056:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1122:3610;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;1122:3610:4;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;1122:3610:4;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1122:3610:4;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;1122:3610:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;1122:3610:4;;;;;;;;-1:-1:-1;1122:3610:4;;-1:-1:-1;;21:11;5:28;;2:2;;;46:1;43;36:12;2:2;1122:3610:4;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1122:3610:4;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;1122:3610:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;1122:3610:4;;-1:-1:-1;;1122:3610:4;;;-1:-1:-1;;;1122:3610:4;;;;:::i;:::-;;963:121:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;963:121:0;;:::i;:::-;;;;;;;;;;;;;;;;;;1475:118;;;:::i;1122:3610:4:-;1336:3;1327:6;:12;1319:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1396:25;;1425:33;-1:-1:-1;1396:62:4;1375:123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1882:4;1876:11;;1791:4;1775:21;;;2050:33;;;2292:25;;2196:29;;;;2319:3;2288:35;;;;2558:21;;;;1509:22;;1775:21;;2451:19;;;2431:40;;;2901:1;2889:14;;2916:676;2943:24;2927:14;2924:44;2916:676;;;3005:21;;3347:29;;;3452:4;3432:25;;;3426:32;3400:24;;;3393:66;3513:4;3553:25;;;;3494:24;;;;3123:25;;;3110:39;;;;;3257:1;3245:14;2916:676;;;3985:4;4142:24;;;4136:4;4129:38;3961:29;;;-1:-1:-1;3888:1:4;3876:14;;-1:-1:-1;3845:47:4;;;;;-1:-1:-1;;4194:13:4;;4186:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4244:15;4262:67;4269:10;4281:14;4305:12;4320:8;4262:6;:67::i;:::-;4244:85;;4339:16;4507:7;4492:13;4485:30;4597:4;4585:10;4581:21;4564:38;;4677:4;4670;4660:8;4656:19;4652:30;4637:13;4627:56;4615:68;;4703:22;4716:8;4703:12;:22::i;:::-;1122:3610;;;;;;;;;;;:::o;963:121:0:-;1032:4;1059:18;;;;;;;;;;;;;;963:121::o;1475:118::-;1569:17;;;;1475:118;:::o;1322:3536:5:-;1473:12;1501:17;1521:13;:11;:13::i;:::-;1501:33;;711:3:2;1552:1:5;:34;;1544:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1819:4;1809:8;1805:19;1861:4;1858:1;1854:12;1895:4;1974:1;2001;2114:8;2107:5;2103:20;2097:27;2159:10;2153:17;2217:2384;2235:1;2228:5;2225:12;2217:2384;;;2291:1;2284:5;2280:13;2422:4;2416;2402:12;2395:32;2716:9;2709:5;2705:21;2699:28;2682:14;2676:4;2672:25;2665:63;2778:9;2768:8;2761:5;2754:34;3466:1;3455:13;;;3433:20;;;3426:43;3588:20;;;3582:27;2745:43;;-1:-1:-1;3075:4:5;3061:19;;;3629:23;;;3626:2;;;-1:-1:-1;3864:19:5;;;;;3760:21;;;3937:9;3927:8;3764:5;3913:34;3904:43;;4292:8;4285:5;4281:20;4275:27;4266:36;;3626:2;4367:10;4361:17;4345:14;4338:41;4520:4;4514;4504:21;4493:9;4489:37;4477:9;4470:5;4466:21;4459:68;4577:9;4567:8;4560:5;4553:34;4544:43;;2242:2359;;;2217:2384;;;4628:21;;;;4622:28;4720;;;-1:-1:-1;4622:28:5;-1:-1:-1;;;4814:12:5;;;;-1:-1:-1;4806:45:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1322:3536;;;;;;;:::o;1090:307:0:-;1246:12;:22;;;;;;;;;;:29;;;;1271:4;1246:29;;;;;;1323:17;1246:29;1323:17;1318:73;;1376:4;1356:24;;;;;;;;1318:73;1090:307;:::o;702:179:5:-;808:66;702:179;:::o

Swarm Source

bzzr://9c8990626483f313622c168d0bd9c7962329c7847d616a2afe31d0515d2f3c03

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.