Contract 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb4a727c45f4814432bb94c9edee3f10d602ef3a18b894342c41b52efe6acc9e8Deposit443872972022-12-07 16:09:401 day 13 hrs ago0xe39511d0ff82a450c17c3274cab6a6ff55e94007 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00003602
0xde0a286fe04cdc5e5eb1b42987a8af564f5552a2fdfd21489f85a93df7c639caDeposit442472132022-12-07 3:56:012 days 1 hr ago0x98fa1c3b0da1efacf3bdcc42486642f5bc03a7e2 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00003536
0x2611078e6cbde28d5d3dd2475f1bb81487c5243914f5f47917ff7064ed332c13Deposit439705472022-12-06 3:25:003 days 2 hrs ago0xc2f409d7eb8e7f33474bc7ee55ddf98cfe54d828 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00003813
0x9ffc9ff734ffae3c84cb1298082d90bea991cdf3ad38760adc9031a4c0c7ce75Deposit438538342022-12-05 16:22:433 days 13 hrs ago0xb80856ff048903f215d7bd03de991816bfa2096b IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00006201
0xc89fd497e3b168268746715970a63a2f6168c07f2973a5def1214674b4bc4b55Deposit434364172022-12-04 4:54:165 days 59 mins ago0x98fa1c3b0da1efacf3bdcc42486642f5bc03a7e2 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00003019
0xb99ef4bf59e65114ec799923b2c0a25aa93f1a3111c29ba72b6d13954a1ac9b0Deposit434326062022-12-04 4:32:095 days 1 hr ago0x20197bef251be2a7932dcd7cb2b341c8e31e095e IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00002828
0xf2ad75fc05bb12e2930aab79a8f610b8d3bf12c80109bf601c0b61f7dd46fcd1Withdraw428996722022-12-02 6:12:276 days 23 hrs ago0xbfa2f68bf9ad60dc3cfb1cef04730eb7fa251424 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00014116
0x2b6cd4381ac8e5da27611137c492165428832eb0745b8c976cd6f4a8d0b09c35Deposit427780172022-12-01 18:20:537 days 11 hrs ago0xc532b62edcc417a9797e66816fd7f1fd9d74c8da IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00004218
0xe28aff369cc38c21bfc3f244092ec6c5dcfb2a630a4b22bd6be4a642983cd1e0Withdraw425808472022-12-01 1:16:588 days 4 hrs ago0xbfa2f68bf9ad60dc3cfb1cef04730eb7fa251424 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00017042
0x79c489f23af975084818da965898ec7afc73478c58d3082df5670413093834c4Withdraw422937062022-11-29 23:54:399 days 5 hrs ago0x98e9d288743839e96a8005a6b51c770bbf7788c0 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.0001489
0x907c9e32ca73feaa53e80ecd9edba1a11cae8e9db02325f7ec73085b2c91199cWithdraw420991002022-11-29 8:22:339 days 21 hrs ago0x98e9d288743839e96a8005a6b51c770bbf7788c0 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00014184
0x6ba7965ba103576c6ffd9b336896438b04be8b507de89d1dee3ae721ca9b4862Deposit407497412022-11-24 6:46:3814 days 23 hrs ago0xa312b65d3645322f80802a2f33708fec8777a531 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00002814
0x46f743a4d684745aa4863286d7c253a64474087ec4852622ccc5c8f08194918fDeposit404597052022-11-23 6:12:5515 days 23 hrs ago0xc532b62edcc417a9797e66816fd7f1fd9d74c8da IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00003047
0x9596d37acf2d356cb915dcd0ff706fb542a4245d18567383c59eee11c7b89135Deposit402667702022-11-22 14:09:4316 days 15 hrs ago0x1cf8423299241f155716eb19d0ca65bea4353f03 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00008345
0xd577ea7c15e64f9d06f9ec730a1cc4ee6b5f37006b046f60359ac3dd749b8434Withdraw402645402022-11-22 14:00:1116 days 15 hrs ago0xbfa2f68bf9ad60dc3cfb1cef04730eb7fa251424 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00041057
0xd73a3020c74d29155142b2ecc5d6329b4dedefc9f3b85a28e5d8234a8fa6846bDeposit400479662022-11-21 20:19:2017 days 9 hrs ago0x33d1ea5cf80da4e9a0317deef6ec63ee01a3901d IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00003965
0x29fb518f01844820eaf8ca9a44d9bbd3ad33a7317ee346ee88ad05c8be483df3Withdraw375557362022-11-12 17:08:1526 days 12 hrs ago0x9a66644084108a1bc23a9ccd50d6d63e53098db6 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00019731
0x0c37a3149bcabe90f763669d4ac00436cdd905d6adf91ce781f2a72d354980a1Withdraw374077682022-11-12 5:09:1627 days 44 mins ago0x98e9d288743839e96a8005a6b51c770bbf7788c0 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00028554
0xe27be3986bbc97283c5940047c6d62e803f698fe11c0f02dd80261dd6a1523b7Withdraw372885082022-11-11 18:26:0027 days 11 hrs ago0x9a66644084108a1bc23a9ccd50d6d63e53098db6 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00034048
0x58eea8dbe99a194b2ccf29ce49df47cb37c1d565962f8bf68a6e4b6006922242Deposit370281092022-11-10 21:51:0328 days 8 hrs ago0xa37dd822890beeb2892cfa59c423016205f0a642 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00006222
0xdfed9737d0408759ee70b01fe4748940b88c062b196cd05951b93c12881f70a0Deposit354361182022-11-05 10:46:2933 days 19 hrs ago0xaa81a036bf5a2823daa2aadbcc66140fab29cce9 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00003217
0x258a5975baff5a2c138030612387004a87df39cde83e4828a144db196b90d9c8Withdraw351474072022-11-04 7:42:0934 days 22 hrs ago0x98e9d288743839e96a8005a6b51c770bbf7788c0 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00018909
0xba5d96d89a37c1e9089287f82d375d011b2789c6bdc1b0012de84c79e4cfbadcUnpause351435782022-11-04 7:21:5734 days 22 hrs ago0x1a0aec0fc48f1b5cc538be74a90e340b278189e4 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00001523
0x993c95db119192bdea996518e927cfc1492ba49e8c13bb880d78ec8e8b02cf0fPause351430252022-11-04 7:19:0134 days 22 hrs ago0x1a0aec0fc48f1b5cc538be74a90e340b278189e4 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00001523
0xcd8a45bd48bed73146431634fb85a3b28919a6336e632ed34a7cd3fe7141be35Withdraw351367782022-11-04 6:43:2934 days 23 hrs ago0x98e9d288743839e96a8005a6b51c770bbf7788c0 IN  0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b0 ETH0.00019969
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xb4a727c45f4814432bb94c9edee3f10d602ef3a18b894342c41b52efe6acc9e8443872972022-12-07 16:09:401 day 13 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0xde0a286fe04cdc5e5eb1b42987a8af564f5552a2fdfd21489f85a93df7c639ca442472132022-12-07 3:56:012 days 1 hr ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0x2611078e6cbde28d5d3dd2475f1bb81487c5243914f5f47917ff7064ed332c13439705472022-12-06 3:25:003 days 2 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0x9ffc9ff734ffae3c84cb1298082d90bea991cdf3ad38760adc9031a4c0c7ce75438538342022-12-05 16:22:433 days 13 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0xc89fd497e3b168268746715970a63a2f6168c07f2973a5def1214674b4bc4b55434364172022-12-04 4:54:165 days 59 mins ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0xb99ef4bf59e65114ec799923b2c0a25aa93f1a3111c29ba72b6d13954a1ac9b0434326062022-12-04 4:32:095 days 1 hr ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0xf2ad75fc05bb12e2930aab79a8f610b8d3bf12c80109bf601c0b61f7dd46fcd1428996722022-12-02 6:12:276 days 23 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x7cbaf5a14d953ff896e5b3312031515c858737c80 ETH
0xf2ad75fc05bb12e2930aab79a8f610b8d3bf12c80109bf601c0b61f7dd46fcd1428996722022-12-02 6:12:276 days 23 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b Celer Network: cBridge0 ETH
0x2b6cd4381ac8e5da27611137c492165428832eb0745b8c976cd6f4a8d0b09c35427780172022-12-01 18:20:537 days 11 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0xe28aff369cc38c21bfc3f244092ec6c5dcfb2a630a4b22bd6be4a642983cd1e0425808472022-12-01 1:16:588 days 4 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x7cbaf5a14d953ff896e5b3312031515c858737c80 ETH
0xe28aff369cc38c21bfc3f244092ec6c5dcfb2a630a4b22bd6be4a642983cd1e0425808472022-12-01 1:16:588 days 4 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b Celer Network: cBridge0 ETH
0x79c489f23af975084818da965898ec7afc73478c58d3082df5670413093834c4422937062022-11-29 23:54:399 days 5 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x7cbaf5a14d953ff896e5b3312031515c858737c80 ETH
0x79c489f23af975084818da965898ec7afc73478c58d3082df5670413093834c4422937062022-11-29 23:54:399 days 5 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b Celer Network: cBridge0 ETH
0x907c9e32ca73feaa53e80ecd9edba1a11cae8e9db02325f7ec73085b2c91199c420991002022-11-29 8:22:339 days 21 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x7cbaf5a14d953ff896e5b3312031515c858737c80 ETH
0x907c9e32ca73feaa53e80ecd9edba1a11cae8e9db02325f7ec73085b2c91199c420991002022-11-29 8:22:339 days 21 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b Celer Network: cBridge0 ETH
0x6ba7965ba103576c6ffd9b336896438b04be8b507de89d1dee3ae721ca9b4862407497412022-11-24 6:46:3814 days 23 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0x46f743a4d684745aa4863286d7c253a64474087ec4852622ccc5c8f08194918f404597052022-11-23 6:12:5515 days 23 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0x9596d37acf2d356cb915dcd0ff706fb542a4245d18567383c59eee11c7b89135402667702022-11-22 14:09:4316 days 15 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0xdd3cf6b0182993eced98fd71962dfa18e2eae2e40 ETH
0xd577ea7c15e64f9d06f9ec730a1cc4ee6b5f37006b046f60359ac3dd749b8434402645402022-11-22 14:00:1116 days 15 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0xdd3cf6b0182993eced98fd71962dfa18e2eae2e40 ETH
0xd577ea7c15e64f9d06f9ec730a1cc4ee6b5f37006b046f60359ac3dd749b8434402645402022-11-22 14:00:1116 days 15 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b Celer Network: cBridge0 ETH
0xd73a3020c74d29155142b2ecc5d6329b4dedefc9f3b85a28e5d8234a8fa6846b400479662022-11-21 20:19:2017 days 9 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x198f152d3f34cb49a926333cd935d864d398753f0 ETH
0x29fb518f01844820eaf8ca9a44d9bbd3ad33a7317ee346ee88ad05c8be483df3375557362022-11-12 17:08:1526 days 12 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x7cbaf5a14d953ff896e5b3312031515c858737c80 ETH
0x29fb518f01844820eaf8ca9a44d9bbd3ad33a7317ee346ee88ad05c8be483df3375557362022-11-12 17:08:1526 days 12 hrs ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b Celer Network: cBridge0 ETH
0x0c37a3149bcabe90f763669d4ac00436cdd905d6adf91ce781f2a72d354980a1374077682022-11-12 5:09:1627 days 44 mins ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b 0x7cbaf5a14d953ff896e5b3312031515c858737c80 ETH
0x0c37a3149bcabe90f763669d4ac00436cdd905d6adf91ce781f2a72d354980a1374077682022-11-12 5:09:1627 days 44 mins ago 0xea4b1b0aa3c110c55f650d28159ce4ad43a4a58b Celer Network: cBridge0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OriginalTokenVaultV2

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 16 : OriginalTokenVaultV2.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity 0.8.9;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "../interfaces/ISigsVerifier.sol";
import "../interfaces/IWETH.sol";
import "../libraries/PbPegged.sol";
import "../safeguard/Pauser.sol";
import "../safeguard/VolumeControl.sol";
import "../safeguard/DelayedTransfer.sol";

/**
 * @title the vault to deposit and withdraw original tokens
 * @dev Work together with PeggedTokenBridge contracts deployed at remote chains
 */
contract OriginalTokenVaultV2 is ReentrancyGuard, Pauser, VolumeControl, DelayedTransfer {
    using SafeERC20 for IERC20;

    ISigsVerifier public immutable sigsVerifier;

    mapping(bytes32 => bool) public records;

    mapping(address => uint256) public minDeposit;
    mapping(address => uint256) public maxDeposit;

    address public nativeWrap;

    event Deposited(
        bytes32 depositId,
        address depositor,
        address token,
        uint256 amount,
        uint64 mintChainId,
        address mintAccount,
        uint64 nonce
    );
    event Withdrawn(
        bytes32 withdrawId,
        address receiver,
        address token,
        uint256 amount,
        // ref_chain_id defines the reference chain ID, taking values of:
        // 1. The common case of burn-withdraw: the chain ID on which the corresponding burn happened;
        // 2. Pegbridge fee claim: zero / not applicable;
        // 3. Refund for wrong deposit: this chain ID on which the deposit happened
        uint64 refChainId,
        // ref_id defines a unique reference ID, taking values of:
        // 1. The common case of burn-withdraw: the burn ID on the remote chain;
        // 2. Pegbridge fee claim: a per-account nonce;
        // 3. Refund for wrong deposit: the deposit ID on this chain
        bytes32 refId,
        address burnAccount
    );
    event MinDepositUpdated(address token, uint256 amount);
    event MaxDepositUpdated(address token, uint256 amount);

    constructor(ISigsVerifier _sigsVerifier) {
        sigsVerifier = _sigsVerifier;
    }

    /**
     * @notice Lock original tokens to trigger cross-chain mint of pegged tokens at a remote chain's PeggedTokenBridge.
     * NOTE: This function DOES NOT SUPPORT fee-on-transfer / rebasing tokens.
     * @param _token The original token address.
     * @param _amount The amount to deposit.
     * @param _mintChainId The destination chain ID to mint tokens.
     * @param _mintAccount The destination account to receive the minted pegged tokens.
     * @param _nonce A number input to guarantee unique depositId. Can be timestamp in practice.
     */
    function deposit(
        address _token,
        uint256 _amount,
        uint64 _mintChainId,
        address _mintAccount,
        uint64 _nonce
    ) external nonReentrant whenNotPaused returns (bytes32) {
        bytes32 depId = _deposit(_token, _amount, _mintChainId, _mintAccount, _nonce);
        IERC20(_token).safeTransferFrom(msg.sender, address(this), _amount);
        emit Deposited(depId, msg.sender, _token, _amount, _mintChainId, _mintAccount, _nonce);
        return depId;
    }

    /**
     * @notice Lock native token as original token to trigger cross-chain mint of pegged tokens at a remote chain's
     * PeggedTokenBridge.
     * @param _amount The amount to deposit.
     * @param _mintChainId The destination chain ID to mint tokens.
     * @param _mintAccount The destination account to receive the minted pegged tokens.
     * @param _nonce A number input to guarantee unique depositId. Can be timestamp in practice.
     */
    function depositNative(
        uint256 _amount,
        uint64 _mintChainId,
        address _mintAccount,
        uint64 _nonce
    ) external payable nonReentrant whenNotPaused returns (bytes32) {
        require(msg.value == _amount, "Amount mismatch");
        require(nativeWrap != address(0), "Native wrap not set");
        bytes32 depId = _deposit(nativeWrap, _amount, _mintChainId, _mintAccount, _nonce);
        IWETH(nativeWrap).deposit{value: _amount}();
        emit Deposited(depId, msg.sender, nativeWrap, _amount, _mintChainId, _mintAccount, _nonce);
        return depId;
    }

    function _deposit(
        address _token,
        uint256 _amount,
        uint64 _mintChainId,
        address _mintAccount,
        uint64 _nonce
    ) private returns (bytes32) {
        require(_amount > minDeposit[_token], "amount too small");
        require(maxDeposit[_token] == 0 || _amount <= maxDeposit[_token], "amount too large");
        bytes32 depId = keccak256(
            // len = 20 + 20 + 32 + 8 + 20 + 8 + 8 + 20 = 136
            abi.encodePacked(
                msg.sender,
                _token,
                _amount,
                _mintChainId,
                _mintAccount,
                _nonce,
                uint64(block.chainid),
                address(this)
            )
        );
        require(records[depId] == false, "record exists");
        records[depId] = true;
        return depId;
    }

    /**
     * @notice Withdraw locked original tokens triggered by a burn at a remote chain's PeggedTokenBridge.
     * @param _request The serialized Withdraw protobuf.
     * @param _sigs The list of signatures sorted by signing addresses in ascending order. A relay must be signed-off by
     * +2/3 of the bridge's current signing power to be delivered.
     * @param _signers The sorted list of signers.
     * @param _powers The signing powers of the signers.
     */
    function withdraw(
        bytes calldata _request,
        bytes[] calldata _sigs,
        address[] calldata _signers,
        uint256[] calldata _powers
    ) external whenNotPaused returns (bytes32) {
        bytes32 domain = keccak256(abi.encodePacked(block.chainid, address(this), "Withdraw"));
        sigsVerifier.verifySigs(abi.encodePacked(domain, _request), _sigs, _signers, _powers);
        PbPegged.Withdraw memory request = PbPegged.decWithdraw(_request);
        bytes32 wdId = keccak256(
            // len = 20 + 20 + 32 + 20 + 8 + 32 + 20 = 152
            abi.encodePacked(
                request.receiver,
                request.token,
                request.amount,
                request.burnAccount,
                request.refChainId,
                request.refId,
                address(this)
            )
        );
        require(records[wdId] == false, "record exists");
        records[wdId] = true;
        _updateVolume(request.token, request.amount);
        uint256 delayThreshold = delayThresholds[request.token];
        if (delayThreshold > 0 && request.amount > delayThreshold) {
            _addDelayedTransfer(wdId, request.receiver, request.token, request.amount);
        } else {
            _sendToken(request.receiver, request.token, request.amount);
        }
        emit Withdrawn(
            wdId,
            request.receiver,
            request.token,
            request.amount,
            request.refChainId,
            request.refId,
            request.burnAccount
        );
        return wdId;
    }

    function executeDelayedTransfer(bytes32 id) external whenNotPaused {
        delayedTransfer memory transfer = _executeDelayedTransfer(id);
        _sendToken(transfer.receiver, transfer.token, transfer.amount);
    }

    function setMinDeposit(address[] calldata _tokens, uint256[] calldata _amounts) external onlyGovernor {
        require(_tokens.length == _amounts.length, "length mismatch");
        for (uint256 i = 0; i < _tokens.length; i++) {
            minDeposit[_tokens[i]] = _amounts[i];
            emit MinDepositUpdated(_tokens[i], _amounts[i]);
        }
    }

    function setMaxDeposit(address[] calldata _tokens, uint256[] calldata _amounts) external onlyGovernor {
        require(_tokens.length == _amounts.length, "length mismatch");
        for (uint256 i = 0; i < _tokens.length; i++) {
            maxDeposit[_tokens[i]] = _amounts[i];
            emit MaxDepositUpdated(_tokens[i], _amounts[i]);
        }
    }

    function setWrap(address _weth) external onlyOwner {
        nativeWrap = _weth;
    }

    function _sendToken(
        address _receiver,
        address _token,
        uint256 _amount
    ) private {
        if (_token == nativeWrap) {
            // withdraw then transfer native to receiver
            IWETH(nativeWrap).withdraw(_amount);
            (bool sent, ) = _receiver.call{value: _amount, gas: 50000}("");
            require(sent, "failed to send native token");
        } else {
            IERC20(_token).safeTransfer(_receiver, _amount);
        }
    }

    receive() external payable {}
}

File 2 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 3 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 16 : ISigsVerifier.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.0;

interface ISigsVerifier {
    /**
     * @notice Verifies that a message is signed by a quorum among the signers.
     * @param _msg signed message
     * @param _sigs list of signatures sorted by signer addresses in ascending order
     * @param _signers sorted list of current signers
     * @param _powers powers of current signers
     */
    function verifySigs(
        bytes memory _msg,
        bytes[] calldata _sigs,
        address[] calldata _signers,
        uint256[] calldata _powers
    ) external view;
}

File 6 of 16 : IWETH.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.0;

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256) external;
}

File 7 of 16 : PbPegged.sol
// SPDX-License-Identifier: GPL-3.0-only

// Code generated by protoc-gen-sol. DO NOT EDIT.
// source: contracts/libraries/proto/pegged.proto
pragma solidity 0.8.9;
import "./Pb.sol";

library PbPegged {
    using Pb for Pb.Buffer; // so we can call Pb funcs on Buffer obj

    struct Mint {
        address token; // tag: 1
        address account; // tag: 2
        uint256 amount; // tag: 3
        address depositor; // tag: 4
        uint64 refChainId; // tag: 5
        bytes32 refId; // tag: 6
    } // end struct Mint

    function decMint(bytes memory raw) internal pure returns (Mint memory m) {
        Pb.Buffer memory buf = Pb.fromBytes(raw);

        uint256 tag;
        Pb.WireType wire;
        while (buf.hasMore()) {
            (tag, wire) = buf.decKey();
            if (false) {}
            // solidity has no switch/case
            else if (tag == 1) {
                m.token = Pb._address(buf.decBytes());
            } else if (tag == 2) {
                m.account = Pb._address(buf.decBytes());
            } else if (tag == 3) {
                m.amount = Pb._uint256(buf.decBytes());
            } else if (tag == 4) {
                m.depositor = Pb._address(buf.decBytes());
            } else if (tag == 5) {
                m.refChainId = uint64(buf.decVarint());
            } else if (tag == 6) {
                m.refId = Pb._bytes32(buf.decBytes());
            } else {
                buf.skipValue(wire);
            } // skip value of unknown tag
        }
    } // end decoder Mint

    struct Withdraw {
        address token; // tag: 1
        address receiver; // tag: 2
        uint256 amount; // tag: 3
        address burnAccount; // tag: 4
        uint64 refChainId; // tag: 5
        bytes32 refId; // tag: 6
    } // end struct Withdraw

    function decWithdraw(bytes memory raw) internal pure returns (Withdraw memory m) {
        Pb.Buffer memory buf = Pb.fromBytes(raw);

        uint256 tag;
        Pb.WireType wire;
        while (buf.hasMore()) {
            (tag, wire) = buf.decKey();
            if (false) {}
            // solidity has no switch/case
            else if (tag == 1) {
                m.token = Pb._address(buf.decBytes());
            } else if (tag == 2) {
                m.receiver = Pb._address(buf.decBytes());
            } else if (tag == 3) {
                m.amount = Pb._uint256(buf.decBytes());
            } else if (tag == 4) {
                m.burnAccount = Pb._address(buf.decBytes());
            } else if (tag == 5) {
                m.refChainId = uint64(buf.decVarint());
            } else if (tag == 6) {
                m.refId = Pb._bytes32(buf.decBytes());
            } else {
                buf.skipValue(wire);
            } // skip value of unknown tag
        }
    } // end decoder Withdraw
}

File 8 of 16 : Pauser.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity 0.8.9;

import "@openzeppelin/contracts/security/Pausable.sol";
import "./Ownable.sol";

abstract contract Pauser is Ownable, Pausable {
    mapping(address => bool) public pausers;

    event PauserAdded(address account);
    event PauserRemoved(address account);

    constructor() {
        _addPauser(msg.sender);
    }

    modifier onlyPauser() {
        require(isPauser(msg.sender), "Caller is not pauser");
        _;
    }

    function pause() public onlyPauser {
        _pause();
    }

    function unpause() public onlyPauser {
        _unpause();
    }

    function isPauser(address account) public view returns (bool) {
        return pausers[account];
    }

    function addPauser(address account) public onlyOwner {
        _addPauser(account);
    }

    function removePauser(address account) public onlyOwner {
        _removePauser(account);
    }

    function renouncePauser() public {
        _removePauser(msg.sender);
    }

    function _addPauser(address account) private {
        require(!isPauser(account), "Account is already pauser");
        pausers[account] = true;
        emit PauserAdded(account);
    }

    function _removePauser(address account) private {
        require(isPauser(account), "Account is not pauser");
        pausers[account] = false;
        emit PauserRemoved(account);
    }
}

File 9 of 16 : VolumeControl.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity 0.8.9;

import "./Governor.sol";

abstract contract VolumeControl is Governor {
    uint256 public epochLength; // seconds
    mapping(address => uint256) public epochVolumes; // key is token
    mapping(address => uint256) public epochVolumeCaps; // key is token
    mapping(address => uint256) public lastOpTimestamps; // key is token

    event EpochLengthUpdated(uint256 length);
    event EpochVolumeUpdated(address token, uint256 cap);

    function setEpochLength(uint256 _length) external onlyGovernor {
        epochLength = _length;
        emit EpochLengthUpdated(_length);
    }

    function setEpochVolumeCaps(address[] calldata _tokens, uint256[] calldata _caps) external onlyGovernor {
        require(_tokens.length == _caps.length, "length mismatch");
        for (uint256 i = 0; i < _tokens.length; i++) {
            epochVolumeCaps[_tokens[i]] = _caps[i];
            emit EpochVolumeUpdated(_tokens[i], _caps[i]);
        }
    }

    function _updateVolume(address _token, uint256 _amount) internal {
        if (epochLength == 0) {
            return;
        }
        uint256 cap = epochVolumeCaps[_token];
        if (cap == 0) {
            return;
        }
        uint256 volume = epochVolumes[_token];
        uint256 timestamp = block.timestamp;
        uint256 epochStartTime = (timestamp / epochLength) * epochLength;
        if (lastOpTimestamps[_token] < epochStartTime) {
            volume = _amount;
        } else {
            volume += _amount;
        }
        require(volume <= cap, "volume exceeds cap");
        epochVolumes[_token] = volume;
        lastOpTimestamps[_token] = timestamp;
    }
}

File 10 of 16 : DelayedTransfer.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity 0.8.9;

import "./Governor.sol";

abstract contract DelayedTransfer is Governor {
    struct delayedTransfer {
        address receiver;
        address token;
        uint256 amount;
        uint256 timestamp;
    }
    mapping(bytes32 => delayedTransfer) public delayedTransfers;
    mapping(address => uint256) public delayThresholds;
    uint256 public delayPeriod; // in seconds

    event DelayedTransferAdded(bytes32 id);
    event DelayedTransferExecuted(bytes32 id, address receiver, address token, uint256 amount);

    event DelayPeriodUpdated(uint256 period);
    event DelayThresholdUpdated(address token, uint256 threshold);

    function setDelayThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) external onlyGovernor {
        require(_tokens.length == _thresholds.length, "length mismatch");
        for (uint256 i = 0; i < _tokens.length; i++) {
            delayThresholds[_tokens[i]] = _thresholds[i];
            emit DelayThresholdUpdated(_tokens[i], _thresholds[i]);
        }
    }

    function setDelayPeriod(uint256 _period) external onlyGovernor {
        delayPeriod = _period;
        emit DelayPeriodUpdated(_period);
    }

    function _addDelayedTransfer(
        bytes32 id,
        address receiver,
        address token,
        uint256 amount
    ) internal {
        require(delayedTransfers[id].timestamp == 0, "delayed transfer already exists");
        delayedTransfers[id] = delayedTransfer({
            receiver: receiver,
            token: token,
            amount: amount,
            timestamp: block.timestamp
        });
        emit DelayedTransferAdded(id);
    }

    // caller needs to do the actual token transfer
    function _executeDelayedTransfer(bytes32 id) internal returns (delayedTransfer memory) {
        delayedTransfer memory transfer = delayedTransfers[id];
        require(transfer.timestamp > 0, "delayed transfer not exist");
        require(block.timestamp > transfer.timestamp + delayPeriod, "delayed transfer still locked");
        delete delayedTransfers[id];
        emit DelayedTransferExecuted(id, transfer.receiver, transfer.token, transfer.amount);
        return transfer;
    }
}

File 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 16 : Pb.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity 0.8.9;

// runtime proto sol library
library Pb {
    enum WireType {
        Varint,
        Fixed64,
        LengthDelim,
        StartGroup,
        EndGroup,
        Fixed32
    }

    struct Buffer {
        uint256 idx; // the start index of next read. when idx=b.length, we're done
        bytes b; // hold serialized proto msg, readonly
    }

    // create a new in-memory Buffer object from raw msg bytes
    function fromBytes(bytes memory raw) internal pure returns (Buffer memory buf) {
        buf.b = raw;
        buf.idx = 0;
    }

    // whether there are unread bytes
    function hasMore(Buffer memory buf) internal pure returns (bool) {
        return buf.idx < buf.b.length;
    }

    // decode current field number and wiretype
    function decKey(Buffer memory buf) internal pure returns (uint256 tag, WireType wiretype) {
        uint256 v = decVarint(buf);
        tag = v / 8;
        wiretype = WireType(v & 7);
    }

    // count tag occurrences, return an array due to no memory map support
    // have to create array for (maxtag+1) size. cnts[tag] = occurrences
    // should keep buf.idx unchanged because this is only a count function
    function cntTags(Buffer memory buf, uint256 maxtag) internal pure returns (uint256[] memory cnts) {
        uint256 originalIdx = buf.idx;
        cnts = new uint256[](maxtag + 1); // protobuf's tags are from 1 rather than 0
        uint256 tag;
        WireType wire;
        while (hasMore(buf)) {
            (tag, wire) = decKey(buf);
            cnts[tag] += 1;
            skipValue(buf, wire);
        }
        buf.idx = originalIdx;
    }

    // read varint from current buf idx, move buf.idx to next read, return the int value
    function decVarint(Buffer memory buf) internal pure returns (uint256 v) {
        bytes10 tmp; // proto int is at most 10 bytes (7 bits can be used per byte)
        bytes memory bb = buf.b; // get buf.b mem addr to use in assembly
        v = buf.idx; // use v to save one additional uint variable
        assembly {
            tmp := mload(add(add(bb, 32), v)) // load 10 bytes from buf.b[buf.idx] to tmp
        }
        uint256 b; // store current byte content
        v = 0; // reset to 0 for return value
        for (uint256 i = 0; i < 10; i++) {
            assembly {
                b := byte(i, tmp) // don't use tmp[i] because it does bound check and costs extra
            }
            v |= (b & 0x7F) << (i * 7);
            if (b & 0x80 == 0) {
                buf.idx += i + 1;
                return v;
            }
        }
        revert(); // i=10, invalid varint stream
    }

    // read length delimited field and return bytes
    function decBytes(Buffer memory buf) internal pure returns (bytes memory b) {
        uint256 len = decVarint(buf);
        uint256 end = buf.idx + len;
        require(end <= buf.b.length); // avoid overflow
        b = new bytes(len);
        bytes memory bufB = buf.b; // get buf.b mem addr to use in assembly
        uint256 bStart;
        uint256 bufBStart = buf.idx;
        assembly {
            bStart := add(b, 32)
            bufBStart := add(add(bufB, 32), bufBStart)
        }
        for (uint256 i = 0; i < len; i += 32) {
            assembly {
                mstore(add(bStart, i), mload(add(bufBStart, i)))
            }
        }
        buf.idx = end;
    }

    // return packed ints
    function decPacked(Buffer memory buf) internal pure returns (uint256[] memory t) {
        uint256 len = decVarint(buf);
        uint256 end = buf.idx + len;
        require(end <= buf.b.length); // avoid overflow
        // array in memory must be init w/ known length
        // so we have to create a tmp array w/ max possible len first
        uint256[] memory tmp = new uint256[](len);
        uint256 i = 0; // count how many ints are there
        while (buf.idx < end) {
            tmp[i] = decVarint(buf);
            i++;
        }
        t = new uint256[](i); // init t with correct length
        for (uint256 j = 0; j < i; j++) {
            t[j] = tmp[j];
        }
        return t;
    }

    // move idx pass current value field, to beginning of next tag or msg end
    function skipValue(Buffer memory buf, WireType wire) internal pure {
        if (wire == WireType.Varint) {
            decVarint(buf);
        } else if (wire == WireType.LengthDelim) {
            uint256 len = decVarint(buf);
            buf.idx += len; // skip len bytes value data
            require(buf.idx <= buf.b.length); // avoid overflow
        } else {
            revert();
        } // unsupported wiretype
    }

    // type conversion help utils
    function _bool(uint256 x) internal pure returns (bool v) {
        return x != 0;
    }

    function _uint256(bytes memory b) internal pure returns (uint256 v) {
        require(b.length <= 32); // b's length must be smaller than or equal to 32
        assembly {
            v := mload(add(b, 32))
        } // load all 32bytes to v
        v = v >> (8 * (32 - b.length)); // only first b.length is valid
    }

    function _address(bytes memory b) internal pure returns (address v) {
        v = _addressPayable(b);
    }

    function _addressPayable(bytes memory b) internal pure returns (address payable v) {
        require(b.length == 20);
        //load 32bytes then shift right 12 bytes
        assembly {
            v := div(mload(add(b, 32)), 0x1000000000000000000000000)
        }
    }

    function _bytes32(bytes memory b) internal pure returns (bytes32 v) {
        require(b.length == 32);
        assembly {
            v := mload(add(b, 32))
        }
    }

    // uint[] to uint8[]
    function uint8s(uint256[] memory arr) internal pure returns (uint8[] memory t) {
        t = new uint8[](arr.length);
        for (uint256 i = 0; i < t.length; i++) {
            t[i] = uint8(arr[i]);
        }
    }

    function uint32s(uint256[] memory arr) internal pure returns (uint32[] memory t) {
        t = new uint32[](arr.length);
        for (uint256 i = 0; i < t.length; i++) {
            t[i] = uint32(arr[i]);
        }
    }

    function uint64s(uint256[] memory arr) internal pure returns (uint64[] memory t) {
        t = new uint64[](arr.length);
        for (uint256 i = 0; i < t.length; i++) {
            t[i] = uint64(arr[i]);
        }
    }

    function bools(uint256[] memory arr) internal pure returns (bool[] memory t) {
        t = new bool[](arr.length);
        for (uint256 i = 0; i < t.length; i++) {
            t[i] = arr[i] != 0;
        }
    }
}

File 13 of 16 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 14 of 16 : Ownable.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 *
 * This adds a normal func that setOwner if _owner is address(0). So we can't allow
 * renounceOwnership. So we can support Proxy based upgradable contract
 */
abstract contract Ownable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(msg.sender);
    }

    /**
     * @dev Only to be called by inherit contracts, in their init func called by Proxy
     * we require _owner == address(0), which is only possible when it's a delegateCall
     * because constructor sets _owner in contract state.
     */
    function initOwner() internal {
        require(_owner == address(0), "owner already set");
        _setOwner(msg.sender);
    }

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @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 16 of 16 : Governor.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity 0.8.9;

import "./Ownable.sol";

abstract contract Governor is Ownable {
    mapping(address => bool) public governors;

    event GovernorAdded(address account);
    event GovernorRemoved(address account);

    modifier onlyGovernor() {
        require(isGovernor(msg.sender), "Caller is not governor");
        _;
    }

    constructor() {
        _addGovernor(msg.sender);
    }

    function isGovernor(address _account) public view returns (bool) {
        return governors[_account];
    }

    function addGovernor(address _account) public onlyOwner {
        _addGovernor(_account);
    }

    function removeGovernor(address _account) public onlyOwner {
        _removeGovernor(_account);
    }

    function renounceGovernor() public {
        _removeGovernor(msg.sender);
    }

    function _addGovernor(address _account) private {
        require(!isGovernor(_account), "Account is already governor");
        governors[_account] = true;
        emit GovernorAdded(_account);
    }

    function _removeGovernor(address _account) private {
        require(isGovernor(_account), "Account is not governor");
        governors[_account] = false;
        emit GovernorRemoved(_account);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"contract ISigsVerifier","name":"_sigsVerifier","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"period","type":"uint256"}],"name":"DelayPeriodUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"threshold","type":"uint256"}],"name":"DelayThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"DelayedTransferAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DelayedTransferExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"depositId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"mintChainId","type":"uint64"},{"indexed":false,"internalType":"address","name":"mintAccount","type":"address"},{"indexed":false,"internalType":"uint64","name":"nonce","type":"uint64"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"length","type":"uint256"}],"name":"EpochLengthUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"cap","type":"uint256"}],"name":"EpochVolumeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"GovernorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"GovernorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MaxDepositUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MinDepositUpdated","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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"withdrawId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"refChainId","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"refId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"burnAccount","type":"address"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addPauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delayPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delayThresholds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"delayedTransfers","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint64","name":"_mintChainId","type":"uint64"},{"internalType":"address","name":"_mintAccount","type":"address"},{"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"deposit","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint64","name":"_mintChainId","type":"uint64"},{"internalType":"address","name":"_mintAccount","type":"address"},{"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"depositNative","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"epochLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"epochVolumeCaps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"epochVolumes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"executeDelayedTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"governors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastOpTimestamps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nativeWrap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pausers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"records","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renouncePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_period","type":"uint256"}],"name":"setDelayPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_thresholds","type":"uint256[]"}],"name":"setDelayThresholds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_length","type":"uint256"}],"name":"setEpochLength","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_caps","type":"uint256[]"}],"name":"setEpochVolumeCaps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"setMaxDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"setMinDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"name":"setWrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sigsVerifier","outputs":[{"internalType":"contract ISigsVerifier","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_request","type":"bytes"},{"internalType":"bytes[]","name":"_sigs","type":"bytes[]"},{"internalType":"address[]","name":"_signers","type":"address[]"},{"internalType":"uint256[]","name":"_powers","type":"uint256[]"}],"name":"withdraw","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b506040516200378838038062003788833981016040819052620000349162000255565b6001600055620000443362000079565b6001805460ff60a01b191690556200005c33620000cb565b620000673362000195565b6001600160a01b031660805262000287565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811660009081526002602052604090205460ff16156200013a5760405162461bcd60e51b815260206004820152601960248201527f4163636f756e7420697320616c7265616479207061757365720000000000000060448201526064015b60405180910390fd5b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f891015b60405180910390a150565b6001600160a01b03811660009081526003602052604090205460ff1615620002005760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920676f7665726e6f720000000000604482015260640162000131565b6001600160a01b038116600081815260036020908152604091829020805460ff1916600117905590519182527fdc5a48d79e2e147530ff63ecdbed5a5a66adb9d5cf339384d5d076da197c40b591016200018a565b6000602082840312156200026857600080fd5b81516001600160a01b03811681146200028057600080fd5b9392505050565b6080516134de620002aa60003960008181610752015261178601526134de6000f3fe6080604052600436106102885760003560e01c80636b2c0f5511610153578063adc0d57f116100cb578063e3eece261161007f578063eecdac8811610064578063eecdac88146107f2578063f2fde38b14610812578063f83213831461083257600080fd5b8063e3eece2614610789578063e43581b8146107b957600080fd5b8063b5f2bc47116100b0578063b5f2bc4714610713578063ccf2683b14610740578063e026049c1461077457600080fd5b8063adc0d57f14610683578063b1c94d94146106fd57600080fd5b80638456cb59116101225780639e25fc5c116101075780639e25fc5c146106235780639ff9001a14610643578063a21a92801461066357600080fd5b80638456cb59146105f05780638da5cb5b1461060557600080fd5b80636b2c0f551461056b5780636ef8d66d1461058b57806380f51c12146105a057806382dc1ec4146105d057600080fd5b8063402d267d1161020157806354eea796116101b55780635c975abb1161019a5780635c975abb146104ff5780635ec2fa261461051e57806360216b001461053e57600080fd5b806354eea796146104c957806357d775f8146104e957600080fd5b806346fbf68e116101e657806346fbf68e1461044357806347b16c6c1461047c57806352532faa1461049c57600080fd5b8063402d267d146103de578063457bfa2f1461040b57600080fd5b8063303b6442116102585780633c4a25d01161023d5780633c4a25d0146103895780633d572107146103a95780633f4ba83a146103c957600080fd5b8063303b64421461033c5780633c29f8391461035c57600080fd5b8062a95fd71461029457806301e64725146102ba57806317bdbae5146102fa578063234636241461031c57600080fd5b3661028f57005b600080fd5b6102a76102a2366004612edd565b61085f565b6040519081526020015b60405180910390f35b3480156102c657600080fd5b506102ea6102d5366004612f2a565b600b6020526000908152604090205460ff1681565b60405190151581526020016102b1565b34801561030657600080fd5b5061031a610315366004612f8f565b610ac5565b005b34801561032857600080fd5b506102a7610337366004612ffb565b610c63565b34801561034857600080fd5b5061031a610357366004612f8f565b610dae565b34801561036857600080fd5b506102a7610377366004613059565b600c6020526000908152604090205481565b34801561039557600080fd5b5061031a6103a4366004613059565b610f45565b3480156103b557600080fd5b5061031a6103c4366004612f2a565b610fba565b3480156103d557600080fd5b5061031a61104e565b3480156103ea57600080fd5b506102a76103f9366004613059565b600d6020526000908152604090205481565b34801561041757600080fd5b50600e5461042b906001600160a01b031681565b6040516001600160a01b0390911681526020016102b1565b34801561044f57600080fd5b506102ea61045e366004613059565b6001600160a01b031660009081526002602052604090205460ff1690565b34801561048857600080fd5b5061031a610497366004612f8f565b6110b7565b3480156104a857600080fd5b506102a76104b7366004613059565b60096020526000908152604090205481565b3480156104d557600080fd5b5061031a6104e4366004612f2a565b61124e565b3480156104f557600080fd5b506102a760045481565b34801561050b57600080fd5b50600154600160a01b900460ff166102ea565b34801561052a57600080fd5b5061031a610539366004612f8f565b6112db565b34801561054a57600080fd5b506102a7610559366004613059565b60056020526000908152604090205481565b34801561057757600080fd5b5061031a610586366004613059565b611472565b34801561059757600080fd5b5061031a6114e4565b3480156105ac57600080fd5b506102ea6105bb366004613059565b60026020526000908152604090205460ff1681565b3480156105dc57600080fd5b5061031a6105eb366004613059565b6114ed565b3480156105fc57600080fd5b5061031a61155f565b34801561061157600080fd5b506001546001600160a01b031661042b565b34801561062f57600080fd5b5061031a61063e366004612f2a565b6115c6565b34801561064f57600080fd5b5061031a61065e366004613059565b61163b565b34801561066f57600080fd5b506102a761067e366004613074565b6116c6565b34801561068f57600080fd5b506106d261069e366004612f2a565b60086020526000908152604090208054600182015460028301546003909301546001600160a01b0392831693919092169184565b604080516001600160a01b0395861681529490931660208501529183015260608201526080016102b1565b34801561070957600080fd5b506102a7600a5481565b34801561071f57600080fd5b506102a761072e366004613059565b60066020526000908152604090205481565b34801561074c57600080fd5b5061042b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561078057600080fd5b5061031a611a90565b34801561079557600080fd5b506102ea6107a4366004613059565b60036020526000908152604090205460ff1681565b3480156107c557600080fd5b506102ea6107d4366004613059565b6001600160a01b031660009081526003602052604090205460ff1690565b3480156107fe57600080fd5b5061031a61080d366004613059565b611a99565b34801561081e57600080fd5b5061031a61082d366004613059565b611b0b565b34801561083e57600080fd5b506102a761084d366004613059565b60076020526000908152604090205481565b6000600260005414156108b95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055600154600160a01b900460ff161561090b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108b0565b84341461095a5760405162461bcd60e51b815260206004820152600f60248201527f416d6f756e74206d69736d61746368000000000000000000000000000000000060448201526064016108b0565b600e546001600160a01b03166109b25760405162461bcd60e51b815260206004820152601360248201527f4e61746976652077726170206e6f74207365740000000000000000000000000060448201526064016108b0565b600e546000906109ce906001600160a01b031687878787611bf9565b9050600e60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0876040518263ffffffff1660e01b81526004016000604051808303818588803b158015610a2057600080fd5b505af1158015610a34573d6000803e3d6000fd5b5050600e54604080518681523360208201526001600160a01b0392831691810191909152606081018b905267ffffffffffffffff808b16608083015291891660a082015290871660c08201527f28d226819e371600e26624ebc4a9a3947117ee2760209f816c789d3a99bf481b935060e0019150610aaf9050565b60405180910390a1600160005595945050505050565b3360009081526003602052604090205460ff16610b1d5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1033b7bb32b93737b960511b60448201526064016108b0565b828114610b5e5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016108b0565b60005b83811015610c5c57828282818110610b7b57610b7b613163565b9050602002013560096000878785818110610b9857610b98613163565b9050602002016020810190610bad9190613059565b6001600160a01b031681526020810191909152604001600020557fceaad6533bfb481492fb3e08ef19297f46611b8fa9de5ef4cf8dc23a56ad09ce858583818110610bfa57610bfa613163565b9050602002016020810190610c0f9190613059565b848484818110610c2157610c21613163565b604080516001600160a01b0390951685526020918202939093013590840152500160405180910390a180610c548161318f565b915050610b61565b5050505050565b600060026000541415610cb85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108b0565b6002600055600154600160a01b900460ff1615610d0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108b0565b6000610d198787878787611bf9565b9050610d306001600160a01b038816333089611df6565b604080518281523360208201526001600160a01b03898116828401526060820189905267ffffffffffffffff888116608084015290871660a0830152851660c082015290517f28d226819e371600e26624ebc4a9a3947117ee2760209f816c789d3a99bf481b9181900360e00190a160016000559695505050505050565b3360009081526003602052604090205460ff16610e065760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1033b7bb32b93737b960511b60448201526064016108b0565b828114610e475760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016108b0565b60005b83811015610c5c57828282818110610e6457610e64613163565b90506020020135600d6000878785818110610e8157610e81613163565b9050602002016020810190610e969190613059565b6001600160a01b031681526020810191909152604001600020557f0e5d348f9737ccc8b4cf0eea0ccf3670af071af8bea5d64664f10e700c08de72858583818110610ee357610ee3613163565b9050602002016020810190610ef89190613059565b848484818110610f0a57610f0a613163565b604080516001600160a01b0390951685526020918202939093013590840152500160405180910390a180610f3d8161318f565b915050610e4a565b33610f586001546001600160a01b031690565b6001600160a01b031614610fae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b0565b610fb781611e94565b50565b3360009081526003602052604090205460ff166110125760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1033b7bb32b93737b960511b60448201526064016108b0565b600a8190556040518181527fc0a39f234199b125fb93713c4d067bdcebbf691087f87b79c0feb92b156ba8b6906020015b60405180910390a150565b3360009081526002602052604090205460ff166110ad5760405162461bcd60e51b815260206004820152601460248201527f43616c6c6572206973206e6f742070617573657200000000000000000000000060448201526064016108b0565b6110b5611f51565b565b3360009081526003602052604090205460ff1661110f5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1033b7bb32b93737b960511b60448201526064016108b0565b8281146111505760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016108b0565b60005b83811015610c5c5782828281811061116d5761116d613163565b905060200201356006600087878581811061118a5761118a613163565b905060200201602081019061119f9190613059565b6001600160a01b031681526020810191909152604001600020557f608e49c22994f20b5d3496dca088b88dfd81b4a3e8cc3809ea1e10a320107e898585838181106111ec576111ec613163565b90506020020160208101906112019190613059565b84848481811061121357611213613163565b604080516001600160a01b0390951685526020918202939093013590840152500160405180910390a1806112468161318f565b915050611153565b3360009081526003602052604090205460ff166112a65760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1033b7bb32b93737b960511b60448201526064016108b0565b60048190556040518181527f2664fec2ff76486ac58ed087310855b648b15b9d19f3de8529e95f7c46b7d6b390602001611043565b3360009081526003602052604090205460ff166113335760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1033b7bb32b93737b960511b60448201526064016108b0565b8281146113745760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016108b0565b60005b83811015610c5c5782828281811061139157611391613163565b90506020020135600c60008787858181106113ae576113ae613163565b90506020020160208101906113c39190613059565b6001600160a01b031681526020810191909152604001600020557f0f48d517989455cd80ed52427e80553e66f9b69fd5cee8e26bd1a1f9c364fba685858381811061141057611410613163565b90506020020160208101906114259190613059565b84848481811061143757611437613163565b604080516001600160a01b0390951685526020918202939093013590840152500160405180910390a18061146a8161318f565b915050611377565b336114856001546001600160a01b031690565b6001600160a01b0316146114db5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b0565b610fb781611ff7565b6110b533611ff7565b336115006001546001600160a01b031690565b6001600160a01b0316146115565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b0565b610fb7816120b0565b3360009081526002602052604090205460ff166115be5760405162461bcd60e51b815260206004820152601460248201527f43616c6c6572206973206e6f742070617573657200000000000000000000000060448201526064016108b0565b6110b561216d565b600154600160a01b900460ff16156116135760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108b0565b600061161e826121f5565b90506116378160000151826020015183604001516123ba565b5050565b3361164e6001546001600160a01b031690565b6001600160a01b0316146116a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b0565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600154600090600160a01b900460ff16156117165760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108b0565b6000463060405160200161176c92919091825260601b6bffffffffffffffffffffffff191660208201527f57697468647261770000000000000000000000000000000000000000000000006034820152603c0190565b6040516020818303038152906040528051906020012090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663682dbc22828c8c6040516020016117c8939291906131aa565b6040516020818303038152906040528a8a8a8a8a8a6040518863ffffffff1660e01b81526004016117ff97969594939291906132db565b60006040518083038186803b15801561181757600080fd5b505afa15801561182b573d6000803e3d6000fd5b5050505060006118708b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506124ef92505050565b6020818101518251604080850151606080870151608088015160a089015185516bffffffffffffffffffffffff1998851b8916818b015296841b88166034880152604887019490945290821b8616606886015277ffffffffffffffffffffffffffffffffffffffffffffffff1960c09190911b16607c850152608484019190915230901b90921660a48201528151808203609801815260b890910182528051908301206000818152600b9093529120549192509060ff16156119645760405162461bcd60e51b815260206004820152600d60248201526c7265636f72642065786973747360981b60448201526064016108b0565b6000818152600b602052604090819020805460ff1916600117905582519083015161198f9190612651565b81516001600160a01b031660009081526009602052604090205480158015906119bb5750808360400151115b156119dd576119d882846020015185600001518660400151612769565b6119f4565b6119f48360200151846000015185604001516123ba565b602080840151845160408087015160808089015160a0808b01516060808d015187518d81526001600160a01b039a8b169b81019b909b52978916968a01969096529488019390935267ffffffffffffffff16908601528401521660c08201527f296a629c5265cb4e5319803d016902eb70a9079b89655fe2b7737821ed88beeb9060e00160405180910390a1509b9a5050505050505050505050565b6110b53361287c565b33611aac6001546001600160a01b031690565b6001600160a01b031614611b025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b0565b610fb78161287c565b33611b1e6001546001600160a01b031690565b6001600160a01b031614611b745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b0565b6001600160a01b038116611bf05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108b0565b610fb781612935565b6001600160a01b0385166000908152600c60205260408120548511611c605760405162461bcd60e51b815260206004820152601060248201527f616d6f756e7420746f6f20736d616c6c0000000000000000000000000000000060448201526064016108b0565b6001600160a01b0386166000908152600d60205260409020541580611c9d57506001600160a01b0386166000908152600d60205260409020548511155b611ce95760405162461bcd60e51b815260206004820152601060248201527f616d6f756e7420746f6f206c617267650000000000000000000000000000000060448201526064016108b0565b6040516bffffffffffffffffffffffff1933606090811b8216602084015288811b821660348401526048830188905277ffffffffffffffffffffffffffffffffffffffffffffffff1960c088811b8216606886015287831b8416607086015286811b8216608486015246901b16608c84015230901b16609482015260009060a80160408051601f1981840301815291815281516020928301206000818152600b90935291205490915060ff1615611dd25760405162461bcd60e51b815260206004820152600d60248201526c7265636f72642065786973747360981b60448201526064016108b0565b6000818152600b60205260409020805460ff19166001179055905095945050505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611e8e9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612987565b50505050565b6001600160a01b03811660009081526003602052604090205460ff1615611efd5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920676f7665726e6f72000000000060448201526064016108b0565b6001600160a01b038116600081815260036020908152604091829020805460ff1916600117905590519182527fdc5a48d79e2e147530ff63ecdbed5a5a66adb9d5cf339384d5d076da197c40b59101611043565b600154600160a01b900460ff16611faa5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016108b0565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03811660009081526002602052604090205460ff1661205f5760405162461bcd60e51b815260206004820152601560248201527f4163636f756e74206973206e6f7420706175736572000000000000000000000060448201526064016108b0565b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e9101611043565b6001600160a01b03811660009081526002602052604090205460ff16156121195760405162461bcd60e51b815260206004820152601960248201527f4163636f756e7420697320616c7265616479207061757365720000000000000060448201526064016108b0565b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f89101611043565b600154600160a01b900460ff16156121ba5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108b0565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611fda3390565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260086020908152604091829020825160808101845281546001600160a01b03908116825260018301541692810192909252600281015492820192909252600390910154606082018190526122b45760405162461bcd60e51b815260206004820152601a60248201527f64656c61796564207472616e73666572206e6f7420657869737400000000000060448201526064016108b0565b600a5481606001516122c691906133bb565b42116123145760405162461bcd60e51b815260206004820152601d60248201527f64656c61796564207472616e73666572207374696c6c206c6f636b656400000060448201526064016108b0565b600083815260086020908152604080832080546001600160a01b03199081168255600182018054909116905560028101849055600301929092558251908301518383015192517f3b40e5089937425d14cdd96947e5661868357e224af59bd8b24a4b8a330d4426936123ac93889390929091909384526001600160a01b03928316602085015291166040830152606082015260800190565b60405180910390a192915050565b600e546001600160a01b03838116911614156124d657600e54604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561241657600080fd5b505af115801561242a573d6000803e3d6000fd5b505050506000836001600160a01b03168261c35090604051600060405180830381858888f193505050503d8060008114612480576040519150601f19603f3d011682016040523d82523d6000602084013e612485565b606091505b5050905080611e8e5760405162461bcd60e51b815260206004820152601b60248201527f6661696c656420746f2073656e64206e617469766520746f6b656e000000000060448201526064016108b0565b6124ea6001600160a01b0383168483612a6c565b505050565b6040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905283518085019094528184528301849052909190805b602083015151835110156126495761254d83612a9c565b9092509050816001141561257c5761256c61256784612ad6565b612b93565b6001600160a01b03168452612536565b81600214156125a45761259161256784612ad6565b6001600160a01b03166020850152612536565b81600314156125c8576125be6125b984612ad6565b612ba4565b6040850152612536565b81600414156125f0576125dd61256784612ad6565b6001600160a01b03166060850152612536565b81600514156126165761260283612bdb565b67ffffffffffffffff166080850152612536565b816006141561263a5761263061262b84612ad6565b612c5d565b60a0850152612536565b6126448382612c75565b612536565b505050919050565b60045461265c575050565b6001600160a01b0382166000908152600660205260409020548061267f57505050565b6001600160a01b038316600090815260056020526040812054600454909142916126a981846133d3565b6126b391906133f5565b6001600160a01b0387166000908152600760205260409020549091508111156126de578492506126eb565b6126e885846133bb565b92505b8383111561273b5760405162461bcd60e51b815260206004820152601260248201527f766f6c756d65206578636565647320636170000000000000000000000000000060448201526064016108b0565b506001600160a01b039094166000908152600560209081526040808320939093556007905220929092555050565b600084815260086020526040902060030154156127c85760405162461bcd60e51b815260206004820152601f60248201527f64656c61796564207472616e7366657220616c7265616479206578697374730060448201526064016108b0565b604080516080810182526001600160a01b0380861682528481166020808401918252838501868152426060860190815260008b8152600890935291869020945185549085166001600160a01b031991821617865592516001860180549190951693169290921790925551600283015551600390910155517fcbcfffe5102114216a85d3aceb14ad4b81a3935b1b5c468fadf3889eb9c5dce69061286e9086815260200190565b60405180910390a150505050565b6001600160a01b03811660009081526003602052604090205460ff166128e45760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f7420676f7665726e6f7200000000000000000060448201526064016108b0565b6001600160a01b038116600081815260036020908152604091829020805460ff1916905590519182527f1ebe834e73d60a5fec822c1e1727d34bc79f2ad977ed504581cc1822fe20fb5b9101611043565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006129dc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ce79092919063ffffffff16565b8051909150156124ea57808060200190518101906129fa9190613414565b6124ea5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108b0565b6040516001600160a01b0383166024820152604481018290526124ea90849063a9059cbb60e01b90606401611e2a565b6000806000612aaa84612bdb565b9050612ab76008826133d3565b9250806007166005811115612ace57612ace613436565b915050915091565b60606000612ae383612bdb565b90506000818460000151612af791906133bb565b9050836020015151811115612b0b57600080fd5b8167ffffffffffffffff811115612b2457612b2461344c565b6040519080825280601f01601f191660200182016040528015612b4e576020820181803683370190505b50602080860151865192955091818601919083010160005b85811015612b88578181015183820152612b816020826133bb565b9050612b66565b505050935250919050565b6000612b9e82612d00565b92915050565b6000602082511115612bb557600080fd5b6020820151905081516020612bca9190613462565b612bd59060086133f5565b1c919050565b602080820151825181019091015160009182805b600a811015612c575783811a9150612c088160076133f5565b82607f16901b851794508160801660001415612c4557612c298160016133bb565b86518790612c389083906133bb565b9052509395945050505050565b80612c4f8161318f565b915050612bef565b50600080fd5b60008151602014612c6d57600080fd5b506020015190565b6000816005811115612c8957612c89613436565b1415612c98576124ea82612bdb565b6002816005811115612cac57612cac613436565b141561028f576000612cbd83612bdb565b90508083600001818151612cd191906133bb565b905250602083015151835111156124ea57600080fd5b6060612cf68484600085612d28565b90505b9392505050565b60008151601414612d1057600080fd5b50602001516c01000000000000000000000000900490565b606082471015612da05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108b0565b6001600160a01b0385163b612df75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108b0565b600080866001600160a01b03168587604051612e139190613479565b60006040518083038185875af1925050503d8060008114612e50576040519150601f19603f3d011682016040523d82523d6000602084013e612e55565b606091505b5091509150612e65828286612e70565b979650505050505050565b60608315612e7f575081612cf9565b825115612e8f5782518084602001fd5b8160405162461bcd60e51b81526004016108b09190613495565b803567ffffffffffffffff81168114612ec157600080fd5b919050565b80356001600160a01b0381168114612ec157600080fd5b60008060008060808587031215612ef357600080fd5b84359350612f0360208601612ea9565b9250612f1160408601612ec6565b9150612f1f60608601612ea9565b905092959194509250565b600060208284031215612f3c57600080fd5b5035919050565b60008083601f840112612f5557600080fd5b50813567ffffffffffffffff811115612f6d57600080fd5b6020830191508360208260051b8501011115612f8857600080fd5b9250929050565b60008060008060408587031215612fa557600080fd5b843567ffffffffffffffff80821115612fbd57600080fd5b612fc988838901612f43565b90965094506020870135915080821115612fe257600080fd5b50612fef87828801612f43565b95989497509550505050565b600080600080600060a0868803121561301357600080fd5b61301c86612ec6565b94506020860135935061303160408701612ea9565b925061303f60608701612ec6565b915061304d60808701612ea9565b90509295509295909350565b60006020828403121561306b57600080fd5b612cf982612ec6565b6000806000806000806000806080898b03121561309057600080fd5b883567ffffffffffffffff808211156130a857600080fd5b818b0191508b601f8301126130bc57600080fd5b8135818111156130cb57600080fd5b8c60208285010111156130dd57600080fd5b60209283019a509850908a013590808211156130f857600080fd5b6131048c838d01612f43565b909850965060408b013591508082111561311d57600080fd5b6131298c838d01612f43565b909650945060608b013591508082111561314257600080fd5b5061314f8b828c01612f43565b999c989b5096995094979396929594505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156131a3576131a3613179565b5060010190565b838152818360208301376000910160200190815292915050565b60005b838110156131df5781810151838201526020016131c7565b83811115611e8e5750506000910152565b600081518084526132088160208601602086016131c4565b601f01601f19169290920160200192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8183526000602080850194508260005b85811015613281576001600160a01b0361326e83612ec6565b1687529582019590820190600101613255565b509495945050505050565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156132be57600080fd5b8260051b8083602087013760009401602001938452509192915050565b6080815260006132ee608083018a6131f0565b82810360208401528088825260208201905060208960051b8301018a60005b8b81101561338157848303601f190184528135368e9003601e1901811261333357600080fd5b8d01803567ffffffffffffffff81111561334c57600080fd5b8036038f131561335b57600080fd5b61336985826020850161321c565b6020968701969095509390930192505060010161330d565b5050848103604086015261339681898b613245565b9250505082810360608401526133ad81858761328c565b9a9950505050505050505050565b600082198211156133ce576133ce613179565b500190565b6000826133f057634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561340f5761340f613179565b500290565b60006020828403121561342657600080fd5b81518015158114612cf957600080fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60008282101561347457613474613179565b500390565b6000825161348b8184602087016131c4565b9190910192915050565b602081526000612cf960208301846131f056fea26469706673582212202e917de31ab33a3c315aff7ddba45f6bd43b620e27c1200065e028de9ad377de64736f6c634300080900330000000000000000000000001619de6b6b20ed217a58d00f37b9d47c7663feca

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

0000000000000000000000001619de6b6b20ed217a58d00f37b9d47c7663feca

-----Decoded View---------------
Arg [0] : _sigsVerifier (address): 0x1619de6b6b20ed217a58d00f37b9d47c7663feca

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


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.