Contract 0xA0F25b796dD59E504077F87Caea1c0472Cd6b7b4 2

Contract Overview

Balance:
1.06 AVAX
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcad2ca1ea57fbcb388abfb12b5f8dead41d26fe7d4a45d925b094cefb67d87ad0xb7a0c978137137902022-09-20 13:37:596 days 17 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.001285331253 27.009566571
0xbfea0cff51f0d2677c5e208d61412e073dcf17524e91b537725b0a94090965dcNew Req137133602022-09-20 13:23:396 days 17 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.002227249076 27.473498822
0x86da47d9d9b130cbab79ccb19172f9fd8f03579691db99b673956ce7c0b0974eNew Req137133562022-09-20 13:23:306 days 17 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.002236437028 27.586833784
0x6c65bfa0a4c051f23171b111ec198241a71a9a0e110aafa2f0dad81ba1c51fbcNew Req137133512022-09-20 13:23:196 days 17 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.002178240651 26.868971509
0x86419bfeecd96aa51545e036d9b58917096cd5f457ed1fe2c6fc0e3ea9fe2334New Req137133422022-09-20 13:23:036 days 17 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.002177100729 26.854910373
0xbd63734070ef222ef68e3addd28648674ca1b187b1b2395fab00e46e7e43e8f30xb7a0c978137095892022-09-20 11:17:566 days 19 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.001261082 26.5
0xf4ff07b185e5766981f2113495b05ba2ca32875c68ac6b8c8244541d090c4c1bNew Req137095792022-09-20 11:17:366 days 19 hrs ago0x80805ae3cbe23715c1f1807a03c5fb669541c2a9 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.0021483285 26.5
0xe4469001b413690ab339205ef5e3c34666bb66041e58ba690729801f9cc2a561New Req127448282022-08-22 12:11:1835 days 19 hrs ago0x2e9527f975a795f0e4b68295dd381a6d16dd34bc IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x6d4097afccdd4cd6ae2ac2d858ab5850bc26830b8c204f1022019acf9c00b6d1New Req126866832022-08-19 13:20:2938 days 17 hrs ago0xda9de41b1978a2a9cb0b4b478f4507226252fd05 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x79a76c58fceaf6fc3abccf176cb8820f22fad6760da75b2b511917a65e08bd43New Req126866802022-08-19 13:20:2238 days 17 hrs ago0x45b315a16ebb33f9735ff93b8585b11478cdbebb IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x10aa5e51802c7b209d1b41692b376ca4d7c1d0d08483dd886b8f19266a781c82New Req126866782022-08-19 13:20:1538 days 17 hrs ago0xda9de41b1978a2a9cb0b4b478f4507226252fd05 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x1f3d51f744a62106b534faa7e6bf11f3870e9dd77f9ce038b6830c3b4a68e3cdNew Req126866742022-08-19 13:20:0738 days 17 hrs ago0x2e9527f975a795f0e4b68295dd381a6d16dd34bc IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x42a8179067c29930586571d10fa66d502f21817dc2a181c56bb4578363c33b8dNew Req126866712022-08-19 13:20:0138 days 17 hrs ago0x2e9527f975a795f0e4b68295dd381a6d16dd34bc IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x773961fb274d8e5554cd077250638970acc2cf2772e7bf235fa205cb770ea3ffNew Req126866692022-08-19 13:19:5538 days 17 hrs ago0xda9de41b1978a2a9cb0b4b478f4507226252fd05 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0xc58ed2e484022bff5278ceed48e8b17375ce6756271e563eb39fcfd9cb816f57New Req126866652022-08-19 13:19:4638 days 17 hrs ago0x2e9527f975a795f0e4b68295dd381a6d16dd34bc IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x36bd6503dfad8a5ff6670543344d2eee01d0a3d9f3657c82ead33fd82444d632New Req126866612022-08-19 13:19:3638 days 17 hrs ago0xb8ad9f7ac8d2fea595cae78a29f4781211e16bc0 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x47a3739ab0fdae00d7834479ce4014ba505c0e23a96390988297f0fb2f5ed804New Req126866572022-08-19 13:19:2838 days 17 hrs ago0x5ae3006d397ddbe2a878ec5b3d0f58bb392e5cfd IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x9a877d998c3f80a14cfcb0f0c0ba3b19d00bfe068988a81b9cc677e582ae6eceNew Req126866542022-08-19 13:19:2238 days 17 hrs ago0x92f8ab23145e8fd5e6b2af3abbb54e2e74691e38 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0xfe5dadd27956ccb6eb655b280e6490e461a385ca81b67cf8496a25ec7e099264New Req126866522022-08-19 13:19:1538 days 17 hrs ago0x2e9527f975a795f0e4b68295dd381a6d16dd34bc IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0xb24a44c8c4891f70758fbd664237678748cc15b74b72f303e88fc298a0418826New Req126866482022-08-19 13:19:0738 days 17 hrs ago0x2e9527f975a795f0e4b68295dd381a6d16dd34bc IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x65ee546faa65cf17501c96ce4d7812343ddabe6ded218b72b4798d98c61a77dfNew Req126866452022-08-19 13:19:0138 days 17 hrs ago0xda9de41b1978a2a9cb0b4b478f4507226252fd05 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0xd1a7fe2704f890a41297bf51d4816b4ba4939e538b64a1b63c9b2082ca9e10d7New Req126866432022-08-19 13:18:5538 days 17 hrs ago0xda9de41b1978a2a9cb0b4b478f4507226252fd05 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x59c6f1ac82f5a9a059f8cd12681b6ad5bb055425ad55da72b17cb725e2fc03ebNew Req126866412022-08-19 13:18:4738 days 17 hrs ago0xda9de41b1978a2a9cb0b4b478f4507226252fd05 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0x4eb5b4e802f724cb51badc9029bff32180ab3c356bd5776a054cb1b41ed4a329New Req126866382022-08-19 13:18:4138 days 17 hrs ago0xacc087b1b873d326fcb2f1649c0a0616618477b3 IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
0xdb10abe589301d88126b291f1a35f46887e5bcd5390aab0a660201a09eccef44New Req126866342022-08-19 13:18:3238 days 17 hrs ago0x2e9527f975a795f0e4b68295dd381a6d16dd34bc IN  0xa0f25b796dd59e504077f87caea1c0472cd6b7b40 AVAX0.00181825 25
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xbfea0cff51f0d2677c5e208d61412e073dcf17524e91b537725b0a94090965dc137133602022-09-20 13:23:396 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x86da47d9d9b130cbab79ccb19172f9fd8f03579691db99b673956ce7c0b0974e137133562022-09-20 13:23:306 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x6c65bfa0a4c051f23171b111ec198241a71a9a0e110aafa2f0dad81ba1c51fbc137133512022-09-20 13:23:196 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x86419bfeecd96aa51545e036d9b58917096cd5f457ed1fe2c6fc0e3ea9fe2334137133422022-09-20 13:23:036 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0xf4ff07b185e5766981f2113495b05ba2ca32875c68ac6b8c8244541d090c4c1b137095792022-09-20 11:17:366 days 19 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0xe4469001b413690ab339205ef5e3c34666bb66041e58ba690729801f9cc2a561127448282022-08-22 12:11:1835 days 19 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x6d4097afccdd4cd6ae2ac2d858ab5850bc26830b8c204f1022019acf9c00b6d1126866832022-08-19 13:20:2938 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x79a76c58fceaf6fc3abccf176cb8820f22fad6760da75b2b511917a65e08bd43126866802022-08-19 13:20:2238 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x10aa5e51802c7b209d1b41692b376ca4d7c1d0d08483dd886b8f19266a781c82126866782022-08-19 13:20:1538 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x1f3d51f744a62106b534faa7e6bf11f3870e9dd77f9ce038b6830c3b4a68e3cd126866742022-08-19 13:20:0738 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x42a8179067c29930586571d10fa66d502f21817dc2a181c56bb4578363c33b8d126866712022-08-19 13:20:0138 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x773961fb274d8e5554cd077250638970acc2cf2772e7bf235fa205cb770ea3ff126866692022-08-19 13:19:5538 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0xc58ed2e484022bff5278ceed48e8b17375ce6756271e563eb39fcfd9cb816f57126866652022-08-19 13:19:4638 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x36bd6503dfad8a5ff6670543344d2eee01d0a3d9f3657c82ead33fd82444d632126866612022-08-19 13:19:3638 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x47a3739ab0fdae00d7834479ce4014ba505c0e23a96390988297f0fb2f5ed804126866572022-08-19 13:19:2838 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x9a877d998c3f80a14cfcb0f0c0ba3b19d00bfe068988a81b9cc677e582ae6ece126866542022-08-19 13:19:2238 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0xfe5dadd27956ccb6eb655b280e6490e461a385ca81b67cf8496a25ec7e099264126866522022-08-19 13:19:1538 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0xb24a44c8c4891f70758fbd664237678748cc15b74b72f303e88fc298a0418826126866482022-08-19 13:19:0738 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x65ee546faa65cf17501c96ce4d7812343ddabe6ded218b72b4798d98c61a77df126866452022-08-19 13:19:0138 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0xd1a7fe2704f890a41297bf51d4816b4ba4939e538b64a1b63c9b2082ca9e10d7126866432022-08-19 13:18:5538 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x59c6f1ac82f5a9a059f8cd12681b6ad5bb055425ad55da72b17cb725e2fc03eb126866412022-08-19 13:18:4738 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x4eb5b4e802f724cb51badc9029bff32180ab3c356bd5776a054cb1b41ed4a329126866382022-08-19 13:18:4138 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0xdb10abe589301d88126b291f1a35f46887e5bcd5390aab0a660201a09eccef44126866342022-08-19 13:18:3238 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x1f8b7f9c4b93d45526e1273b7d0996c4ade1901b2bc247bf5bee99ef02133379126866302022-08-19 13:18:2438 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 AVAX
0x59161561c04895ced4cfeff660241a0c4026ddd9669be6c074ecb63b4436e02e126866282022-08-19 13:18:1838 days 17 hrs ago 0xa0f25b796dd59e504077f87caea1c0472cd6b7b40x388fba3ccaca682118bc80aa20a137dbb7b1c5150 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;
    bytes32[] private _hashedReqs;
    
    
    // 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 HashedReqExecuted(uint indexed id, bool wasRemoved);
    event HashedReqCancelled(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];
    }


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

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

    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 _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);
        }
    }
    
    
    //////////////////////////////////////////////////////////////
    //                                                          //
    //                          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"
        );
        _;
    }
    
    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);


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                        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);

    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);


    //////////////////////////////////////////////////////////////
    //                                                          //
    //                        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;
    
    
    //////////////////////////////////////////////////////////////
    //                                                          //
    //                          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);
    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 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",
        "devdoc",
        "userdoc",
        "metadata",
        "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"},{"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":"uint256","name":"expectedGas","type":"uint256"}],"name":"executeHashedReq","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":"uint256","name":"id","type":"uint256"}],"name":"getHashedReq","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":"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":[],"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":"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"}]

6101406040523480156200001257600080fd5b50604051620050d3380380620050d38339810160408190526200003591620002c2565b60016000908155604080516002808252606082018352909160208301908036833701905050905030816000815181106200007357620000736200048e565b60200260200101906001600160a01b031690816001600160a01b0316815250508881600181518110620000aa57620000aa6200048e565b60200260200101906001600160a01b031690816001600160a01b03168152505060008484833386604051620000df9062000223565b620000ef959493929190620003d0565b604051809103906000f0801580156200010c573d6000803e3d6000fd5b506001600160601b0319606082811b82166080528c811b821660a0529a8b1b811660c052898b1b811660e052888b1b8116610100529987901b909916610120525050306000908152600160208190526040808320805460ff1990811684179091556001600160a01b03998a16845281842080548216841790559789168352808320805489168317905595881682528582208054881682179055978716815284812080548716891790557fac625e8347948d3206e77739763ab825663c1535c3bd56ab48b32fe36db7570d8054871689179055979095168752505084208054821684179055928052507fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb498054909216179055620004d3565b6127f780620028dc83390190565b600082601f8301126200024357600080fd5b81516001600160401b0380821115620002605762000260620004a4565b604051601f8301601f19908116603f011681019082821181831017156200028b576200028b620004a4565b81604052838152866020858801011115620002a557600080fd5b620002b88460208301602089016200045b565b9695505050505050565b600080600080600080600080610100898b031215620002e057600080fd5b8851620002ed81620004ba565b60208a01519098506200030081620004ba565b60408a01519097506200031381620004ba565b60608a01519096506200032681620004ba565b60808a01519095506200033981620004ba565b60a08a01519094506001600160401b03808211156200035757600080fd5b620003658c838d0162000231565b945060c08b01519150808211156200037c57600080fd5b506200038b8b828c0162000231565b92505060e089015190509295985092959890939650565b60008151808452620003bc8160208601602086016200045b565b601f01601f19169290920160200192915050565b60a081526000620003e560a0830188620003a2565b602083820381850152620003fa8289620003a2565b8481036040860152875180825282890193509082019060005b818110156200043a5784516001600160a01b03168352938301939183019160010162000413565b50506001600160a01b03969096166060850152505050608001529392505050565b60005b83811015620004785781810151838201526020016200045e565b8381111562000488576000848401525b50505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620004d057600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c61237662000566600039600081816103a801526114aa0152600081816104cc01526113f001526000818161016a01526112df0152600081816102b001528181610bd301526110a90152600081816103ee01526107ac01526000818161044e015261162b01526123766000f3fe60806040526004361061014f5760003560e01c8063b7a0c978116100b6578063caeb66711161006f578063caeb667114610412578063d34f304b1461043f578063d92f0d9714610472578063df70b5aa14610488578063f78a42011461049d578063ffd89c35146104bd57600080fd5b8063b7a0c97814610321578063bb83f3be14610343578063bd93d63514610379578063be914d6814610399578063c1e9e7bc146103cc578063ca64f9e7146103df57600080fd5b80636142d409116101085780636142d409146102635780637434dda01461027957806382babb1f1461028e578063833b1fce146102a1578063a17b1ba9146102d4578063a56671ed1461030157600080fd5b80632176b61b1461015b57806324e003de146101a757806336342091146101eb5780634624ffa8146102015780634f149105146102175780635a4462b61461022d57600080fd5b3661015657005b600080fd5b34801561016757600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101b357600080fd5b506101dd6101c2366004611aae565b6001600160a01b031660009081526002602052604090205490565b60405190815260200161019e565b3480156101f757600080fd5b506101dd6132c881565b34801561020d57600080fd5b506101dd612af881565b34801561022357600080fd5b506101dd61177081565b34801561023957600080fd5b506101dd610248366004611aae565b6001600160a01b031660009081526003602052604090205490565b34801561026f57600080fd5b506101dd61271081565b34801561028557600080fd5b506005546101dd565b6101dd61029c366004611b7d565b6104f0565b3480156102ad57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061018a565b3480156102e057600080fd5b506102f46102ef366004611d80565b610573565b60405161019e9190611ffc565b34801561030d57600080fd5b506101dd61031c366004611dcf565b61059c565b34801561032d57600080fd5b5061034161033c366004611e57565b6105c3565b005b34801561034f57600080fd5b506101dd61035e366004611aae565b6001600160a01b031660009081526004602052604090205490565b34801561038557600080fd5b506101dd610394366004611e01565b610794565b3480156103a557600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061018a565b6101dd6103da366004611acb565b610b69565b3480156103eb57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061018a565b34801561041e57600080fd5b5061043261042d366004611e93565b610c76565b60405161019e9190611fc4565b34801561044b57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061018a565b34801561047e57600080fd5b506101dd613e8081565b34801561049457600080fd5b50610432610cda565b3480156104a957600080fd5b506102f46104b8366004611ce0565b610d32565b3480156104c957600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061018a565b6001600160a01b0389166000908152600160205260408120548a9060ff16156105535760405162461bcd60e51b815260206004820152601060248201526f5265673a206e69636520747279203b2960801b60448201526064015b60405180910390fd5b6105648b8b8b8b8b8b8b8b8b610e11565b9b9a5050505050505050505050565b606081604051602001610586919061200f565b6040516020818303038152906040529050919050565b6000600582815481106105b1576105b16122ee565b90600052602060002001549050919050565b600260005414156106165760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161054a565b6002600081905550818160058281548110610633576106336122ee565b906000526020600020015461064782610573565b80519060200120146106975760405162461bcd60e51b81526020600482015260196024820152785265673a2072657175657374206e6f74207468652073616d6560381b604482015260640161054a565b82516001600160a01b031633146106e45760405162461bcd60e51b81526020600482015260116024820152702932b39d103737ba103a3432903ab9b2b960791b604482015260640161054a565b60405184907f62dccc8b05bdb108c7df2a72447f7b7e986435e755a1e75d42c21502d235448390600090a260058481548110610722576107226122ee565b600091825260208220015560808301516001600160701b03161561078957825160808401516040516001600160a01b03909216916001600160701b0390911680156108fc02916000818181858888f19350505050158015610787573d6000803e3d6000fd5b505b505060016000555050565b60405163ac4a870360e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ac4a870390602401602060405180830381600087803b1580156107f857600080fd5b505af115801561080c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108309190611c5f565b61087c5760405162461bcd60e51b815260206004820152601c60248201527f5265673a206e6f74206578656375746f72206f72206578706972656400000000604482015260640161054a565b600260005414156108cf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161054a565b6002600055826108e560e0820160c08301611c42565b1561097f576108f76020820182611aae565b6001600160a01b031661090d60608301836120f3565b61091c916024916004916121b9565b8101906109299190611aae565b6001600160a01b03161461097f5760405162461bcd60e51b815260206004820152601a60248201527f5265673a2063616c6c64617461206e6f74207665726966696564000000000000604482015260640161054a565b846109898561227b565b6005828154811061099c5761099c6122ee565b90600052602060002001546109b082610573565b8051906020012014610a005760405162461bcd60e51b81526020600482015260196024820152785265673a2072657175657374206e6f74207468652073616d6560381b604482015260640161054a565b60005a9050610a1761014088016101208901611c42565b15610a57576040516000815288907f1c90485e10caf60de95f5ea39d7e031082538ccf11651d570b21f73fac78e2bd9060200160405180910390a2610aac565b6040516001815288907f1c90485e10caf60de95f5ea39d7e031082538ccf11651d570b21f73fac78e2bd9060200160405180910390a260058881548110610aa057610aa06122ee565b60009182526020822001555b610ab687876110a7565b610ac861012088016101008901611c42565b1515600114610ad957611770610add565b613e805b5a610ae89083612264565b610af291906121e3565b9450610aff85600b61221d565b610b0a87600a61221d565b1115610b585760405162461bcd60e51b815260206004820152601960248201527f5265673a20657870656374656447617320746f6f206869676800000000000000604482015260640161054a565b505060016000555090949350505050565b6001600160a01b038816600090815260016020526040812054899060ff1615610bc75760405162461bcd60e51b815260206004820152601060248201526f5265673a206e69636520747279203b2960801b604482015260640161054a565b610c688a8a8a8a8a8a8a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166364cf42ef6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c2a57600080fd5b505afa158015610c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c629190611c5f565b8b610e11565b9a9950505050505050505050565b6060610cd36005805480602002602001604051908101604052809291908181526020018280548015610cc757602002820191906000526020600020905b815481526020019060010190808311610cb3575b5050505050848461180c565b9392505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610d2857602002820191906000526020600020905b815481526020019060010190808311610d14575b5050505050905090565b6060600085858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525060408051602081018b90529596509094019250610d83915050565b604051602081830303815290604052905060005b6020811015610e0557818181518110610db257610db26122ee565b01602001516001600160f81b03191683610dcc83886121e3565b81518110610ddc57610ddc6122ee565b60200101906001600160f81b031916908160001a90535080610dfd816122bd565b915050610d97565b50909695505050505050565b600082866001600160701b03168115610e7857348114610e735760405162461bcd60e51b815260206004820152601d60248201527f5265673a20657468466f7243616c6c206e6f74206d73672e76616c7565000000604482015260640161054a565b610ec8565b34811115610ec85760405162461bcd60e51b815260206004820152601860248201527f5265673a20657468466f7243616c6c20746f6f20686967680000000000000000604482015260640161054a565b8315610f1c573415610f1c5760405162461bcd60e51b815260206004820152601760248201527f5265673a206e6f20455448207768696c6520616c697665000000000000000000604482015260640161054a565b6000604051806101400160405280336001600160a01b031681526020018e6001600160a01b031681526020018d6001600160a01b031681526020018c8c8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509385525050506001600160701b0334811660208401528c1660408301528a15156060830152891515608083015288151560a083015287151560c090920191909152909150610fd682610573565b805190602001209050600580549050945081600001516001600160a01b0316857f2778dd1bc3c3e86afccc065209c8b7b9833ef5d1a0ab20c8e6fd8f9f403bde2484602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001518c610120015160405161105b99989796959493929190611ef1565b60405180910390a3600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0015550919b9a5050505050505050505050565b7f00000000000000000000000000000000000000000000000000000000000000004760006110dd61012086016101008701611c42565b1561120a576110f6670de0b6b3a764000061271061221d565b612af8846001600160a01b0316639e26d5806040518163ffffffff1660e01b815260040160206040518083038186803b15801561113257600080fd5b505afa158015611146573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116a9190611de8565b856001600160a01b031663ba19f12f6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111a357600080fd5b505afa1580156111b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111db9190611de8565b6111e5908861221d565b6111ef919061221d565b6111f9919061221d565b61120391906121fb565b90506112a2565b6127106132c8846001600160a01b031663ba19f12f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561124957600080fd5b505afa15801561125d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112819190611de8565b61128b908761221d565b611295919061221d565b61129f91906121fb565b90505b600060606112b660e0880160c08901611c42565b80156112d057506112ce610100880160e08901611c42565b155b156113b8576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016636fadcf7261131460c08a0160a08b01611db4565b6001600160701b031661132d60408b0160208c01611aae565b61133a60608c018c6120f3565b6040518563ffffffff1660e01b815260040161135893929190611f60565b6000604051808303818588803b15801561137157600080fd5b505af1158015611385573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526113ae9190810190611c7c565b90925090506115a6565b6113c860e0880160c08901611c42565b1580156113e157506113e1610100880160e08901611c42565b15611473576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016636fadcf7261142560c08a0160a08b01611db4565b6001600160701b031661143e60408b0160208c01611aae565b61145661144e60608d018d6120f3565b896004610d32565b6040518463ffffffff1660e01b8152600401611358929190611fa0565b61148360e0880160c08901611c42565b801561149b575061149b610100880160e08901611c42565b15611510576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016636fadcf726114df60c08a0160a08b01611db4565b6001600160701b03166114f860408b0160208c01611aae565b61145661150860608d018d6120f3565b896024610d32565b6115206040880160208901611aae565b6001600160a01b031661153960c0890160a08a01611db4565b6001600160701b031661154f60608a018a6120f3565b60405161155d929190611ee1565b60006040518083038185875af1925050503d806000811461159a576040519150601f19603f3d011682016040523d82523d6000602084013e61159f565b606091505b5090925090505b816115d857808060200190518101906115bf9190611d30565b60405162461bcd60e51b815260040161054a9190611ffc565b6000846115eb60c08a0160a08b01611db4565b6115fe906001600160701b0316476121e3565b6116089190612264565b905061161c61012089016101008a01611c42565b156116e4576001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166362ad1b8361165d60208b018b611aae565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201523360248201526044810187905260a06064820152600060a4820181905260c0608483015260c482015260e401600060405180830381600087803b1580156116c757600080fd5b505af11580156116db573d6000803e3d6000fd5b50505050611802565b6000816116f760c08b0160a08c01611db4565b61170760a08c0160808d01611db4565b611711919061223c565b6001600160701b031661172491906121e3565b9050848110156117765760405162461bcd60e51b815260206004820152601860248201527f5265673a206e6f7420656e6f756768206574682073656e740000000000000000604482015260640161054a565b604051339086156108fc029087906000818181858888f193505050501580156117a3573d6000803e3d6000fd5b5060006117b08683612264565b905080156117ff576117c560208b018b611aae565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156117fd573d6000803e3d6000fd5b505b50505b5050505050505050565b6060600061181a8484612264565b6001600160401b0381111561183157611831612304565b60405190808252806020026020018201604052801561185a578160200160208202803683370190505b5090506000845b848110156118c05786818151811061187b5761187b6122ee565b6020026020010151838381518110611895576118956122ee565b6020908102919091010152816118aa816122bd565b92505080806118b8906122bd565b915050611861565b509095945050505050565b60006118de6118d984612192565b612162565b90508281528383830111156118f257600080fd5b610cd383602083018461228d565b803561190b8161231a565b919050565b803561190b81612332565b60008083601f84011261192d57600080fd5b5081356001600160401b0381111561194457600080fd5b60208301915083602082850101111561195c57600080fd5b9250929050565b600082601f83011261197457600080fd5b81356119826118d982612192565b81815284602083860101111561199757600080fd5b816020850160208301376000918101602001919091529392505050565b600061014082840312156119c757600080fd5b6119cf612139565b90506119da82611900565b81526119e860208301611900565b60208201526119f960408301611900565b604082015260608201356001600160401b03811115611a1757600080fd5b611a2384828501611963565b606083015250611a3560808301611a97565b6080820152611a4660a08301611a97565b60a0820152611a5760c08301611910565b60c0820152611a6860e08301611910565b60e0820152610100611a7b818401611910565b90820152610120611a8d838201611910565b9082015292915050565b80356001600160701b038116811461190b57600080fd5b600060208284031215611ac057600080fd5b8135610cd38161231a565b60008060008060008060008060e0898b031215611ae757600080fd5b8835611af28161231a565b97506020890135611b028161231a565b965060408901356001600160401b03811115611b1d57600080fd5b611b298b828c0161191b565b9097509550611b3c905060608a01611a97565b93506080890135611b4c81612332565b925060a0890135611b5c81612332565b915060c0890135611b6c81612332565b809150509295985092959890939650565b60008060008060008060008060006101008a8c031215611b9c57600080fd5b8935611ba78161231a565b985060208a0135611bb78161231a565b975060408a01356001600160401b03811115611bd257600080fd5b611bde8c828d0161191b565b9098509650611bf1905060608b01611a97565b945060808a0135611c0181612332565b935060a08a0135611c1181612332565b925060c08a0135611c2181612332565b915060e08a0135611c3181612332565b809150509295985092959850929598565b600060208284031215611c5457600080fd5b8135610cd381612332565b600060208284031215611c7157600080fd5b8151610cd381612332565b60008060408385031215611c8f57600080fd5b8251611c9a81612332565b60208401519092506001600160401b03811115611cb657600080fd5b8301601f81018513611cc757600080fd5b611cd6858251602084016118cb565b9150509250929050565b60008060008060608587031215611cf657600080fd5b84356001600160401b03811115611d0c57600080fd5b611d188782880161191b565b90989097506020870135966040013595509350505050565b600060208284031215611d4257600080fd5b81516001600160401b03811115611d5857600080fd5b8201601f81018413611d6957600080fd5b611d78848251602084016118cb565b949350505050565b600060208284031215611d9257600080fd5b81356001600160401b03811115611da857600080fd5b611d78848285016119b4565b600060208284031215611dc657600080fd5b610cd382611a97565b600060208284031215611de157600080fd5b5035919050565b600060208284031215611dfa57600080fd5b5051919050565b600080600060608486031215611e1657600080fd5b8335925060208401356001600160401b03811115611e3357600080fd5b84016101408187031215611e4657600080fd5b929592945050506040919091013590565b60008060408385031215611e6a57600080fd5b8235915060208301356001600160401b03811115611e8757600080fd5b611cd6858286016119b4565b60008060408385031215611ea657600080fd5b50508035926020909101359150565b60008151808452611ecd81602086016020860161228d565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b6001600160a01b038a811682528916602082015261012060408201819052600090611f1e8382018b611eb5565b6001600160701b03998a1660608501529790981660808301525093151560a085015291151560c0840152151560e0830152151561010090910152949350505050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b6001600160a01b0383168152604060208201819052600090611d7890830184611eb5565b6020808252825182820181905260009190848201906040850190845b81811015610e0557835183529284019291840191600101611fe0565b602081526000610cd36020830184611eb5565b602081526120296020820183516001600160a01b03169052565b6000602083015161204560408401826001600160a01b03169052565b5060408301516001600160a01b0381166060840152506060830151610140806080850152612077610160850183611eb5565b9150608085015161209360a08601826001600160701b03169052565b5060a08501516001600160701b03811660c08601525060c085015180151560e08601525060e08501516101006120cc8187018315159052565b86015190506101206120e18682018315159052565b90950151151593019290925250919050565b6000808335601e1984360301811261210a57600080fd5b8301803591506001600160401b0382111561212457600080fd5b60200191503681900382131561195c57600080fd5b60405161014081016001600160401b038111828210171561215c5761215c612304565b60405290565b604051601f8201601f191681016001600160401b038111828210171561218a5761218a612304565b604052919050565b60006001600160401b038211156121ab576121ab612304565b50601f01601f191660200190565b600080858511156121c957600080fd5b838611156121d657600080fd5b5050820193919092039150565b600082198211156121f6576121f66122d8565b500190565b60008261221857634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612237576122376122d8565b500290565b60006001600160701b038381169083168181101561225c5761225c6122d8565b039392505050565b600082821015612276576122766122d8565b500390565b600061228736836119b4565b92915050565b60005b838110156122a8578181015183820152602001612290565b838111156122b7576000848401525b50505050565b60006000198214156122d1576122d16122d8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461232f57600080fd5b50565b801515811461232f57600080fdfea264697066735822122049ed036acfc639c4dd4f5f565863701c5f10c03f3d4779722d1b7bc2bd7dbf8464736f6c6343000806003360806040523480156200001157600080fd5b50604051620027f7380380620027f78339810160408190526200003491620007dd565b84848482600290805190602001906200004f92919062000629565b5081516200006590600390602085019062000629565b5080516200007b906004906020840190620006b8565b5060005b8151811015620000eb57600160056000848481518110620000a457620000a462000aba565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000e28162000a86565b9150506200007f565b506040516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce217705460248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b1580156200016657600080fd5b505af11580156200017b573d6000803e3d6000fd5b50506040516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad2492506329965a1d9150606401600060405180830381600087803b158015620001f957600080fd5b505af11580156200020e573d6000803e3d6000fd5b505050505050506200022f620002296200026c60201b60201c565b62000270565b6200026182826040518060200160405280600081525060405180602001604052806000815250620002c260201b60201c565b505050505062000ae6565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002d2848484846001620002d8565b50505050565b6001600160a01b038516620003345760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b600033905084600160008282546200034d9190620009ff565b90915550506001600160a01b038616600090815260208190526040812080548792906200037c908490620009ff565b9091555062000394905081600088888888886200042e565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d878787604051620003dd9392919062000993565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca9060440160206040518083038186803b158015620004ab57600080fd5b505afa158015620004c0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004e69190620007b8565b90506001600160a01b0381161562000568576040516223de2960e01b81526001600160a01b038216906223de29906200052e908b908b908b908b908b908b9060040162000935565b600060405180830381600087803b1580156200054957600080fd5b505af11580156200055e573d6000803e3d6000fd5b5050505062000619565b811562000619576200058e866001600160a01b03166200062360201b62000c2e1760201c565b15620006195760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a4016200032b565b5050505050505050565b3b151590565b828054620006379062000a49565b90600052602060002090601f0160209004810192826200065b5760008555620006a6565b82601f106200067657805160ff1916838001178555620006a6565b82800160010185558215620006a6579182015b82811115620006a657825182559160200191906001019062000689565b50620006b492915062000710565b5090565b828054828255906000526020600020908101928215620006a6579160200282015b82811115620006a657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006d9565b5b80821115620006b4576000815560010162000711565b80516001600160a01b03811681146200073f57600080fd5b919050565b600082601f8301126200075657600080fd5b81516001600160401b0381111562000772576200077262000ad0565b62000787601f8201601f1916602001620009cc565b8181528460208386010111156200079d57600080fd5b620007b082602083016020870162000a1a565b949350505050565b600060208284031215620007cb57600080fd5b620007d68262000727565b9392505050565b600080600080600060a08688031215620007f657600080fd5b85516001600160401b03808211156200080e57600080fd5b6200081c89838a0162000744565b96506020915081880151818111156200083457600080fd5b620008428a828b0162000744565b9650506040880151818111156200085857600080fd5b8801601f81018a136200086a57600080fd5b8051828111156200087f576200087f62000ad0565b8060051b925062000892848401620009cc565b8181528481019083860185850187018e1015620008ae57600080fd5b600095505b83861015620008dc57620008c78162000727565b835260019590950194918601918601620008b3565b50809850505050505050620008f46060870162000727565b9150608086015190509295509295909350565b600081518084526200092181602086016020860162000a1a565b601f01601f19169290920160200192915050565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c060808201819052600090620009729083018562000907565b82810360a084015262000986818562000907565b9998505050505050505050565b838152606060208201526000620009ae606083018562000907565b8281036040840152620009c2818562000907565b9695505050505050565b604051601f8201601f191681016001600160401b0381118282101715620009f757620009f762000ad0565b604052919050565b6000821982111562000a155762000a1562000aa4565b500190565b60005b8381101562000a3757818101518382015260200162000a1d565b83811115620002d25750506000910152565b600181811c9082168062000a5e57607f821691505b6020821081141562000a8057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000a9d5762000a9d62000aa4565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b611d018062000af66000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80639492a2f5116100c3578063dcdc7dd01161007c578063dcdc7dd0146102ab578063dd62ed3e146102be578063f2fde38b146102f7578063fad8b32a1461030a578063fc673c4f1461031d578063fe9d93031461033057600080fd5b80639492a2f514610244578063959b8c3f1461025757806395d89b411461026a5780639bd9bbc614610272578063a9059cbb14610285578063d95b63711461029857600080fd5b8063313ce56711610115578063313ce567146101cd578063556f0dc7146101dc57806362ad1b83146101e357806370a08231146101f8578063715018a6146102215780638da5cb5b1461022957600080fd5b806306e485381461015257806306fdde0314610170578063095ea7b31461018557806318160ddd146101a857806323b872dd146101ba575b600080fd5b61015a610343565b6040516101679190611a64565b60405180910390f35b6101786103a5565b6040516101679190611ab1565b6101986101933660046117b8565b61042e565b6040519015158152602001610167565b6001545b604051908152602001610167565b6101986101c83660046116e4565b610446565b60405160128152602001610167565b60016101ac565b6101f66101f1366004611725565b61060f565b005b6101ac610206366004611671565b6001600160a01b031660009081526020819052604090205490565b6101f661064b565b6009546040516001600160a01b039091168152602001610167565b6101f66102523660046118bd565b610681565b6101f6610265366004611671565b610749565b610178610867565b6101f66102803660046117e4565b610876565b6101986102933660046117b8565b610899565b6101986102a63660046116ab565b61094c565b6101f66102b936600461183d565b6109ee565b6101ac6102cc3660046116ab565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6101f6610305366004611671565b610a2a565b6101f6610318366004611671565b610ac5565b6101f661032b36600461183d565b610be1565b6101f661033e366004611976565b610c13565b6060600480548060200260200160405190810160405280929190818152602001828054801561039b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161037d575b5050505050905090565b6060600280546103b490611c1e565b80601f01602080910402602001604051908101604052809291908181526020018280546103e090611c1e565b801561039b5780601f106104025761010080835404028352916020019161039b565b820191906000526020600020905b81548152906001019060200180831161041057509395945050505050565b60003361043c818585610c34565b5060019392505050565b60006001600160a01b0383166104775760405162461bcd60e51b815260040161046e90611af9565b60405180910390fd5b6001600160a01b0384166104dc5760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b606482015260840161046e565b600033905061050d818686866040518060200160405280600081525060405180602001604052806000815250610d5b565b610539818686866040518060200160405280600081525060405180602001604052806000815250610e92565b6001600160a01b03808616600090815260086020908152604080832093851683529290522054838110156105c15760405162461bcd60e51b815260206004820152602960248201527f4552433737373a207472616e7366657220616d6f756e74206578636565647320604482015268616c6c6f77616e636560b81b606482015260840161046e565b6105d586836105d08785611c07565b610c34565b6106038287878760405180602001604052806000815250604051806020016040528060008152506000610ff8565b50600195945050505050565b610619338661094c565b6106355760405162461bcd60e51b815260040161046e90611b3d565b610644858585858560016111cc565b5050505050565b6009546001600160a01b031633146106755760405162461bcd60e51b815260040161046e90611ac4565b61067f60006112af565b565b60005b8151811015610745576001600560008484815181106106a5576106a5611c8a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555060048282815181106106f8576106f8611c8a565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061073d81611c59565b915050610684565b5050565b336001600160a01b03821614156107ae5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b606482015260840161046e565b6001600160a01b03811660009081526005602052604090205460ff16156107ff573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916905561082e565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b6060600380546103b490611c1e565b610894338484846040518060200160405280600081525060016111cc565b505050565b60006001600160a01b0383166108c15760405162461bcd60e51b815260040161046e90611af9565b60003390506108f2818286866040518060200160405280600081525060405180602001604052806000815250610d5b565b61091e818286866040518060200160405280600081525060405180602001604052806000815250610e92565b61043c8182868660405180602001604052806000815250604051806020016040528060008152506000610ff8565b6000816001600160a01b0316836001600160a01b031614806109b757506001600160a01b03831660009081526005602052604090205460ff1680156109b757506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b806109e757506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6009546001600160a01b03163314610a185760405162461bcd60e51b815260040161046e90611ac4565b610a2484848484611301565b50505050565b6009546001600160a01b03163314610a545760405162461bcd60e51b815260040161046e90611ac4565b6001600160a01b038116610ab95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161046e565b610ac2816112af565b50565b6001600160a01b038116331415610b285760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b606482015260840161046e565b6001600160a01b03811660009081526005602052604090205460ff1615610b7c573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610ba8565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b610beb338561094c565b610c075760405162461bcd60e51b815260040161046e90611b3d565b610a248484848461130f565b6107453383836040518060200160405280600081525061130f565b3b151590565b6001600160a01b038316610c985760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161046e565b6001600160a01b038216610cfa5760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b606482015260840161046e565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca9060440160206040518083038186803b158015610dd757600080fd5b505afa158015610deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0f919061168e565b90506001600160a01b03811615610e8957604051633ad5cbc160e11b81526001600160a01b038216906375ab978290610e56908a908a908a908a908a908a90600401611a0a565b600060405180830381600087803b158015610e7057600080fd5b505af1158015610e84573d6000803e3d6000fd5b505050505b50505050505050565b6001600160a01b03851660009081526020819052604090205483811015610f0b5760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b606482015260840161046e565b6001600160a01b03808716600090815260208190526040808220878503905591871681529081208054869290610f42908490611bef565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987878787604051610f9a93929190611b89565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051610fe791815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca9060440160206040518083038186803b15801561107457600080fd5b505afa158015611088573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ac919061168e565b90506001600160a01b03811615611128576040516223de2960e01b81526001600160a01b038216906223de29906110f1908b908b908b908b908b908b90600401611a0a565b600060405180830381600087803b15801561110b57600080fd5b505af115801561111f573d6000803e3d6000fd5b505050506111c2565b81156111c2576001600160a01b0386163b156111c25760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a40161046e565b5050505050505050565b6001600160a01b03861661122d5760405162461bcd60e51b815260206004820152602260248201527f4552433737373a2073656e642066726f6d20746865207a65726f206164647265604482015261737360f01b606482015260840161046e565b6001600160a01b0385166112835760405162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015260640161046e565b33611292818888888888610d5b565b6112a0818888888888610e92565b610e8981888888888888610ff8565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a248484848460016114c4565b6001600160a01b0384166113705760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b606482015260840161046e565b3361138081866000878787610d5b565b6001600160a01b038516600090815260208190526040902054848110156113f55760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b606482015260840161046e565b6001600160a01b0386166000908152602081905260408120868303905560018054879290611424908490611c07565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a409887878760405161147293929190611b89565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3505050505050565b6001600160a01b03851661151a5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015260640161046e565b600033905084600160008282546115319190611bef565b90915550506001600160a01b0386166000908152602081905260408120805487929061155e908490611bef565b9091555061157490508160008888888888610ff8565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d8787876040516115bb93929190611b89565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016114b4565b600082601f83011261161257600080fd5b813567ffffffffffffffff81111561162c5761162c611ca0565b61163f601f8201601f1916602001611bbe565b81815284602083860101111561165457600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561168357600080fd5b81356109e781611cb6565b6000602082840312156116a057600080fd5b81516109e781611cb6565b600080604083850312156116be57600080fd5b82356116c981611cb6565b915060208301356116d981611cb6565b809150509250929050565b6000806000606084860312156116f957600080fd5b833561170481611cb6565b9250602084013561171481611cb6565b929592945050506040919091013590565b600080600080600060a0868803121561173d57600080fd5b853561174881611cb6565b9450602086013561175881611cb6565b935060408601359250606086013567ffffffffffffffff8082111561177c57600080fd5b61178889838a01611601565b9350608088013591508082111561179e57600080fd5b506117ab88828901611601565b9150509295509295909350565b600080604083850312156117cb57600080fd5b82356117d681611cb6565b946020939093013593505050565b6000806000606084860312156117f957600080fd5b833561180481611cb6565b925060208401359150604084013567ffffffffffffffff81111561182757600080fd5b61183386828701611601565b9150509250925092565b6000806000806080858703121561185357600080fd5b843561185e81611cb6565b935060208501359250604085013567ffffffffffffffff8082111561188257600080fd5b61188e88838901611601565b935060608701359150808211156118a457600080fd5b506118b187828801611601565b91505092959194509250565b600060208083850312156118d057600080fd5b823567ffffffffffffffff808211156118e857600080fd5b818501915085601f8301126118fc57600080fd5b81358181111561190e5761190e611ca0565b8060051b915061191f848301611bbe565b8181528481019084860184860187018a101561193a57600080fd5b600095505b83861015611969578035945061195485611cb6565b8483526001959095019491860191860161193f565b5098975050505050505050565b6000806040838503121561198957600080fd5b82359150602083013567ffffffffffffffff8111156119a757600080fd5b6119b385828601611601565b9150509250929050565b6000815180845260005b818110156119e3576020818501810151868301820152016119c7565b818111156119f5576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c060808201819052600090611a45908301856119bd565b82810360a0840152611a5781856119bd565b9998505050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611aa55783516001600160a01b031683529284019291840191600101611a80565b50909695505050505050565b6020815260006109e760208301846119bd565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b838152606060208201526000611ba260608301856119bd565b8281036040840152611bb481856119bd565b9695505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611be757611be7611ca0565b604052919050565b60008219821115611c0257611c02611c74565b500190565b600082821015611c1957611c19611c74565b500390565b600181811c90821680611c3257607f821691505b60208210811415611c5357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c6d57611c6d611c74565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ac257600080fdfea264697066735822122066a8af861ec3d076eb8c57cab23a258c7eb7664e217b9a7c1823325863f6d6b164736f6c63430008060033000000000000000000000000764a861e984b317745d4e9cea9d4a71dbe0f5512000000000000000000000000388fba3ccaca682118bc80aa20a137dbb7b1c515000000000000000000000000ff02150dbd816526b2c7b0d4e5abf63e16ef640200000000000000000000000091dd204be9bb6a4fdab11a4d4e39a03a89bc14e4000000000000000000000000457b8bb4d6c8cc2e506789f768996ddae60cd4fd000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000033b87309c42d74a4474000000000000000000000000000000000000000000000000000000000000000000104175746f6e6f6d79204e6574776f726b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044155544f00000000000000000000000000000000000000000000000000000000

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

000000000000000000000000764a861e984b317745d4e9cea9d4a71dbe0f5512000000000000000000000000388fba3ccaca682118bc80aa20a137dbb7b1c515000000000000000000000000ff02150dbd816526b2c7b0d4e5abf63e16ef640200000000000000000000000091dd204be9bb6a4fdab11a4d4e39a03a89bc14e4000000000000000000000000457b8bb4d6c8cc2e506789f768996ddae60cd4fd000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000033b87309c42d74a4474000000000000000000000000000000000000000000000000000000000000000000104175746f6e6f6d79204e6574776f726b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044155544f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : stakeMan (address): 0x764a861e984b317745d4e9cea9d4a71dbe0f5512
Arg [1] : oracle (address): 0x388fba3ccaca682118bc80aa20a137dbb7b1c515
Arg [2] : userForwarder (address): 0xff02150dbd816526b2c7b0d4e5abf63e16ef6402
Arg [3] : gasForwarder (address): 0x91dd204be9bb6a4fdab11a4d4e39a03a89bc14e4
Arg [4] : userGasForwarder (address): 0x457b8bb4d6c8cc2e506789f768996ddae60cd4fd
Arg [5] : tokenName (string): Autonomy Network
Arg [6] : tokenSymbol (string): AUTO
Arg [7] : totalAUTOSupply (uint256): 1000420069000000000000000000

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000764a861e984b317745d4e9cea9d4a71dbe0f5512
Arg [1] : 000000000000000000000000388fba3ccaca682118bc80aa20a137dbb7b1c515
Arg [2] : 000000000000000000000000ff02150dbd816526b2c7b0d4e5abf63e16ef6402
Arg [3] : 00000000000000000000000091dd204be9bb6a4fdab11a4d4e39a03a89bc14e4
Arg [4] : 000000000000000000000000457b8bb4d6c8cc2e506789f768996ddae60cd4fd
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