GLMR Price: $0.176462 (-4.32%)
Gas: 125 GWei

Contract

0x671861008497782F7108D908D4dF18eBf9598b82

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo22.138231910062403717 GLMR

GLMR Value

$3.91 (@ $0.18/GLMR)

Token Holdings

Transaction Hash
Method
Block
From
To
Bridge Gas93277482025-01-25 3:16:242 hrs ago1737774984IN
0x67186100...Bf9598b82
0.18260627 GLMR0.06352099127.04198296
Bridge Gas93231452025-01-24 19:31:549 hrs ago1737747114IN
0x67186100...Bf9598b82
0.2937432 GLMR0.06366926127.33853871
Bridge Gas93229902025-01-24 19:16:2410 hrs ago1737746184IN
0x67186100...Bf9598b82
0.29441952 GLMR0.0631537126.30740593
Bridge Gas93223232025-01-24 18:09:0611 hrs ago1737742146IN
0x67186100...Bf9598b82
0.18276813 GLMR0.06370899127.41799977
Bridge Gas93215972025-01-24 16:56:3012 hrs ago1737737790IN
0x67186100...Bf9598b82
0.18255377 GLMR0.06351268127.0253622
Bridge Gas93140802025-01-24 4:12:1225 hrs ago1737691932IN
0x67186100...Bf9598b82
108.25711832 GLMR0.214866125
Bridge Gas93125192025-01-24 1:35:3027 hrs ago1737682530IN
0x67186100...Bf9598b82
0.18231868 GLMR0.06319604126.39209147
Bridge Gas93123492025-01-24 1:18:3028 hrs ago1737681510IN
0x67186100...Bf9598b82
0.2939403 GLMR0.06359691127.19383143
Bridge Gas93107772025-01-23 22:40:0030 hrs ago1737672000IN
0x67186100...Bf9598b82
0.29316745 GLMR0.0633959126.7918022
Bridge Gas93034102025-01-23 10:11:3043 hrs ago1737627090IN
0x67186100...Bf9598b82
0.18228808 GLMR0.0632969126.59380049
Bridge Gas93024182025-01-23 8:30:1244 hrs ago1737621012IN
0x67186100...Bf9598b82
0.18197913 GLMR0.06348238126.96477636
Bridge Gas92988242025-01-23 2:28:242 days ago1737599304IN
0x67186100...Bf9598b82
0.18205867 GLMR0.06343304126.86609532
Bridge Gas92984682025-01-23 1:52:422 days ago1737597162IN
0x67186100...Bf9598b82
0.2899576 GLMR0.06324115126.48230136
Bridge Gas92977252025-01-23 0:38:062 days ago1737592686IN
0x67186100...Bf9598b82
0.28716258 GLMR0.06320279126.40558607
Bridge Gas92970872025-01-22 23:33:542 days ago1737588834IN
0x67186100...Bf9598b82
0.60855428 GLMR0.063376126.75201414
Bridge Gas92949442025-01-22 19:58:062 days ago1737575886IN
0x67186100...Bf9598b82
0.18181956 GLMR0.06318585126.37171798
Bridge Gas92948532025-01-22 19:49:002 days ago1737575340IN
0x67186100...Bf9598b82
0.2891637 GLMR0.06316323126.32647537
Bridge Gas92945852025-01-22 19:21:182 days ago1737573678IN
0x67186100...Bf9598b82
0.60853238 GLMR0.06348025126.96051295
Bridge Gas92828862025-01-21 23:28:243 days ago1737502104IN
0x67186100...Bf9598b82
0.26470173 GLMR0.21964125
Bridge Gas92607852025-01-20 10:04:364 days ago1737367476IN
0x67186100...Bf9598b82
0.25137249 GLMR0.214634125
Bridge Gas92522282025-01-19 19:33:125 days ago1737315192IN
0x67186100...Bf9598b82
32.48843698 GLMR0.214866125
Bridge Gas92459882025-01-19 8:53:065 days ago1737276786IN
0x67186100...Bf9598b82
0.23659639 GLMR0.21964125
Bridge Gas92424212025-01-19 2:51:246 days ago1737255084IN
0x67186100...Bf9598b82
0.54307255 GLMR0.21964125
Bridge Gas92262322025-01-17 23:17:427 days ago1737155862IN
0x67186100...Bf9598b82
19.89601096 GLMR0.214866125
Bridge Gas92258542025-01-17 22:39:067 days ago1737153546IN
0x67186100...Bf9598b82
0.21359561 GLMR0.214634125
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
93140802025-01-24 4:12:1225 hrs ago1737691932
0x67186100...Bf9598b82
108.01000135 GLMR
92828862025-01-21 23:28:243 days ago1737502104
0x67186100...Bf9598b82
0.26209209 GLMR
92607852025-01-20 10:04:364 days ago1737367476
0x67186100...Bf9598b82
0.24888525 GLMR
92522282025-01-19 19:33:125 days ago1737315192
0x67186100...Bf9598b82
32.24132001 GLMR
92459882025-01-19 8:53:065 days ago1737276786
0x67186100...Bf9598b82
0.23426316 GLMR
92424212025-01-19 2:51:246 days ago1737255084
0x67186100...Bf9598b82
0.53776515 GLMR
92262322025-01-17 23:17:427 days ago1737155862
0x67186100...Bf9598b82
19.64889399 GLMR
92258542025-01-17 22:39:067 days ago1737153546
0x67186100...Bf9598b82
0.21149006 GLMR
92177822025-01-17 8:47:367 days ago1737103656
0x67186100...Bf9598b82
0.38360368 GLMR
92148672025-01-17 3:52:188 days ago1737085938
0x67186100...Bf9598b82
0.21148192 GLMR
92076302025-01-16 15:41:008 days ago1737042060
0x67186100...Bf9598b82
0.53776634 GLMR
91944612025-01-15 17:19:249 days ago1736961564
0x67186100...Bf9598b82
0.23359506 GLMR
91939482025-01-15 16:27:549 days ago1736958474
0x67186100...Bf9598b82
0.2316475 GLMR
91939282025-01-15 16:25:549 days ago1736958354
0x67186100...Bf9598b82
1.27391736 GLMR
91939202025-01-15 16:25:069 days ago1736958306
0x67186100...Bf9598b82
0.40571158 GLMR
91895982025-01-15 9:03:549 days ago1736931834
0x67186100...Bf9598b82
0.23359897 GLMR
91770232025-01-14 11:39:5410 days ago1736854794
0x67186100...Bf9598b82
0.49564923 GLMR
91420302025-01-12 0:15:3013 days ago1736640930
0x67186100...Bf9598b82
0.20030092 GLMR
91420252025-01-12 0:15:0013 days ago1736640900
0x67186100...Bf9598b82
0.20030092 GLMR
91327912025-01-11 8:16:3613 days ago1736583396
0x67186100...Bf9598b82
0.5469109 GLMR
91297502025-01-11 3:08:4214 days ago1736564922
0x67186100...Bf9598b82
0.20952554 GLMR
91261692025-01-10 21:07:3014 days ago1736543250
0x67186100...Bf9598b82
3.61450498 GLMR
91239942025-01-10 17:27:1814 days ago1736530038
0x67186100...Bf9598b82
1.3811645 GLMR
91223042025-01-10 14:36:0014 days ago1736519760
0x67186100...Bf9598b82
0.47014188 GLMR
91218362025-01-10 13:48:2414 days ago1736516904
0x67186100...Bf9598b82
0.4810013 GLMR
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MerklyRefuel

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 10: MerklyRefuel.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./NonblockingLzApp.sol";


contract MerklyRefuel is NonblockingLzApp {
    using BytesLib for bytes;

    uint public constant NO_EXTRA_GAS = 0;
 
    // packet type
    uint16 public constant PT_SEND = 0;

    bool public useCustomAdapterParams = true;

    constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {}

    function estimateSendFee(uint16 _dstChainId, bytes memory payload, bytes memory _adapterParams) public view virtual returns (uint nativeFee, uint zroFee) {
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, false, _adapterParams);
    }

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // empty
    }

    function bridgeGas(uint16 _dstChainId, bytes memory _toAddress, bytes memory _adapterParams) public payable virtual {
        _checkAdapterParams(_dstChainId, PT_SEND, _adapterParams, NO_EXTRA_GAS);

        (uint nativeFee,) = estimateSendFee(_dstChainId, _toAddress, _adapterParams);
        require(msg.value >= nativeFee, "Not enough gas to send");
        
        _lzSend(_dstChainId, _toAddress, payable(0x0), address(0x0), _adapterParams, nativeFee);
    }

    function _checkAdapterParams(uint16 _dstChainId, uint16 _pkType, bytes memory _adapterParams, uint _extraGas) internal virtual {
        if (useCustomAdapterParams) {
            _checkGasLimit(_dstChainId, _pkType, _adapterParams, _extraGas);
        } else {
            require(_adapterParams.length == 0, "OFTCore: _adapterParams must be empty.");
        }
    }

    function withdraw() public payable onlyOwner {
        (bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
        require(success);
    }
}


File 2 of 10: BytesLib.sol
// SPDX-License-Identifier: Unlicense
/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */
pragma solidity >=0.8.0 <0.9.0;


library BytesLib {
    function concat(
        bytes memory _preBytes,
        bytes memory _postBytes
    )
    internal
    pure
    returns (bytes memory)
    {
        bytes memory tempBytes;

        assembly {
        // Get a location of some free memory and store it in tempBytes as
        // Solidity does for memory variables.
            tempBytes := mload(0x40)

        // Store the length of the first bytes array at the beginning of
        // the memory for tempBytes.
            let length := mload(_preBytes)
            mstore(tempBytes, length)

        // Maintain a memory counter for the current write location in the
        // temp bytes array by adding the 32 bytes for the array length to
        // the starting location.
            let mc := add(tempBytes, 0x20)
        // Stop copying when the memory counter reaches the length of the
        // first bytes array.
            let end := add(mc, length)

            for {
            // Initialize a copy counter to the start of the _preBytes data,
            // 32 bytes into its memory.
                let cc := add(_preBytes, 0x20)
            } lt(mc, end) {
            // Increase both counters by 32 bytes each iteration.
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
            // Write the _preBytes data into the tempBytes memory 32 bytes
            // at a time.
                mstore(mc, mload(cc))
            }

        // Add the length of _postBytes to the current length of tempBytes
        // and store it as the new length in the first 32 bytes of the
        // tempBytes memory.
            length := mload(_postBytes)
            mstore(tempBytes, add(length, mload(tempBytes)))

        // Move the memory counter back from a multiple of 0x20 to the
        // actual end of the _preBytes data.
            mc := end
        // Stop copying when the memory counter reaches the new combined
        // length of the arrays.
            end := add(mc, length)

            for {
                let cc := add(_postBytes, 0x20)
            } lt(mc, end) {
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                mstore(mc, mload(cc))
            }

        // Update the free-memory pointer by padding our last write location
        // to 32 bytes: add 31 bytes to the end of tempBytes to move to the
        // next 32 byte block, then round down to the nearest multiple of
        // 32. If the sum of the length of the two arrays is zero then add
        // one before rounding down to leave a blank 32 bytes (the length block with 0).
            mstore(0x40, and(
            add(add(end, iszero(add(length, mload(_preBytes)))), 31),
            not(31) // Round down to the nearest 32 bytes.
            ))
        }

        return tempBytes;
    }

    function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {
        assembly {
        // Read the first 32 bytes of _preBytes storage, which is the length
        // of the array. (We don't need to use the offset into the slot
        // because arrays use the entire slot.)
            let fslot := sload(_preBytes.slot)
        // Arrays of 31 bytes or less have an even value in their slot,
        // while longer arrays have an odd value. The actual length is
        // the slot divided by two for odd values, and the lowest order
        // byte divided by two for even values.
        // If the slot is even, bitwise and the slot with 255 and divide by
        // two to get the length. If the slot is odd, bitwise and the slot
        // with -1 and divide by two.
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)
            let newlength := add(slength, mlength)
        // slength can contain both the length and contents of the array
        // if length < 32 bytes so let's prepare for that
        // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
            switch add(lt(slength, 32), lt(newlength, 32))
            case 2 {
            // Since the new array still fits in the slot, we just need to
            // update the contents of the slot.
            // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length
                sstore(
                _preBytes.slot,
                // all the modifications to the slot are inside this
                // next block
                add(
                // we can just add to the slot contents because the
                // bytes we want to change are the LSBs
                fslot,
                add(
                mul(
                div(
                // load the bytes from memory
                mload(add(_postBytes, 0x20)),
                // zero all bytes to the right
                exp(0x100, sub(32, mlength))
                ),
                // and now shift left the number of bytes to
                // leave space for the length in the slot
                exp(0x100, sub(32, newlength))
                ),
                // increase length by the double of the memory
                // bytes length
                mul(mlength, 2)
                )
                )
                )
            }
            case 1 {
            // The stored value fits in the slot, but the combined value
            // will exceed it.
            // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

            // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

            // The contents of the _postBytes array start 32 bytes into
            // the structure. Our first read should obtain the `submod`
            // bytes that can fit into the unused space in the last word
            // of the stored array. To get this, we read 32 bytes starting
            // from `submod`, so the data we read overlaps with the array
            // contents by `submod` bytes. Masking the lowest-order
            // `submod` bytes allows us to add that value directly to the
            // stored value.

                let submod := sub(32, slength)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(
                sc,
                add(
                and(
                fslot,
                0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00
                ),
                and(mload(mc), mask)
                )
                )

                for {
                    mc := add(mc, 0x20)
                    sc := add(sc, 1)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
            default {
            // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
            // Start copying to the last used word of the stored array.
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

            // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

            // Copy over the first `submod` bytes of the new data as in
            // case 1 above.
                let slengthmod := mod(slength, 32)
                let mlengthmod := mod(mlength, 32)
                let submod := sub(32, slengthmod)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(sc, add(sload(sc), and(mload(mc), mask)))

                for {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
        }
    }

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    )
    internal
    pure
    returns (bytes memory)
    {
        require(_length + 31 >= _length, "slice_overflow");
        require(_bytes.length >= _start + _length, "slice_outOfBounds");

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
                tempBytes := mload(0x40)

            // The first word of the slice result is potentially a partial
            // word read from the original array. To read it, we calculate
            // the length of that partial word and start copying that many
            // bytes into the array. The first word we copy will start with
            // data we don't care about, but the last `lengthmod` bytes will
            // land at the beginning of the contents of the new array. When
            // we're done copying, we overwrite the full first word with
            // the actual length of the slice.
                let lengthmod := and(_length, 31)

            // The multiplication in the next line is necessary
            // because when slicing multiples of 32 bytes (lengthmod == 0)
            // the following copy loop was copying the origin's length
            // and then ending prematurely not copying everything it should.
                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                let end := add(mc, _length)

                for {
                // The multiplication in the next line has the same exact purpose
                // as the one above.
                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

            //update free-memory pointer
            //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)
            //zero out the 32 bytes slice we are about to return
            //we need to do it because Solidity does not garbage collect
                mstore(tempBytes, 0)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
        require(_bytes.length >= _start + 20, "toAddress_outOfBounds");
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
        require(_bytes.length >= _start + 1 , "toUint8_outOfBounds");
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }

        return tempUint;
    }

    function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {
        require(_bytes.length >= _start + 2, "toUint16_outOfBounds");
        uint16 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x2), _start))
        }

        return tempUint;
    }

    function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {
        require(_bytes.length >= _start + 4, "toUint32_outOfBounds");
        uint32 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x4), _start))
        }

        return tempUint;
    }

    function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {
        require(_bytes.length >= _start + 8, "toUint64_outOfBounds");
        uint64 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x8), _start))
        }

        return tempUint;
    }

    function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {
        require(_bytes.length >= _start + 12, "toUint96_outOfBounds");
        uint96 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0xc), _start))
        }

        return tempUint;
    }

    function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {
        require(_bytes.length >= _start + 16, "toUint128_outOfBounds");
        uint128 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x10), _start))
        }

        return tempUint;
    }

    function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {
        require(_bytes.length >= _start + 32, "toUint256_outOfBounds");
        uint256 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x20), _start))
        }

        return tempUint;
    }

    function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {
        require(_bytes.length >= _start + 32, "toBytes32_outOfBounds");
        bytes32 tempBytes32;

        assembly {
            tempBytes32 := mload(add(add(_bytes, 0x20), _start))
        }

        return tempBytes32;
    }

    function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
        bool success = true;

        assembly {
            let length := mload(_preBytes)

        // if lengths don't match the arrays are not equal
            switch eq(length, mload(_postBytes))
            case 1 {
            // cb is a circuit breaker in the for loop since there's
            //  no said feature for inline assembly loops
            // cb = 1 - don't breaker
            // cb = 0 - break
                let cb := 1

                let mc := add(_preBytes, 0x20)
                let end := add(mc, length)

                for {
                    let cc := add(_postBytes, 0x20)
                // the next line is the loop condition:
                // while(uint256(mc < end) + cb == 2)
                } eq(add(lt(mc, end), cb), 2) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                // if any of these checks fails then arrays are not equal
                    if iszero(eq(mload(mc), mload(cc))) {
                    // unsuccess:
                        success := 0
                        cb := 0
                    }
                }
            }
            default {
            // unsuccess:
                success := 0
            }
        }

        return success;
    }

    function equalStorage(
        bytes storage _preBytes,
        bytes memory _postBytes
    )
    internal
    view
    returns (bool)
    {
        bool success = true;

        assembly {
        // we know _preBytes_offset is 0
            let fslot := sload(_preBytes.slot)
        // Decode the length of the stored array like in concatStorage().
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)

        // if lengths don't match the arrays are not equal
            switch eq(slength, mlength)
            case 1 {
            // slength can contain both the length and contents of the array
            // if length < 32 bytes so let's prepare for that
            // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
                if iszero(iszero(slength)) {
                    switch lt(slength, 32)
                    case 1 {
                    // blank the last byte which is the length
                        fslot := mul(div(fslot, 0x100), 0x100)

                        if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {
                        // unsuccess:
                            success := 0
                        }
                    }
                    default {
                    // cb is a circuit breaker in the for loop since there's
                    //  no said feature for inline assembly loops
                    // cb = 1 - don't breaker
                    // cb = 0 - break
                        let cb := 1

                    // get the keccak hash to get the contents of the array
                        mstore(0x0, _preBytes.slot)
                        let sc := keccak256(0x0, 0x20)

                        let mc := add(_postBytes, 0x20)
                        let end := add(mc, mlength)

                    // the next line is the loop condition:
                    // while(uint256(mc < end) + cb == 2)
                        for {} eq(add(lt(mc, end), cb), 2) {
                            sc := add(sc, 1)
                            mc := add(mc, 0x20)
                        } {
                            if iszero(eq(sload(sc), mload(mc))) {
                            // unsuccess:
                                success := 0
                                cb := 0
                            }
                        }
                    }
                }
            }
            default {
            // unsuccess:
                success := 0
            }
        }

        return success;
    }
}

File 3 of 10: Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.19;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 4 of 10: ExcessivelySafeCall.sol
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.7.6;

library ExcessivelySafeCall {
    uint256 constant LOW_28_MASK =
    0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff;

    /// @notice Use when you _really_ really _really_ don't trust the called
    /// contract. This prevents the called contract from causing reversion of
    /// the caller in as many ways as we can.
    /// @dev The main difference between this and a solidity low-level call is
    /// that we limit the number of bytes that the callee can cause to be
    /// copied to caller memory. This prevents stupid things like malicious
    /// contracts returning 10,000,000 bytes causing a local OOG when copying
    /// to memory.
    /// @param _target The address to call
    /// @param _gas The amount of gas to forward to the remote contract
    /// @param _maxCopy The maximum number of bytes of returndata to copy
    /// to memory.
    /// @param _calldata The data to send to the remote contract
    /// @return success and returndata, as `.call()`. Returndata is capped to
    /// `_maxCopy` bytes.
    function excessivelySafeCall(
        address _target,
        uint256 _gas,
        uint16 _maxCopy,
        bytes memory _calldata
    ) internal returns (bool, bytes memory) {
        // set up for assembly call
        uint256 _toCopy;
        bool _success;
        bytes memory _returnData = new bytes(_maxCopy);
        // dispatch message to recipient
        // by assembly calling "handle" function
        // we call via assembly to avoid memcopying a very large returndata
        // returned by a malicious contract
        assembly {
            _success := call(
            _gas, // gas
            _target, // recipient
            0, // ether value
            add(_calldata, 0x20), // inloc
            mload(_calldata), // inlen
            0, // outloc
            0 // outlen
            )
        // limit our copy to 256 bytes
            _toCopy := returndatasize()
            if gt(_toCopy, _maxCopy) {
                _toCopy := _maxCopy
            }
        // Store the length of the copied bytes
            mstore(_returnData, _toCopy)
        // copy the bytes from returndata[0:_toCopy]
            returndatacopy(add(_returnData, 0x20), 0, _toCopy)
        }
        return (_success, _returnData);
    }

    /// @notice Use when you _really_ really _really_ don't trust the called
    /// contract. This prevents the called contract from causing reversion of
    /// the caller in as many ways as we can.
    /// @dev The main difference between this and a solidity low-level call is
    /// that we limit the number of bytes that the callee can cause to be
    /// copied to caller memory. This prevents stupid things like malicious
    /// contracts returning 10,000,000 bytes causing a local OOG when copying
    /// to memory.
    /// @param _target The address to call
    /// @param _gas The amount of gas to forward to the remote contract
    /// @param _maxCopy The maximum number of bytes of returndata to copy
    /// to memory.
    /// @param _calldata The data to send to the remote contract
    /// @return success and returndata, as `.call()`. Returndata is capped to
    /// `_maxCopy` bytes.
    function excessivelySafeStaticCall(
        address _target,
        uint256 _gas,
        uint16 _maxCopy,
        bytes memory _calldata
    ) internal view returns (bool, bytes memory) {
        // set up for assembly call
        uint256 _toCopy;
        bool _success;
        bytes memory _returnData = new bytes(_maxCopy);
        // dispatch message to recipient
        // by assembly calling "handle" function
        // we call via assembly to avoid memcopying a very large returndata
        // returned by a malicious contract
        assembly {
            _success := staticcall(
            _gas, // gas
            _target, // recipient
            add(_calldata, 0x20), // inloc
            mload(_calldata), // inlen
            0, // outloc
            0 // outlen
            )
        // limit our copy to 256 bytes
            _toCopy := returndatasize()
            if gt(_toCopy, _maxCopy) {
                _toCopy := _maxCopy
            }
        // Store the length of the copied bytes
            mstore(_returnData, _toCopy)
        // copy the bytes from returndata[0:_toCopy]
            returndatacopy(add(_returnData, 0x20), 0, _toCopy)
        }
        return (_success, _returnData);
    }

    /**
     * @notice Swaps function selectors in encoded contract calls
     * @dev Allows reuse of encoded calldata for functions with identical
     * argument types but different names. It simply swaps out the first 4 bytes
     * for the new selector. This function modifies memory in place, and should
     * only be used with caution.
     * @param _newSelector The new 4-byte selector
     * @param _buf The encoded contract args
     */
    function swapSelector(bytes4 _newSelector, bytes memory _buf)
    internal
    pure
    {
        require(_buf.length >= 4);
        uint256 _mask = LOW_28_MASK;
        assembly {
        // load the first word of
            let _word := mload(add(_buf, 0x20))
        // mask out the top 4 bytes
        // /x
            _word := and(_word, _mask)
            _word := or(_newSelector, _word)
            mstore(add(_buf, 0x20), _word)
        }
    }
}

File 5 of 10: ILayerZeroEndpoint.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}

File 6 of 10: ILayerZeroReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroReceiver {
    // @notice LayerZero endpoint will invoke this function to deliver the message on the destination
    // @param _srcChainId - the source endpoint identifier
    // @param _srcAddress - the source sending contract address from the source chain
    // @param _nonce - the ordered message nonce
    // @param _payload - the signed payload is the UA bytes has encoded to be sent
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
}

File 7 of 10: ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}

File 8 of 10: LzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Ownable.sol";
import "./ILayerZeroReceiver.sol";
import "./ILayerZeroUserApplicationConfig.sol";
import "./ILayerZeroEndpoint.sol";
import "./BytesLib.sol";

/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    using BytesLib for bytes;

    // ua can not send payload larger than this by default, but it can be changed by the ua owner
    uint constant public DEFAULT_PAYLOAD_SIZE_LIMIT = 10000;

    ILayerZeroEndpoint public immutable lzEndpoint;
    mapping(uint16 => bytes) public trustedRemoteLookup;
    mapping(uint16 => mapping(uint16 => uint)) public minDstGasLookup;
    mapping(uint16 => uint) public payloadSizeLimitLookup;
    address public precrime;

    event SetPrecrime(address precrime);
    event SetTrustedRemote(uint16 _remoteChainId, bytes _path);
    event SetTrustedRemoteAddress(uint16 _remoteChainId, bytes _remoteAddress);
    event SetMinDstGas(uint16 _dstChainId, uint16 _type, uint _minDstGas);

    constructor(address _endpoint) Ownable(msg.sender) {
        lzEndpoint = ILayerZeroEndpoint(_endpoint);
    }

    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public virtual override {
        // lzReceive must be called by the endpoint for security
        require(_msgSender() == address(lzEndpoint), "LzApp: invalid endpoint caller");

        bytes memory trustedRemote = trustedRemoteLookup[_srcChainId];
        // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote.
        require(_srcAddress.length == trustedRemote.length && trustedRemote.length > 0 && keccak256(_srcAddress) == keccak256(trustedRemote), "LzApp: invalid source sending contract");

        _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams, uint _nativeFee) internal virtual {
        bytes memory trustedRemote = trustedRemoteLookup[_dstChainId];
        require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source");
        _checkPayloadSize(_dstChainId, _payload.length);
        lzEndpoint.send{value: _nativeFee}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    function _checkGasLimit(uint16 _dstChainId, uint16 _type, bytes memory _adapterParams, uint _extraGas) internal view virtual {
        uint providedGasLimit = _getGasLimit(_adapterParams);
        uint minGasLimit = minDstGasLookup[_dstChainId][_type] + _extraGas;
        require(minGasLimit > 0, "LzApp: minGasLimit not set");
        require(providedGasLimit >= minGasLimit, "LzApp: gas limit is too low");
    }

    function _getGasLimit(bytes memory _adapterParams) internal pure virtual returns (uint gasLimit) {
        require(_adapterParams.length >= 34, "LzApp: invalid adapterParams");
        assembly {
            gasLimit := mload(add(_adapterParams, 34))
        }
    }

    function _checkPayloadSize(uint16 _dstChainId, uint _payloadSize) internal view virtual {
        uint payloadSizeLimit = payloadSizeLimitLookup[_dstChainId];
        if (payloadSizeLimit == 0) { // use default if not set
            payloadSizeLimit = DEFAULT_PAYLOAD_SIZE_LIMIT;
        }
        require(_payloadSize <= payloadSizeLimit, "LzApp: payload size is too large");
    }

    //---------------------------UserApplication config----------------------------------------
    function getConfig(uint16 _version, uint16 _chainId, address, uint _configType) external view returns (bytes memory) {
        return lzEndpoint.getConfig(_version, _chainId, address(this), _configType);
    }

    // generic config for LayerZero user Application
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner {
        lzEndpoint.setConfig(_version, _chainId, _configType, _config);
    }

    function setSendVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setSendVersion(_version);
    }

    function setReceiveVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setReceiveVersion(_version);
    }

    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {
        lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress);
    }

    // _path = abi.encodePacked(remoteAddress, localAddress)
    // this function set the trusted path for the cross-chain communication
    function setTrustedRemote(uint16 _remoteChainId, bytes calldata _path) external onlyOwner {
        trustedRemoteLookup[_remoteChainId] = _path;
        emit SetTrustedRemote(_remoteChainId, _path);
    }

    function setTrustedRemoteAddress(uint16 _remoteChainId, bytes calldata _remoteAddress) external onlyOwner {
        trustedRemoteLookup[_remoteChainId] = abi.encodePacked(_remoteAddress, address(this));
        emit SetTrustedRemoteAddress(_remoteChainId, _remoteAddress);
    }

    function getTrustedRemoteAddress(uint16 _remoteChainId) external view returns (bytes memory) {
        bytes memory path = trustedRemoteLookup[_remoteChainId];
        require(path.length != 0, "LzApp: no trusted path record");
        return path.slice(0, path.length - 20); // the last 20 bytes should be address(this)
    }

    function setPrecrime(address _precrime) external onlyOwner {
        precrime = _precrime;
        emit SetPrecrime(_precrime);
    }

    function setMinDstGas(uint16 _dstChainId, uint16 _packetType, uint _minGas) external onlyOwner {
        require(_minGas > 0, "LzApp: invalid minGas");
        minDstGasLookup[_dstChainId][_packetType] = _minGas;
        emit SetMinDstGas(_dstChainId, _packetType, _minGas);
    }

    // if the size is 0, it means default size limit
    function setPayloadSizeLimit(uint16 _dstChainId, uint _size) external onlyOwner {
        payloadSizeLimitLookup[_dstChainId] = _size;
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------
    function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) {
        bytes memory trustedSource = trustedRemoteLookup[_srcChainId];
        return keccak256(trustedSource) == keccak256(_srcAddress);
    }
}

File 9 of 10: NonblockingLzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LzApp.sol";
import "./ExcessivelySafeCall.sol";

/*
 * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel
 * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking
 * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress)
 */
abstract contract NonblockingLzApp is LzApp {
    using ExcessivelySafeCall for address;

    constructor(address _endpoint) LzApp(_endpoint) {}

    mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages;

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload, bytes _reason);
    event RetryMessageSuccess(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _payloadHash);

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        (bool success, bytes memory reason) = address(this).excessivelySafeCall(gasleft(), 150, abi.encodeWithSelector(this.nonblockingLzReceive.selector, _srcChainId, _srcAddress, _nonce, _payload));
        // try-catch all errors/exceptions
        if (!success) {
            _storeFailedMessage(_srcChainId, _srcAddress, _nonce, _payload, reason);
        }
    }

    function _storeFailedMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload, bytes memory _reason) internal virtual {
        failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
        emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload, _reason);
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public virtual {
        // only internal transaction
        require(_msgSender() == address(this), "NonblockingLzApp: caller must be LzApp");
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    //@notice override this function
    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function retryMessage(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public payable virtual {
        // assert there is message to retry
        bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(payloadHash != bytes32(0), "NonblockingLzApp: no stored message");
        require(keccak256(_payload) == payloadHash, "NonblockingLzApp: invalid payload");
        // clear the stored message
        failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0);
        // execute the message. revert if it fails again
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
        emit RetryMessageSuccess(_srcChainId, _srcAddress, _nonce, payloadHash);
    }
}

File 10 of 10: Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.19;

import {Context} from "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_lzEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"_reason","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"_payloadHash","type":"bytes32"}],"name":"RetryMessageSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"_type","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_minDstGas","type":"uint256"}],"name":"SetMinDstGas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"precrime","type":"address"}],"name":"SetPrecrime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_path","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"SetTrustedRemoteAddress","type":"event"},{"inputs":[],"name":"DEFAULT_PAYLOAD_SIZE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NO_EXTRA_GAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PT_SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"bridgeGas","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"payload","type":"bytes"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"}],"name":"getTrustedRemoteAddress","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"","type":"uint16"}],"name":"minDstGasLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"payloadSizeLimitLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"precrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint16","name":"_packetType","type":"uint16"},{"internalType":"uint256","name":"_minGas","type":"uint256"}],"name":"setMinDstGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setPayloadSizeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_precrime","type":"address"}],"name":"setPrecrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_path","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"setTrustedRemoteAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useCustomAdapterParams","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040526006805460ff191660011790553480156200001e57600080fd5b50604051620026dc380380620026dc8339810160408190526200004191620000b5565b8080336200004f8162000065565b506001600160a01b031660805250620000e79050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000c857600080fd5b81516001600160a01b0381168114620000e057600080fd5b9392505050565b6080516125a16200013b60003960008181610508015281816106300152818161087f0152818161092701528181610b2501528181610b9101528181610fd4015281816113d801526116a101526125a16000f3fe6080604052600436106101d75760003560e01c80637533d78811610102578063c446183411610095578063eb8d72b711610064578063eb8d72b7146105b3578063ed629c5c146105d3578063f2fde38b146105ed578063f5ecbdbc1461060d57600080fd5b8063c44618341461054a578063cbed8b9c14610560578063d1deba1f14610580578063df2a5b3b1461059357600080fd5b80639f38369a116100d15780639f38369a146104b6578063a6c3d165146104d6578063b353aaa7146104f6578063baf3292d1461052a57600080fd5b80637533d788146103ff5780638cfd8f5c1461042c5780638da5cb5b14610464578063950c8a741461049657600080fd5b80633f1f4fa41161017a5780635a749876116101495780635a749876146103465780635b8c41e61461037b57806366ad5c8a146103ca578063715018a6146103ea57600080fd5b80633f1f4fa4146102ae57806342d65a8d146102e957806344770515146103095780634c42899a1461031e57600080fd5b806310ddb137116101b657806310ddb1371461023e578063126928c41461025e5780633ccfd60b146102715780633d8b38f61461027957600080fd5b80621d3567146101dc57806307e0db17146101fe5780630df374831461021e575b600080fd5b3480156101e857600080fd5b506101fc6101f7366004611bc8565b61062d565b005b34801561020a57600080fd5b506101fc610219366004611c5b565b61085e565b34801561022a57600080fd5b506101fc610239366004611c76565b6108e7565b34801561024a57600080fd5b506101fc610259366004611c5b565b610906565b6101fc61026c366004611d63565b61095e565b6101fc6109da565b34801561028557600080fd5b50610299610294366004611dd6565b610a3a565b60405190151581526020015b60405180910390f35b3480156102ba57600080fd5b506102db6102c9366004611c5b565b60036020526000908152604090205481565b6040519081526020016102a5565b3480156102f557600080fd5b506101fc610304366004611dd6565b610b06565b34801561031557600080fd5b506102db600081565b34801561032a57600080fd5b50610333600081565b60405161ffff90911681526020016102a5565b34801561035257600080fd5b50610366610361366004611d63565b610b8c565b604080519283526020830191909152016102a5565b34801561038757600080fd5b506102db610396366004611e28565b6005602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156103d657600080fd5b506101fc6103e5366004611bc8565b610c30565b3480156103f657600080fd5b506101fc610d0c565b34801561040b57600080fd5b5061041f61041a366004611c5b565b610d20565b6040516102a59190611ed5565b34801561043857600080fd5b506102db610447366004611ee8565b600260209081526000928352604080842090915290825290205481565b34801561047057600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016102a5565b3480156104a257600080fd5b5060045461047e906001600160a01b031681565b3480156104c257600080fd5b5061041f6104d1366004611c5b565b610dba565b3480156104e257600080fd5b506101fc6104f1366004611dd6565b610ed0565b34801561050257600080fd5b5061047e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561053657600080fd5b506101fc610545366004611f32565b610f59565b34801561055657600080fd5b506102db61271081565b34801561056c57600080fd5b506101fc61057b366004611f4d565b610fb5565b6101fc61058e366004611bc8565b61104a565b34801561059f57600080fd5b506101fc6105ae366004611fbb565b611260565b3480156105bf57600080fd5b506101fc6105ce366004611dd6565b611312565b3480156105df57600080fd5b506006546102999060ff1681565b3480156105f957600080fd5b506101fc610608366004611f32565b61136c565b34801561061957600080fd5b5061041f610628366004611ff7565b6113a7565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146106aa5760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff8616600090815260016020526040812080546106c890612042565b80601f01602080910402602001604051908101604052809291908181526020018280546106f490612042565b80156107415780601f1061071657610100808354040283529160200191610741565b820191906000526020600020905b81548152906001019060200180831161072457829003601f168201915b5050505050905080518686905014801561075c575060008151115b801561078457508051602082012060405161077a908890889061207c565b6040518091039020145b6107df5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084016106a1565b6108558787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061145892505050565b50505050505050565b6108666114d1565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b1580156108cc57600080fd5b505af11580156108e0573d6000803e3d6000fd5b5050505050565b6108ef6114d1565b61ffff909116600090815260036020526040902055565b61090e6114d1565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb137906024016108b2565b61096c8360008360006114fe565b6000610979848484610b8c565b509050803410156109c55760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da0819d85cc81d1bc81cd95b9960521b60448201526064016106a1565b6109d484846000808686611578565b50505050565b6109e26114d1565b604051600090339047908381818185875af1925050503d8060008114610a24576040519150601f19603f3d011682016040523d82523d6000602084013e610a29565b606091505b5050905080610a3757600080fd5b50565b61ffff831660009081526001602052604081208054829190610a5b90612042565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8790612042565b8015610ad45780601f10610aa957610100808354040283529160200191610ad4565b820191906000526020600020905b815481529060010190602001808311610ab757829003601f168201915b505050505090508383604051610aeb92919061207c565b60405180910390208180519060200120149150509392505050565b610b0e6114d1565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d90610b5e908690869086906004016120b5565b600060405180830381600087803b158015610b7857600080fd5b505af1158015610855573d6000803e3d6000fd5b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a7bb108630876000886040518663ffffffff1660e01b8152600401610be49594939291906120d3565b6040805180830381865afa158015610c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c249190612127565b91509150935093915050565b333014610c8e5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b60648201526084016106a1565b610d048686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8901819004810282018101909252878152899350915087908790819084018382808284376000920191909152506109d492505050565b505050505050565b610d146114d1565b610d1e600061171d565b565b60016020526000908152604090208054610d3990612042565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6590612042565b8015610db25780601f10610d8757610100808354040283529160200191610db2565b820191906000526020600020905b815481529060010190602001808311610d9557829003601f168201915b505050505081565b61ffff8116600090815260016020526040812080546060929190610ddd90612042565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0990612042565b8015610e565780601f10610e2b57610100808354040283529160200191610e56565b820191906000526020600020905b815481529060010190602001808311610e3957829003601f168201915b505050505090508051600003610eae5760405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f726400000060448201526064016106a1565b610ec9600060148351610ec19190612161565b83919061176d565b9392505050565b610ed86114d1565b818130604051602001610eed9392919061217a565b60408051601f1981840301815291815261ffff8516600090815260016020522090610f1890826121e6565b507f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce838383604051610f4c939291906120b5565b60405180910390a1505050565b610f616114d1565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b9060200160405180910390a150565b610fbd6114d1565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c9061101190889088908890889088906004016122a5565b600060405180830381600087803b15801561102b57600080fd5b505af115801561103f573d6000803e3d6000fd5b505050505050505050565b61ffff8616600090815260056020526040808220905161106d908890889061207c565b90815260408051602092819003830190206001600160401b038716600090815292529020549050806110ed5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b60648201526084016106a1565b8083836040516110fe92919061207c565b60405180910390201461115d5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b60648201526084016106a1565b61ffff87166000908152600560205260408082209051611180908990899061207c565b90815260408051602092819003830181206001600160401b038916600090815290845282902093909355601f88018290048202830182019052868252611218918991899089908190840183828082843760009201919091525050604080516020601f8a018190048102820181019092528881528a9350915088908890819084018382808284376000920191909152506109d492505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e5878787878560405161124f9594939291906122de565b60405180910390a150505050505050565b6112686114d1565b600081116112b05760405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b60448201526064016106a1565b61ffff83811660008181526002602090815260408083209487168084529482529182902085905581519283528201929092529081018290527f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac090606001610f4c565b61131a6114d1565b61ffff83166000908152600160205260409020611338828483612319565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051610f4c939291906120b5565b6113746114d1565b6001600160a01b03811661139e57604051631e4fbdf760e01b8152600060048201526024016106a1565b610a378161171d565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc90608401600060405180830381865afa158015611427573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261144f91908101906123d8565b95945050505050565b6000806114bb5a60966366ad5c8a60e01b898989896040516024016114809493929190612445565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091523092919061187a565b9150915081610d0457610d048686868685611904565b6000546001600160a01b03163314610d1e5760405163118cdaa760e01b81523360048201526024016106a1565b60065460ff161561151a57611515848484846119a1565b6109d4565b8151156109d45760405162461bcd60e51b815260206004820152602660248201527f4f4654436f72653a205f61646170746572506172616d73206d7573742062652060448201526532b6b83a3c9760d11b60648201526084016106a1565b61ffff86166000908152600160205260408120805461159690612042565b80601f01602080910402602001604051908101604052809291908181526020018280546115c290612042565b801561160f5780601f106115e45761010080835404028352916020019161160f565b820191906000526020600020905b8154815290600101906020018083116115f257829003601f168201915b5050505050905080516000036116805760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b60648201526084016106a1565b61168b878751611a80565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c58031009084906116e2908b9086908c908c908c908c90600401612483565b6000604051808303818588803b1580156116fb57600080fd5b505af115801561170f573d6000803e3d6000fd5b505050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608161177b81601f6124ea565b10156117ba5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016106a1565b6117c482846124ea565b845110156118085760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016106a1565b6060821580156118275760405191506000825260208201604052611871565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015611860578051835260209283019201611848565b5050858452601f01601f1916604052505b50949350505050565b6000606060008060008661ffff166001600160401b0381111561189f5761189f611ca0565b6040519080825280601f01601f1916602001820160405280156118c9576020820181803683370190505b50905060008087516020890160008d8df191503d9250868311156118eb578692505b828152826000602083013e909890975095505050505050565b8180519060200120600560008761ffff1661ffff1681526020019081526020016000208560405161193591906124fd565b9081526040805191829003602090810183206001600160401b0388166000908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c906119929087908790879087908790612519565b60405180910390a15050505050565b60006119ac83611af6565b61ffff8087166000908152600260209081526040808320938916835292905290812054919250906119de9084906124ea565b905060008111611a305760405162461bcd60e51b815260206004820152601a60248201527f4c7a4170703a206d696e4761734c696d6974206e6f742073657400000000000060448201526064016106a1565b80821015610d045760405162461bcd60e51b815260206004820152601b60248201527f4c7a4170703a20676173206c696d697420697320746f6f206c6f77000000000060448201526064016106a1565b61ffff821660009081526003602052604081205490819003611aa157506127105b80821115611af15760405162461bcd60e51b815260206004820181905260248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c6172676560448201526064016106a1565b505050565b6000602282511015611b4a5760405162461bcd60e51b815260206004820152601c60248201527f4c7a4170703a20696e76616c69642061646170746572506172616d730000000060448201526064016106a1565b506022015190565b803561ffff81168114611b6457600080fd5b919050565b60008083601f840112611b7b57600080fd5b5081356001600160401b03811115611b9257600080fd5b602083019150836020828501011115611baa57600080fd5b9250929050565b80356001600160401b0381168114611b6457600080fd5b60008060008060008060808789031215611be157600080fd5b611bea87611b52565b955060208701356001600160401b0380821115611c0657600080fd5b611c128a838b01611b69565b9097509550859150611c2660408a01611bb1565b94506060890135915080821115611c3c57600080fd5b50611c4989828a01611b69565b979a9699509497509295939492505050565b600060208284031215611c6d57600080fd5b610ec982611b52565b60008060408385031215611c8957600080fd5b611c9283611b52565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611cde57611cde611ca0565b604052919050565b60006001600160401b03821115611cff57611cff611ca0565b50601f01601f191660200190565b600082601f830112611d1e57600080fd5b8135611d31611d2c82611ce6565b611cb6565b818152846020838601011115611d4657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600060608486031215611d7857600080fd5b611d8184611b52565b925060208401356001600160401b0380821115611d9d57600080fd5b611da987838801611d0d565b93506040860135915080821115611dbf57600080fd5b50611dcc86828701611d0d565b9150509250925092565b600080600060408486031215611deb57600080fd5b611df484611b52565b925060208401356001600160401b03811115611e0f57600080fd5b611e1b86828701611b69565b9497909650939450505050565b600080600060608486031215611e3d57600080fd5b611e4684611b52565b925060208401356001600160401b03811115611e6157600080fd5b611e6d86828701611d0d565b925050611e7c60408501611bb1565b90509250925092565b60005b83811015611ea0578181015183820152602001611e88565b50506000910152565b60008151808452611ec1816020860160208601611e85565b601f01601f19169290920160200192915050565b602081526000610ec96020830184611ea9565b60008060408385031215611efb57600080fd5b611f0483611b52565b9150611f1260208401611b52565b90509250929050565b80356001600160a01b0381168114611b6457600080fd5b600060208284031215611f4457600080fd5b610ec982611f1b565b600080600080600060808688031215611f6557600080fd5b611f6e86611b52565b9450611f7c60208701611b52565b93506040860135925060608601356001600160401b03811115611f9e57600080fd5b611faa88828901611b69565b969995985093965092949392505050565b600080600060608486031215611fd057600080fd5b611fd984611b52565b9250611fe760208501611b52565b9150604084013590509250925092565b6000806000806080858703121561200d57600080fd5b61201685611b52565b935061202460208601611b52565b925061203260408601611f1b565b9396929550929360600135925050565b600181811c9082168061205657607f821691505b60208210810361207657634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff8416815260406020820152600061144f60408301848661208c565b61ffff861681526001600160a01b038516602082015260a06040820181905260009061210190830186611ea9565b8415156060840152828103608084015261211b8185611ea9565b98975050505050505050565b6000806040838503121561213a57600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b818103818111156121745761217461214b565b92915050565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b601f821115611af157600081815260208120601f850160051c810160208610156121c75750805b601f850160051c820191505b81811015610d04578281556001016121d3565b81516001600160401b038111156121ff576121ff611ca0565b6122138161220d8454612042565b846121a0565b602080601f83116001811461224857600084156122305750858301515b600019600386901b1c1916600185901b178555610d04565b600085815260208120601f198616915b8281101561227757888601518255948401946001909101908401612258565b50858210156122955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600061ffff8088168352808716602084015250846040830152608060608301526122d360808301848661208c565b979650505050505050565b61ffff861681526080602082015260006122fc60808301868861208c565b6001600160401b0394909416604083015250606001529392505050565b6001600160401b0383111561233057612330611ca0565b6123448361233e8354612042565b836121a0565b6000601f84116001811461237857600085156123605750838201355b600019600387901b1c1916600186901b1783556108e0565b600083815260209020601f19861690835b828110156123a95786850135825560209485019460019092019101612389565b50868210156123c65760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000602082840312156123ea57600080fd5b81516001600160401b0381111561240057600080fd5b8201601f8101841361241157600080fd5b805161241f611d2c82611ce6565b81815285602083850101111561243457600080fd5b61144f826020830160208601611e85565b61ffff851681526080602082015260006124626080830186611ea9565b6001600160401b038516604084015282810360608401526122d38185611ea9565b61ffff8716815260c0602082015260006124a060c0830188611ea9565b82810360408401526124b28188611ea9565b6001600160a01b0387811660608601528616608085015283810360a085015290506124dd8185611ea9565b9998505050505050505050565b808201808211156121745761217461214b565b6000825161250f818460208701611e85565b9190910192915050565b61ffff8616815260a06020820152600061253660a0830187611ea9565b6001600160401b038616604084015282810360608401526125578186611ea9565b9050828103608084015261211b8185611ea956fea2646970667358221220c15ae3e07c9076d2ead89c0944b611aa1539b4912f2dedee208baff931f051e564736f6c634300081300330000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e4

Deployed Bytecode

0x6080604052600436106101d75760003560e01c80637533d78811610102578063c446183411610095578063eb8d72b711610064578063eb8d72b7146105b3578063ed629c5c146105d3578063f2fde38b146105ed578063f5ecbdbc1461060d57600080fd5b8063c44618341461054a578063cbed8b9c14610560578063d1deba1f14610580578063df2a5b3b1461059357600080fd5b80639f38369a116100d15780639f38369a146104b6578063a6c3d165146104d6578063b353aaa7146104f6578063baf3292d1461052a57600080fd5b80637533d788146103ff5780638cfd8f5c1461042c5780638da5cb5b14610464578063950c8a741461049657600080fd5b80633f1f4fa41161017a5780635a749876116101495780635a749876146103465780635b8c41e61461037b57806366ad5c8a146103ca578063715018a6146103ea57600080fd5b80633f1f4fa4146102ae57806342d65a8d146102e957806344770515146103095780634c42899a1461031e57600080fd5b806310ddb137116101b657806310ddb1371461023e578063126928c41461025e5780633ccfd60b146102715780633d8b38f61461027957600080fd5b80621d3567146101dc57806307e0db17146101fe5780630df374831461021e575b600080fd5b3480156101e857600080fd5b506101fc6101f7366004611bc8565b61062d565b005b34801561020a57600080fd5b506101fc610219366004611c5b565b61085e565b34801561022a57600080fd5b506101fc610239366004611c76565b6108e7565b34801561024a57600080fd5b506101fc610259366004611c5b565b610906565b6101fc61026c366004611d63565b61095e565b6101fc6109da565b34801561028557600080fd5b50610299610294366004611dd6565b610a3a565b60405190151581526020015b60405180910390f35b3480156102ba57600080fd5b506102db6102c9366004611c5b565b60036020526000908152604090205481565b6040519081526020016102a5565b3480156102f557600080fd5b506101fc610304366004611dd6565b610b06565b34801561031557600080fd5b506102db600081565b34801561032a57600080fd5b50610333600081565b60405161ffff90911681526020016102a5565b34801561035257600080fd5b50610366610361366004611d63565b610b8c565b604080519283526020830191909152016102a5565b34801561038757600080fd5b506102db610396366004611e28565b6005602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156103d657600080fd5b506101fc6103e5366004611bc8565b610c30565b3480156103f657600080fd5b506101fc610d0c565b34801561040b57600080fd5b5061041f61041a366004611c5b565b610d20565b6040516102a59190611ed5565b34801561043857600080fd5b506102db610447366004611ee8565b600260209081526000928352604080842090915290825290205481565b34801561047057600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016102a5565b3480156104a257600080fd5b5060045461047e906001600160a01b031681565b3480156104c257600080fd5b5061041f6104d1366004611c5b565b610dba565b3480156104e257600080fd5b506101fc6104f1366004611dd6565b610ed0565b34801561050257600080fd5b5061047e7f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e481565b34801561053657600080fd5b506101fc610545366004611f32565b610f59565b34801561055657600080fd5b506102db61271081565b34801561056c57600080fd5b506101fc61057b366004611f4d565b610fb5565b6101fc61058e366004611bc8565b61104a565b34801561059f57600080fd5b506101fc6105ae366004611fbb565b611260565b3480156105bf57600080fd5b506101fc6105ce366004611dd6565b611312565b3480156105df57600080fd5b506006546102999060ff1681565b3480156105f957600080fd5b506101fc610608366004611f32565b61136c565b34801561061957600080fd5b5061041f610628366004611ff7565b6113a7565b337f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e46001600160a01b0316146106aa5760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff8616600090815260016020526040812080546106c890612042565b80601f01602080910402602001604051908101604052809291908181526020018280546106f490612042565b80156107415780601f1061071657610100808354040283529160200191610741565b820191906000526020600020905b81548152906001019060200180831161072457829003601f168201915b5050505050905080518686905014801561075c575060008151115b801561078457508051602082012060405161077a908890889061207c565b6040518091039020145b6107df5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084016106a1565b6108558787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061145892505050565b50505050505050565b6108666114d1565b6040516307e0db1760e01b815261ffff821660048201527f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e46001600160a01b0316906307e0db17906024015b600060405180830381600087803b1580156108cc57600080fd5b505af11580156108e0573d6000803e3d6000fd5b5050505050565b6108ef6114d1565b61ffff909116600090815260036020526040902055565b61090e6114d1565b6040516310ddb13760e01b815261ffff821660048201527f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e46001600160a01b0316906310ddb137906024016108b2565b61096c8360008360006114fe565b6000610979848484610b8c565b509050803410156109c55760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da0819d85cc81d1bc81cd95b9960521b60448201526064016106a1565b6109d484846000808686611578565b50505050565b6109e26114d1565b604051600090339047908381818185875af1925050503d8060008114610a24576040519150601f19603f3d011682016040523d82523d6000602084013e610a29565b606091505b5050905080610a3757600080fd5b50565b61ffff831660009081526001602052604081208054829190610a5b90612042565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8790612042565b8015610ad45780601f10610aa957610100808354040283529160200191610ad4565b820191906000526020600020905b815481529060010190602001808311610ab757829003601f168201915b505050505090508383604051610aeb92919061207c565b60405180910390208180519060200120149150509392505050565b610b0e6114d1565b6040516342d65a8d60e01b81526001600160a01b037f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e416906342d65a8d90610b5e908690869086906004016120b5565b600060405180830381600087803b158015610b7857600080fd5b505af1158015610855573d6000803e3d6000fd5b6000807f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e46001600160a01b03166340a7bb108630876000886040518663ffffffff1660e01b8152600401610be49594939291906120d3565b6040805180830381865afa158015610c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c249190612127565b91509150935093915050565b333014610c8e5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b60648201526084016106a1565b610d048686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8901819004810282018101909252878152899350915087908790819084018382808284376000920191909152506109d492505050565b505050505050565b610d146114d1565b610d1e600061171d565b565b60016020526000908152604090208054610d3990612042565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6590612042565b8015610db25780601f10610d8757610100808354040283529160200191610db2565b820191906000526020600020905b815481529060010190602001808311610d9557829003601f168201915b505050505081565b61ffff8116600090815260016020526040812080546060929190610ddd90612042565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0990612042565b8015610e565780601f10610e2b57610100808354040283529160200191610e56565b820191906000526020600020905b815481529060010190602001808311610e3957829003601f168201915b505050505090508051600003610eae5760405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f726400000060448201526064016106a1565b610ec9600060148351610ec19190612161565b83919061176d565b9392505050565b610ed86114d1565b818130604051602001610eed9392919061217a565b60408051601f1981840301815291815261ffff8516600090815260016020522090610f1890826121e6565b507f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce838383604051610f4c939291906120b5565b60405180910390a1505050565b610f616114d1565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b9060200160405180910390a150565b610fbd6114d1565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e4169063cbed8b9c9061101190889088908890889088906004016122a5565b600060405180830381600087803b15801561102b57600080fd5b505af115801561103f573d6000803e3d6000fd5b505050505050505050565b61ffff8616600090815260056020526040808220905161106d908890889061207c565b90815260408051602092819003830190206001600160401b038716600090815292529020549050806110ed5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b60648201526084016106a1565b8083836040516110fe92919061207c565b60405180910390201461115d5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b60648201526084016106a1565b61ffff87166000908152600560205260408082209051611180908990899061207c565b90815260408051602092819003830181206001600160401b038916600090815290845282902093909355601f88018290048202830182019052868252611218918991899089908190840183828082843760009201919091525050604080516020601f8a018190048102820181019092528881528a9350915088908890819084018382808284376000920191909152506109d492505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e5878787878560405161124f9594939291906122de565b60405180910390a150505050505050565b6112686114d1565b600081116112b05760405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b60448201526064016106a1565b61ffff83811660008181526002602090815260408083209487168084529482529182902085905581519283528201929092529081018290527f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac090606001610f4c565b61131a6114d1565b61ffff83166000908152600160205260409020611338828483612319565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051610f4c939291906120b5565b6113746114d1565b6001600160a01b03811661139e57604051631e4fbdf760e01b8152600060048201526024016106a1565b610a378161171d565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e46001600160a01b03169063f5ecbdbc90608401600060405180830381865afa158015611427573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261144f91908101906123d8565b95945050505050565b6000806114bb5a60966366ad5c8a60e01b898989896040516024016114809493929190612445565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091523092919061187a565b9150915081610d0457610d048686868685611904565b6000546001600160a01b03163314610d1e5760405163118cdaa760e01b81523360048201526024016106a1565b60065460ff161561151a57611515848484846119a1565b6109d4565b8151156109d45760405162461bcd60e51b815260206004820152602660248201527f4f4654436f72653a205f61646170746572506172616d73206d7573742062652060448201526532b6b83a3c9760d11b60648201526084016106a1565b61ffff86166000908152600160205260408120805461159690612042565b80601f01602080910402602001604051908101604052809291908181526020018280546115c290612042565b801561160f5780601f106115e45761010080835404028352916020019161160f565b820191906000526020600020905b8154815290600101906020018083116115f257829003601f168201915b5050505050905080516000036116805760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b60648201526084016106a1565b61168b878751611a80565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e4169063c58031009084906116e2908b9086908c908c908c908c90600401612483565b6000604051808303818588803b1580156116fb57600080fd5b505af115801561170f573d6000803e3d6000fd5b505050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608161177b81601f6124ea565b10156117ba5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016106a1565b6117c482846124ea565b845110156118085760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016106a1565b6060821580156118275760405191506000825260208201604052611871565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015611860578051835260209283019201611848565b5050858452601f01601f1916604052505b50949350505050565b6000606060008060008661ffff166001600160401b0381111561189f5761189f611ca0565b6040519080825280601f01601f1916602001820160405280156118c9576020820181803683370190505b50905060008087516020890160008d8df191503d9250868311156118eb578692505b828152826000602083013e909890975095505050505050565b8180519060200120600560008761ffff1661ffff1681526020019081526020016000208560405161193591906124fd565b9081526040805191829003602090810183206001600160401b0388166000908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c906119929087908790879087908790612519565b60405180910390a15050505050565b60006119ac83611af6565b61ffff8087166000908152600260209081526040808320938916835292905290812054919250906119de9084906124ea565b905060008111611a305760405162461bcd60e51b815260206004820152601a60248201527f4c7a4170703a206d696e4761734c696d6974206e6f742073657400000000000060448201526064016106a1565b80821015610d045760405162461bcd60e51b815260206004820152601b60248201527f4c7a4170703a20676173206c696d697420697320746f6f206c6f77000000000060448201526064016106a1565b61ffff821660009081526003602052604081205490819003611aa157506127105b80821115611af15760405162461bcd60e51b815260206004820181905260248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c6172676560448201526064016106a1565b505050565b6000602282511015611b4a5760405162461bcd60e51b815260206004820152601c60248201527f4c7a4170703a20696e76616c69642061646170746572506172616d730000000060448201526064016106a1565b506022015190565b803561ffff81168114611b6457600080fd5b919050565b60008083601f840112611b7b57600080fd5b5081356001600160401b03811115611b9257600080fd5b602083019150836020828501011115611baa57600080fd5b9250929050565b80356001600160401b0381168114611b6457600080fd5b60008060008060008060808789031215611be157600080fd5b611bea87611b52565b955060208701356001600160401b0380821115611c0657600080fd5b611c128a838b01611b69565b9097509550859150611c2660408a01611bb1565b94506060890135915080821115611c3c57600080fd5b50611c4989828a01611b69565b979a9699509497509295939492505050565b600060208284031215611c6d57600080fd5b610ec982611b52565b60008060408385031215611c8957600080fd5b611c9283611b52565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611cde57611cde611ca0565b604052919050565b60006001600160401b03821115611cff57611cff611ca0565b50601f01601f191660200190565b600082601f830112611d1e57600080fd5b8135611d31611d2c82611ce6565b611cb6565b818152846020838601011115611d4657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600060608486031215611d7857600080fd5b611d8184611b52565b925060208401356001600160401b0380821115611d9d57600080fd5b611da987838801611d0d565b93506040860135915080821115611dbf57600080fd5b50611dcc86828701611d0d565b9150509250925092565b600080600060408486031215611deb57600080fd5b611df484611b52565b925060208401356001600160401b03811115611e0f57600080fd5b611e1b86828701611b69565b9497909650939450505050565b600080600060608486031215611e3d57600080fd5b611e4684611b52565b925060208401356001600160401b03811115611e6157600080fd5b611e6d86828701611d0d565b925050611e7c60408501611bb1565b90509250925092565b60005b83811015611ea0578181015183820152602001611e88565b50506000910152565b60008151808452611ec1816020860160208601611e85565b601f01601f19169290920160200192915050565b602081526000610ec96020830184611ea9565b60008060408385031215611efb57600080fd5b611f0483611b52565b9150611f1260208401611b52565b90509250929050565b80356001600160a01b0381168114611b6457600080fd5b600060208284031215611f4457600080fd5b610ec982611f1b565b600080600080600060808688031215611f6557600080fd5b611f6e86611b52565b9450611f7c60208701611b52565b93506040860135925060608601356001600160401b03811115611f9e57600080fd5b611faa88828901611b69565b969995985093965092949392505050565b600080600060608486031215611fd057600080fd5b611fd984611b52565b9250611fe760208501611b52565b9150604084013590509250925092565b6000806000806080858703121561200d57600080fd5b61201685611b52565b935061202460208601611b52565b925061203260408601611f1b565b9396929550929360600135925050565b600181811c9082168061205657607f821691505b60208210810361207657634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff8416815260406020820152600061144f60408301848661208c565b61ffff861681526001600160a01b038516602082015260a06040820181905260009061210190830186611ea9565b8415156060840152828103608084015261211b8185611ea9565b98975050505050505050565b6000806040838503121561213a57600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b818103818111156121745761217461214b565b92915050565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b601f821115611af157600081815260208120601f850160051c810160208610156121c75750805b601f850160051c820191505b81811015610d04578281556001016121d3565b81516001600160401b038111156121ff576121ff611ca0565b6122138161220d8454612042565b846121a0565b602080601f83116001811461224857600084156122305750858301515b600019600386901b1c1916600185901b178555610d04565b600085815260208120601f198616915b8281101561227757888601518255948401946001909101908401612258565b50858210156122955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600061ffff8088168352808716602084015250846040830152608060608301526122d360808301848661208c565b979650505050505050565b61ffff861681526080602082015260006122fc60808301868861208c565b6001600160401b0394909416604083015250606001529392505050565b6001600160401b0383111561233057612330611ca0565b6123448361233e8354612042565b836121a0565b6000601f84116001811461237857600085156123605750838201355b600019600387901b1c1916600186901b1783556108e0565b600083815260209020601f19861690835b828110156123a95786850135825560209485019460019092019101612389565b50868210156123c65760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000602082840312156123ea57600080fd5b81516001600160401b0381111561240057600080fd5b8201601f8101841361241157600080fd5b805161241f611d2c82611ce6565b81815285602083850101111561243457600080fd5b61144f826020830160208601611e85565b61ffff851681526080602082015260006124626080830186611ea9565b6001600160401b038516604084015282810360608401526122d38185611ea9565b61ffff8716815260c0602082015260006124a060c0830188611ea9565b82810360408401526124b28188611ea9565b6001600160a01b0387811660608601528616608085015283810360a085015290506124dd8185611ea9565b9998505050505050505050565b808201808211156121745761217461214b565b6000825161250f818460208701611e85565b9190910192915050565b61ffff8616815260a06020820152600061253660a0830187611ea9565b6001600160401b038616604084015282810360608401526125578186611ea9565b9050828103608084015261211b8185611ea956fea2646970667358221220c15ae3e07c9076d2ead89c0944b611aa1539b4912f2dedee208baff931f051e564736f6c63430008130033

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

0000000000000000000000009740ff91f1985d8d2b71494ae1a2f723bb3ed9e4

-----Decoded View---------------
Arg [0] : _lzEndpoint (address): 0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4

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


Deployed Bytecode Sourcemap

93:1751:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1203:753:6;;;;;;;;;;-1:-1:-1;1203:753:6;;;;;:::i;:::-;;:::i;:::-;;4448:121;;;;;;;;;;-1:-1:-1;4448:121:6;;;;;:::i;:::-;;:::i;6331:140::-;;;;;;;;;;-1:-1:-1;6331:140:6;;;;;:::i;:::-;;:::i;4575:127::-;;;;;;;;;;-1:-1:-1;4575:127:6;;;;;:::i;:::-;;:::i;834:464:7:-;;;;;;:::i;:::-;;:::i;1677:165::-;;;:::i;6566:247:6:-;;;;;;;;;;-1:-1:-1;6566:247:6;;;;;:::i;:::-;;:::i;:::-;;;4356:14:10;;4349:22;4331:41;;4319:2;4304:18;6566:247:6;;;;;;;;737:53;;;;;;;;;;-1:-1:-1;737:53:6;;;;;:::i;:::-;;;;;;;;;;;;;;;;;4529:25:10;;;4517:2;4502:18;737:53:6;4383:177:10;4708:176:6;;;;;;;;;;-1:-1:-1;4708:176:6;;;;;:::i;:::-;;:::i;172:37:7:-;;;;;;;;;;;;208:1;172:37;;236:34;;;;;;;;;;;;269:1;236:34;;;;;4739:6:10;4727:19;;;4709:38;;4697:2;4682:18;236:34:7;4565:188:10;396:261:7;;;;;;;;;;-1:-1:-1;396:261:7;;;;;:::i;:::-;;:::i;:::-;;;;4932:25:10;;;4988:2;4973:18;;4966:34;;;;4905:18;396:261:7;4758:248:10;611:85:8;;;;;;;;;;-1:-1:-1;611:85:8;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1814:342;;;;;;;;;;-1:-1:-1;1814:342:8;;;;;:::i;:::-;;:::i;2182:101:9:-;;;;;;;;;;;;;:::i;609:51:6:-;;;;;;;;;;-1:-1:-1;609:51:6;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;666:65::-;;;;;;;;;;-1:-1:-1;666:65:6;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;1527:85:9;;;;;;;;;;-1:-1:-1;1573:7:9;1599:6;-1:-1:-1;;;;;1599:6:9;1527:85;;;-1:-1:-1;;;;;6839:32:10;;;6821:51;;6809:2;6794:18;1527:85:9;6675:203:10;796:23:6;;;;;;;;;;-1:-1:-1;796:23:6;;;;-1:-1:-1;;;;;796:23:6;;;5521:326;;;;;;;;;;-1:-1:-1;5521:326:6;;;;;:::i;:::-;;:::i;5237:278::-;;;;;;;;;;-1:-1:-1;5237:278:6;;;;;:::i;:::-;;:::i;557:46::-;;;;;;;;;;;;;;;5853:133;;;;;;;;;;-1:-1:-1;5853:133:6;;;;;:::i;:::-;;:::i;495:55::-;;;;;;;;;;;;545:5;495:55;;4240:202;;;;;;;;;;-1:-1:-1;4240:202:6;;;;;:::i;:::-;;:::i;2337:757:8:-;;;;;;:::i;:::-;;:::i;5992:280:6:-;;;;;;;;;;-1:-1:-1;5992:280:6;;;;;:::i;:::-;;:::i;5027:204::-;;;;;;;;;;-1:-1:-1;5027:204:6;;;;;:::i;:::-;;:::i;277:41:7:-;;;;;;;;;;-1:-1:-1;277:41:7;;;;;;;;2432:215:9;;;;;;;;;;-1:-1:-1;2432:215:9;;;;;:::i;:::-;;:::i;3972:209:6:-;;;;;;;;;;-1:-1:-1;3972:209:6;;;;;:::i;:::-;;:::i;1203:753::-;720:10:1;1441::6;-1:-1:-1;;;;;1417:35:6;;1409:78;;;;-1:-1:-1;;;1409:78:6;;9048:2:10;1409:78:6;;;9030:21:10;9087:2;9067:18;;;9060:30;9126:32;9106:18;;;9099:60;9176:18;;1409:78:6;;;;;;;;;1527:32;;;1498:26;1527:32;;;:19;:32;;;;;1498:61;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1731:13;:20;1709:11;;:18;;:42;:70;;;;;1778:1;1755:13;:20;:24;1709:70;:124;;;;-1:-1:-1;1809:24:6;;;;;;1783:22;;;;1793:11;;;;1783:22;:::i;:::-;;;;;;;;:50;1709:124;1701:175;;;;-1:-1:-1;;;1701:175:6;;10068:2:10;1701:175:6;;;10050:21:10;10107:2;10087:18;;;10080:30;10146:34;10126:18;;;10119:62;-1:-1:-1;;;10197:18:10;;;10190:36;10243:19;;1701:175:6;9866:402:10;1701:175:6;1887:62;1906:11;1919;;1887:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1887:62:6;;;;;;;;;;;;;;;;;;;;;;1932:6;;-1:-1:-1;1887:62:6;-1:-1:-1;1940:8:6;;;;;;1887:62;;1940:8;;;;1887:62;;;;;;;;;-1:-1:-1;1887:18:6;;-1:-1:-1;;;1887:62:6:i;:::-;1334:622;1203:753;;;;;;:::o;4448:121::-;1420:13:9;:11;:13::i;:::-;4527:35:6::1;::::0;-1:-1:-1;;;4527:35:6;;4739:6:10;4727:19;;4527:35:6::1;::::0;::::1;4709:38:10::0;4527:10:6::1;-1:-1:-1::0;;;;;4527:25:6::1;::::0;::::1;::::0;4682:18:10;;4527:35:6::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;4448:121:::0;:::o;6331:140::-;1420:13:9;:11;:13::i;:::-;6421:35:6::1;::::0;;::::1;;::::0;;;:22:::1;:35;::::0;;;;:43;6331:140::o;4575:127::-;1420:13:9;:11;:13::i;:::-;4657:38:6::1;::::0;-1:-1:-1;;;4657:38:6;;4739:6:10;4727:19;;4657:38:6::1;::::0;::::1;4709::10::0;4657:10:6::1;-1:-1:-1::0;;;;;4657:28:6::1;::::0;::::1;::::0;4682:18:10;;4657:38:6::1;4565:188:10::0;834:464:7;960:71;980:11;269:1;1002:14;208:1;960:19;:71::i;:::-;1043:14;1062:56;1078:11;1091:10;1103:14;1062:15;:56::i;:::-;1042:76;;;1149:9;1136;:22;;1128:57;;;;-1:-1:-1;;;1128:57:7;;10475:2:10;1128:57:7;;;10457:21:10;10514:2;10494:18;;;10487:30;-1:-1:-1;;;10533:18:10;;;10526:52;10595:18;;1128:57:7;10273:346:10;1128:57:7;1204:87;1212:11;1225:10;1245:3;1259;1265:14;1281:9;1204:7;:87::i;:::-;950:348;834:464;;;:::o;1677:165::-;1420:13:9;:11;:13::i;:::-;1751:58:7::1;::::0;1733:12:::1;::::0;1759:10:::1;::::0;1783:21:::1;::::0;1733:12;1751:58;1733:12;1751:58;1783:21;1759:10;1751:58:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1732:77;;;1827:7;1819:16;;;::::0;::::1;;1722:120;1677:165::o:0;6566:247:6:-;6707:32;;;6662:4;6707:32;;;:19;:32;;;;;6678:61;;6662:4;;6707:32;6678:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6794:11;;6784:22;;;;;;;:::i;:::-;;;;;;;;6766:13;6756:24;;;;;;:50;6749:57;;;6566:247;;;;;:::o;4708:176::-;1420:13:9;:11;:13::i;:::-;4822:55:6::1;::::0;-1:-1:-1;;;4822:55:6;;-1:-1:-1;;;;;4822:10:6::1;:29;::::0;::::1;::::0;:55:::1;::::0;4852:11;;4865;;;;4822:55:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;396:261:7::0;521:14;537:11;567:10;-1:-1:-1;;;;;567:23:7;;591:11;612:4;619:7;628:5;635:14;567:83;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;560:90;;;;396:261;;;;;;:::o;1814:342:8:-;720:10:1;2026:4:8;2002:29;1994:80;;;;-1:-1:-1;;;1994:80:8;;12533:2:10;1994:80:8;;;12515:21:10;12572:2;12552:18;;;12545:30;12611:34;12591:18;;;12584:62;-1:-1:-1;;;12662:18:10;;;12655:36;12708:19;;1994:80:8;12331:402:10;1994:80:8;2084:65;2106:11;2119;;2084:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2084:65:8;;;;;;;;;;;;;;;;;;;;;;2132:6;;-1:-1:-1;2084:65:8;-1:-1:-1;2140:8:8;;;;;;2084:65;;2140:8;;;;2084:65;;;;;;;;;-1:-1:-1;2084:21:8;;-1:-1:-1;;;2084:65:8:i;:::-;1814:342;;;;;;:::o;2182:101:9:-;1420:13;:11;:13::i;:::-;2246:30:::1;2273:1;2246:18;:30::i;:::-;2182:101::o:0;609:51:6:-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5521:326::-;5644:35;;;5624:17;5644:35;;;:19;:35;;;;;5624:55;;5600:12;;5624:17;5644:35;5624:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5697:4;:11;5712:1;5697:16;5689:58;;;;-1:-1:-1;;;5689:58:6;;12940:2:10;5689:58:6;;;12922:21:10;12979:2;12959:18;;;12952:30;13018:31;12998:18;;;12991:59;13067:18;;5689:58:6;12738:353:10;5689:58:6;5764:31;5775:1;5792:2;5778:4;:11;:16;;;;:::i;:::-;5764:4;;:31;:10;:31::i;:::-;5757:38;5521:326;-1:-1:-1;;;5521:326:6:o;5237:278::-;1420:13:9;:11;:13::i;:::-;5408:14:6::1;;5432:4;5391:47;;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;5391:47:6;;::::1;::::0;;;;;;5353:35:::1;::::0;::::1;;::::0;;;:19:::1;5391:47;5353:35:::0;;;:85:::1;::::0;:35;:85:::1;:::i;:::-;;5453:55;5477:14;5493;;5453:55;;;;;;;;:::i;:::-;;;;;;;;5237:278:::0;;;:::o;5853:133::-;1420:13:9;:11;:13::i;:::-;5922:8:6::1;:20:::0;;-1:-1:-1;;;;;;5922:20:6::1;-1:-1:-1::0;;;;;5922:20:6;::::1;::::0;;::::1;::::0;;;5957:22:::1;::::0;6821:51:10;;;5957:22:6::1;::::0;6809:2:10;6794:18;5957:22:6::1;;;;;;;5853:133:::0;:::o;4240:202::-;1420:13:9;:11;:13::i;:::-;4373:62:6::1;::::0;-1:-1:-1;;;4373:62:6;;-1:-1:-1;;;;;4373:10:6::1;:20;::::0;::::1;::::0;:62:::1;::::0;4394:8;;4404;;4414:11;;4427:7;;;;4373:62:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;4240:202:::0;;;;;:::o;2337:757:8:-;2546:27;;;2524:19;2546:27;;;:14;:27;;;;;;:40;;;;2574:11;;;;2546:40;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2546:48:8;;;;;;;;;;;;-1:-1:-1;2546:48:8;2604:73;;;;-1:-1:-1;;;2604:73:8;;16629:2:10;2604:73:8;;;16611:21:10;16668:2;16648:18;;;16641:30;16707:34;16687:18;;;16680:62;-1:-1:-1;;;16758:18:10;;;16751:33;16801:19;;2604:73:8;16427:399:10;2604:73:8;2718:11;2705:8;;2695:19;;;;;;;:::i;:::-;;;;;;;;:34;2687:80;;;;-1:-1:-1;;;2687:80:8;;17033:2:10;2687:80:8;;;17015:21:10;17072:2;17052:18;;;17045:30;17111:34;17091:18;;;17084:62;-1:-1:-1;;;17162:18:10;;;17155:31;17203:19;;2687:80:8;16831:397:10;2687:80:8;2813:27;;;2872:1;2813:27;;;:14;:27;;;;;;:40;;;;2841:11;;;;2813:40;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2813:48:8;;;;;;;;;;;;:61;;;;2941:65;;;;;;;;;;;;;;;;;;;2963:11;;2976;;2941:65;;;;;;2976:11;2941:65;;2976:11;2941:65;;;;;;;;;-1:-1:-1;;2941:65:8;;;;;;;;;;;;;;;;;;;;;;2989:6;;-1:-1:-1;2941:65:8;-1:-1:-1;2997:8:8;;;;;;2941:65;;2997:8;;;;2941:65;;;;;;;;;-1:-1:-1;2941:21:8;;-1:-1:-1;;;2941:65:8:i;:::-;3021:66;3041:11;3054;;3067:6;3075:11;3021:66;;;;;;;;;;:::i;:::-;;;;;;;;2470:624;2337:757;;;;;;:::o;5992:280:6:-;1420:13:9;:11;:13::i;:::-;6115:1:6::1;6105:7;:11;6097:45;;;::::0;-1:-1:-1;;;6097:45:6;;17933:2:10;6097:45:6::1;::::0;::::1;17915:21:10::0;17972:2;17952:18;;;17945:30;-1:-1:-1;;;17991:18:10;;;17984:51;18052:18;;6097:45:6::1;17731:345:10::0;6097:45:6::1;6152:28;::::0;;::::1;;::::0;;;:15:::1;:28;::::0;;;;;;;:41;;::::1;::::0;;;;;;;;;;:51;;;6218:47;;18304:34:10;;;18354:18;;18347:43;;;;18406:18;;;18399:34;;;6218:47:6::1;::::0;18267:2:10;18252:18;6218:47:6::1;18081:358:10::0;5027:204:6;1420:13:9;:11;:13::i;:::-;5127:35:6::1;::::0;::::1;;::::0;;;:19:::1;:35;::::0;;;;:43:::1;5165:5:::0;;5127:35;:43:::1;:::i;:::-;;5185:39;5202:14;5218:5;;5185:39;;;;;;;;:::i;2432:215:9:-:0;1420:13;:11;:13::i;:::-;-1:-1:-1;;;;;2516:22:9;::::1;2512:91;;2561:31;::::0;-1:-1:-1;;;2561:31:9;;2589:1:::1;2561:31;::::0;::::1;6821:51:10::0;6794:18;;2561:31:9::1;6675:203:10::0;2512:91:9::1;2612:28;2631:8;2612:18;:28::i;3972:209:6:-:0;4106:68;;-1:-1:-1;;;4106:68:6;;19888:6:10;19921:15;;;4106:68:6;;;19903:34:10;19973:15;;19953:18;;;19946:43;4155:4:6;20005:18:10;;;19998:60;20074:18;;;20067:34;;;4075:12:6;;4106:10;-1:-1:-1;;;;;4106:20:6;;;;19850:19:10;;4106:68:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4106:68:6;;;;;;;;;;;;:::i;:::-;4099:75;3972:209;-1:-1:-1;;;;;3972:209:6:o;974:508:8:-;1123:12;1137:19;1160:153;1194:9;1205:3;1233:34;;;1269:11;1282;1295:6;1303:8;1210:102;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;1210:102:8;;;;;;;;;;;;;;-1:-1:-1;;;;;1210:102:8;-1:-1:-1;;;;;;1210:102:8;;;;;;;;;;1168:4;;1160:153;;:33;:153::i;:::-;1122:191;;;;1371:7;1366:110;;1394:71;1414:11;1427;1440:6;1448:8;1458:6;1394:19;:71::i;1685:162:9:-;1573:7;1599:6;-1:-1:-1;;;;;1599:6:9;720:10:1;1744:23:9;1740:101;;1790:40;;-1:-1:-1;;;1790:40:9;;720:10:1;1790:40:9;;;6821:51:10;6794:18;;1790:40:9;6675:203:10;1304:367:7;1445:22;;;;1441:224;;;1483:63;1498:11;1511:7;1520:14;1536:9;1483:14;:63::i;:::-;1441:224;;;1585:21;;:26;1577:77;;;;-1:-1:-1;;;1577:77:7;;21526:2:10;1577:77:7;;;21508:21:10;21565:2;21545:18;;;21538:30;21604:34;21584:18;;;21577:62;-1:-1:-1;;;21655:18:10;;;21648:36;21701:19;;1577:77:7;21324:402:10;2240:548:6;2462:32;;;2433:26;2462:32;;;:19;:32;;;;;2433:61;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2512:13;:20;2536:1;2512:25;2504:86;;;;-1:-1:-1;;;2504:86:6;;21933:2:10;2504:86:6;;;21915:21:10;21972:2;21952:18;;;21945:30;22011:34;21991:18;;;21984:62;-1:-1:-1;;;22062:18:10;;;22055:46;22118:19;;2504:86:6;21731:412:10;2504:86:6;2600:47;2618:11;2631:8;:15;2600:17;:47::i;:::-;2657:124;;-1:-1:-1;;;2657:124:6;;-1:-1:-1;;;;;2657:10:6;:15;;;;2680:10;;2657:124;;2692:11;;2705:13;;2720:8;;2730:14;;2746:18;;2766:14;;2657:124;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2423:365;2240:548;;;;;;:::o;2801:187:9:-;2874:16;2893:6;;-1:-1:-1;;;;;2909:17:9;;;-1:-1:-1;;;;;;2909:17:9;;;;;;2941:40;;2893:6;;;;;;;2941:40;;2874:16;2941:40;2864:124;2801:187;:::o;8865:2712:0:-;8999:12;9051:7;9035:12;9051:7;9045:2;9035:12;:::i;:::-;:23;;9027:50;;;;-1:-1:-1;;;9027:50:0;;23322:2:10;9027:50:0;;;23304:21:10;23361:2;23341:18;;;23334:30;-1:-1:-1;;;23380:18:10;;;23373:44;23434:18;;9027:50:0;23120:338:10;9027:50:0;9112:16;9121:7;9112:6;:16;:::i;:::-;9095:6;:13;:33;;9087:63;;;;-1:-1:-1;;;9087:63:0;;23665:2:10;9087:63:0;;;23647:21:10;23704:2;23684:18;;;23677:30;-1:-1:-1;;;23723:18:10;;;23716:47;23780:18;;9087:63:0;23463:341:10;9087:63:0;9161:22;9224:15;;9252:1895;;;;11288:4;11282:11;11269:24;;11466:1;11455:9;11448:20;11514:4;11503:9;11499:20;11493:4;11486:34;9217:2317;;9252:1895;9426:4;9420:11;9407:24;;10053:2;10044:7;10040:16;10419:9;10412:17;10406:4;10402:28;10390:9;10379;10375:25;10371:60;10467:7;10463:2;10459:16;10711:6;10697:9;10690:17;10684:4;10680:28;10668:9;10660:6;10656:22;10652:57;10648:70;10493:417;10744:3;10740:2;10737:11;10493:417;;;10882:9;;10871:21;;10785:4;10777:13;;;;10817;10493:417;;;-1:-1:-1;;10928:26:0;;;11128:2;11111:11;-1:-1:-1;;11107:25:0;11101:4;11094:39;-1:-1:-1;9217:2317:0;-1:-1:-1;11561:9:0;8865:2712;-1:-1:-1;;;;8865:2712:0:o;1118:1240:2:-;1275:4;1281:12;1341:15;1366:13;1389:24;1426:8;1416:19;;-1:-1:-1;;;;;1416:19:2;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1416:19:2;;1389:46;;1904:1;1879;1846:9;1840:16;1812:4;1801:9;1797:20;1767:1;1733:7;1708:4;1690:239;1678:251;;1992:16;1981:27;;2036:8;2027:7;2024:21;2021:76;;;2075:8;2064:19;;2021:76;2178:7;2165:11;2158:28;2294:7;2291:1;2284:4;2271:11;2267:22;2252:50;2329:8;;;;-1:-1:-1;1118:1240:2;-1:-1:-1;;;;;;1118:1240:2:o;1488:320:8:-;1711:8;1701:19;;;;;;1650:14;:27;1665:11;1650:27;;;;;;;;;;;;;;;1678:11;1650:40;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1650:48:8;;;;;;;;;:70;;;;1735:66;;;;1749:11;;1762;;1691:6;;1783:8;;1793:7;;1735:66;:::i;:::-;;;;;;;;1488:320;;;;;:::o;2794:415:6:-;2929:21;2953:28;2966:14;2953:12;:28::i;:::-;3010;;;;2991:16;3010:28;;;:15;:28;;;;;;;;:35;;;;;;;;;;;;2929:52;;-1:-1:-1;2991:16:6;3010:47;;3048:9;;3010:47;:::i;:::-;2991:66;;3089:1;3075:11;:15;3067:54;;;;-1:-1:-1;;;3067:54:6;;25024:2:10;3067:54:6;;;25006:21:10;25063:2;25043:18;;;25036:30;25102:28;25082:18;;;25075:56;25148:18;;3067:54:6;24822:350:10;3067:54:6;3159:11;3139:16;:31;;3131:71;;;;-1:-1:-1;;;3131:71:6;;25379:2:10;3131:71:6;;;25361:21:10;25418:2;25398:18;;;25391:30;25457:29;25437:18;;;25430:57;25504:18;;3131:71:6;25177:351:10;3487:383:6;3609:35;;;3585:21;3609:35;;;:22;:35;;;;;;;3658:21;;;3654:123;;-1:-1:-1;545:5:6;3654:123;3810:16;3794:12;:32;;3786:77;;;;-1:-1:-1;;;3786:77:6;;25735:2:10;3786:77:6;;;25717:21:10;;;25754:18;;;25747:30;25813:34;25793:18;;;25786:62;25865:18;;3786:77:6;25533:356:10;3786:77:6;3575:295;3487:383;;:::o;3215:266::-;3297:13;3355:2;3330:14;:21;:27;;3322:68;;;;-1:-1:-1;;;3322:68:6;;26096:2:10;3322:68:6;;;26078:21:10;26135:2;26115:18;;;26108:30;26174;26154:18;;;26147:58;26222:18;;3322:68:6;25894:352:10;3322:68:6;-1:-1:-1;3461:2:6;3441:23;3435:30;;3215:266::o;14:159:10:-;81:20;;141:6;130:18;;120:29;;110:57;;163:1;160;153:12;110:57;14:159;;;:::o;178:347::-;229:8;239:6;293:3;286:4;278:6;274:17;270:27;260:55;;311:1;308;301:12;260:55;-1:-1:-1;334:20:10;;-1:-1:-1;;;;;366:30:10;;363:50;;;409:1;406;399:12;363:50;446:4;438:6;434:17;422:29;;498:3;491:4;482:6;474;470:19;466:30;463:39;460:59;;;515:1;512;505:12;460:59;178:347;;;;;:::o;530:171::-;597:20;;-1:-1:-1;;;;;646:30:10;;636:41;;626:69;;691:1;688;681:12;706:862;812:6;820;828;836;844;852;905:3;893:9;884:7;880:23;876:33;873:53;;;922:1;919;912:12;873:53;945:28;963:9;945:28;:::i;:::-;935:38;;1024:2;1013:9;1009:18;996:32;-1:-1:-1;;;;;1088:2:10;1080:6;1077:14;1074:34;;;1104:1;1101;1094:12;1074:34;1143:58;1193:7;1184:6;1173:9;1169:22;1143:58;:::i;:::-;1220:8;;-1:-1:-1;1117:84:10;-1:-1:-1;1117:84:10;;-1:-1:-1;1274:37:10;1307:2;1292:18;;1274:37;:::i;:::-;1264:47;;1364:2;1353:9;1349:18;1336:32;1320:48;;1393:2;1383:8;1380:16;1377:36;;;1409:1;1406;1399:12;1377:36;;1448:60;1500:7;1489:8;1478:9;1474:24;1448:60;:::i;:::-;706:862;;;;-1:-1:-1;706:862:10;;-1:-1:-1;706:862:10;;1527:8;;706:862;-1:-1:-1;;;706:862:10:o;1573:184::-;1631:6;1684:2;1672:9;1663:7;1659:23;1655:32;1652:52;;;1700:1;1697;1690:12;1652:52;1723:28;1741:9;1723:28;:::i;1762:252::-;1829:6;1837;1890:2;1878:9;1869:7;1865:23;1861:32;1858:52;;;1906:1;1903;1896:12;1858:52;1929:28;1947:9;1929:28;:::i;:::-;1919:38;2004:2;1989:18;;;;1976:32;;-1:-1:-1;;;1762:252:10:o;2019:127::-;2080:10;2075:3;2071:20;2068:1;2061:31;2111:4;2108:1;2101:15;2135:4;2132:1;2125:15;2151:275;2222:2;2216:9;2287:2;2268:13;;-1:-1:-1;;2264:27:10;2252:40;;-1:-1:-1;;;;;2307:34:10;;2343:22;;;2304:62;2301:88;;;2369:18;;:::i;:::-;2405:2;2398:22;2151:275;;-1:-1:-1;2151:275:10:o;2431:186::-;2479:4;-1:-1:-1;;;;;2504:6:10;2501:30;2498:56;;;2534:18;;:::i;:::-;-1:-1:-1;2600:2:10;2579:15;-1:-1:-1;;2575:29:10;2606:4;2571:40;;2431:186::o;2622:462::-;2664:5;2717:3;2710:4;2702:6;2698:17;2694:27;2684:55;;2735:1;2732;2725:12;2684:55;2771:6;2758:20;2802:48;2818:31;2846:2;2818:31;:::i;:::-;2802:48;:::i;:::-;2875:2;2866:7;2859:19;2921:3;2914:4;2909:2;2901:6;2897:15;2893:26;2890:35;2887:55;;;2938:1;2935;2928:12;2887:55;3003:2;2996:4;2988:6;2984:17;2977:4;2968:7;2964:18;2951:55;3051:1;3026:16;;;3044:4;3022:27;3015:38;;;;3030:7;2622:462;-1:-1:-1;;;2622:462:10:o;3089:611::-;3183:6;3191;3199;3252:2;3240:9;3231:7;3227:23;3223:32;3220:52;;;3268:1;3265;3258:12;3220:52;3291:28;3309:9;3291:28;:::i;:::-;3281:38;;3370:2;3359:9;3355:18;3342:32;-1:-1:-1;;;;;3434:2:10;3426:6;3423:14;3420:34;;;3450:1;3447;3440:12;3420:34;3473:49;3514:7;3505:6;3494:9;3490:22;3473:49;:::i;:::-;3463:59;;3575:2;3564:9;3560:18;3547:32;3531:48;;3604:2;3594:8;3591:16;3588:36;;;3620:1;3617;3610:12;3588:36;;3643:51;3686:7;3675:8;3664:9;3660:24;3643:51;:::i;:::-;3633:61;;;3089:611;;;;;:::o;3705:481::-;3783:6;3791;3799;3852:2;3840:9;3831:7;3827:23;3823:32;3820:52;;;3868:1;3865;3858:12;3820:52;3891:28;3909:9;3891:28;:::i;:::-;3881:38;;3970:2;3959:9;3955:18;3942:32;-1:-1:-1;;;;;3989:6:10;3986:30;3983:50;;;4029:1;4026;4019:12;3983:50;4068:58;4118:7;4109:6;4098:9;4094:22;4068:58;:::i;:::-;3705:481;;4145:8;;-1:-1:-1;4042:84:10;;-1:-1:-1;;;;3705:481:10:o;5011:464::-;5095:6;5103;5111;5164:2;5152:9;5143:7;5139:23;5135:32;5132:52;;;5180:1;5177;5170:12;5132:52;5203:28;5221:9;5203:28;:::i;:::-;5193:38;;5282:2;5271:9;5267:18;5254:32;-1:-1:-1;;;;;5301:6:10;5298:30;5295:50;;;5341:1;5338;5331:12;5295:50;5364:49;5405:7;5396:6;5385:9;5381:22;5364:49;:::i;:::-;5354:59;;;5432:37;5465:2;5454:9;5450:18;5432:37;:::i;:::-;5422:47;;5011:464;;;;;:::o;5662:250::-;5747:1;5757:113;5771:6;5768:1;5765:13;5757:113;;;5847:11;;;5841:18;5828:11;;;5821:39;5793:2;5786:10;5757:113;;;-1:-1:-1;;5904:1:10;5886:16;;5879:27;5662:250::o;5917:270::-;5958:3;5996:5;5990:12;6023:6;6018:3;6011:19;6039:76;6108:6;6101:4;6096:3;6092:14;6085:4;6078:5;6074:16;6039:76;:::i;:::-;6169:2;6148:15;-1:-1:-1;;6144:29:10;6135:39;;;;6176:4;6131:50;;5917:270;-1:-1:-1;;5917:270:10:o;6192:217::-;6339:2;6328:9;6321:21;6302:4;6359:44;6399:2;6388:9;6384:18;6376:6;6359:44;:::i;6414:256::-;6480:6;6488;6541:2;6529:9;6520:7;6516:23;6512:32;6509:52;;;6557:1;6554;6547:12;6509:52;6580:28;6598:9;6580:28;:::i;:::-;6570:38;;6627:37;6660:2;6649:9;6645:18;6627:37;:::i;:::-;6617:47;;6414:256;;;;;:::o;7117:173::-;7185:20;;-1:-1:-1;;;;;7234:31:10;;7224:42;;7214:70;;7280:1;7277;7270:12;7295:186;7354:6;7407:2;7395:9;7386:7;7382:23;7378:32;7375:52;;;7423:1;7420;7413:12;7375:52;7446:29;7465:9;7446:29;:::i;7486:622::-;7581:6;7589;7597;7605;7613;7666:3;7654:9;7645:7;7641:23;7637:33;7634:53;;;7683:1;7680;7673:12;7634:53;7706:28;7724:9;7706:28;:::i;:::-;7696:38;;7753:37;7786:2;7775:9;7771:18;7753:37;:::i;:::-;7743:47;;7837:2;7826:9;7822:18;7809:32;7799:42;;7892:2;7881:9;7877:18;7864:32;-1:-1:-1;;;;;7911:6:10;7908:30;7905:50;;;7951:1;7948;7941:12;7905:50;7990:58;8040:7;8031:6;8020:9;8016:22;7990:58;:::i;:::-;7486:622;;;;-1:-1:-1;7486:622:10;;-1:-1:-1;8067:8:10;;7964:84;7486:622;-1:-1:-1;;;7486:622:10:o;8113:324::-;8188:6;8196;8204;8257:2;8245:9;8236:7;8232:23;8228:32;8225:52;;;8273:1;8270;8263:12;8225:52;8296:28;8314:9;8296:28;:::i;:::-;8286:38;;8343:37;8376:2;8365:9;8361:18;8343:37;:::i;:::-;8333:47;;8427:2;8416:9;8412:18;8399:32;8389:42;;8113:324;;;;;:::o;8442:399::-;8526:6;8534;8542;8550;8603:3;8591:9;8582:7;8578:23;8574:33;8571:53;;;8620:1;8617;8610:12;8571:53;8643:28;8661:9;8643:28;:::i;:::-;8633:38;;8690:37;8723:2;8712:9;8708:18;8690:37;:::i;:::-;8680:47;;8746:38;8780:2;8769:9;8765:18;8746:38;:::i;:::-;8442:399;;;;-1:-1:-1;8736:48:10;;8831:2;8816:18;8803:32;;-1:-1:-1;;8442:399:10:o;9205:380::-;9284:1;9280:12;;;;9327;;;9348:61;;9402:4;9394:6;9390:17;9380:27;;9348:61;9455:2;9447:6;9444:14;9424:18;9421:38;9418:161;;9501:10;9496:3;9492:20;9489:1;9482:31;9536:4;9533:1;9526:15;9564:4;9561:1;9554:15;9418:161;;9205:380;;;:::o;9590:271::-;9773:6;9765;9760:3;9747:33;9729:3;9799:16;;9824:13;;;9799:16;9590:271;-1:-1:-1;9590:271:10:o;10834:266::-;10922:6;10917:3;10910:19;10974:6;10967:5;10960:4;10955:3;10951:14;10938:43;-1:-1:-1;11026:1:10;11001:16;;;11019:4;10997:27;;;10990:38;;;;11082:2;11061:15;;;-1:-1:-1;;11057:29:10;11048:39;;;11044:50;;10834:266::o;11105:326::-;11300:6;11292;11288:19;11277:9;11270:38;11344:2;11339;11328:9;11324:18;11317:30;11251:4;11364:61;11421:2;11410:9;11406:18;11398:6;11390;11364:61;:::i;11436:640::-;11717:6;11705:19;;11687:38;;-1:-1:-1;;;;;11761:32:10;;11756:2;11741:18;;11734:60;11781:3;11825:2;11810:18;;11803:31;;;-1:-1:-1;;11857:45:10;;11882:19;;11874:6;11857:45;:::i;:::-;11952:6;11945:14;11938:22;11933:2;11922:9;11918:18;11911:50;12010:9;12002:6;11998:22;11992:3;11981:9;11977:19;11970:51;12038:32;12063:6;12055;12038:32;:::i;:::-;12030:40;11436:640;-1:-1:-1;;;;;;;;11436:640:10:o;12081:245::-;12160:6;12168;12221:2;12209:9;12200:7;12196:23;12192:32;12189:52;;;12237:1;12234;12227:12;12189:52;-1:-1:-1;;12260:16:10;;12316:2;12301:18;;;12295:25;12260:16;;12295:25;;-1:-1:-1;12081:245:10:o;13096:127::-;13157:10;13152:3;13148:20;13145:1;13138:31;13188:4;13185:1;13178:15;13212:4;13209:1;13202:15;13228:128;13295:9;;;13316:11;;;13313:37;;;13330:18;;:::i;:::-;13228:128;;;;:::o;13361:360::-;13572:6;13564;13559:3;13546:33;13642:2;13638:15;;;;-1:-1:-1;;13634:53:10;13598:16;;13623:65;;;13712:2;13704:11;;13361:360;-1:-1:-1;13361:360:10:o;13851:544::-;13952:2;13947:3;13944:11;13941:448;;;13988:1;14013:5;14009:2;14002:17;14058:4;14054:2;14044:19;14128:2;14116:10;14112:19;14109:1;14105:27;14099:4;14095:38;14164:4;14152:10;14149:20;14146:47;;;-1:-1:-1;14187:4:10;14146:47;14242:2;14237:3;14233:12;14230:1;14226:20;14220:4;14216:31;14206:41;;14297:82;14315:2;14308:5;14305:13;14297:82;;;14360:17;;;14341:1;14330:13;14297:82;;14571:1348;14695:3;14689:10;-1:-1:-1;;;;;14714:6:10;14711:30;14708:56;;;14744:18;;:::i;:::-;14773:96;14862:6;14822:38;14854:4;14848:11;14822:38;:::i;:::-;14816:4;14773:96;:::i;:::-;14924:4;;14988:2;14977:14;;15005:1;15000:662;;;;15706:1;15723:6;15720:89;;;-1:-1:-1;15775:19:10;;;15769:26;15720:89;-1:-1:-1;;14528:1:10;14524:11;;;14520:24;14516:29;14506:40;14552:1;14548:11;;;14503:57;15822:81;;14970:943;;15000:662;13798:1;13791:14;;;13835:4;13822:18;;-1:-1:-1;;15036:20:10;;;15153:236;15167:7;15164:1;15161:14;15153:236;;;15256:19;;;15250:26;15235:42;;15348:27;;;;15316:1;15304:14;;;;15183:19;;15153:236;;;15157:3;15417:6;15408:7;15405:19;15402:201;;;15478:19;;;15472:26;-1:-1:-1;;15561:1:10;15557:14;;;15573:3;15553:24;15549:37;15545:42;15530:58;15515:74;;15402:201;-1:-1:-1;;;;;15649:1:10;15633:14;;;15629:22;15616:36;;-1:-1:-1;14571:1348:10:o;15924:498::-;16124:4;16153:6;16198:2;16190:6;16186:15;16175:9;16168:34;16250:2;16242:6;16238:15;16233:2;16222:9;16218:18;16211:43;;16290:6;16285:2;16274:9;16270:18;16263:34;16333:3;16328:2;16317:9;16313:18;16306:31;16354:62;16411:3;16400:9;16396:19;16388:6;16380;16354:62;:::i;:::-;16346:70;15924:498;-1:-1:-1;;;;;;;15924:498:10:o;17233:493::-;17482:6;17474;17470:19;17459:9;17452:38;17526:3;17521:2;17510:9;17506:18;17499:31;17433:4;17547:62;17604:3;17593:9;17589:19;17581:6;17573;17547:62;:::i;:::-;-1:-1:-1;;;;;17645:31:10;;;;17640:2;17625:18;;17618:59;-1:-1:-1;17708:2:10;17693:18;17686:34;17539:70;17233:493;-1:-1:-1;;;17233:493:10:o;18444:1202::-;-1:-1:-1;;;;;18561:3:10;18558:27;18555:53;;;18588:18;;:::i;:::-;18617:93;18706:3;18666:38;18698:4;18692:11;18666:38;:::i;:::-;18660:4;18617:93;:::i;:::-;18736:1;18761:2;18756:3;18753:11;18778:1;18773:615;;;;19432:1;19449:3;19446:93;;;-1:-1:-1;19505:19:10;;;19492:33;19446:93;-1:-1:-1;;14528:1:10;14524:11;;;14520:24;14516:29;14506:40;14552:1;14548:11;;;14503:57;19552:78;;18746:894;;18773:615;13798:1;13791:14;;;13835:4;13822:18;;-1:-1:-1;;18809:17:10;;;18909:9;18931:229;18945:7;18942:1;18939:14;18931:229;;;19034:19;;;19021:33;19006:49;;19141:4;19126:20;;;;19094:1;19082:14;;;;18961:12;18931:229;;;18935:3;19188;19179:7;19176:16;19173:159;;;19312:1;19308:6;19302:3;19296;19293:1;19289:11;19285:21;19281:34;19277:39;19264:9;19259:3;19255:19;19242:33;19238:79;19230:6;19223:95;19173:159;;;19375:1;19369:3;19366:1;19362:11;19358:19;19352:4;19345:33;18746:894;;18444:1202;;;:::o;20112:647::-;20191:6;20244:2;20232:9;20223:7;20219:23;20215:32;20212:52;;;20260:1;20257;20250:12;20212:52;20293:9;20287:16;-1:-1:-1;;;;;20318:6:10;20315:30;20312:50;;;20358:1;20355;20348:12;20312:50;20381:22;;20434:4;20426:13;;20422:27;-1:-1:-1;20412:55:10;;20463:1;20460;20453:12;20412:55;20492:2;20486:9;20517:48;20533:31;20561:2;20533:31;:::i;20517:48::-;20588:2;20581:5;20574:17;20628:7;20623:2;20618;20614;20610:11;20606:20;20603:33;20600:53;;;20649:1;20646;20639:12;20600:53;20662:67;20726:2;20721;20714:5;20710:14;20705:2;20701;20697:11;20662:67;:::i;20764:555::-;21021:6;21013;21009:19;20998:9;20991:38;21065:3;21060:2;21049:9;21045:18;21038:31;20972:4;21092:45;21132:3;21121:9;21117:19;21109:6;21092:45;:::i;:::-;-1:-1:-1;;;;;21177:6:10;21173:31;21168:2;21157:9;21153:18;21146:59;21253:9;21245:6;21241:22;21236:2;21225:9;21221:18;21214:50;21281:32;21306:6;21298;21281:32;:::i;22148:837::-;22497:6;22489;22485:19;22474:9;22467:38;22541:3;22536:2;22525:9;22521:18;22514:31;22448:4;22568:45;22608:3;22597:9;22593:19;22585:6;22568:45;:::i;:::-;22661:9;22653:6;22649:22;22644:2;22633:9;22629:18;22622:50;22695:32;22720:6;22712;22695:32;:::i;:::-;-1:-1:-1;;;;;22801:15:10;;;22796:2;22781:18;;22774:43;22854:15;;22848:3;22833:19;;22826:44;22907:22;;;22754:3;22886:19;;22879:51;22681:46;-1:-1:-1;22947:32:10;22681:46;22964:6;22947:32;:::i;:::-;22939:40;22148:837;-1:-1:-1;;;;;;;;;22148:837:10:o;22990:125::-;23055:9;;;23076:10;;;23073:36;;;23089:18;;:::i;23809:287::-;23938:3;23976:6;23970:13;23992:66;24051:6;24046:3;24039:4;24031:6;24027:17;23992:66;:::i;:::-;24074:16;;;;;23809:287;-1:-1:-1;;23809:287:10:o;24101:716::-;24404:6;24396;24392:19;24381:9;24374:38;24448:3;24443:2;24432:9;24428:18;24421:31;24355:4;24475:45;24515:3;24504:9;24500:19;24492:6;24475:45;:::i;:::-;-1:-1:-1;;;;;24560:6:10;24556:31;24551:2;24540:9;24536:18;24529:59;24636:9;24628:6;24624:22;24619:2;24608:9;24604:18;24597:50;24670:32;24695:6;24687;24670:32;:::i;:::-;24656:46;;24751:9;24743:6;24739:22;24733:3;24722:9;24718:19;24711:51;24779:32;24804:6;24796;24779:32;:::i

Swarm Source

ipfs://c15ae3e07c9076d2ead89c0944b611aa1539b4912f2dedee208baff931f051e5

Block Transaction Gas Used Reward
view all blocks collator

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.