Перейти к содержимому
Проверенный контрактТочноеMIT

SuperseedPortalRetirement

Адрес0x72565db9e511d7e2800c0fee14c7e2135bcdbea6
Баланс

0 ETH

 

Транзакций

0

 

Компилятор

solc 0.8.28

 

Тот же код

Только этот контракт

 

Подробности

Компилятор
solc 0.8.28+commit.7893614a
Язык
solidity
Оптимизация
Да, 200 прогонов
Версия EVM
paris
Лицензия
MIT
Совпадение
Точноекод создания: да, код в сети: да
Проверен на Sourcify
Создан в блоке
26 449 171
Транзакция создания
0xfb29f1abe6…1537ef6f40

2 файла

src/SuperseedPortalRetirement.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

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

interface IClaimVault {
    function merkleRoot() external view returns (bytes32);
    function totalAllocation() external view returns (uint256);
    function treasury() external view returns (address);
    function activatedAt() external view returns (uint256);
}

/// @title  SuperseedPortalRetirement
/// @notice Final code of the Superseed bridge (OptimismPortal proxy) on Ethereum.
///
///         The Superseed L2 has shut down. This contract is installed as the bridge's
///         implementation by the bridge-admin Safe in one call:
///
///             ProxyAdmin.upgradeAndCall(PORTAL, <this contract>, abi.encodeCall(retire, ()))
///
///         `retire()` empties the bridge: the amount owed to users goes to the claim vault,
///         where each wallet collects its own share, and the remainder goes to the recovery
///         treasury. From then on the bridge rejects every call.
///
/// @dev    Runs only by delegatecall from the bridge proxy. It has no storage variables and
///         never writes storage, never delegatecalls and cannot self-destruct. Every address
///         and amount is a constant, so the call carries no arguments.
contract SuperseedPortalRetirement {
    /// @notice The Superseed OptimismPortal proxy: the bridge whose ETH is distributed.
    address public constant PORTAL = 0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07;

    /// @notice Admin of the bridge proxy. Its owner is the bridge-admin Safe.
    address public constant PROXY_ADMIN = 0xF3b7697c9C0CbdE923f34991F2D19cC1c66612bD;

    /// @notice Claim vault that pays each listed wallet its share.
    address payable public constant CLAIM_VAULT = payable(0x562058B1D8f25bEDeDc19D42A0C43232881d1657);

    /// @notice Recovery treasury Safe. Receives everything the claim vault does not.
    address payable public constant TREASURY = payable(0x005202AB9C7d003A160f64043A25ac5D97E30c87);

    /// @notice ETH owed to the wallets in the claim vault's list. Equals the vault's allocation.
    uint256 public constant CLAIM_AMOUNT = 54_765_197_516_603_011_036;

    /// @notice ETH that is not attributable to a wallet and is held by the treasury for manual claims.
    uint256 public constant RESERVE_AMOUNT = 2_104_441_692_733_887_457;

    /// @notice Merkle root of the claim list the vault must hold.
    bytes32 public constant CLAIM_ROOT = 0xb1576b82f695bf80fa989c26cc444bcb9fc330cc9e819ae8900c9a797b0cf49b;

    /// @notice Code hash of the reviewed claim vault.
    bytes32 public constant CLAIM_VAULT_CODEHASH = 0x226778d1c8d0d70d12f41535d20558daea1a81e7a7fc2b4422236ce1f9d8cb71;

    /// @notice Number of unpaid bridge withdrawals whose amounts are included in the claim list.
    uint256 public constant WITHDRAWAL_COUNT = WithdrawalList.COUNT;

    /// @notice keccak256 of those withdrawal hashes, packed in ascending order.
    bytes32 public constant WITHDRAWALS_KECCAK = WithdrawalList.KECCAK;

    /// @dev Storage slot of `mapping(bytes32 => bool) finalizedWithdrawals` in OptimismPortal2.
    uint256 private constant FINALIZED_WITHDRAWALS_SLOT = 51;

    /// @notice The bridge was emptied: `claimAmount` to the claim vault, `treasuryAmount` to the treasury.
    event BridgeRetired(address indexed claimVault, uint256 claimAmount, address indexed treasury, uint256 treasuryAmount);

    /// @notice The bridge was switched off without moving ETH, because its state no longer matched
    ///         the claim list: `withdrawalsPaid` listed withdrawals had already been paid by the
    ///         bridge, or `balance` was below the amount required.
    event BridgeFrozen(uint256 withdrawalsPaid, uint256 balance, uint256 balanceRequired);

    error BridgeIsRetired();
    error NotBridge();
    error NotProxyAdmin();
    error UnexpectedClaimVault();
    error ClaimVaultAlreadyFunded();
    error ClaimVaultAlreadyActivated();
    error TransferFailed(address to);
    error BridgeNotEmptied();
    error WithdrawalListCorrupted();

    constructor() {
        bytes memory list = WithdrawalList.HASHES;
        if (list.length != WITHDRAWAL_COUNT * 32 || keccak256(list) != WITHDRAWALS_KECCAK) {
            revert WithdrawalListCorrupted();
        }
    }

    /// @notice Empty the bridge into the claim vault and the treasury, once.
    /// @dev    Reverts, changing nothing, unless it is the bridge itself executing this code on the
    ///         ProxyAdmin's instruction and the claim vault is the reviewed one, unfunded and unstarted.
    ///         Past those checks it ends in exactly one of two ways:
    ///           - paid:   every listed withdrawal is still unpaid and the balance covers both amounts.
    ///                     The claim vault receives CLAIM_AMOUNT, the treasury receives the rest, and
    ///                     the bridge holds zero.
    ///           - frozen: a listed withdrawal was already paid by the bridge, or the balance is short.
    ///                     No ETH moves. The bridge still ends up on this code, so nothing further can
    ///                     be paid or deposited while the claim list is corrected.
    /// @return paid True if the bridge was emptied, false if it was frozen without payment.
    function retire() external returns (bool paid) {
        if (address(this) != PORTAL) revert NotBridge();
        if (msg.sender != PROXY_ADMIN) revert NotProxyAdmin();

        IClaimVault vault = IClaimVault(CLAIM_VAULT);
        if (
            CLAIM_VAULT.codehash != CLAIM_VAULT_CODEHASH || vault.merkleRoot() != CLAIM_ROOT
                || vault.totalAllocation() != CLAIM_AMOUNT || vault.treasury() != TREASURY
        ) revert UnexpectedClaimVault();
        if (vault.activatedAt() != 0) revert ClaimVaultAlreadyActivated();
        if (CLAIM_VAULT.balance >= CLAIM_AMOUNT) revert ClaimVaultAlreadyFunded();

        uint256 withdrawalsPaid = _countFinalized();
        uint256 balance = address(this).balance;
        uint256 balanceRequired = CLAIM_AMOUNT + RESERVE_AMOUNT;
        if (withdrawalsPaid != 0 || balance < balanceRequired) {
            emit BridgeFrozen(withdrawalsPaid, balance, balanceRequired);
            return false;
        }

        uint256 treasuryAmount = balance - CLAIM_AMOUNT;
        _send(CLAIM_VAULT, CLAIM_AMOUNT);
        _send(TREASURY, treasuryAmount);
        if (address(this).balance != 0) revert BridgeNotEmptied();

        emit BridgeRetired(CLAIM_VAULT, CLAIM_AMOUNT, TREASURY, treasuryAmount);
        return true;
    }

    /// @notice One of the listed withdrawal hashes, by position (0 to WITHDRAWAL_COUNT - 1).
    function withdrawalAt(uint256 index) public pure returns (bytes32 withdrawalHash) {
        require(index < WITHDRAWAL_COUNT, "index out of range");
        bytes memory list = WithdrawalList.HASHES;
        assembly ("memory-safe") {
            withdrawalHash := mload(add(add(list, 0x20), mul(index, 0x20)))
        }
    }

    /// @notice Bridge interfaces read this; the retired bridge reports itself as paused.
    function paused() external pure returns (bool) {
        return true;
    }

    /// @notice Human-readable marker for explorers and bridge interfaces.
    function version() external pure returns (string memory) {
        return "retired";
    }

    /// @dev Deposits, proofs, withdrawals and every other former bridge function end here.
    fallback() external payable {
        revert BridgeIsRetired();
    }

    receive() external payable {
        revert BridgeIsRetired();
    }

    /// @dev Number of listed withdrawals the bridge has already paid, read from the bridge's own
    ///      `finalizedWithdrawals` mapping. Meaningful only when executing as the bridge.
    function _countFinalized() private view returns (uint256 count) {
        bytes memory list = WithdrawalList.HASHES;
        for (uint256 i; i < WITHDRAWAL_COUNT; ++i) {
            bytes32 withdrawalHash;
            assembly ("memory-safe") {
                withdrawalHash := mload(add(add(list, 0x20), mul(i, 0x20)))
            }
            bytes32 slot = keccak256(abi.encode(withdrawalHash, FINALIZED_WITHDRAWALS_SLOT));
            uint256 finalized;
            assembly ("memory-safe") {
                finalized := sload(slot)
            }
            if (finalized != 0) ++count;
        }
    }

    function _send(address payable to, uint256 amount) private {
        (bool ok,) = to.call{value: amount}("");
        if (!ok) revert TransferFailed(to);
    }
}

src/WithdrawalList.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

// GENERATED by script/gen_withdrawal_list.py from test/fixtures/original-eth-withdrawals.json.
// Do not edit by hand. Regenerate and re-run the tests instead.

/// @notice The 164 Superseed withdrawals that were started on the L2 before shutdown and were
///         still unpaid on Ethereum when the claim list was fixed. Their amounts
///         (1390441902725843760 wei in total) are credited to the same recipients in the claim vault,
///         so the bridge must never pay any of them.
library WithdrawalList {
    uint256 internal constant COUNT = 164;

    /// @dev keccak256 of the 164 withdrawal hashes packed in ascending order.
    bytes32 internal constant KECCAK = 0x8b5cde50f5c1171e64433a8a0654efab07118883f8a5670e5ce484628bb610be;

    /// @dev 164 withdrawal hashes, 32 bytes each, ascending.
    bytes internal constant HASHES =
        hex"031adb7cdf2555434df1748c42341627e05f53a55eec7276239a6909572bc8af"
        hex"055b01ae315edb4967a72a529e532bb0269302b3bcd07070ebd9c9821750d89e"
        hex"06be2c04d324daa39d70e77299a4de4319f20aeb9ce3bbd2a98feb016c5137ff"
        hex"06f1a58114dcbaa69a08376475f5fa8f20652888aee80c01d1c55e8e9b4457c0"
        hex"0b59811610eb2abc6065bfd0dc719f18e3c6d903cfcf194fd46ed41e56373d8f"
        hex"0f82a519c68c0abca625c4eea8c7b728328a70f698c76cbeb73c483f33fc3978"
        hex"106070f4b7ed51a08ad311ad4f12df63c251a0fe341da32c5c20cb9bf6d373a0"
        hex"12a99910201c2d38911e4ff9172f97829c933e3bf73c024aa71471a996d9ba70"
        hex"1365812049f42c513c0b828997d7eaf8fc445388bce6c13e72d0c09c483f710d"
        hex"13eb672f27e523d151c0f185fa39132b69d45885b80e8a75635bc1791c413428"
        hex"1755851bebbc1b73496e75b16c1c5e143e9991d3c688e782631b0d9f072e065e"
        hex"19aaad8fc9a921ce6770920bc5b3fdfd111445df9e9adf7a5240740b0c4a635e"
        hex"19cf110871919da9d6151f8428ac51002acafbc020747cdcc530e92f64ddca06"
        hex"1be36a17b82ffddb6f5d190a11c4a706b1a0ed337ebc0d989d29a634c58fd545"
        hex"1f9395abb77824e000f449adce58a9cbea330d136f0d6ed3fcf730271069bb70"
        hex"21f4208e6a682565dfdcf7f85193ca99c59107540f3ae7cb784fdf830bc32c92"
        hex"227c3012167d99bc49b11e507cb41546267b036047342559a274c02cdd3a10dc"
        hex"22c1781cf51a22fba35798c4d63a518e8aa73c20c088631d12bf4ec02ec85b9e"
        hex"240cfd829224ced1ac6cf339ef00867b0856b966722b90768fcaa56d3a32abc9"
        hex"24a65e2dabaa43d3fb753cb3ee5a5988bfdd1984ff8164382ea0d047334a6187"
        hex"25de82ee19a7534cecb6dad22c958e6fb8cb4ebaccfb54d905e2e33e5148390e"
        hex"26c6765f98b59e0f02e035a8f66ae4044515011d3d4ff3f3628ad9caaccfb216"
        hex"27fcb53808cb77eb601853cf43fb871313633bcc7d1dd9951f0a468989d96de6"
        hex"298e1cd83956360c0ae9bd541b0719dd501b3c710ab6b07584febd96b2c98327"
        hex"29965df7b2d0cbb69a9617d290193fd51faf6b7ffb1345e124df605837d375b9"
        hex"2a78ce833787ba47c2ece507d158211804d8cf97eb639128bf833a571f282fe8"
        hex"2add149aeb376fbec3fd0a100e6abd060acb271c3a921087dda5436e1243a66c"
        hex"2c6e9a34a02bfa7dc655c3cf9779b89e392714f25f22f6e948c0a45c3c189c5e"
        hex"2c84dce3e94f3ec25a7c1d3e9fb1f97b88643b8ab958f2b336446ec12725e2d4"
        hex"2d431bf27c0b4d78f7422c73655596959ba9ea6fbd0f357d6ff2789fd08ecdca"
        hex"2fd796005adc7df551c0fd4227c70875a651b9a5e420acfcbbfca10265c9f923"
        hex"312eb6c98c98a50cc32b43a6c422e7406785195452af691ecfee6247fc490f89"
        hex"32575907a441c2af2d0d471cb3033cb508fbf4697619ffca177679ba1deb17b2"
        hex"3a6a5e58d28005da8efc6617274c4d7d684130dc7a62e684c7d8d8162570e273"
        hex"3c8377a41c47283def3d6a15c9b2fbd052cb66321ac0c15113ac43111f57328d"
        hex"3c9b3ef12eb5a8170f9e2ef04ea6034fa6e0b78fd5d437c849d55f26d626ec97"
        hex"3d651cc52d3cb4cea0a533354b47c2583d2c03b6ca2d9577f9ccb6d64b4c8ed7"
        hex"3eeb059697f046760e93b24ca1bf2aa66707fb1d9220aa6e7da8c935d844e089"
        hex"3fe8f21d8871de501e5f7ebcdc660c83bf43420ecc4c0c967a35faed3b804d04"
        hex"40e480842b506a67cb08414467c378cc9acfaa89d07675fd5837d67810a51f98"
        hex"4315a2c7fbf7913082f16ec9dc39f40fd1b0e89a522b70c7a5eb0864da68af8d"
        hex"45f1cbc2cf78364ce87834623862b213972e012a6ec226a6b7d08c8e7e5b906d"
        hex"46466d11be1eee23afc6027ee5b3dad0b4fd6ad2eb00035e89ab9b1c151671ed"
        hex"4646a5ca575d8ca8663469d1e78e56b404b708f1369de41c38d046f83ed745de"
        hex"479c7dd26c1e4396f507dd978921538b3a7d80b36198fce57551979d55e69b6e"
        hex"47ecc99872fb431ed5c1d4844410d4e6510e484c410262380dcb487aa97c73c5"
        hex"4a8f5ea0e0f1c2b4d8dc4cab26538ed7819b8e36a01be55691cd05d95068adab"
        hex"4b0cb55dc6279abd778633def06b0d7dbb750663009cc95d7229b60a75f3709d"
        hex"4c2be1cbcaea6161ba7528d14ea38e6a9fce54ec669c8257e638ae56129f9233"
        hex"4d0fe4bcc06e1f0b28901b00f88904d6bb21fc1a13d02d21d590dc3442364106"
        hex"4dd526f252e2010c646110de85d331f2dd4972dbe5093ccac893d0be1b12d7b6"
        hex"4e03d67e06f43bfc4ddb24c75192cd74af823569b67e15d7ab7a62bcfd0f574b"
        hex"506c77a517684aef18395c0ac505bcc2191d8952960551bd33c62bfae0b5dbe0"
        hex"514e681ab773981df93aa2029982bfd3a80141c2a590937b5b274ce659963d60"
        hex"53744605ec1213c7a41934b6ef31efb9650077e53a7e9052dbdeb53e70b5ff71"
        hex"5493cf5b7721697e199ba282c9db556ebc9354bcab6df5cc8dda007ee853595e"
        hex"5509e1df45cdff84f930eb3814e4b3b076cbc498d3e587d6605df8afb9feab76"
        hex"5a030c2dc14eb0ae08280ca031bd2e3c197d2ca5bfcff20d340ec8d3ef326e0f"
        hex"5a0ca51a837e36acfe139fed4b66901d97f7d7b31d88c72e6bdc8625a52b5ae5"
        hex"5d91e90acb7525a3a944b738a273f23e493ee19c9cf42719d4aba1bf2f68f801"
        hex"5da7acf6dd705ed5090e44bb8c884dc6d4c50dd6f8c9b101b8b9501cafb8fc60"
        hex"5e234b6b7a63d0cdbee3245d5768ad3568b9e8d18408113d52154537191b363b"
        hex"5ec6684d933b326122ae8d09931387190c36fada5998ca0d4d4b104c119ade88"
        hex"5f45290f8f86174fa5d6b2abc7a1aa87e6001ff0b538570cf43f0cdd9477bf22"
        hex"62f5daada95c0fead59701961507a1eee8d14ab41c3150d1e85d727f80b46d6a"
        hex"69d0b7536e63403c620c2649181b81f05d6a9c7135f89dba377bb471553acc34"
        hex"6bbe4970c1f4d204100e2c0024bb39934dd3e6003f4bd44944843ab4406e37a0"
        hex"6c7f6ffadbe3a71d37731e4df12a4b6cec7cb4fa7480e49ef37b8f76762a7641"
        hex"71da0c8e146411e2c7f8a8b64554ec4d4fa34d5e3491e9358170c3e780fec609"
        hex"71f8b7e6ce2cb317b2a0ad24032f25e17a5599578a07bd78eed814e509e2d50e"
        hex"731ced58cc982e20b1115cddcb10c9f0c8216650e6c8b81eb69edbcc10c31787"
        hex"7396f9d3e4502ee276876df9a736dd01d3bf84eafbf239b1ac43d7c47eeec11f"
        hex"77d9d2f5e6ef60714216fae619bda1c3ca9db5f42d741cfb33d8414f184554c3"
        hex"7d659189466444428b9479c3372117fedbb068679683102a76c91224f1ff1111"
        hex"7ec5d3487695df46236705954f215ae6ddca80d32b938485ca14e6e7fd8d2643"
        hex"7ed061a3f12b8c1d93fd5536230590f2c791a40460889c425e3920c64a72c1e4"
        hex"80a23668bdf13df71f6be784a43b014f4ec4b9d4f3a9b7a928536b908f694c70"
        hex"80f5b1534a6437c4c050138724a70de41adf7887f146c8895030c95430e61681"
        hex"83a1e65a71d0e35f2c59babc6561344b41ddf3185d40bc072591c855c6dfe472"
        hex"85ae7338771efc22e6ad51101590f077e58588a4e4ae251a579db4f5035a4855"
        hex"868c3ab8e58060bb91f0ebb23fbeac6d5fc1745efdfb2a68c79dd38893d28afa"
        hex"86cffdc287073adac45b0ec2afb804749916b484cf7bff629e17ec2450b95c8e"
        hex"886c0db545fbcb1ba6a32e9f7dd565ef2afc3a22a7a6be56e4880a59337781b1"
        hex"88a8264ff57e0b95c46ae48857ac253690a4a684c9229a7e9b698d4b152c5cc0"
        hex"8a3d61ea5ea1ebfb27ceb5085d06f69977b4d1dd9f7ef23cb2cecdd4c52e4cf3"
        hex"8e2bd51cb1330d9ffc279900515dfad8e45bc0df5ca6ffa639195a72359fb7b7"
        hex"8f3efd093c9f15b4ee8a40f45accac2277ba699311da9bef42ec374c5713f20d"
        hex"8ff7a0bbcb9cc0af32ce29492fe2a65a7adb077eede71091b2695d71678e437a"
        hex"91e77e2020a23d4894c391fe1495e9fb88c3fa1699007b7bcab4c47b97083b11"
        hex"96ed1a5fcf17b3b749de98eadefd2b09a0f4a981046089bc40205560701a7753"
        hex"9a8700d3c04b5c8d483c906af6082032c94a89f8a81ebdd4f280d53ee82dd34c"
        hex"9afe981c0fe470aae3566526da6cfc72c0a7f49237a3d3c0db66ff72cd15dd2e"
        hex"9f67004b5b64f704acdd2e10ba2e6039455ce042e4cb97984695d890135f05a3"
        hex"a1354de97836f841bcd35f511f5840c0789d94e2cd6fe25358a4dae159d53945"
        hex"a17d7bc95a9864632bc9f035714cd086bfa5a61388bdfe0516f6ebcee1df6c8b"
        hex"a1b61a64322086573ef9ce6e2707962b04dc3fbf3a40fc6a3f56b4c428f055b5"
        hex"a3b90093414be8b872f3e621b4ea500c371a4865fcfa9b1a9d6d3748c9aecdaf"
        hex"a4690c9deb23363a8749964d9992bfd46a81ed664767ef506a2c113019827e8f"
        hex"a6b3d8001847e02f94f58f1d7093b49d14eda569643e6e688bb6fc5d909984ae"
        hex"a6f7ef293d99fef5895e65333a49f697d8ed67e326c37cf0025d982aabdd64c5"
        hex"a706bd9d4578bee4ce8ab0332ac526a82b78aebd9cba9b3208e4c7cfc025002f"
        hex"a8e725791198400bd2a8d29d7fdef95514c9c76553532d1373b092800e4f7aff"
        hex"a90a4919ea36c135b45be8c33f0c865766e27f5c89263e78f095453dc60b8049"
        hex"aa1550608fed36e2083cba8759d4b18f18677c1a0b8bb081b59679d41c3e91dc"
        hex"b02f7207ae556e30828e668834ca0f30ac561c9acf87c713cb257c3921b633d9"
        hex"b2eb39d2b6b0b0a06b30b9f6949dc81b562b35bbd43f45ce1e8b992b087383d9"
        hex"b87430318a79eaf9a02c6981cb1fa0b415e074079b0b2fb064b0a61920df7d1e"
        hex"b92f85c0e36e6a129426c1058132550cbc8298c35656c69adf30c58601b9abe0"
        hex"ba5f1e58588e215e99b57add1e818c6a6924911e2684cf011563e9ca39bf2e91"
        hex"bb4ddf4d11cbd6860f173627219e388e77e7be02e7f829277d016041aa3dccff"
        hex"bb74492f447a9d00a34bf2f7a92b5dc973fbc358894933f2bbd4d7e4bbbde4b7"
        hex"bcb8e613de7f78fd29284b52dd317948f0ef2495a914adc63183345657f6bd6a"
        hex"be2b55540a52400c7a452852a83642ac5d695d7654ce595294506c875848db10"
        hex"be7613cc8155e11f46693fa6f7c5d174217c043d88cc20f161005c29f5862d7f"
        hex"c1e44132f9364e504e9b6f40dd65416702163bf1474719ab5c911b4d8d9f84be"
        hex"c33051512e58aca822394ae3419bfa7fc3a583290cf20098dbe8b183ff37f7f9"
        hex"c695f77babb3380a935dd009ade5a386bd0085f43594bf1680ba44c54b840670"
        hex"c6b944057f3baad16364ec874822a7255e0efee9df11008514f1737607596edc"
        hex"c8b8e0f0d858177f114b82db3138e2923fc42e1431745693beda4dde01a0f698"
        hex"c911c36f88635f5b46fe3df632f6cf7288f5ad3d6b0f051e302b23cfd12b4614"
        hex"cb9788cf3747f6be076aa41756e215c5915bc87c894dd0899ef8f9707c2543be"
        hex"cef97f01d14ab6de0d6b00a72aa05eb288645bc3e26994b034bd965f12f8f60f"
        hex"cfb970226bcc3cb41f74b1b097d338963c93e563e9492d29a942f562f968e92e"
        hex"d0adafc7df515ed6bf9aca0979ec3ffa7c328d28a8f10c6d1a3e7917b2a88780"
        hex"d0b412e4276bff87783534c708871b96d991cecdb0865dca3cbef9c4c28abc84"
        hex"d36289878b1940c9de48fa12c9fd3f362c7e5d0f0f5aaa1b858612b3d0944644"
        hex"d5bc3e3630394dfaa7de2cc6cbfd4ddfd8168e54eeab171d35b7e587bb368e16"
        hex"d773cc8e42466b2ea2a1e46366c2958888c5408ab4b94b1592d31f9d370d3ca3"
        hex"da98d54ea84ef52ed60d90e634a6d3bbde7dd90eb261e0a0da47b242e6bf96a4"
        hex"db12c1947ec4038e61133cc95e82b6de0fe56bf046a7fdd84edfbe977fde5078"
        hex"db4febac75b3e1635d6e48ab47b584f2eb667b8044af713b172f2cb24be98da2"
        hex"dd5ba22477c5c134fa77b76a04c492077f882936f6c1a7dedeeeb03feddd6e6f"
        hex"e030365b0d7196456546a13df60c4413e683640aff797ca48e6164bbc794afe3"
        hex"e0407558a6cff3e7c1572a4382c62fc9f684f178b765fd77ad0c19654f0ff29f"
        hex"e0a8c22dcc172bb679d7e84758a2de33888cc547a9a97800c5fb108351008af8"
        hex"e1017c0c6e0ef555ef580c0b3918d014fa2da5167220e013dc132dd5cd9bafde"
        hex"e1565075b165091f8a7f4ab2f746c3b2334b81d6a7d552db186c335dbba77379"
        hex"e2a318209e5094fc7fa48769b73feeba4dc95ed8bbc042bcf916d46ce2ac1bb5"
        hex"e2a8aa50dbd6035233f102ea5e9789942aeef7eb3b4e0a9074506cef09e23623"
        hex"e45cbaeb5799d20eb7ee93469a86e278c605938475d6e380384040e28f53d81b"
        hex"e56ead9dc85fc10114216fcaad5605ad435a2ef5639f20b25443fe8f369b1787"
        hex"e5f460c80de227f5319a687f9ae40828f76f27f3032c5ea9c64700a629c17083"
        hex"e67de8f668fbe6558ab74c968bbda0288809f737bf911388f0bcdf054689bb77"
        hex"e920513653309975075c2edcc16ab582687ebc84f55765c166aca9696026f774"
        hex"e9b25d8742f9285f5da1926bf6cea0b850adfcc38e84cc6d06e275b7a1d20e2a"
        hex"e9ee399c71abff96e11278dd591d79f73503a4ad9de047ce330c94a1106f1fd7"
        hex"ea31a06036f5bf757b18a3d8f6dca86d3ad3244d77f0e3e981d1d44c74b3820b"
        hex"ea366332151241f6f1c8fb5b35f4d521301dfcaf3388b651e59abc483c838910"
        hex"ec29fdbcb6bbfd2585a68817314caca349a23bffb0adf30beac18493a4945777"
        hex"ef2b58440bbbc7cc56707918a663dfd56976ece40f06e771b1ca67cae3ab28b4"
        hex"f0ba853b006d3d053d0db742751eceee571feecb095882bfd2cc5948dc99c87a"
        hex"f2a865bcce8f5d13fb7d9af72743c9b9049816584b115abfa1fa721a1181eecc"
        hex"f477bb1e0f85eae440ec662427767f1b10de6bd0e9351e8a1bfb7e66c9be2895"
        hex"f48a3bfb4c46f4e3127b7f91e33bd8ccd910a6a419d34a10273644fd6289b65b"
        hex"f4bd730c80ab2301f2c7f028f211bc26ec18d49d6109210aa3b8f215886bd221"
        hex"f4e36f7430c4dceced6dabf32129d5602d0396744168e3c7d8ba2a7c6f853751"
        hex"f650b1cb114965cc703604fad66a083a356b5efa5798220590f0fee3e02d4f92"
        hex"f71ba8c3ccec2304996d0501216564d48d671aafeb1fd3135f01d42d32d8289d"
        hex"f765cf0bd84dd0ff8f92ec06d2e1990e0198f51eb004108fb32a5203da084162"
        hex"f8bf8f41ee587b25c6dee34dfe0cce120a3780fd3d9506c08a78cf492d182b41"
        hex"f92e3ccfa2acbdb01d23e2f4a9c7cd8ffe2d3cef238c991ce6fe306ddfac2e5c"
        hex"fa2f55509ef1db43b25fb489d55626fe64939d02f9ba82c29580a7b92b0c13b5"
        hex"fa4cc124de80e522ebae523f8cf5e246519ec50173da26486da6b61d99ab6471"
        hex"ff754bb72cc20248a0962b32bcb404bfd7aa82da4b5a637ac597b1e0cde8a9c0";
}
Настройки компилятораПоказать
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "paris",
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-4.9.6/contracts/",
    "openzeppelin-4.9.6/=lib/openzeppelin-4.9.6/contracts/"
  ]
}

Исходный код и метаданные: Sourcify.

Исходный код принадлежит авторам контракта.