Contract 0x68FCbECa74A7E5D386f74E14682c94DE0e1bC56b 2

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe4e681379ce12bf118a87d85772ee76c1692ee7667c20c7c7ac83066e9aa58d10xb7a0c978202642962022-09-25 15:51:521 day 17 hrs ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0011824035 26.5
0x494720861dfa4f8cf04e880c65872c098322628bfd50748a160ec947cca81acf0xb7a0c978202642852022-09-25 15:51:261 day 17 hrs ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0011824035 26.5
0x082ad797222162e312bc26e764d1fb7483d0e71ea2f80ae41b2f2f4a50f97b270xbd93d635201863052022-09-23 18:32:103 days 14 hrs ago0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.007743725 25
0x08de5ba5abab21981e0f69189cd0ce91bc9d518799c3f908f49c6a4ff5dd45200xb7a0c978200641662022-09-20 10:23:146 days 22 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0011845235 26.5
0x3538f7ccc89888a3aaa3f3b963b0eab8cfd36934fb4aa19348285e00551de6d1New Req200641382022-09-20 10:21:586 days 22 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0019724215 26.5
0xea7c861b29cfbc8136accf68b4e66057166792f7f934a7309971e307a5b7e2780xbd93d635200482782022-09-19 23:10:157 days 9 hrs ago0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.01044845 25
0xdce6104fbc73252764ce6178d0bf7ef50140137f7f6cfc03ff7287473b23cef40xb7a0c978200417062022-09-19 18:35:357 days 14 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0011845235 26.5
0x60195b0db02fcfbbe58305f61c342dccb6aa2ed2394d57790f7e9ffeef51e4a5New Req200356912022-09-19 14:21:597 days 18 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0019724215 26.5
0xbdc93cb9f6cb6516119ca65e8d169c9e5251451bd0ed9912e230d64338dc00370xbd93d635200260132022-09-19 7:33:318 days 1 hr ago0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.012563260878 29.647603387
0xda97af9466f71c8cc44082afef1a9fa8674ef8cba0d45d3ff5aea35c2c5ce311New Req200069242022-09-18 18:11:108 days 14 hrs ago0xf2ad941ca98aedeb8981b21a3b68c42234b00aff IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001986459279 26.779267438
0xb3d9a672cbfccbcb21b9de599ea67a899d5f6c49990c385d7eb540ac74a63985New Req198902352022-09-15 6:27:2512 days 2 hrs ago0x92833ba18f0314f942eaa3a2149f963e07928e76 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001973545828 26.891208999
0x0c66aba8ec08878fb8a37f4f51adf9f99410347519b290506adc25e42edc57200xb7a0c978198562662022-09-14 6:33:0013 days 2 hrs ago0xc59a909b103bdc430b23bf9daeca40b8b65d8c7d IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0011827215 26.5
0xc173b879c4f935fc83775de126e044d41b3deaf02d86a954f44b18a88135dba5New Req198359642022-09-13 16:06:3613 days 17 hrs ago0xc59a909b103bdc430b23bf9daeca40b8b65d8c7d IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001944199 26.5
0x2d10cec44733be8973d1263bbf609f0e5eed9e01c937110ba98cc9ae577203160xb7a0c978197879602022-09-12 6:30:5315 days 2 hrs ago0x18686cb8fdc712ef225a7ea6eaa71d2f0c8862d9 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001206333 27
0xe8fc05f7a052b8f9f290da72ac4fc3ca0f78b402dcce8397a7ad7e0027343fadNew Req195214342022-09-04 8:30:0123 days 37 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001945153 26.5
0x898a7e8194d96bbb0c85382387b82e64ed48c79813ea6eb5a79d01be2b3c04a9New Req195214202022-09-04 8:29:3323 days 37 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001944517 26.5
0x3b5073017299521e06f25df117793c433961bd3fd969153917a57a78ef250eacNew Req195214092022-09-04 8:29:1123 days 38 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001944517 26.5
0xcfa888ee89456c887efa558d893b2a4d35381726aa39ed79d7523264887b75170xb7a0c978195213542022-09-04 8:27:2023 days 40 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0011824035 26.5
0x71ba7025a4f45143c5bffc16855965d9e0f7629b5f8424336059f4e24aa659a00xb7a0c978195213442022-09-04 8:27:0023 days 40 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0011830395 26.5
0x5517df1cdbda979745dca2c64ef79f7c9cf6a83a0d5f7d650c3ce074870dd7a80xb7a0c978195213372022-09-04 8:26:4623 days 40 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001067632 26.5
0x593f1d894ea5fadd2188a4ea98a12c1617589e5dc87cd2cdd18d650f99ec638b0xb7a0c978195213332022-09-04 8:26:3823 days 40 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.0011824035 26.5
0xed2dd76a2c76d7afba22d07dfa71783c00a10af47f1ca316be1b24f27b9baf01New Req195213102022-09-04 8:25:4923 days 41 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001944517 26.5
0xdde09741b6031156f0f26be932a8318bb8c01dda8ef20c75cecabb35a4ca2b3aNew Req195212942022-09-04 8:25:1723 days 42 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001944517 26.5
0x3f02c98dd11d0c2345d4f2eb9ec2e5884249be98fab6976edfc1377bf52411c0New Req195212602022-09-04 8:24:0923 days 43 mins ago0x26cbb851ed00fa00e608ed3a2608eaf164cf9e23 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001945153 26.5
0x9713f958b46af7d9c2eac7615a90f80fc6f1e8ffb6fdc188aff8e7e4b5120ffeNew Req194354382022-09-02 7:54:4025 days 1 hr ago0x18686cb8fdc712ef225a7ea6eaa71d2f0c8862d9 IN  0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0 AVAX0.001982178 27
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x082ad797222162e312bc26e764d1fb7483d0e71ea2f80ae41b2f2f4a50f97b27201863052022-09-23 18:32:103 days 14 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.0123760325 AVAX
0xea7c861b29cfbc8136accf68b4e66057166792f7f934a7309971e307a5b7e278200482782022-09-19 23:10:157 days 9 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.0109481775 AVAX
0xea7c861b29cfbc8136accf68b4e66057166792f7f934a7309971e307a5b7e278200482782022-09-19 23:10:157 days 9 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.0109481775 AVAX
0xbdc93cb9f6cb6516119ca65e8d169c9e5251451bd0ed9912e230d64338dc0037200260132022-09-19 7:33:318 days 1 hr ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.01180972 AVAX
0xbdc93cb9f6cb6516119ca65e8d169c9e5251451bd0ed9912e230d64338dc0037200260132022-09-19 7:33:318 days 1 hr ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.01180972 AVAX
0x3baeae6f6d798a787282e946abf8b68af9a3ddd97c64fc6c4431dfe59fd7b594194317422022-09-02 5:49:5625 days 3 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.01108536 AVAX
0x3baeae6f6d798a787282e946abf8b68af9a3ddd97c64fc6c4431dfe59fd7b594194317422022-09-02 5:49:5625 days 3 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.01108536 AVAX
0xd287b2b6d842b1a83babe23b90b9b5523f5e637b5c23cfdb4ff0b9cfde077c67193728052022-08-31 20:50:4326 days 12 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.01097707 AVAX
0xd287b2b6d842b1a83babe23b90b9b5523f5e637b5c23cfdb4ff0b9cfde077c67193728052022-08-31 20:50:4326 days 12 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.01097707 AVAX
0x4afafe01515d18c9c8d4c26b64adeb68c5ced63c826bb05da42d2bfb47178c42193656812022-08-31 16:52:2326 days 16 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.01153282 AVAX
0x4afafe01515d18c9c8d4c26b64adeb68c5ced63c826bb05da42d2bfb47178c42193656812022-08-31 16:52:2326 days 16 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.01153282 AVAX
0x1d152566917a8509b4c6813e4ca1693af56d1a1499b09855a93dc88620c6b9c5192600872022-08-29 5:46:4429 days 3 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.01823432 AVAX
0x1d152566917a8509b4c6813e4ca1693af56d1a1499b09855a93dc88620c6b9c5192600872022-08-29 5:46:4429 days 3 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.01823432 AVAX
0xf43b538de53b91aa24206218163744449a47b102e8e41c06e2b9d3c10e96b764192444062022-08-28 20:59:5629 days 12 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.0193377275 AVAX
0xf43b538de53b91aa24206218163744449a47b102e8e41c06e2b9d3c10e96b764192444062022-08-28 20:59:5629 days 12 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.0193377275 AVAX
0x5e88a62de2ddb5611dc8b5d5fc6613a477ffc8ccd6dea2cbbcd188f4279aeb20192419572022-08-28 19:37:4029 days 13 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.0187819775 AVAX
0x5e88a62de2ddb5611dc8b5d5fc6613a477ffc8ccd6dea2cbbcd188f4279aeb20192419572022-08-28 19:37:4029 days 13 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.0187819775 AVAX
0x1a0198fdecb7c337a482e61ab55fc25fc2ed0890d040b6128af84742e09c3528191119392022-08-25 18:34:3232 days 14 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.01789112 AVAX
0x1a0198fdecb7c337a482e61ab55fc25fc2ed0890d040b6128af84742e09c3528191119392022-08-25 18:34:3232 days 14 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.01789112 AVAX
0xbfb3baa80450e998d448d6654583c4295eed426310603c9473057912aa11c1e4188582012022-08-19 20:00:4938 days 13 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.012989275 AVAX
0xbfb3baa80450e998d448d6654583c4295eed426310603c9473057912aa11c1e4188582012022-08-19 20:00:4938 days 13 hrs ago Trader Joe: Router 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.012989275 AVAX
0x7b6544dd501e1a9f733b0d498896d727f3724ca5bc1072185a5cc42266e616f5188508692022-08-19 15:55:1338 days 17 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.0067062125 AVAX
0x7b6544dd501e1a9f733b0d498896d727f3724ca5bc1072185a5cc42266e616f5188508692022-08-19 15:55:1338 days 17 hrs ago 0xe3e761127cbd037e18186698a2733d1e71623ebe 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0.0067062125 AVAX
0x7b6544dd501e1a9f733b0d498896d727f3724ca5bc1072185a5cc42266e616f5188508692022-08-19 15:55:1338 days 17 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b 0xc21e82fe258abf9bc3ef68fb38aecda79e4729640.1 AVAX
0x9953ad1090a8a5235c18c2a8a1df526f899ff958c13c093e4e85f0a2f00e31fa186704972022-08-15 9:49:5342 days 23 hrs ago 0x68fcbeca74a7e5d386f74e14682c94de0e1bc56b0xbbfd65c226b03bf8f5d4a3b247b4105e2fac564a0.01063387 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Registry

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 18 : Registry.sol
pragma solidity 0.8.6;


import "ReentrancyGuard.sol";
import "IRegistry.sol";
import "IStakeManager.sol";
import "IOracle.sol";
import "IForwarder.sol";
import "Shared.sol";
import "AUTO.sol";


contract Registry is IRegistry, Shared, ReentrancyGuard {
    
    // Constant public
    uint public constant GAS_OVERHEAD_AUTO = 16000;
    uint public constant GAS_OVERHEAD_ETH = 6000;
    uint public constant BASE_BPS = 10000;
    uint public constant PAY_AUTO_BPS = 11000;
    uint public constant PAY_ETH_BPS = 13000;

    // Constant private
    bytes private constant _EMPTY_BYTES = "";
    
    AUTO private immutable _AUTO;
    IStakeManager private immutable _stakeMan;
    IOracle private immutable _oracle;
    IForwarder private immutable _userForwarder;
    IForwarder private immutable _gasForwarder;
    IForwarder private immutable _userGasForwarder;

    // Used to make sure that `target` can't be something that affects
    // the Autonomy system itself
    mapping(address => bool) private _invalidTargets;
    // This counts the number of times each user has had a request executed
    mapping(address => uint) private _reqCounts;
    // This counts the number of times each staker has executed a request
    mapping(address => uint) private _execCounts;
    // This counts the number of times each referer has been identified in an
    // executed tx
    mapping(address => uint) private _referalCounts;
    // We need to have 2 separate arrays for adding requests with and without
    // eth because, when comparing the hash of a request to be executed to the
    // stored hash, we have no idea what the request had for the eth values
    // that was originally stored as a hash and therefore would need to store
    // an extra bool saying where eth was sent with the new request. Instead, 
    // that can be known implicitly by having 2 separate arrays.
    bytes32[] private _hashedReqs;
    bytes32[] private _hashedReqsUnveri;
    
    
    // This is defined in IRegistry. Here for convenience
    // The address vars are 20b, total 60, calldata is 4b + n*32b usually, which
    // has a factor of 32. uint112 since the current ETH supply of ~115m can fit
    // into that and it's the highest such that 2 * uint112 + 2 * bool is < 256b
    // struct Request {
    //     address payable user;
    //     address target;
    //     address payable referer;
    //     bytes callData;
    //     uint112 initEthSent;
    //     uint112 ethForCall;
    //     bool verifyUser;
    //     bool insertFeeAmount;
    //     bool payWithAUTO;
    //     bool isAlive;
    // }

    // Easier to parse when using native types rather than structs
    event HashedReqAdded(
        uint indexed id,
        address indexed user,
        address target,
        address payable referer,
        bytes callData,
        uint112 initEthSent,
        uint112 ethForCall,
        bool verifyUser,
        bool insertFeeAmount,
        bool payWithAUTO,
        bool isAlive
    );
    event HashedReqUnveriAdded(uint indexed id);
    event HashedReqExecuted(uint indexed id, bool wasRemoved);
    event HashedReqUnveriExecuted(uint indexed id, bool wasRemoved);
    event HashedReqCancelled(uint indexed id);
    event HashedReqUnveriCancelled(uint indexed id);


    constructor(
        IStakeManager stakeMan,
        IOracle oracle,
        IForwarder userForwarder,
        IForwarder gasForwarder,
        IForwarder userGasForwarder,
        string memory tokenName,
        string memory tokenSymbol,
        uint totalAUTOSupply
    ) ReentrancyGuard() {
        // ERC777 token
        address[] memory defaultOperators = new address[](2);
        defaultOperators[0] = address(this);
        defaultOperators[1] = address(stakeMan);
        AUTO aut = new AUTO(tokenName, tokenSymbol, defaultOperators, msg.sender, totalAUTOSupply);

        _AUTO = aut;
        _stakeMan = stakeMan;
        _oracle = oracle;
        _userForwarder = userForwarder;
        _gasForwarder = gasForwarder;
        _userGasForwarder = userGasForwarder;
        _invalidTargets[address(this)] = true;
        _invalidTargets[address(userForwarder)] = true;
        _invalidTargets[address(gasForwarder)] = true;
        _invalidTargets[address(userGasForwarder)] = true;
        _invalidTargets[address(aut)] = true;
        _invalidTargets[0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24] = true;
        _invalidTargets[address(stakeMan)] = true;
        _invalidTargets[_ADDR_0] = true;
    }


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                      Hashed Requests                     //
    //                                                          //
    //////////////////////////////////////////////////////////////

    function newReq(
        address target,
        address payable referer,
        bytes calldata callData,
        uint112 ethForCall,
        bool verifyUser,
        bool insertFeeAmount,
        bool isAlive
    ) external payable override targetNotThis(target) returns (uint id) {
        return _newReq(
            target,
            referer,
            callData,
            ethForCall,
            verifyUser,
            insertFeeAmount,
            _oracle.defaultPayIsAUTO(),
            isAlive
        );
    }

    function newReqPaySpecific(
        address target,
        address payable referer,
        bytes calldata callData,
        uint112 ethForCall,
        bool verifyUser,
        bool insertFeeAmount,
        bool payWithAUTO,
        bool isAlive
    ) external payable override targetNotThis(target) returns (uint id) {
        return _newReq(
            target,
            referer,
            callData,
            ethForCall,
            verifyUser,
            insertFeeAmount,
            payWithAUTO,
            isAlive
        );
    }

    function _newReq(
        address target,
        address payable referer,
        bytes calldata callData,
        uint112 ethForCall,
        bool verifyUser,
        bool insertFeeAmount,
        bool payWithAUTO,
        bool isAlive
    )
        private
        validEth(payWithAUTO, ethForCall)
        returns (uint id)
    {
        if (isAlive) {
            require(msg.value == 0, "Reg: no ETH while alive");
        }

        Request memory r = Request(
            payable(msg.sender),
            target,
            referer,
            callData,
            uint112(msg.value),
            ethForCall,
            verifyUser,
            insertFeeAmount,
            payWithAUTO,
            isAlive
        );
        bytes32 hashedIpfsReq = keccak256(getReqBytes(r));

        id = _hashedReqs.length;
        emit HashedReqAdded(
            id,
            r.user,
            r.target,
            r.referer,
            r.callData,
            r.initEthSent,
            r.ethForCall,
            r.verifyUser,
            r.insertFeeAmount,
            r.payWithAUTO,
            r.isAlive
        );
        _hashedReqs.push(hashedIpfsReq);
    }

    function getHashedReqs() external view override returns (bytes32[] memory) {
        return _hashedReqs;
    }

    function getHashedReqsSlice(uint startIdx, uint endIdx) external override view returns (bytes32[] memory) {
        return _getBytes32Slice(_hashedReqs, startIdx, endIdx);
    }

    function getHashedReqsLen() external view override returns (uint) {
        return _hashedReqs.length;
    }
    
    function getHashedReq(uint id) external view override returns (bytes32) {
        return _hashedReqs[id];
    }


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                Hashed Requests Unverified                //
    //                                                          //
    //////////////////////////////////////////////////////////////

    function newHashedReqUnveri(bytes32 hashedIpfsReq)
        external
        override
        nzBytes32(hashedIpfsReq)
        returns (uint id)
    {
        id = _hashedReqsUnveri.length;
        _hashedReqsUnveri.push(hashedIpfsReq);
        emit HashedReqUnveriAdded(id);
    }
    
    function getHashedReqsUnveri() external view override returns (bytes32[] memory) {
        return _hashedReqsUnveri;
    }

    function getHashedReqsUnveriSlice(uint startIdx, uint endIdx) external view override returns (bytes32[] memory) {
        return _getBytes32Slice(_hashedReqsUnveri, startIdx, endIdx);
    }

    function getHashedReqsUnveriLen() external view override returns (uint) {
        return _hashedReqsUnveri.length;
    }
    
    function getHashedReqUnveri(uint id) external view override returns (bytes32) {
        return _hashedReqsUnveri[id];
    }


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                        Bytes Helpers                     //
    //                                                          //
    //////////////////////////////////////////////////////////////

    function getReqBytes(Request memory r) public pure override returns (bytes memory) {
        return abi.encode(r);
    }

    function getIpfsReqBytes(
        bytes memory r,
        bytes memory dataPrefix,
        bytes memory dataPostfix
    ) public pure override returns (bytes memory) {
        return abi.encodePacked(
            dataPrefix,
            r,
            dataPostfix
        );
    }

    function getHashedIpfsReq(
        bytes memory r,
        bytes memory dataPrefix,
        bytes memory dataPostfix
    ) public pure override returns (bytes32) {
        return sha256(getIpfsReqBytes(r, dataPrefix, dataPostfix));
    }

    function getReqFromBytes(bytes memory rBytes) public pure override returns (Request memory r) {
        (r) = abi.decode(rBytes, (Request));
    }

    function insertToCallData(bytes calldata callData, uint expectedGas, uint startIdx) public pure override returns (bytes memory) {
        bytes memory cd = callData;
        bytes memory expectedGasBytes = abi.encode(expectedGas);
        for (uint i = 0; i < 32; i++) {
            cd[startIdx+i] = expectedGasBytes[i];
        }

        return cd;
    }
    

    //////////////////////////////////////////////////////////////
    //                                                          //
    //                         Executions                       //
    //                                                          //
    //////////////////////////////////////////////////////////////


    /**
     * @dev validCalldata needs to be before anything that would convert it to memory
     *      since that is persistent and would prevent validCalldata, that requires
     *      calldata, from working. Can't do the check in _execute for the same reason.
     *      Note: targetNotThis and validEth are used in newReq.
     *      validCalldata is only used here because it causes an unknown
     *      'InternalCompilerError' when using it with newReq
     */
    function executeHashedReq(
        uint id,
        Request calldata r,
        uint expectedGas
    )
        external
        override
        validExec
        nonReentrant
        validCalldata(r)
        verReq(id, r)
        returns (uint gasUsed)
    {
        uint startGas = gasleft();

        // We are the gods now
        if (r.isAlive) {
            emit HashedReqExecuted(id, false);
        } else {
            emit HashedReqExecuted(id, true);
            delete _hashedReqs[id];
        }
        _execute(r, expectedGas);

        gasUsed = startGas - gasleft() + (r.payWithAUTO == true ? GAS_OVERHEAD_AUTO : GAS_OVERHEAD_ETH);
        // Make sure that the expected gas used is within 10% of the actual gas used
        require(expectedGas * 10 <= gasUsed * 11, "Reg: expectedGas too high");
    }

    function executeHashedReqUnveri(
        uint id,
        Request calldata r,
        bytes memory dataPrefix,
        bytes memory dataSuffix,
        uint expectedGas
    )
        external
        override
        validExec
        nonReentrant
        targetNotThis(r.target)
        verReqIPFS(id, r, dataPrefix, dataSuffix)
        returns (uint gasUsed)
    {
        uint startGas = gasleft();
        require(
            r.initEthSent == 0 &&
            r.ethForCall == 0 &&
            r.payWithAUTO == true &&
            r.verifyUser == false,
            "Reg: cannot verify. Nice try ;)"
        );

        // We are the gods now
        if (r.isAlive) {
            emit HashedReqUnveriExecuted(id, false);
        } else {
            emit HashedReqUnveriExecuted(id, true);
            delete _hashedReqsUnveri[id];
        }
        _execute(r, expectedGas);

        gasUsed = startGas - gasleft() + (r.payWithAUTO == true ? GAS_OVERHEAD_AUTO : GAS_OVERHEAD_ETH);
        // Make sure that the expected gas used is within 10% of the actual gas used
        require(expectedGas * 10 <= gasUsed * 11, "Reg: expectedGas too high");
    }

    function _execute(Request calldata r, uint expectedGas) private {
        IOracle orac = _oracle;
        uint ethStartBal = address(this).balance;
        uint feeTotal;
        if (r.payWithAUTO) {
            feeTotal = expectedGas * orac.getGasPriceFast() * orac.getAUTOPerETH() * PAY_AUTO_BPS / (BASE_BPS * _E_18);
        } else {
            feeTotal = expectedGas * orac.getGasPriceFast() * PAY_ETH_BPS / BASE_BPS;
        }

        // Make the call that the user requested
        bool success;
        bytes memory returnData;
        if (r.verifyUser && !r.insertFeeAmount) {
            (success, returnData) = _userForwarder.forward{value: r.ethForCall}(r.target, r.callData);
        } else if (!r.verifyUser && r.insertFeeAmount) {
            (success, returnData) = _gasForwarder.forward{value: r.ethForCall}(
                r.target,
                insertToCallData(r.callData, feeTotal, 4)
            );
        } else if (r.verifyUser && r.insertFeeAmount) {
            (success, returnData) = _userGasForwarder.forward{value: r.ethForCall}(
                r.target,
                insertToCallData(r.callData, feeTotal, 36)
            );
        } else {
            (success, returnData) = r.target.call{value: r.ethForCall}(r.callData);
        }
        // Need this if statement because if the call succeeds, the tx will revert
        // with an EVM error because it can't decode 0x00. If a tx fails with no error
        // message, maybe that's a problem? But if it failed without a message then it's
        // gonna be hard to know what went wrong regardless
        if (!success) {
            revert(abi.decode(returnData, (string)));
        }
        
        // Store AUTO rewards
        // It's cheaper to store the cumulative rewards than it is to send
        // an AUTO transfer directly since the former changes 1 storage
        // slot whereas the latter changes 2. The rewards are actually stored
        // in a different contract that reads the reward storage of this contract
        // because of the danger of someone using call to call to AUTO and transfer
        // out tokens. It could be prevented by preventing r.target being set to AUTO,
        // but it's better to be paranoid and totally separate the contracts.
        // Need to include these storages in the gas cost that the user pays since
        // they benefit from part of it and the costs can vary depending on whether
        // the amounts changed from were 0 or non-0
        _reqCounts[r.user] += 1;
        _execCounts[msg.sender] += 1;
        if (r.referer != _ADDR_0) {
            _referalCounts[r.referer] += 1;
        }

        // If ETH was somehow siphoned from this contract during the request,
        // this will revert because of an `Integer overflow` underflow - a security feature
        uint ethReceivedDuringRequest = address(this).balance + r.ethForCall - ethStartBal;
        if (r.payWithAUTO) {
            // Send the executor their bounty
            _AUTO.operatorSend(r.user, msg.sender, feeTotal, "", "");
        } else {
            uint ethReceived = r.initEthSent - r.ethForCall + ethReceivedDuringRequest;
            // Send the executor their bounty
            require(ethReceived >= feeTotal, "Reg: not enough eth sent");
            payable(msg.sender).transfer(feeTotal);

            // Refund excess to the user
            uint excess = ethReceived - feeTotal;
            if (excess > 0) {
                r.user.transfer(excess);
            }
        }
    }

    //////////////////////////////////////////////////////////////
    //                                                          //
    //                        Cancellations                     //
    //                                                          //
    //////////////////////////////////////////////////////////////
    
    
    function cancelHashedReq(
        uint id,
        Request memory r
    )
        external
        override
        nonReentrant
        verReq(id, r)
    {
        require(msg.sender == r.user, "Reg: not the user");
        
        // Cancel the request
        emit HashedReqCancelled(id);
        delete _hashedReqs[id];
        
        // Send refund
        if (r.initEthSent > 0) {
            r.user.transfer(r.initEthSent);
        }
    }
    
    function cancelHashedReqUnveri(
        uint id,
        Request memory r,
        bytes memory dataPrefix,
        bytes memory dataSuffix
    )
        external
        override
        nonReentrant
        verReqIPFS(id, r, dataPrefix, dataSuffix)
    {
        require(msg.sender == r.user, "Reg: not the user");
        
        // Cancel the request
        emit HashedReqUnveriCancelled(id);
        delete _hashedReqsUnveri[id];
    }
    
    
    //////////////////////////////////////////////////////////////
    //                                                          //
    //                          Getters                         //
    //                                                          //
    //////////////////////////////////////////////////////////////
    
    function getAUTOAddr() external view override returns (address) {
        return address(_AUTO);
    }
    
    function getStakeManager() external view override returns (address) {
        return address(_stakeMan);
    }
    
    function getOracle() external view override returns (address) {
        return address(_oracle);
    }
    
    function getUserForwarder() external view override returns (address) {
        return address(_userForwarder);
    }
    
    function getGasForwarder() external view override returns (address) {
        return address(_gasForwarder);
    }
    
    function getUserGasForwarder() external view override returns (address) {
        return address(_userGasForwarder);
    }

    function getReqCountOf(address addr) external view override returns (uint) {
        return _reqCounts[addr];
    }
    
    function getExecCountOf(address addr) external view override returns (uint) {
        return _execCounts[addr];
    }
    
    function getReferalCountOf(address addr) external view override returns (uint) {
        return _referalCounts[addr];
    }

    function _getBytes32Slice(bytes32[] memory arr, uint startIdx, uint endIdx) private pure returns (bytes32[] memory) {
        bytes32[] memory slice = new bytes32[](endIdx - startIdx);
        uint sliceIdx = 0;
        for (uint arrIdx = startIdx; arrIdx < endIdx; arrIdx++) {
            slice[sliceIdx] = arr[arrIdx];
            sliceIdx++;
        }

        return slice;
    }


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                          Modifiers                       //
    //                                                          //
    //////////////////////////////////////////////////////////////

    modifier targetNotThis(address target) {
        require(!_invalidTargets[target], "Reg: nice try ;)");
        _;
    }

    modifier validEth(bool payWithAUTO, uint ethForCall) {
        if (payWithAUTO) {
            // When paying with AUTO, there's no reason to send more ETH than will
            // be used in the future call
            require(ethForCall == msg.value, "Reg: ethForCall not msg.value");
        } else {
            // When paying with ETH, ethForCall needs to be lower than msg.value
            // since some ETH is needed to be left over for paying the fee + bounty
            require(ethForCall <= msg.value, "Reg: ethForCall too high");
        }
        _;
    }

    modifier validCalldata(Request calldata r) {
        if (r.verifyUser) {
            require(abi.decode(r.callData[4:36], (address)) == r.user, "Reg: calldata not verified");
        }
        _;
    }

    modifier validExec() {
        require(_stakeMan.isUpdatedExec(msg.sender), "Reg: not executor or expired");
        _;
    }

    // Verify that a request is the same as the one initially stored. This also
    // implicitly checks that the request hasn't been deleted as the hash of the
    // request isn't going to be address(0)
    modifier verReq(
        uint id,
        Request memory r
    ) {
        require(
            keccak256(getReqBytes(r)) == _hashedReqs[id], 
            "Reg: request not the same"
        );
        _;
    }

    // Verify that a request is the same as the one initially stored. This also
    // implicitly checks that the request hasn't been deleted as the hash of the
    // request isn't going to be address(0)
    modifier verReqIPFS(
        uint id,
        Request memory r,
        bytes memory dataPrefix,
        bytes memory dataSuffix
    ) {
        require(
            getHashedIpfsReq(getReqBytes(r), dataPrefix, dataSuffix) == _hashedReqsUnveri[id], 
            "Reg: unveri request not the same"
        );
        _;
    }
    
    receive() external payable {}
}

File 2 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 3 of 18 : IRegistry.sol
pragma solidity 0.8.6;


import "IERC20.sol";


/**
* @title    Registry
* @notice   A contract which is essentially a glorified forwarder.
*           It essentially brings together people who want things executed,
*           and people who want to do that execution in return for a fee.
*           Users register the details of what they want executed, which
*           should always revert unless their execution condition is true,
*           and executors execute the request when the condition is true.
*           Only a specific executor is allowed to execute requests at any
*           given time, as determined by the StakeManager, which requires
*           staking AUTO tokens. This is infrastructure, and an integral
*           piece of the future of web3. It also provides the spark of life
*           for a new form of organism - cyber life. We are the gods now.
* @author   Quantaf1re (James Key)
*/
interface IRegistry {
    
    // The address vars are 20b, total 60, calldata is 4b + n*32b usually, which
    // has a factor of 32. uint112 since the current ETH supply of ~115m can fit
    // into that and it's the highest such that 2 * uint112 + 3 * bool is < 256b
    struct Request {
        address payable user;
        address target;
        address payable referer;
        bytes callData;
        uint112 initEthSent;
        uint112 ethForCall;
        bool verifyUser;
        bool insertFeeAmount;
        bool payWithAUTO;
        bool isAlive;
    }


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                      Hashed Requests                     //
    //                                                          //
    //////////////////////////////////////////////////////////////

    /**
     * @notice  Creates a new request, logs the request info in an event, then saves
     *          a hash of it on-chain in `_hashedReqs`. Uses the default for whether
     *          to pay in ETH or AUTO
     * @param target    The contract address that needs to be called
     * @param referer       The referer to get rewarded for referring the sender
     *                      to using Autonomy. Usally the address of a dapp owner
     * @param callData  The calldata of the call that the request is to make, i.e.
     *                  the fcn identifier + inputs, encoded
     * @param ethForCall    The ETH to send with the call
     * @param verifyUser  Whether the 1st input of the calldata equals the sender.
     *                      Needed for dapps to know who the sender is whilst
     *                      ensuring that the sender intended
     *                      that fcn and contract to be called - dapps will
     *                      require that msg.sender is the Verified Forwarder,
     *                      and only requests that have `verifyUser` = true will
     *                      be forwarded via the Verified Forwarder, so any calls
     *                      coming from it are guaranteed to have the 1st argument
     *                      be the sender
     * @param insertFeeAmount     Whether the gas estimate of the executor should be inserted
     *                      into the callData
     * @param isAlive       Whether or not the request should be deleted after it's executed
     *                      for the first time. If `true`, the request will exist permanently
     *                      (tho it can be cancelled any time), therefore executing the same
     *                      request repeatedly aslong as the request is executable,
     *                      and can be used to create fully autonomous contracts - the
     *                      first single-celled cyber life. We are the gods now
     * @return id   The id of the request, equal to the index in `_hashedReqs`
     */
    function newReq(
        address target,
        address payable referer,
        bytes calldata callData,
        uint112 ethForCall,
        bool verifyUser,
        bool insertFeeAmount,
        bool isAlive
    ) external payable returns (uint id);

    /**
     * @notice  Creates a new request, logs the request info in an event, then saves
     *          a hash of it on-chain in `_hashedReqs`
     * @param target    The contract address that needs to be called
     * @param referer       The referer to get rewarded for referring the sender
     *                      to using Autonomy. Usally the address of a dapp owner
     * @param callData  The calldata of the call that the request is to make, i.e.
     *                  the fcn identifier + inputs, encoded
     * @param ethForCall    The ETH to send with the call
     * @param verifyUser  Whether the 1st input of the calldata equals the sender.
     *                      Needed for dapps to know who the sender is whilst
     *                      ensuring that the sender intended
     *                      that fcn and contract to be called - dapps will
     *                      require that msg.sender is the Verified Forwarder,
     *                      and only requests that have `verifyUser` = true will
     *                      be forwarded via the Verified Forwarder, so any calls
     *                      coming from it are guaranteed to have the 1st argument
     *                      be the sender
     * @param insertFeeAmount     Whether the gas estimate of the executor should be inserted
     *                      into the callData
     * @param payWithAUTO   Whether the sender wants to pay for the request in AUTO
     *                      or ETH. Paying in AUTO reduces the fee
     * @param isAlive       Whether or not the request should be deleted after it's executed
     *                      for the first time. If `true`, the request will exist permanently
     *                      (tho it can be cancelled any time), therefore executing the same
     *                      request repeatedly aslong as the request is executable,
     *                      and can be used to create fully autonomous contracts - the
     *                      first single-celled cyber life. We are the gods now
     * @return id   The id of the request, equal to the index in `_hashedReqs`
     */
    function newReqPaySpecific(
        address target,
        address payable referer,
        bytes calldata callData,
        uint112 ethForCall,
        bool verifyUser,
        bool insertFeeAmount,
        bool payWithAUTO,
        bool isAlive
    ) external payable returns (uint id);

    /**
     * @notice  Gets all keccak256 hashes of encoded requests. Completed requests will be 0x00
     * @return  [bytes32[]] An array of all hashes
     */
    function getHashedReqs() external view returns (bytes32[] memory);

    /**
     * @notice  Gets part of the keccak256 hashes of encoded requests. Completed requests will be 0x00.
     *          Needed since the array will quickly grow to cost more gas than the block limit to retrieve.
     *          so it can be viewed in chunks. E.g. for an array of x = [4, 5, 6, 7], x[1, 2] returns [5],
     *          the same as lists in Python
     * @param startIdx  [uint] The starting index from which to start getting the slice (inclusive)
     * @param endIdx    [uint] The ending index from which to start getting the slice (exclusive)
     * @return  [bytes32[]] An array of all hashes
     */
    function getHashedReqsSlice(uint startIdx, uint endIdx) external view returns (bytes32[] memory);

    /**
     * @notice  Gets the total number of requests that have been made, hashed, and stored
     * @return  [uint] The total number of hashed requests
     */
    function getHashedReqsLen() external view returns (uint);
    
    /**
     * @notice      Gets a single hashed request
     * @param id    [uint] The id of the request, which is its index in the array
     * @return      [bytes32] The sha3 hash of the request
     */
    function getHashedReq(uint id) external view returns (bytes32);


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                Hashed Requests Unverified                //
    //                                                          //
    //////////////////////////////////////////////////////////////

    /**
     * @notice  Creates a new hashed request by blindly storing a raw hash on-chain. It's 
     *          'unverified' because when executing it, it's impossible to tell whether any
     *          ETH was initially sent with the request etc, so executing this request requires
     *          that the request which hashes to `hashedIpfsReq` has `ethForCall` = 0,
     *          `initEthSend` = 0, `verifyUser` = false, and `payWithAUTO` = true
     * @param id    [bytes32] The hash to save. The hashing algo isn't keccak256 like with `newReq`,
     *          it instead uses sha256 so that it's compatible with ipfs - the hash stored on-chain
     *          should be able to be used in ipfs to point to the request which hashes to `hashedIpfsReq`.
     *          Because ipfs doesn't hash only the data stored, it hashes a prepends a few bytes to the
     *          encoded data and appends a few bytes to the data, the hash has to be over [prefix + data + postfix]
     * @return id   The id of the request, equal to the index in `_hashedReqsUnveri`
     */
    function newHashedReqUnveri(bytes32 hashedIpfsReq) external returns (uint id);

    /**
     * @notice  Gets part of the sha256 hashes of ipfs-encoded requests. Completed requests will be 0x00.
     *          Needed since the array will quickly grow to cost more gas than the block limit to retrieve.
     *          so it can be viewed in chunks. E.g. for an array of x = [4, 5, 6, 7], x[1, 2] returns [5],
     *          the same as lists in Python
     * @param startIdx  [uint] The starting index from which to start getting the slice (inclusive)
     * @param endIdx    [uint] The ending index from which to start getting the slice (exclusive)
     * @return  [bytes32[]] An array of all hashes
     */
    function getHashedReqsUnveriSlice(uint startIdx, uint endIdx) external view returns (bytes32[] memory);
    
    /**
     * @notice  Gets all sha256 hashes of ipfs-encoded requests. Completed requests will be 0x00
     * @return  [bytes32[]] An array of all hashes
     */
    function getHashedReqsUnveri() external view returns (bytes32[] memory);

    /**
     * @notice  Gets the total number of unverified requests that have been stored
     * @return  [uint] The total number of hashed unverified requests
     */
    function getHashedReqsUnveriLen() external view returns (uint);
    
    /**
     * @notice      Gets a single hashed unverified request
     * @param id    [uint] The id of the request, which is its index in the array
     * @return      [bytes32] The sha256 hash of the ipfs-encoded request
     */
    function getHashedReqUnveri(uint id) external view returns (bytes32);


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                        Bytes Helpers                     //
    //                                                          //
    //////////////////////////////////////////////////////////////

    /**
     * @notice      Encode a request into bytes
     * @param r     [request] The request to be encoded
     * @return      [bytes] The bytes array of the encoded request
     */
    function getReqBytes(Request memory r) external pure returns (bytes memory);

    /**
     * @notice      Encode a request into bytes the same way ipfs does - by doing hash(prefix | request | postfix)
     * @param r     [request] The request to be encoded
     * @param dataPrefix    [bytes] The prefix that ipfs prepends to this data before hashing
     * @param dataPostfix   [bytes] The postfix that ipfs appends to this data before hashing
     * @return  [bytes] The bytes array of the encoded request
     */
    function getIpfsReqBytes(
        bytes memory r,
        bytes memory dataPrefix,
        bytes memory dataPostfix
    ) external pure returns (bytes memory);

    /**
     * @notice      Get the hash of an encoded request, encoding into bytes the same way ipfs
     *              does - by doing hash(prefix | request | postfix)
     * @param r     [request] The request to be encoded
     * @param dataPrefix    [bytes] The prefix that ipfs prepends to this data before hashing
     * @param dataPostfix   [bytes] The postfix that ipfs appends to this data before hashing
     * @return  [bytes32] The sha256 hash of the ipfs-encoded request
     */
    function getHashedIpfsReq(
        bytes memory r,
        bytes memory dataPrefix,
        bytes memory dataPostfix
    ) external pure returns (bytes32);

    /**
     * @notice      Get the decoded request back from encoded bytes
     * @param rBytes    [bytes] The encoded bytes version of a request
     * @return r    [Request] The request as a struct
     */
    function getReqFromBytes(bytes memory rBytes) external pure returns (Request memory r);

    function insertToCallData(bytes calldata callData, uint expectedGas, uint startIdx) external pure returns (bytes memory);


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                         Executions                       //
    //                                                          //
    //////////////////////////////////////////////////////////////

    /**
     * @notice      Execute a hashedReq. Calls the `target` with `callData`, then
     *              charges the user the fee, and gives it to the executor
     * @param id    [uint] The index of the request in `_hashedReqs`
     * @param r     [request] The full request struct that fully describes the request.
     *              Typically known by seeing the `HashedReqAdded` event emitted with `newReq`
     * @param expectedGas   [uint] The gas that the executor expects the execution to cost,
     *                      known by simulating the the execution of this tx locally off-chain.
     *                      This can be forwarded as part of the requested call such that the
     *                      receiving contract knows how much gas the whole execution cost and
     *                      can do something to compensate the exact amount (e.g. as part of a trade).
     *                      Cannot be more than 10% above the measured gas cost by the end of execution
     * @return gasUsed      [uint] The gas that was used as part of the execution. Used to know `expectedGas`
     */
    function executeHashedReq(
        uint id,
        Request calldata r,
        uint expectedGas
    ) external returns (uint gasUsed);

    /**
     * @notice      Execute a hashedReqUnveri. Hashes `r`, `dataPrefix`, and `dataSuffix`
     *              together in the same way that ipfs does such that the hash stored on-chain
     *              is the same as the hash used to look up on ipfs to see the raw request.
     *              Since `newHashedReqUnveri` does no verification at all since it can't,
     *              `executeHashedReqUnveri` has to instead. There are some things it can't
     *              know, like the amount of ETH sent in the original request call, so they're
     *              forced to be zero
     * @param id    [uint] The index of the request in `_hashedReqs`
     * @param r     [request] The full request struct that fully describes the request. Typically
     *              known by looking up the hash on ipfs
     * @param dataPrefix    [bytes] The data prepended to the bytes form of `r` before being hashed
     *                      in ipfs
     * @param dataSuffix    [bytes] The data appended to the bytes form of `r` before being hashed
     *                      in ipfs
     * @param expectedGas   [uint] The gas that the executor expects the execution to cost,
     *                      known by simulating the the execution of this tx locally off-chain.
     *                      This can be forwarded as part of the requested call such that the
     *                      receiving contract knows how much gas the whole execution cost and
     *                      can do something to compensate the exact amount (e.g. as part of a trade).
     *                      Cannot be more than 10% above the measured gas cost by the end of execution
     * @return gasUsed      [uint] The gas that was used as part of the execution. Used to know `expectedGas`
     */
    function executeHashedReqUnveri(
        uint id,
        Request calldata r,
        bytes memory dataPrefix,
        bytes memory dataSuffix,
        uint expectedGas
    ) external returns (uint gasUsed);


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                        Cancellations                     //
    //                                                          //
    //////////////////////////////////////////////////////////////
    
    /**
     * @notice      Execute a hashedReq. Calls the `target` with `callData`, then
     *              charges the user the fee, and gives it to the executor
     * @param id    [uint] The index of the request in `_hashedReqs`
     * @param r     [request] The full request struct that fully describes the request.
     *              Typically known by seeing the `HashedReqAdded` event emitted with `newReq`
     */
    function cancelHashedReq(
        uint id,
        Request memory r
    ) external;
    
    /**
     * @notice      Execute a hashedReq. Calls the `target` with `callData`, then
     *              charges the user the fee, and gives it to the executor
     * @param id    [uint] The index of the request in `_hashedReqs`
     * @param r     [request] The full request struct that fully describes the request. Typically
     *              known by looking up the hash on ipfs
     * @param dataPrefix    [bytes] The data prepended to the bytes form of `r` before being hashed
     *                      in ipfs
     * @param dataSuffix    [bytes] The data appended to the bytes form of `r` before being hashed
     *                      in ipfs
     */
    function cancelHashedReqUnveri(
        uint id,
        Request memory r,
        bytes memory dataPrefix,
        bytes memory dataSuffix
    ) external;
    
    
    //////////////////////////////////////////////////////////////
    //                                                          //
    //                          Getters                         //
    //                                                          //
    //////////////////////////////////////////////////////////////
    
    function getAUTOAddr() external view returns (address);
    
    function getStakeManager() external view returns (address);

    function getOracle() external view returns (address);
    
    function getUserForwarder() external view returns (address);
    
    function getGasForwarder() external view returns (address);
    
    function getUserGasForwarder() external view returns (address);
    
    function getReqCountOf(address addr) external view returns (uint);
    
    function getExecCountOf(address addr) external view returns (uint);
    
    function getReferalCountOf(address addr) external view returns (uint);
}

File 4 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT

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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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 5 of 18 : IStakeManager.sol
pragma solidity 0.8.6;


import "IOracle.sol";


/**
* @title    StakeManager
* @notice   A lightweight Proof of Stake contract that allows
*           staking of AUTO tokens. Instead of a miner winning
*           the ability to produce a block, the algorithm selects
*           a staker for a period of 100 blocks to be the executor.
*           the executor has the exclusive right to execute requests
*           in the Registry contract. The Registry checks with StakeManager
*           who is allowed to execute requests at any given time
* @author   Quantaf1re (James Key)
*/
interface IStakeManager {

    struct Executor{
        address addr;
        uint96 forEpoch;
    }


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                          Getters                         //
    //                                                          //
    //////////////////////////////////////////////////////////////
    
    function getOracle() external view returns (IOracle);

    function getAUTOAddr() external view returns (address);

    function getTotalStaked() external view returns (uint);

    function getStake(address staker) external view returns (uint);

    /**
     * @notice  Returns the array of stakes. Every element in the array represents
     *          `STAN_STAKE` amount of AUTO tokens staked for that address. Addresses
     *          can be in the array arbitrarily many times
     */
    function getStakes() external view returns (address[] memory);

    /**
     * @notice  The length of `_stakes`, i.e. the total staked when multiplied by `STAN_STAKE`
     */
    function getStakesLength() external view returns (uint);

    /**
     * @notice  The same as getStakes except it returns only part of the array - the
     *          array might grow so large that retrieving it costs more gas than the
     *          block gas limit and therefore brick the contract. E.g. for an array of
     *          x = [4, 5, 6, 7], x[1, 2] returns [5], the same as lists in Python
     * @param startIdx  [uint] The starting index from which to start getting the slice (inclusive)
     * @param endIdx    [uint] The ending index from which to start getting the slice (exclusive)
     */
    function getStakesSlice(uint startIdx, uint endIdx) external view returns (address[] memory);

    /**
     * @notice  Returns the current epoch. Goes in increments of 100. E.g. the epoch
     *          for 420 is 400, and 42069 is 42000
     */
    function getCurEpoch() external view returns (uint96);

    /**
     * @notice  Returns the currently stored Executor - which might be old,
     *          i.e. for a previous epoch
     */
    function getExecutor() external view returns (Executor memory);

    /**
     * @notice  Returns whether `addr` is the current executor for this epoch. If the executor
     *          is outdated (i.e. for a previous epoch), it'll return false regardless of `addr`
     * @param addr  [address] The address to check
     * @return  [bool] Whether or not `addr` is the current executor for this epoch
     */
    function isCurExec(address addr) external view returns (bool);

    /**
     * @notice  Returns what the result of updating the executor would be, but doesn't actually
     *          make any changes
     * @return epoch    Returns the relevant variables for determining the new executor if the executor
     *          can be updated currently. It can only be updated currently if the stored executor
     *          is for a previous epoch, and there is some stake in the system. If the executor
     *          can't be updated currently, then everything execpt `epoch` will return 0
     */
    function getUpdatedExecRes() external view returns (uint96 epoch, uint randNum, uint idxOfExecutor, address exec);

    //////////////////////////////////////////////////////////////
    //                                                          //
    //                          Staking                         //
    //                                                          //
    //////////////////////////////////////////////////////////////

    /**
     * @notice  Updates the executor. Calls `getUpdatedExecRes` to know. Makes the changes
     *          only if the executor can be updated
     * @return  Returns the relevant variables for determining the new executor if the executor
     *          can be updated currently
     */
    function updateExecutor() external returns (uint, uint, uint, address);

    /**
     * @notice  Checks if the stored executor is for the current epoch - if it is,
     *          then it returns whether `addr` is the current exec or not. If the epoch
     *          is old, then it updates the executor, then returns whether `addr` is the
     *          current executor or not. If there's no stake in the system, returns true
     * @param addr  [address] The address to check
     * @return  [bool] Returns whether or not `addr` is the current, updated executor
     */
    function isUpdatedExec(address addr) external returns (bool);

    /**
     * @notice  Stake a set amount of AUTO tokens. A set amount of tokens needs to be used
     *          so that a random number can be used to look up a specific index in the array.
     *          We want the staker to be chosen proportional to their stake, which requires
     *          knowing their stake in relation to everyone else. If you could stake any
     *          amount of AUTO tokens, then the contract would have to store that amount
     *          along with the staker and, crucially, would require iteration over the
     *          whole array. E.g. if the random number in this PoS system was 0.2, then
     *          you could calculate the amount of proportional stake that translates to.
     *          If the total stakes was 10^6, then whichever staker in the array at token
     *          position 200,000 would be the winner, but that requires going through every
     *          piece of staking info in the first part of the array in order to calculate
     *          the running cumulative and know who happens to have the slot where the
     *          cumulative stake is 200,000. This has problems when the staking array is
     *          so large that it costs more than the block gas limit to iterate over, which
     *          would brick the contract, but also just generally costs alot of gas. Having
     *          a set amount of AUTO tokens means you already know everything about every
     *          element in the array therefore don't need to iterate over it.
     *          Calling this will add the caller to the array. Calling this will first try
     *          and set the executor so that the caller can't precalculate and affect the outcome
     *          by deciding the size of `numStakes`
     * @param numStakes  [uint] The number of `STAN_STAKE` to stake and therefore how many
     *          slots in the array to add the user to
     */
    function stake(uint numStakes) external;

    /**
     * @notice  Unstake AUTO tokens. Calling this will first try and set the executor so that
     *          the caller can't precalculate and affect the outcome by deciding the size of
     *          `numStakes`
     * @dev     Instead of just deleting the array slot, this takes the last element, copies
     *          it to the slot being unstaked, and pops off the original copy of the replacement
     *          from the end of the array, so that there are no gaps left, such that 0x00...00
     *          can never be chosen as an executor
     * @param idxs  [uint[]] The indices of the user's slots, in order of which they'll be
     *              removed, which is not necessariy the current indices. E.g. if the `_staking`
     *              array is [a, b, c, b], and `idxs` = [1, 3], then i=1 will first get
     *              replaced by i=3 and look like [a, b, c], then it would try and replace i=3
     *              by the end of the array...but i=3 no longer exists, so it'll revert. In this
     *              case, `idxs` would need to be [1, 1], which would result in [a, c]. It's
     *              recommended to choose idxs in descending order so that you don't have to
     *              take account of this behaviour - that way you can just use indexes
     *              as they are already without alterations
     */
    function unstake(uint[] calldata idxs) external;
}

File 6 of 18 : IOracle.sol
pragma solidity 0.8.6;


import "IPriceOracle.sol";


interface IOracle {
    // Needs to output the same number for the whole epoch
    function getRandNum(uint salt) external view returns (uint);

    function getPriceOracle() external view returns (IPriceOracle);

    function getAUTOPerETH() external view returns (uint);

    function getGasPriceFast() external view returns (uint);

    function setPriceOracle(IPriceOracle newPriceOracle) external;

    function defaultPayIsAUTO() external view returns (bool);

    function setDefaultPayIsAUTO(bool newDefaultPayIsAUTO) external;
}

File 7 of 18 : IPriceOracle.sol
pragma solidity 0.8.6;


interface IPriceOracle {

    function getAUTOPerETH() external view returns (uint);

    function getGasPriceFast() external view returns (uint);
}

File 8 of 18 : IForwarder.sol
pragma solidity 0.8.6;


interface IForwarder {

    function forward(
        address target,
        bytes calldata callData
    ) external payable returns (bool success, bytes memory returnData);

}

File 9 of 18 : Shared.sol
pragma solidity 0.8.6;


/**
* @title    Shared contract
* @notice   Holds constants and modifiers that are used in multiple contracts
* @dev      It would be nice if this could be a library, but modifiers can't be exported :(
* @author   Quantaf1re (James Key)
*/
abstract contract Shared {
    address constant internal _ADDR_0 = address(0);
    bytes32 constant internal _NULL = "";
    uint constant internal _E_18 = 10**18;


    /// @dev    Checks that a uint isn't nonzero/empty
    modifier nzUint(uint u) {
        require(u != 0, "Shared: uint input is empty");
        _;
    }

    /// @dev    Checks that an address isn't nonzero/empty
    modifier nzAddr(address a) {
        require(a != _ADDR_0, "Shared: address input is empty");
        _;
    }

    /// @dev    Checks that a bytes array isn't nonzero/empty
    modifier nzBytes(bytes calldata b) {
        require(b.length > 1, "Shared: bytes input is empty");
        _;
    }

    /// @dev    Checks that a bytes array isn't nonzero/empty
    modifier nzBytes32(bytes32 b) {
        require(b != _NULL, "Shared: bytes32 input is empty");
        _;
    }

    /// @dev    Checks that a uint array isn't nonzero/empty
    modifier nzUintArr(uint[] calldata arr) {
        require(arr.length > 0, "Shared: uint arr input is empty");
        _;
    }
}

File 10 of 18 : AUTO.sol
pragma solidity 0.8.6;


import "ERC777.sol";
import "Ownable.sol";


/**
* @title    AUTO contract
* @notice   The AUTO utility token which is used to stake in Autonomy and pay for
*           execution fees with
* @author   Quantaf1re (James Key)
*/
contract AUTO is ERC777, Ownable {

    constructor(
        string memory name,
        string memory symbol,
        address[] memory defaultOperators,
        address receiver,
        uint256 mintAmount
    ) ERC777(name, symbol, defaultOperators) Ownable() {
        _mint(receiver, mintAmount, "", "");
    }

    function mint(
        address receiver,
        uint amount,
        bytes memory userData,
        bytes memory operatorData
    ) external onlyOwner {
        _mint(receiver, amount, userData, operatorData);
    }
}

File 11 of 18 : ERC777.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC777.sol";
import "IERC777Recipient.sol";
import "IERC777Sender.sol";
import "IERC20.sol";
import "Address.sol";
import "Context.sol";
import "IERC1820Registry.sol";

/**
 * @dev Implementation of the {IERC777} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * Support for ERC20 is included in this contract, as specified by the EIP: both
 * the ERC777 and ERC20 interfaces can be safely used when interacting with it.
 * Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token
 * movements.
 *
 * Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there
 * are no special restrictions in the amount of tokens that created, moved, or
 * destroyed. This makes integration with ERC20 applications seamless.
 */
contract ERC777 is Context, IERC777, IERC20 {
    using Address for address;

    IERC1820Registry internal constant _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);

    mapping(address => uint256) private _balances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    bytes32 private constant _TOKENS_SENDER_INTERFACE_HASH = keccak256("ERC777TokensSender");
    bytes32 private constant _TOKENS_RECIPIENT_INTERFACE_HASH = keccak256("ERC777TokensRecipient");

    // This isn't ever read from - it's only used to respond to the defaultOperators query.
    address[] private _defaultOperatorsArray;

    // Immutable, but accounts may revoke them (tracked in __revokedDefaultOperators).
    mapping(address => bool) private _defaultOperators;

    // For each account, a mapping of its operators and revoked default operators.
    mapping(address => mapping(address => bool)) private _operators;
    mapping(address => mapping(address => bool)) private _revokedDefaultOperators;

    // ERC20-allowances
    mapping(address => mapping(address => uint256)) private _allowances;

    /**
     * @dev `defaultOperators` may be an empty array.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        address[] memory defaultOperators_
    ) {
        _name = name_;
        _symbol = symbol_;

        _defaultOperatorsArray = defaultOperators_;
        for (uint256 i = 0; i < defaultOperators_.length; i++) {
            _defaultOperators[defaultOperators_[i]] = true;
        }

        // register interfaces
        _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256("ERC777Token"), address(this));
        _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256("ERC20Token"), address(this));
    }

    function addDefaultOperators(address[] memory newDefaultOperators) external {
        for (uint256 i = 0; i < newDefaultOperators.length; i++) {
            _defaultOperators[newDefaultOperators[i]] = true;
            _defaultOperatorsArray.push(newDefaultOperators[i]);
        }
    }

    /**
     * @dev See {IERC777-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC777-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {ERC20-decimals}.
     *
     * Always returns 18, as per the
     * [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility).
     */
    function decimals() public pure virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC777-granularity}.
     *
     * This implementation always returns `1`.
     */
    function granularity() public view virtual override returns (uint256) {
        return 1;
    }

    /**
     * @dev See {IERC777-totalSupply}.
     */
    function totalSupply() public view virtual override(IERC20, IERC777) returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev Returns the amount of tokens owned by an account (`tokenHolder`).
     */
    function balanceOf(address tokenHolder) public view virtual override(IERC20, IERC777) returns (uint256) {
        return _balances[tokenHolder];
    }

    /**
     * @dev See {IERC777-send}.
     *
     * Also emits a {IERC20-Transfer} event for ERC20 compatibility.
     */
    function send(
        address recipient,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        _send(_msgSender(), recipient, amount, data, "", true);
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient}
     * interface if it is a contract.
     *
     * Also emits a {Sent} event.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        require(recipient != address(0), "ERC777: transfer to the zero address");

        address from = _msgSender();

        _callTokensToSend(from, from, recipient, amount, "", "");

        _move(from, from, recipient, amount, "", "");

        _callTokensReceived(from, from, recipient, amount, "", "", false);

        return true;
    }

    /**
     * @dev See {IERC777-burn}.
     *
     * Also emits a {IERC20-Transfer} event for ERC20 compatibility.
     */
    function burn(uint256 amount, bytes memory data) public virtual override {
        _burn(_msgSender(), amount, data, "");
    }

    /**
     * @dev See {IERC777-isOperatorFor}.
     */
    function isOperatorFor(address operator, address tokenHolder) public view virtual override returns (bool) {
        return
            operator == tokenHolder ||
            (_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) ||
            _operators[tokenHolder][operator];
    }

    /**
     * @dev See {IERC777-authorizeOperator}.
     */
    function authorizeOperator(address operator) public virtual override {
        require(_msgSender() != operator, "ERC777: authorizing self as operator");

        if (_defaultOperators[operator]) {
            delete _revokedDefaultOperators[_msgSender()][operator];
        } else {
            _operators[_msgSender()][operator] = true;
        }

        emit AuthorizedOperator(operator, _msgSender());
    }

    /**
     * @dev See {IERC777-revokeOperator}.
     */
    function revokeOperator(address operator) public virtual override {
        require(operator != _msgSender(), "ERC777: revoking self as operator");

        if (_defaultOperators[operator]) {
            _revokedDefaultOperators[_msgSender()][operator] = true;
        } else {
            delete _operators[_msgSender()][operator];
        }

        emit RevokedOperator(operator, _msgSender());
    }

    /**
     * @dev See {IERC777-defaultOperators}.
     */
    function defaultOperators() public view virtual override returns (address[] memory) {
        return _defaultOperatorsArray;
    }

    /**
     * @dev See {IERC777-operatorSend}.
     *
     * Emits {Sent} and {IERC20-Transfer} events.
     */
    function operatorSend(
        address sender,
        address recipient,
        uint256 amount,
        bytes memory data,
        bytes memory operatorData
    ) public virtual override {
        require(isOperatorFor(_msgSender(), sender), "ERC777: caller is not an operator for holder");
        _send(sender, recipient, amount, data, operatorData, true);
    }

    /**
     * @dev See {IERC777-operatorBurn}.
     *
     * Emits {Burned} and {IERC20-Transfer} events.
     */
    function operatorBurn(
        address account,
        uint256 amount,
        bytes memory data,
        bytes memory operatorData
    ) public virtual override {
        require(isOperatorFor(_msgSender(), account), "ERC777: caller is not an operator for holder");
        _burn(account, amount, data, operatorData);
    }

    /**
     * @dev See {IERC20-allowance}.
     *
     * Note that operator and allowance concepts are orthogonal: operators may
     * not have allowance, and accounts with allowance may not be operators
     * themselves.
     */
    function allowance(address holder, address spender) public view virtual override returns (uint256) {
        return _allowances[holder][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Note that accounts cannot have allowance issued by their operators.
     */
    function approve(address spender, uint256 value) public virtual override returns (bool) {
        address holder = _msgSender();
        _approve(holder, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Note that operator and allowance concepts are orthogonal: operators cannot
     * call `transferFrom` (unless they have allowance), and accounts with
     * allowance cannot call `operatorSend` (unless they are operators).
     *
     * Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events.
     */
    function transferFrom(
        address holder,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        require(recipient != address(0), "ERC777: transfer to the zero address");
        require(holder != address(0), "ERC777: transfer from the zero address");

        address spender = _msgSender();

        _callTokensToSend(spender, holder, recipient, amount, "", "");

        _move(spender, holder, recipient, amount, "", "");

        uint256 currentAllowance = _allowances[holder][spender];
        require(currentAllowance >= amount, "ERC777: transfer amount exceeds allowance");
        _approve(holder, spender, currentAllowance - amount);

        _callTokensReceived(spender, holder, recipient, amount, "", "", false);

        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * If a send hook is registered for `account`, the corresponding function
     * will be called with `operator`, `data` and `operatorData`.
     *
     * See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits {Minted} and {IERC20-Transfer} events.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - if `account` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function _mint(
        address account,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData
    ) internal virtual {
        _mint(account, amount, userData, operatorData, true);
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * If `requireReceptionAck` is set to true, and if a send hook is
     * registered for `account`, the corresponding function will be called with
     * `operator`, `data` and `operatorData`.
     *
     * See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits {Minted} and {IERC20-Transfer} events.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - if `account` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function _mint(
        address account,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData,
        bool requireReceptionAck
    ) internal virtual {
        require(account != address(0), "ERC777: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, amount);

        // Update state variables
        _totalSupply += amount;
        _balances[account] += amount;

        _callTokensReceived(operator, address(0), account, amount, userData, operatorData, requireReceptionAck);

        emit Minted(operator, account, amount, userData, operatorData);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Send tokens
     * @param from address token holder address
     * @param to address recipient address
     * @param amount uint256 amount of tokens to transfer
     * @param userData bytes extra information provided by the token holder (if any)
     * @param operatorData bytes extra information provided by the operator (if any)
     * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient
     */
    function _send(
        address from,
        address to,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData,
        bool requireReceptionAck
    ) internal virtual {
        require(from != address(0), "ERC777: send from the zero address");
        require(to != address(0), "ERC777: send to the zero address");

        address operator = _msgSender();

        _callTokensToSend(operator, from, to, amount, userData, operatorData);

        _move(operator, from, to, amount, userData, operatorData);

        _callTokensReceived(operator, from, to, amount, userData, operatorData, requireReceptionAck);
    }

    /**
     * @dev Burn tokens
     * @param from address token holder address
     * @param amount uint256 amount of tokens to burn
     * @param data bytes extra information provided by the token holder
     * @param operatorData bytes extra information provided by the operator (if any)
     */
    function _burn(
        address from,
        uint256 amount,
        bytes memory data,
        bytes memory operatorData
    ) internal virtual {
        require(from != address(0), "ERC777: burn from the zero address");

        address operator = _msgSender();

        _callTokensToSend(operator, from, address(0), amount, data, operatorData);

        _beforeTokenTransfer(operator, from, address(0), amount);

        // Update state variables
        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC777: burn amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _totalSupply -= amount;

        emit Burned(operator, from, amount, data, operatorData);
        emit Transfer(from, address(0), amount);
    }

    function _move(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData
    ) private {
        _beforeTokenTransfer(operator, from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC777: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Sent(operator, from, to, amount, userData, operatorData);
        emit Transfer(from, to, amount);
    }

    /**
     * @dev See {ERC20-_approve}.
     *
     * Note that accounts cannot have allowance issued by their operators.
     */
    function _approve(
        address holder,
        address spender,
        uint256 value
    ) internal {
        require(holder != address(0), "ERC777: approve from the zero address");
        require(spender != address(0), "ERC777: approve to the zero address");

        _allowances[holder][spender] = value;
        emit Approval(holder, spender, value);
    }

    /**
     * @dev Call from.tokensToSend() if the interface is registered
     * @param operator address operator requesting the transfer
     * @param from address token holder address
     * @param to address recipient address
     * @param amount uint256 amount of tokens to transfer
     * @param userData bytes extra information provided by the token holder (if any)
     * @param operatorData bytes extra information provided by the operator (if any)
     */
    function _callTokensToSend(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData
    ) private {
        address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(from, _TOKENS_SENDER_INTERFACE_HASH);
        if (implementer != address(0)) {
            IERC777Sender(implementer).tokensToSend(operator, from, to, amount, userData, operatorData);
        }
    }

    /**
     * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but
     * tokensReceived() was not registered for the recipient
     * @param operator address operator requesting the transfer
     * @param from address token holder address
     * @param to address recipient address
     * @param amount uint256 amount of tokens to transfer
     * @param userData bytes extra information provided by the token holder (if any)
     * @param operatorData bytes extra information provided by the operator (if any)
     * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient
     */
    function _callTokensReceived(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData,
        bool requireReceptionAck
    ) private {
        address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(to, _TOKENS_RECIPIENT_INTERFACE_HASH);
        if (implementer != address(0)) {
            IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData);
        } else if (requireReceptionAck) {
            require(!to.isContract(), "ERC777: token recipient contract has no implementer for ERC777TokensRecipient");
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes
     * calls to {send}, {transfer}, {operatorSend}, minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 12 of 18 : IERC777.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC777Token standard as defined in the EIP.
 *
 * This contract uses the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let
 * token holders and recipients react to token movements by using setting implementers
 * for the associated interfaces in said registry. See {IERC1820Registry} and
 * {ERC1820Implementer}.
 */
interface IERC777 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the smallest part of the token that is not divisible. This
     * means all token operations (creation, movement and destruction) must have
     * amounts that are a multiple of this number.
     *
     * For most token contracts, this value will equal 1.
     */
    function granularity() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * If send or receive hooks are registered for the caller and `recipient`,
     * the corresponding functions will be called with `data` and empty
     * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits a {Sent} event.
     *
     * Requirements
     *
     * - the caller must have at least `amount` tokens.
     * - `recipient` cannot be the zero address.
     * - if `recipient` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function send(
        address recipient,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev Destroys `amount` tokens from the caller's account, reducing the
     * total supply.
     *
     * If a send hook is registered for the caller, the corresponding function
     * will be called with `data` and empty `operatorData`. See {IERC777Sender}.
     *
     * Emits a {Burned} event.
     *
     * Requirements
     *
     * - the caller must have at least `amount` tokens.
     */
    function burn(uint256 amount, bytes calldata data) external;

    /**
     * @dev Returns true if an account is an operator of `tokenHolder`.
     * Operators can send and burn tokens on behalf of their owners. All
     * accounts are their own operator.
     *
     * See {operatorSend} and {operatorBurn}.
     */
    function isOperatorFor(address operator, address tokenHolder) external view returns (bool);

    /**
     * @dev Make an account an operator of the caller.
     *
     * See {isOperatorFor}.
     *
     * Emits an {AuthorizedOperator} event.
     *
     * Requirements
     *
     * - `operator` cannot be calling address.
     */
    function authorizeOperator(address operator) external;

    /**
     * @dev Revoke an account's operator status for the caller.
     *
     * See {isOperatorFor} and {defaultOperators}.
     *
     * Emits a {RevokedOperator} event.
     *
     * Requirements
     *
     * - `operator` cannot be calling address.
     */
    function revokeOperator(address operator) external;

    /**
     * @dev Returns the list of default operators. These accounts are operators
     * for all token holders, even if {authorizeOperator} was never called on
     * them.
     *
     * This list is immutable, but individual holders may revoke these via
     * {revokeOperator}, in which case {isOperatorFor} will return false.
     */
    function defaultOperators() external view returns (address[] memory);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must
     * be an operator of `sender`.
     *
     * If send or receive hooks are registered for `sender` and `recipient`,
     * the corresponding functions will be called with `data` and
     * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits a {Sent} event.
     *
     * Requirements
     *
     * - `sender` cannot be the zero address.
     * - `sender` must have at least `amount` tokens.
     * - the caller must be an operator for `sender`.
     * - `recipient` cannot be the zero address.
     * - if `recipient` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function operatorSend(
        address sender,
        address recipient,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData
    ) external;

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the total supply.
     * The caller must be an operator of `account`.
     *
     * If a send hook is registered for `account`, the corresponding function
     * will be called with `data` and `operatorData`. See {IERC777Sender}.
     *
     * Emits a {Burned} event.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     * - the caller must be an operator for `account`.
     */
    function operatorBurn(
        address account,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData
    ) external;

    event Sent(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 amount,
        bytes data,
        bytes operatorData
    );

    event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);

    event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);

    event AuthorizedOperator(address indexed operator, address indexed tokenHolder);

    event RevokedOperator(address indexed operator, address indexed tokenHolder);
}

File 13 of 18 : IERC777Recipient.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.
 *
 * Accounts can be notified of {IERC777} tokens being sent to them by having a
 * contract implement this interface (contract holders can be their own
 * implementer) and registering it on the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
 *
 * See {IERC1820Registry} and {ERC1820Implementer}.
 */
interface IERC777Recipient {
    /**
     * @dev Called by an {IERC777} token contract whenever tokens are being
     * moved or created into a registered account (`to`). The type of operation
     * is conveyed by `from` being the zero address or not.
     *
     * This call occurs _after_ the token contract's state is updated, so
     * {IERC777-balanceOf}, etc., can be used to query the post-operation state.
     *
     * This function may revert to prevent the operation from being executed.
     */
    function tokensReceived(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes calldata userData,
        bytes calldata operatorData
    ) external;
}

File 14 of 18 : IERC777Sender.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC777TokensSender standard as defined in the EIP.
 *
 * {IERC777} Token holders can be notified of operations performed on their
 * tokens by having a contract implement this interface (contract holders can be
 * their own implementer) and registering it on the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
 *
 * See {IERC1820Registry} and {ERC1820Implementer}.
 */
interface IERC777Sender {
    /**
     * @dev Called by an {IERC777} token contract whenever a registered holder's
     * (`from`) tokens are about to be moved or destroyed. The type of operation
     * is conveyed by `to` being the zero address or not.
     *
     * This call occurs _before_ the token contract's state is updated, so
     * {IERC777-balanceOf}, etc., can be used to query the pre-operation state.
     *
     * This function may revert to prevent the operation from being executed.
     */
    function tokensToSend(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes calldata userData,
        bytes calldata operatorData
    ) external;
}

File 15 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 16 of 18 : Context.sol
// SPDX-License-Identifier: MIT

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 17 of 18 : IERC1820Registry.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the global ERC1820 Registry, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
 * implementers for interfaces in this registry, as well as query support.
 *
 * Implementers may be shared by multiple accounts, and can also implement more
 * than a single interface for each account. Contracts can implement interfaces
 * for themselves, but externally-owned accounts (EOA) must delegate this to a
 * contract.
 *
 * {IERC165} interfaces can also be queried via the registry.
 *
 * For an in-depth explanation and source code analysis, see the EIP text.
 */
interface IERC1820Registry {
    /**
     * @dev Sets `newManager` as the manager for `account`. A manager of an
     * account is able to set interface implementers for it.
     *
     * By default, each account is its own manager. Passing a value of `0x0` in
     * `newManager` will reset the manager to this initial state.
     *
     * Emits a {ManagerChanged} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     */
    function setManager(address account, address newManager) external;

    /**
     * @dev Returns the manager for `account`.
     *
     * See {setManager}.
     */
    function getManager(address account) external view returns (address);

    /**
     * @dev Sets the `implementer` contract as ``account``'s implementer for
     * `interfaceHash`.
     *
     * `account` being the zero address is an alias for the caller's address.
     * The zero address can also be used in `implementer` to remove an old one.
     *
     * See {interfaceHash} to learn how these are created.
     *
     * Emits an {InterfaceImplementerSet} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not
     * end in 28 zeroes).
     * - `implementer` must implement {IERC1820Implementer} and return true when
     * queried for support, unless `implementer` is the caller. See
     * {IERC1820Implementer-canImplementInterfaceForAddress}.
     */
    function setInterfaceImplementer(
        address account,
        bytes32 _interfaceHash,
        address implementer
    ) external;

    /**
     * @dev Returns the implementer of `interfaceHash` for `account`. If no such
     * implementer is registered, returns the zero address.
     *
     * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
     * zeroes), `account` will be queried for support of it.
     *
     * `account` being the zero address is an alias for the caller's address.
     */
    function getInterfaceImplementer(address account, bytes32 _interfaceHash) external view returns (address);

    /**
     * @dev Returns the interface hash for an `interfaceName`, as defined in the
     * corresponding
     * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
     */
    function interfaceHash(string calldata interfaceName) external pure returns (bytes32);

    /**
     * @notice Updates the cache with whether the contract implements an ERC165 interface or not.
     * @param account Address of the contract for which to update the cache.
     * @param interfaceId ERC165 interface for which to update the cache.
     */
    function updateERC165Cache(address account, bytes4 interfaceId) external;

    /**
     * @notice Checks whether a contract implements an ERC165 interface or not.
     * If the result is not cached a direct lookup on the contract address is performed.
     * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling
     * {updateERC165Cache} with the contract address.
     * @param account Address of the contract to check.
     * @param interfaceId ERC165 interface to check.
     * @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);

    /**
     * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.
     * @param account Address of the contract to check.
     * @param interfaceId ERC165 interface to check.
     * @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);

    event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);

    event ManagerChanged(address indexed account, address indexed newManager);
}

File 18 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

    /**
     * @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() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        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);
    }
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"contract IStakeManager","name":"stakeMan","type":"address"},{"internalType":"contract IOracle","name":"oracle","type":"address"},{"internalType":"contract IForwarder","name":"userForwarder","type":"address"},{"internalType":"contract IForwarder","name":"gasForwarder","type":"address"},{"internalType":"contract IForwarder","name":"userGasForwarder","type":"address"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"uint256","name":"totalAUTOSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"address payable","name":"referer","type":"address"},{"indexed":false,"internalType":"bytes","name":"callData","type":"bytes"},{"indexed":false,"internalType":"uint112","name":"initEthSent","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"ethForCall","type":"uint112"},{"indexed":false,"internalType":"bool","name":"verifyUser","type":"bool"},{"indexed":false,"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"indexed":false,"internalType":"bool","name":"payWithAUTO","type":"bool"},{"indexed":false,"internalType":"bool","name":"isAlive","type":"bool"}],"name":"HashedReqAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"HashedReqCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bool","name":"wasRemoved","type":"bool"}],"name":"HashedReqExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"HashedReqUnveriAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"HashedReqUnveriCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bool","name":"wasRemoved","type":"bool"}],"name":"HashedReqUnveriExecuted","type":"event"},{"inputs":[],"name":"BASE_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GAS_OVERHEAD_AUTO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GAS_OVERHEAD_ETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAY_AUTO_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAY_ETH_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"address payable","name":"user","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"address payable","name":"referer","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint112","name":"initEthSent","type":"uint112"},{"internalType":"uint112","name":"ethForCall","type":"uint112"},{"internalType":"bool","name":"verifyUser","type":"bool"},{"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"internalType":"bool","name":"payWithAUTO","type":"bool"},{"internalType":"bool","name":"isAlive","type":"bool"}],"internalType":"struct IRegistry.Request","name":"r","type":"tuple"}],"name":"cancelHashedReq","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"address payable","name":"user","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"address payable","name":"referer","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint112","name":"initEthSent","type":"uint112"},{"internalType":"uint112","name":"ethForCall","type":"uint112"},{"internalType":"bool","name":"verifyUser","type":"bool"},{"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"internalType":"bool","name":"payWithAUTO","type":"bool"},{"internalType":"bool","name":"isAlive","type":"bool"}],"internalType":"struct IRegistry.Request","name":"r","type":"tuple"},{"internalType":"bytes","name":"dataPrefix","type":"bytes"},{"internalType":"bytes","name":"dataSuffix","type":"bytes"}],"name":"cancelHashedReqUnveri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"address payable","name":"user","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"address payable","name":"referer","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint112","name":"initEthSent","type":"uint112"},{"internalType":"uint112","name":"ethForCall","type":"uint112"},{"internalType":"bool","name":"verifyUser","type":"bool"},{"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"internalType":"bool","name":"payWithAUTO","type":"bool"},{"internalType":"bool","name":"isAlive","type":"bool"}],"internalType":"struct IRegistry.Request","name":"r","type":"tuple"},{"internalType":"uint256","name":"expectedGas","type":"uint256"}],"name":"executeHashedReq","outputs":[{"internalType":"uint256","name":"gasUsed","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"address payable","name":"user","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"address payable","name":"referer","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint112","name":"initEthSent","type":"uint112"},{"internalType":"uint112","name":"ethForCall","type":"uint112"},{"internalType":"bool","name":"verifyUser","type":"bool"},{"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"internalType":"bool","name":"payWithAUTO","type":"bool"},{"internalType":"bool","name":"isAlive","type":"bool"}],"internalType":"struct IRegistry.Request","name":"r","type":"tuple"},{"internalType":"bytes","name":"dataPrefix","type":"bytes"},{"internalType":"bytes","name":"dataSuffix","type":"bytes"},{"internalType":"uint256","name":"expectedGas","type":"uint256"}],"name":"executeHashedReqUnveri","outputs":[{"internalType":"uint256","name":"gasUsed","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAUTOAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getExecCountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGasForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"r","type":"bytes"},{"internalType":"bytes","name":"dataPrefix","type":"bytes"},{"internalType":"bytes","name":"dataPostfix","type":"bytes"}],"name":"getHashedIpfsReq","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getHashedReq","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getHashedReqUnveri","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHashedReqs","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHashedReqsLen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIdx","type":"uint256"},{"internalType":"uint256","name":"endIdx","type":"uint256"}],"name":"getHashedReqsSlice","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHashedReqsUnveri","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHashedReqsUnveriLen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIdx","type":"uint256"},{"internalType":"uint256","name":"endIdx","type":"uint256"}],"name":"getHashedReqsUnveriSlice","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"r","type":"bytes"},{"internalType":"bytes","name":"dataPrefix","type":"bytes"},{"internalType":"bytes","name":"dataPostfix","type":"bytes"}],"name":"getIpfsReqBytes","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getReferalCountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address payable","name":"user","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"address payable","name":"referer","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint112","name":"initEthSent","type":"uint112"},{"internalType":"uint112","name":"ethForCall","type":"uint112"},{"internalType":"bool","name":"verifyUser","type":"bool"},{"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"internalType":"bool","name":"payWithAUTO","type":"bool"},{"internalType":"bool","name":"isAlive","type":"bool"}],"internalType":"struct IRegistry.Request","name":"r","type":"tuple"}],"name":"getReqBytes","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getReqCountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"rBytes","type":"bytes"}],"name":"getReqFromBytes","outputs":[{"components":[{"internalType":"address payable","name":"user","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"address payable","name":"referer","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint112","name":"initEthSent","type":"uint112"},{"internalType":"uint112","name":"ethForCall","type":"uint112"},{"internalType":"bool","name":"verifyUser","type":"bool"},{"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"internalType":"bool","name":"payWithAUTO","type":"bool"},{"internalType":"bool","name":"isAlive","type":"bool"}],"internalType":"struct IRegistry.Request","name":"r","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getStakeManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUserForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUserGasForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"expectedGas","type":"uint256"},{"internalType":"uint256","name":"startIdx","type":"uint256"}],"name":"insertToCallData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hashedIpfsReq","type":"bytes32"}],"name":"newHashedReqUnveri","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"address payable","name":"referer","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint112","name":"ethForCall","type":"uint112"},{"internalType":"bool","name":"verifyUser","type":"bool"},{"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"internalType":"bool","name":"isAlive","type":"bool"}],"name":"newReq","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"address payable","name":"referer","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint112","name":"ethForCall","type":"uint112"},{"internalType":"bool","name":"verifyUser","type":"bool"},{"internalType":"bool","name":"insertFeeAmount","type":"bool"},{"internalType":"bool","name":"payWithAUTO","type":"bool"},{"internalType":"bool","name":"isAlive","type":"bool"}],"name":"newReqPaySpecific","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101406040523480156200001257600080fd5b5060405162005ea738038062005ea78339810160408190526200003591620002c2565b60016000908155604080516002808252606082018352909160208301908036833701905050905030816000815181106200007357620000736200048e565b60200260200101906001600160a01b031690816001600160a01b0316815250508881600181518110620000aa57620000aa6200048e565b60200260200101906001600160a01b031690816001600160a01b03168152505060008484833386604051620000df9062000223565b620000ef959493929190620003d0565b604051809103906000f0801580156200010c573d6000803e3d6000fd5b506001600160601b0319606082811b82166080528c811b821660a0529a8b1b811660c052898b1b811660e052888b1b8116610100529987901b909916610120525050306000908152600160208190526040808320805460ff1990811684179091556001600160a01b03998a16845281842080548216841790559789168352808320805489168317905595881682528582208054881682179055978716815284812080548716891790557fac625e8347948d3206e77739763ab825663c1535c3bd56ab48b32fe36db7570d8054871689179055979095168752505084208054821684179055928052507fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb498054909216179055620004d3565b6127f780620036b083390190565b600082601f8301126200024357600080fd5b81516001600160401b0380821115620002605762000260620004a4565b604051601f8301601f19908116603f011681019082821181831017156200028b576200028b620004a4565b81604052838152866020858801011115620002a557600080fd5b620002b88460208301602089016200045b565b9695505050505050565b600080600080600080600080610100898b031215620002e057600080fd5b8851620002ed81620004ba565b60208a01519098506200030081620004ba565b60408a01519097506200031381620004ba565b60608a01519096506200032681620004ba565b60808a01519095506200033981620004ba565b60a08a01519094506001600160401b03808211156200035757600080fd5b620003658c838d0162000231565b945060c08b01519150808211156200037c57600080fd5b506200038b8b828c0162000231565b92505060e089015190509295985092959890939650565b60008151808452620003bc8160208601602086016200045b565b601f01601f19169290920160200192915050565b60a081526000620003e560a0830188620003a2565b602083820381850152620003fa8289620003a2565b8481036040860152875180825282890193509082019060005b818110156200043a5784516001600160a01b03168352938301939183019160010162000413565b50506001600160a01b03969096166060850152505050608001529392505050565b60005b83811015620004785781810151838201526020016200045e565b8381111562000488576000848401525b50505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620004d057600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c6131436200056d600039600081816105700152611b180152600081816106b10152611a5e015260008181610218015261194d01526000818161045a0152818161148a01526117170152600081816105b60152818161077c01526110ba0152600081816106330152611d7101526131436000f3fe6080604052600436106101fd5760003560e01c8063a0ee7b641161010d578063ca64f9e7116100a0578063d34f304b1161006f578063d34f304b14610624578063d92f0d9714610657578063df70b5aa1461066d578063f78a420114610682578063ffd89c35146106a257600080fd5b8063ca64f9e7146105a7578063cac51dd2146105da578063caeb6671146105ef578063d16f59f31461060f57600080fd5b8063bb83f3be116100dc578063bb83f3be1461050b578063bd93d63514610541578063be914d6814610561578063c1e9e7bc1461059457600080fd5b8063a0ee7b641461047e578063a17b1ba9146104ab578063a56671ed146104cb578063b7a0c978146104eb57600080fd5b80635e19b121116101905780636ba1f2151161015f5780636ba1f215146103d657806370fadb1e146104035780637434dda01461042357806382babb1f14610438578063833b1fce1461044b57600080fd5b80635e19b1211461035e5780636081bb241461037e5780636142d409146103a057806368651603146103b657600080fd5b806340269d12116101cc57806340269d12146102dc5780634624ffa8146102fc5780634f149105146103125780635a4462b61461032857600080fd5b80632176b61b1461020957806324e003de146102555780632eb492541461029957806336342091146102c657600080fd5b3661020457005b600080fd5b34801561021557600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026157600080fd5b5061028b6102703660046124d8565b6001600160a01b031660009081526002602052604090205490565b60405190815260200161024c565b3480156102a557600080fd5b506102b96102b436600461277a565b6106d5565b60405161024c9190612dcd565b3480156102d257600080fd5b5061028b6132c881565b3480156102e857600080fd5b5061028b6102f73660046126f8565b61073d565b34801561030857600080fd5b5061028b612af881565b34801561031e57600080fd5b5061028b61177081565b34801561033457600080fd5b5061028b6103433660046124d8565b6001600160a01b031660009081526003602052604090205490565b34801561036a57600080fd5b5061028b6103793660046129dc565b610764565b34801561038a57600080fd5b5061039e610399366004612b00565b610b75565b005b3480156103ac57600080fd5b5061028b61271081565b3480156103c257600080fd5b5061028b6103d13660046126f8565b610cc1565b3480156103e257600080fd5b506103f66103f13660046127ae565b610d77565b60405161024c9190612d59565b34801561040f57600080fd5b5061028b61041e3660046127ae565b610da7565b34801561042f57600080fd5b5060055461028b565b61028b6104463660046125a8565b610e0b565b34801561045757600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610238565b34801561048a57600080fd5b5061049e610499366004612b91565b610e66565b60405161024c9190612d21565b3480156104b757600080fd5b506103f66104c636600461287d565b610ec3565b3480156104d757600080fd5b5061028b6104e63660046126f8565b610eec565b3480156104f757600080fd5b5061039e610506366004612ac4565b610f01565b34801561051757600080fd5b5061028b6105263660046124d8565b6001600160a01b031660009081526004602052604090205490565b34801561054d57600080fd5b5061028b61055c366004612a75565b6110a2565b34801561056d57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610238565b61028b6105a23660046124f5565b611443565b3480156105b357600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610238565b3480156105e657600080fd5b5061049e61152d565b3480156105fb57600080fd5b5061049e61060a366004612b91565b611585565b34801561061b57600080fd5b5060065461028b565b34801561063057600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610238565b34801561066357600080fd5b5061028b613e8081565b34801561067957600080fd5b5061049e6115e0565b34801561068e57600080fd5b506103f661069d36600461272a565b611636565b3480156106ae57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610238565b6040805161014081018252600080825260208083018290529282018190526060808301526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201528251909161073791840181019084016128b1565b92915050565b600060068281548110610752576107526130a6565b90600052602060002001549050919050565b60405163ac4a870360e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ac4a870390602401602060405180830381600087803b1580156107c857600080fd5b505af11580156107dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610800919061268b565b6108515760405162461bcd60e51b815260206004820152601c60248201527f5265673a206e6f74206578656375746f72206f7220657870697265640000000060448201526064015b60405180910390fd5b600260005414156108745760405162461bcd60e51b815260040161084890612d96565b600260005561088960408601602087016124d8565b6001600160a01b03811660009081526001602052604090205460ff16156108c25760405162461bcd60e51b815260040161084890612d6c565b866108cc87613039565b8686600684815481106108e1576108e16130a6565b90600052602060002001546108ff6108f885610ec3565b8484610da7565b1461094c5760405162461bcd60e51b815260206004820181905260248201527f5265673a20756e766572692072657175657374206e6f74207468652073616d656044820152606401610848565b60005a905061096160a08c0160808d016129bf565b6001600160701b031615801561098d575061098260c08c0160a08d016129bf565b6001600160701b0316155b80156109ac57506109a66101208c016101008d0161266e565b15156001145b80156109c557506109c360e08c0160c08d0161266e565b155b610a115760405162461bcd60e51b815260206004820152601f60248201527f5265673a2063616e6e6f74207665726966792e204e69636520747279203b29006044820152606401610848565b610a236101408c016101208d0161266e565b15610a6357604051600081528c907f64c59c852a7761b6c659d054096253e79479535ae211bc317a39eeafc0395bdf9060200160405180910390a2610ab8565b604051600181528c907f64c59c852a7761b6c659d054096253e79479535ae211bc317a39eeafc0395bdf9060200160405180910390a260068c81548110610aac57610aac6130a6565b60009182526020822001555b610ac28b89611715565b610ad46101208c016101008d0161266e565b1515600114610ae557611770610ae9565b613e805b5a610af49083613022565b610afe9190612fa1565b9650610b0b87600b612fdb565b610b1689600a612fdb565b1115610b605760405162461bcd60e51b81526020600482015260196024820152780a4cace7440caf0e0cac6e8cac88ec2e640e8dede40d0d2ced603b1b6044820152606401610848565b50506001600055509298975050505050505050565b60026000541415610b985760405162461bcd60e51b815260040161084890612d96565b60026000819055508383838360068481548110610bb757610bb76130a6565b9060005260206000200154610bce6108f885610ec3565b14610c1b5760405162461bcd60e51b815260206004820181905260248201527f5265673a20756e766572692072657175657374206e6f74207468652073616d656044820152606401610848565b86516001600160a01b03163314610c685760405162461bcd60e51b81526020600482015260116024820152702932b39d103737ba103a3432903ab9b2b960791b6044820152606401610848565b60405188907f561efabc4d46be3b400a1bdcda1225ff27ff00b3b28d758006f50fb46ac06abc90600090a260068881548110610ca657610ca66130a6565b60009182526020822001819055600190555050505050505050565b60008180610d115760405162461bcd60e51b815260206004820152601e60248201527f5368617265643a206279746573333220696e70757420697320656d70747900006044820152606401610848565b6006805460018101825560009182527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f810185905560405190935083917f8cc2516c8f9c2ec44a5573799699c033f9108e7358eca1106eb6e93b8a95266b91a250919050565b6060828483604051602001610d8e93929190612c0b565b60405160208183030381529060405290505b9392505050565b60006002610db6858585610d77565b604051610dc39190612bef565b602060405180830381855afa158015610de0573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610e039190612711565b949350505050565b6001600160a01b0389166000908152600160205260408120548a9060ff1615610e465760405162461bcd60e51b815260040161084890612d6c565b610e578b8b8b8b8b8b8b8b8b611f52565b9b9a5050505050505050505050565b6060610da06006805480602002602001604051908101604052809291908181526020018280548015610eb757602002820191906000526020600020905b815481526020019060010190808311610ea3575b505050505084846121e8565b606081604051602001610ed69190612dcd565b6040516020818303038152906040529050919050565b600060058281548110610752576107526130a6565b60026000541415610f245760405162461bcd60e51b815260040161084890612d96565b6002600081905550818160058281548110610f4157610f416130a6565b9060005260206000200154610f5582610ec3565b8051906020012014610fa55760405162461bcd60e51b81526020600482015260196024820152785265673a2072657175657374206e6f74207468652073616d6560381b6044820152606401610848565b82516001600160a01b03163314610ff25760405162461bcd60e51b81526020600482015260116024820152702932b39d103737ba103a3432903ab9b2b960791b6044820152606401610848565b60405184907f62dccc8b05bdb108c7df2a72447f7b7e986435e755a1e75d42c21502d235448390600090a260058481548110611030576110306130a6565b600091825260208220015560808301516001600160701b03161561109757825160808401516040516001600160a01b03909216916001600160701b0390911680156108fc02916000818181858888f19350505050158015611095573d6000803e3d6000fd5b505b505060016000555050565b60405163ac4a870360e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ac4a870390602401602060405180830381600087803b15801561110657600080fd5b505af115801561111a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113e919061268b565b61118a5760405162461bcd60e51b815260206004820152601c60248201527f5265673a206e6f74206578656375746f72206f722065787069726564000000006044820152606401610848565b600260005414156111ad5760405162461bcd60e51b815260040161084890612d96565b6002600055826111c360e0820160c0830161266e565b1561125d576111d560208201826124d8565b6001600160a01b03166111eb6060830183612eb1565b6111fa91602491600491612f77565b81019061120791906124d8565b6001600160a01b03161461125d5760405162461bcd60e51b815260206004820152601a60248201527f5265673a2063616c6c64617461206e6f742076657269666965640000000000006044820152606401610848565b8461126785613039565b6005828154811061127a5761127a6130a6565b906000526020600020015461128e82610ec3565b80519060200120146112de5760405162461bcd60e51b81526020600482015260196024820152785265673a2072657175657374206e6f74207468652073616d6560381b6044820152606401610848565b60005a90506112f56101408801610120890161266e565b15611335576040516000815288907f1c90485e10caf60de95f5ea39d7e031082538ccf11651d570b21f73fac78e2bd9060200160405180910390a261138a565b6040516001815288907f1c90485e10caf60de95f5ea39d7e031082538ccf11651d570b21f73fac78e2bd9060200160405180910390a26005888154811061137e5761137e6130a6565b60009182526020822001555b6113948787611715565b6113a66101208801610100890161266e565b15156001146113b7576117706113bb565b613e805b5a6113c69083613022565b6113d09190612fa1565b94506113dd85600b612fdb565b6113e887600a612fdb565b11156114325760405162461bcd60e51b81526020600482015260196024820152780a4cace7440caf0e0cac6e8cac88ec2e640e8dede40d0d2ced603b1b6044820152606401610848565b505060016000555090949350505050565b6001600160a01b038816600090815260016020526040812054899060ff161561147e5760405162461bcd60e51b815260040161084890612d6c565b61151f8a8a8a8a8a8a8a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166364cf42ef6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114e157600080fd5b505afa1580156114f5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611519919061268b565b8b611f52565b9a9950505050505050505050565b6060600680548060200260200160405190810160405280929190818152602001828054801561157b57602002820191906000526020600020905b815481526020019060010190808311611567575b5050505050905090565b6060610da06005805480602002602001604051908101604052809291908181526020018280548015610eb75760200282019190600052602060002090815481526020019060010190808311610ea357505050505084846121e8565b6060600580548060200260200160405190810160405280929190818152602001828054801561157b5760200282019190600052602060002090815481526020019060010190808311611567575050505050905090565b6060600085858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525060408051602081018b90529596509094019250611687915050565b604051602081830303815290604052905060005b6020811015611709578181815181106116b6576116b66130a6565b01602001516001600160f81b031916836116d08388612fa1565b815181106116e0576116e06130a6565b60200101906001600160f81b031916908160001a9053508061170181613075565b91505061169b565b50909695505050505050565b7f000000000000000000000000000000000000000000000000000000000000000047600061174b6101208601610100870161266e565b1561187857611764670de0b6b3a7640000612710612fdb565b612af8846001600160a01b0316639e26d5806040518163ffffffff1660e01b815260040160206040518083038186803b1580156117a057600080fd5b505afa1580156117b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d89190612711565b856001600160a01b031663ba19f12f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561181157600080fd5b505afa158015611825573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118499190612711565b6118539088612fdb565b61185d9190612fdb565b6118679190612fdb565b6118719190612fb9565b9050611910565b6127106132c8846001600160a01b031663ba19f12f6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118b757600080fd5b505afa1580156118cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ef9190612711565b6118f99087612fdb565b6119039190612fdb565b61190d9190612fb9565b90505b6000606061192460e0880160c0890161266e565b801561193e575061193c610100880160e0890161266e565b155b15611a26576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016636fadcf7261198260c08a0160a08b016129bf565b6001600160701b031661199b60408b0160208c016124d8565b6119a860608c018c612eb1565b6040518563ffffffff1660e01b81526004016119c693929190612cbd565b6000604051808303818588803b1580156119df57600080fd5b505af11580156119f3573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052611a1c91908101906126a8565b9092509050611c14565b611a3660e0880160c0890161266e565b158015611a4f5750611a4f610100880160e0890161266e565b15611ae1576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016636fadcf72611a9360c08a0160a08b016129bf565b6001600160701b0316611aac60408b0160208c016124d8565b611ac4611abc60608d018d612eb1565b896004611636565b6040518463ffffffff1660e01b81526004016119c6929190612cfd565b611af160e0880160c0890161266e565b8015611b095750611b09610100880160e0890161266e565b15611b7e576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016636fadcf72611b4d60c08a0160a08b016129bf565b6001600160701b0316611b6660408b0160208c016124d8565b611ac4611b7660608d018d612eb1565b896024611636565b611b8e60408801602089016124d8565b6001600160a01b0316611ba760c0890160a08a016129bf565b6001600160701b0316611bbd60608a018a612eb1565b604051611bcb929190612bdf565b60006040518083038185875af1925050503d8060008114611c08576040519150601f19603f3d011682016040523d82523d6000602084013e611c0d565b606091505b5090925090505b81611c465780806020019051810190611c2d9190612835565b60405162461bcd60e51b81526004016108489190612d59565b600160026000611c5960208b018b6124d8565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611c889190612fa1565b9091555050336000908152600360205260408120805460019290611cad908490612fa1565b9091555060009050611cc56060890160408a016124d8565b6001600160a01b031614611d1e57600160046000611ce960608b0160408c016124d8565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611d189190612fa1565b90915550505b600084611d3160c08a0160a08b016129bf565b611d44906001600160701b031647612fa1565b611d4e9190613022565b9050611d6261012089016101008a0161266e565b15611e2a576001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166362ad1b83611da360208b018b6124d8565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201523360248201526044810187905260a06064820152600060a4820181905260c0608483015260c482015260e401600060405180830381600087803b158015611e0d57600080fd5b505af1158015611e21573d6000803e3d6000fd5b50505050611f48565b600081611e3d60c08b0160a08c016129bf565b611e4d60a08c0160808d016129bf565b611e579190612ffa565b6001600160701b0316611e6a9190612fa1565b905084811015611ebc5760405162461bcd60e51b815260206004820152601860248201527f5265673a206e6f7420656e6f756768206574682073656e7400000000000000006044820152606401610848565b604051339086156108fc029087906000818181858888f19350505050158015611ee9573d6000803e3d6000fd5b506000611ef68683613022565b90508015611f4557611f0b60208b018b6124d8565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015611f43573d6000803e3d6000fd5b505b50505b5050505050505050565b600082866001600160701b03168115611fb957348114611fb45760405162461bcd60e51b815260206004820152601d60248201527f5265673a20657468466f7243616c6c206e6f74206d73672e76616c75650000006044820152606401610848565b612009565b348111156120095760405162461bcd60e51b815260206004820152601860248201527f5265673a20657468466f7243616c6c20746f6f206869676800000000000000006044820152606401610848565b831561205d57341561205d5760405162461bcd60e51b815260206004820152601760248201527f5265673a206e6f20455448207768696c6520616c6976650000000000000000006044820152606401610848565b6000604051806101400160405280336001600160a01b031681526020018e6001600160a01b031681526020018d6001600160a01b031681526020018c8c8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509385525050506001600160701b0334811660208401528c1660408301528a15156060830152891515608083015288151560a083015287151560c09092019190915290915061211782610ec3565b805190602001209050600580549050945081600001516001600160a01b0316857f2778dd1bc3c3e86afccc065209c8b7b9833ef5d1a0ab20c8e6fd8f9f403bde2484602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001518c610120015160405161219c99989796959493929190612c4e565b60405180910390a3600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0015550919b9a5050505050505050505050565b606060006121f68484613022565b6001600160401b0381111561220d5761220d6130bc565b604051908082528060200260200182016040528015612236578160200160208202803683370190505b5090506000845b8481101561229c57868181518110612257576122576130a6565b6020026020010151838381518110612271576122716130a6565b60209081029190910101528161228681613075565b925050808061229490613075565b91505061223d565b509095945050505050565b60006122ba6122b584612f50565b612f20565b90508281528383830111156122ce57600080fd5b610da0836020830184613045565b80356122e7816130d2565b919050565b80516122e7816130d2565b80356122e7816130ea565b80516122e7816130ea565b60008083601f84011261231f57600080fd5b5081356001600160401b0381111561233657600080fd5b60208301915083602082850101111561234e57600080fd5b9250929050565b600082601f83011261236657600080fd5b81356123746122b582612f50565b81815284602083860101111561238957600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f8301126123b757600080fd5b610da0838351602085016122a7565b600061014082840312156123d957600080fd5b50919050565b600061014082840312156123f257600080fd5b6123fa612ef7565b9050612405826122dc565b8152612413602083016122dc565b6020820152612424604083016122dc565b604082015260608201356001600160401b0381111561244257600080fd5b61244e84828501612355565b606083015250612460608083016124c2565b608082015261247160a083016124c2565b60a082015261248260c083016122f7565b60c082015261249360e083016122f7565b60e08201526101006124a68184016122f7565b908201526101206124b88382016122f7565b9082015292915050565b80356122e7816130f8565b80516122e7816130f8565b6000602082840312156124ea57600080fd5b8135610da0816130d2565b60008060008060008060008060e0898b03121561251157600080fd5b883561251c816130d2565b9750602089013561252c816130d2565b965060408901356001600160401b0381111561254757600080fd5b6125538b828c0161230d565b9097509550506060890135612567816130f8565b93506080890135612577816130ea565b925060a0890135612587816130ea565b915060c0890135612597816130ea565b809150509295985092959890939650565b60008060008060008060008060006101008a8c0312156125c757600080fd5b89356125d2816130d2565b985060208a01356125e2816130d2565b975060408a01356001600160401b038111156125fd57600080fd5b6126098c828d0161230d565b90985096505060608a013561261d816130f8565b945060808a013561262d816130ea565b935060a08a013561263d816130ea565b925060c08a013561264d816130ea565b915060e08a013561265d816130ea565b809150509295985092959850929598565b60006020828403121561268057600080fd5b8135610da0816130ea565b60006020828403121561269d57600080fd5b8151610da0816130ea565b600080604083850312156126bb57600080fd5b82516126c6816130ea565b60208401519092506001600160401b038111156126e257600080fd5b6126ee858286016123a6565b9150509250929050565b60006020828403121561270a57600080fd5b5035919050565b60006020828403121561272357600080fd5b5051919050565b6000806000806060858703121561274057600080fd5b84356001600160401b0381111561275657600080fd5b6127628782880161230d565b90989097506020870135966040013595509350505050565b60006020828403121561278c57600080fd5b81356001600160401b038111156127a257600080fd5b610e0384828501612355565b6000806000606084860312156127c357600080fd5b83356001600160401b03808211156127da57600080fd5b6127e687838801612355565b945060208601359150808211156127fc57600080fd5b61280887838801612355565b9350604086013591508082111561281e57600080fd5b5061282b86828701612355565b9150509250925092565b60006020828403121561284757600080fd5b81516001600160401b0381111561285d57600080fd5b8201601f8101841361286e57600080fd5b610e03848251602084016122a7565b60006020828403121561288f57600080fd5b81356001600160401b038111156128a557600080fd5b610e03848285016123df565b6000602082840312156128c357600080fd5b81516001600160401b03808211156128da57600080fd5b9083019061014082860312156128ef57600080fd5b6128f7612ef7565b612900836122ec565b815261290e602084016122ec565b602082015261291f604084016122ec565b604082015260608301518281111561293657600080fd5b612942878286016123a6565b606083015250612954608084016124cd565b608082015261296560a084016124cd565b60a082015261297660c08401612302565b60c082015261298760e08401612302565b60e0820152610100915061299c828401612302565b8282015261012091506129b0828401612302565b91810191909152949350505050565b6000602082840312156129d157600080fd5b8135610da0816130f8565b600080600080600060a086880312156129f457600080fd5b8535945060208601356001600160401b0380821115612a1257600080fd5b612a1e89838a016123c6565b95506040880135915080821115612a3457600080fd5b612a4089838a01612355565b94506060880135915080821115612a5657600080fd5b50612a6388828901612355565b95989497509295608001359392505050565b600080600060608486031215612a8a57600080fd5b8335925060208401356001600160401b03811115612aa757600080fd5b612ab3868287016123c6565b925050604084013590509250925092565b60008060408385031215612ad757600080fd5b8235915060208301356001600160401b03811115612af457600080fd5b6126ee858286016123df565b60008060008060808587031215612b1657600080fd5b8435935060208501356001600160401b0380821115612b3457600080fd5b612b40888389016123df565b94506040870135915080821115612b5657600080fd5b612b6288838901612355565b93506060870135915080821115612b7857600080fd5b50612b8587828801612355565b91505092959194509250565b60008060408385031215612ba457600080fd5b50508035926020909101359150565b60008151808452612bcb816020860160208601613045565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251612c01818460208701613045565b9190910192915050565b60008451612c1d818460208901613045565b845190830190612c31818360208901613045565b8451910190612c44818360208801613045565b0195945050505050565b6001600160a01b038a811682528916602082015261012060408201819052600090612c7b8382018b612bb3565b6001600160701b03998a1660608501529790981660808301525093151560a085015291151560c0840152151560e0830152151561010090910152949350505050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b6001600160a01b0383168152604060208201819052600090610e0390830184612bb3565b6020808252825182820181905260009190848201906040850190845b8181101561170957835183529284019291840191600101612d3d565b602081526000610da06020830184612bb3565b60208082526010908201526f5265673a206e69636520747279203b2960801b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208152612de76020820183516001600160a01b03169052565b60006020830151612e0360408401826001600160a01b03169052565b5060408301516001600160a01b0381166060840152506060830151610140806080850152612e35610160850183612bb3565b91506080850151612e5160a08601826001600160701b03169052565b5060a08501516001600160701b03811660c08601525060c085015180151560e08601525060e0850151610100612e8a8187018315159052565b8601519050610120612e9f8682018315159052565b90950151151593019290925250919050565b6000808335601e19843603018112612ec857600080fd5b8301803591506001600160401b03821115612ee257600080fd5b60200191503681900382131561234e57600080fd5b60405161014081016001600160401b0381118282101715612f1a57612f1a6130bc565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612f4857612f486130bc565b604052919050565b60006001600160401b03821115612f6957612f696130bc565b50601f01601f191660200190565b60008085851115612f8757600080fd5b83861115612f9457600080fd5b5050820193919092039150565b60008219821115612fb457612fb4613090565b500190565b600082612fd657634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612ff557612ff5613090565b500290565b60006001600160701b038381169083168181101561301a5761301a613090565b039392505050565b60008282101561303457613034613090565b500390565b600061073736836123df565b60005b83811015613060578181015183820152602001613048565b8381111561306f576000848401525b50505050565b600060001982141561308957613089613090565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146130e757600080fd5b50565b80151581146130e757600080fd5b6001600160701b03811681146130e757600080fdfea26469706673582212201be052ed8c95f4872f5e959833876a5a02c69e9bd4d082e02058ea25ffaf882f64736f6c6343000806003360806040523480156200001157600080fd5b50604051620027f7380380620027f78339810160408190526200003491620007dd565b84848482600290805190602001906200004f92919062000629565b5081516200006590600390602085019062000629565b5080516200007b906004906020840190620006b8565b5060005b8151811015620000eb57600160056000848481518110620000a457620000a462000aba565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000e28162000a86565b9150506200007f565b506040516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce217705460248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b1580156200016657600080fd5b505af11580156200017b573d6000803e3d6000fd5b50506040516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad2492506329965a1d9150606401600060405180830381600087803b158015620001f957600080fd5b505af11580156200020e573d6000803e3d6000fd5b505050505050506200022f620002296200026c60201b60201c565b62000270565b6200026182826040518060200160405280600081525060405180602001604052806000815250620002c260201b60201c565b505050505062000ae6565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002d2848484846001620002d8565b50505050565b6001600160a01b038516620003345760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b600033905084600160008282546200034d9190620009ff565b90915550506001600160a01b038616600090815260208190526040812080548792906200037c908490620009ff565b9091555062000394905081600088888888886200042e565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d878787604051620003dd9392919062000993565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca9060440160206040518083038186803b158015620004ab57600080fd5b505afa158015620004c0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004e69190620007b8565b90506001600160a01b0381161562000568576040516223de2960e01b81526001600160a01b038216906223de29906200052e908b908b908b908b908b908b9060040162000935565b600060405180830381600087803b1580156200054957600080fd5b505af11580156200055e573d6000803e3d6000fd5b5050505062000619565b811562000619576200058e866001600160a01b03166200062360201b62000c2e1760201c565b15620006195760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a4016200032b565b5050505050505050565b3b151590565b828054620006379062000a49565b90600052602060002090601f0160209004810192826200065b5760008555620006a6565b82601f106200067657805160ff1916838001178555620006a6565b82800160010185558215620006a6579182015b82811115620006a657825182559160200191906001019062000689565b50620006b492915062000710565b5090565b828054828255906000526020600020908101928215620006a6579160200282015b82811115620006a657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006d9565b5b80821115620006b4576000815560010162000711565b80516001600160a01b03811681146200073f57600080fd5b919050565b600082601f8301126200075657600080fd5b81516001600160401b0381111562000772576200077262000ad0565b62000787601f8201601f1916602001620009cc565b8181528460208386010111156200079d57600080fd5b620007b082602083016020870162000a1a565b949350505050565b600060208284031215620007cb57600080fd5b620007d68262000727565b9392505050565b600080600080600060a08688031215620007f657600080fd5b85516001600160401b03808211156200080e57600080fd5b6200081c89838a0162000744565b96506020915081880151818111156200083457600080fd5b620008428a828b0162000744565b9650506040880151818111156200085857600080fd5b8801601f81018a136200086a57600080fd5b8051828111156200087f576200087f62000ad0565b8060051b925062000892848401620009cc565b8181528481019083860185850187018e1015620008ae57600080fd5b600095505b83861015620008dc57620008c78162000727565b835260019590950194918601918601620008b3565b50809850505050505050620008f46060870162000727565b9150608086015190509295509295909350565b600081518084526200092181602086016020860162000a1a565b601f01601f19169290920160200192915050565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c060808201819052600090620009729083018562000907565b82810360a084015262000986818562000907565b9998505050505050505050565b838152606060208201526000620009ae606083018562000907565b8281036040840152620009c2818562000907565b9695505050505050565b604051601f8201601f191681016001600160401b0381118282101715620009f757620009f762000ad0565b604052919050565b6000821982111562000a155762000a1562000aa4565b500190565b60005b8381101562000a3757818101518382015260200162000a1d565b83811115620002d25750506000910152565b600181811c9082168062000a5e57607f821691505b6020821081141562000a8057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000a9d5762000a9d62000aa4565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b611d018062000af66000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80639492a2f5116100c3578063dcdc7dd01161007c578063dcdc7dd0146102ab578063dd62ed3e146102be578063f2fde38b146102f7578063fad8b32a1461030a578063fc673c4f1461031d578063fe9d93031461033057600080fd5b80639492a2f514610244578063959b8c3f1461025757806395d89b411461026a5780639bd9bbc614610272578063a9059cbb14610285578063d95b63711461029857600080fd5b8063313ce56711610115578063313ce567146101cd578063556f0dc7146101dc57806362ad1b83146101e357806370a08231146101f8578063715018a6146102215780638da5cb5b1461022957600080fd5b806306e485381461015257806306fdde0314610170578063095ea7b31461018557806318160ddd146101a857806323b872dd146101ba575b600080fd5b61015a610343565b6040516101679190611a64565b60405180910390f35b6101786103a5565b6040516101679190611ab1565b6101986101933660046117b8565b61042e565b6040519015158152602001610167565b6001545b604051908152602001610167565b6101986101c83660046116e4565b610446565b60405160128152602001610167565b60016101ac565b6101f66101f1366004611725565b61060f565b005b6101ac610206366004611671565b6001600160a01b031660009081526020819052604090205490565b6101f661064b565b6009546040516001600160a01b039091168152602001610167565b6101f66102523660046118bd565b610681565b6101f6610265366004611671565b610749565b610178610867565b6101f66102803660046117e4565b610876565b6101986102933660046117b8565b610899565b6101986102a63660046116ab565b61094c565b6101f66102b936600461183d565b6109ee565b6101ac6102cc3660046116ab565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6101f6610305366004611671565b610a2a565b6101f6610318366004611671565b610ac5565b6101f661032b36600461183d565b610be1565b6101f661033e366004611976565b610c13565b6060600480548060200260200160405190810160405280929190818152602001828054801561039b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161037d575b5050505050905090565b6060600280546103b490611c1e565b80601f01602080910402602001604051908101604052809291908181526020018280546103e090611c1e565b801561039b5780601f106104025761010080835404028352916020019161039b565b820191906000526020600020905b81548152906001019060200180831161041057509395945050505050565b60003361043c818585610c34565b5060019392505050565b60006001600160a01b0383166104775760405162461bcd60e51b815260040161046e90611af9565b60405180910390fd5b6001600160a01b0384166104dc5760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b606482015260840161046e565b600033905061050d818686866040518060200160405280600081525060405180602001604052806000815250610d5b565b610539818686866040518060200160405280600081525060405180602001604052806000815250610e92565b6001600160a01b03808616600090815260086020908152604080832093851683529290522054838110156105c15760405162461bcd60e51b815260206004820152602960248201527f4552433737373a207472616e7366657220616d6f756e74206578636565647320604482015268616c6c6f77616e636560b81b606482015260840161046e565b6105d586836105d08785611c07565b610c34565b6106038287878760405180602001604052806000815250604051806020016040528060008152506000610ff8565b50600195945050505050565b610619338661094c565b6106355760405162461bcd60e51b815260040161046e90611b3d565b610644858585858560016111cc565b5050505050565b6009546001600160a01b031633146106755760405162461bcd60e51b815260040161046e90611ac4565b61067f60006112af565b565b60005b8151811015610745576001600560008484815181106106a5576106a5611c8a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555060048282815181106106f8576106f8611c8a565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061073d81611c59565b915050610684565b5050565b336001600160a01b03821614156107ae5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b606482015260840161046e565b6001600160a01b03811660009081526005602052604090205460ff16156107ff573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916905561082e565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b6060600380546103b490611c1e565b610894338484846040518060200160405280600081525060016111cc565b505050565b60006001600160a01b0383166108c15760405162461bcd60e51b815260040161046e90611af9565b60003390506108f2818286866040518060200160405280600081525060405180602001604052806000815250610d5b565b61091e818286866040518060200160405280600081525060405180602001604052806000815250610e92565b61043c8182868660405180602001604052806000815250604051806020016040528060008152506000610ff8565b6000816001600160a01b0316836001600160a01b031614806109b757506001600160a01b03831660009081526005602052604090205460ff1680156109b757506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b806109e757506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6009546001600160a01b03163314610a185760405162461bcd60e51b815260040161046e90611ac4565b610a2484848484611301565b50505050565b6009546001600160a01b03163314610a545760405162461bcd60e51b815260040161046e90611ac4565b6001600160a01b038116610ab95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161046e565b610ac2816112af565b50565b6001600160a01b038116331415610b285760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b606482015260840161046e565b6001600160a01b03811660009081526005602052604090205460ff1615610b7c573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610ba8565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b610beb338561094c565b610c075760405162461bcd60e51b815260040161046e90611b3d565b610a248484848461130f565b6107453383836040518060200160405280600081525061130f565b3b151590565b6001600160a01b038316610c985760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161046e565b6001600160a01b038216610cfa5760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b606482015260840161046e565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca9060440160206040518083038186803b158015610dd757600080fd5b505afa158015610deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0f919061168e565b90506001600160a01b03811615610e8957604051633ad5cbc160e11b81526001600160a01b038216906375ab978290610e56908a908a908a908a908a908a90600401611a0a565b600060405180830381600087803b158015610e7057600080fd5b505af1158015610e84573d6000803e3d6000fd5b505050505b50505050505050565b6001600160a01b03851660009081526020819052604090205483811015610f0b5760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b606482015260840161046e565b6001600160a01b03808716600090815260208190526040808220878503905591871681529081208054869290610f42908490611bef565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987878787604051610f9a93929190611b89565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051610fe791815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca9060440160206040518083038186803b15801561107457600080fd5b505afa158015611088573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ac919061168e565b90506001600160a01b03811615611128576040516223de2960e01b81526001600160a01b038216906223de29906110f1908b908b908b908b908b908b90600401611a0a565b600060405180830381600087803b15801561110b57600080fd5b505af115801561111f573d6000803e3d6000fd5b505050506111c2565b81156111c2576001600160a01b0386163b156111c25760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a40161046e565b5050505050505050565b6001600160a01b03861661122d5760405162461bcd60e51b815260206004820152602260248201527f4552433737373a2073656e642066726f6d20746865207a65726f206164647265604482015261737360f01b606482015260840161046e565b6001600160a01b0385166112835760405162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015260640161046e565b33611292818888888888610d5b565b6112a0818888888888610e92565b610e8981888888888888610ff8565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a248484848460016114c4565b6001600160a01b0384166113705760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b606482015260840161046e565b3361138081866000878787610d5b565b6001600160a01b038516600090815260208190526040902054848110156113f55760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b606482015260840161046e565b6001600160a01b0386166000908152602081905260408120868303905560018054879290611424908490611c07565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a409887878760405161147293929190611b89565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3505050505050565b6001600160a01b03851661151a5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015260640161046e565b600033905084600160008282546115319190611bef565b90915550506001600160a01b0386166000908152602081905260408120805487929061155e908490611bef565b9091555061157490508160008888888888610ff8565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d8787876040516115bb93929190611b89565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016114b4565b600082601f83011261161257600080fd5b813567ffffffffffffffff81111561162c5761162c611ca0565b61163f601f8201601f1916602001611bbe565b81815284602083860101111561165457600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561168357600080fd5b81356109e781611cb6565b6000602082840312156116a057600080fd5b81516109e781611cb6565b600080604083850312156116be57600080fd5b82356116c981611cb6565b915060208301356116d981611cb6565b809150509250929050565b6000806000606084860312156116f957600080fd5b833561170481611cb6565b9250602084013561171481611cb6565b929592945050506040919091013590565b600080600080600060a0868803121561173d57600080fd5b853561174881611cb6565b9450602086013561175881611cb6565b935060408601359250606086013567ffffffffffffffff8082111561177c57600080fd5b61178889838a01611601565b9350608088013591508082111561179e57600080fd5b506117ab88828901611601565b9150509295509295909350565b600080604083850312156117cb57600080fd5b82356117d681611cb6565b946020939093013593505050565b6000806000606084860312156117f957600080fd5b833561180481611cb6565b925060208401359150604084013567ffffffffffffffff81111561182757600080fd5b61183386828701611601565b9150509250925092565b6000806000806080858703121561185357600080fd5b843561185e81611cb6565b935060208501359250604085013567ffffffffffffffff8082111561188257600080fd5b61188e88838901611601565b935060608701359150808211156118a457600080fd5b506118b187828801611601565b91505092959194509250565b600060208083850312156118d057600080fd5b823567ffffffffffffffff808211156118e857600080fd5b818501915085601f8301126118fc57600080fd5b81358181111561190e5761190e611ca0565b8060051b915061191f848301611bbe565b8181528481019084860184860187018a101561193a57600080fd5b600095505b83861015611969578035945061195485611cb6565b8483526001959095019491860191860161193f565b5098975050505050505050565b6000806040838503121561198957600080fd5b82359150602083013567ffffffffffffffff8111156119a757600080fd5b6119b385828601611601565b9150509250929050565b6000815180845260005b818110156119e3576020818501810151868301820152016119c7565b818111156119f5576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c060808201819052600090611a45908301856119bd565b82810360a0840152611a5781856119bd565b9998505050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611aa55783516001600160a01b031683529284019291840191600101611a80565b50909695505050505050565b6020815260006109e760208301846119bd565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b838152606060208201526000611ba260608301856119bd565b8281036040840152611bb481856119bd565b9695505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611be757611be7611ca0565b604052919050565b60008219821115611c0257611c02611c74565b500190565b600082821015611c1957611c19611c74565b500390565b600181811c90821680611c3257607f821691505b60208210811415611c5357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c6d57611c6d611c74565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ac257600080fdfea264697066735822122066a8af861ec3d076eb8c57cab23a258c7eb7664e217b9a7c1823325863f6d6b164736f6c634300080600330000000000000000000000001430f4cb9d123f1542d908a29d6987ba05a858e3000000000000000000000000bab6d0b770b9970e9ff2af9a7e2a52b3d7aa157f000000000000000000000000d638029a9356db6301462470094786494d1dda390000000000000000000000004c335894cd87c2a2dbaece82e752606e4bca25cb000000000000000000000000c21e82fe258abf9bc3ef68fb38aecda79e472964000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000033b87309c42d74a4474000000000000000000000000000000000000000000000000000000000000000000104175746f6e6f6d79204e6574776f726b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044155544f00000000000000000000000000000000000000000000000000000000

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

0000000000000000000000001430f4cb9d123f1542d908a29d6987ba05a858e3000000000000000000000000bab6d0b770b9970e9ff2af9a7e2a52b3d7aa157f000000000000000000000000d638029a9356db6301462470094786494d1dda390000000000000000000000004c335894cd87c2a2dbaece82e752606e4bca25cb000000000000000000000000c21e82fe258abf9bc3ef68fb38aecda79e472964000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000033b87309c42d74a4474000000000000000000000000000000000000000000000000000000000000000000104175746f6e6f6d79204e6574776f726b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044155544f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : stakeMan (address): 0x1430f4cb9d123f1542d908a29d6987ba05a858e3
Arg [1] : oracle (address): 0xbab6d0b770b9970e9ff2af9a7e2a52b3d7aa157f
Arg [2] : userForwarder (address): 0xd638029a9356db6301462470094786494d1dda39
Arg [3] : gasForwarder (address): 0x4c335894cd87c2a2dbaece82e752606e4bca25cb
Arg [4] : userGasForwarder (address): 0xc21e82fe258abf9bc3ef68fb38aecda79e472964
Arg [5] : tokenName (string): Autonomy Network
Arg [6] : tokenSymbol (string): AUTO
Arg [7] : totalAUTOSupply (uint256): 1000420069000000000000000000

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000001430f4cb9d123f1542d908a29d6987ba05a858e3
Arg [1] : 000000000000000000000000bab6d0b770b9970e9ff2af9a7e2a52b3d7aa157f
Arg [2] : 000000000000000000000000d638029a9356db6301462470094786494d1dda39
Arg [3] : 0000000000000000000000004c335894cd87c2a2dbaece82e752606e4bca25cb
Arg [4] : 000000000000000000000000c21e82fe258abf9bc3ef68fb38aecda79e472964
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [7] : 0000000000000000000000000000000000000000033b87309c42d74a44740000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [9] : 4175746f6e6f6d79204e6574776f726b00000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 4155544f00000000000000000000000000000000000000000000000000000000


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.