From 328491010eb33086f45f5cb7d166c284794862ee Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 15 Oct 2024 03:08:40 -0300 Subject: [PATCH 1/9] add-txMaxFee-to-tbtcAmount The Threshold DAO has decided to set the deposit transaction maximum fee to zero. Instead of modifying the deposit parameters, we adjust the amount of TBTC transferred to the L2 deposit owner by adding back the fee amount. This change is implemented in the contracts that inherit from AbstractTBTCDepositor, not in the abstract contract itself. Specifically, the implementation adds depositTxMaxFee to the tbtcAmount value returned by _finalizeDeposit. --- solidity/contracts/l2/L1BitcoinDepositor.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/solidity/contracts/l2/L1BitcoinDepositor.sol b/solidity/contracts/l2/L1BitcoinDepositor.sol index e4dc37cb0..5247eaef2 100644 --- a/solidity/contracts/l2/L1BitcoinDepositor.sol +++ b/solidity/contracts/l2/L1BitcoinDepositor.sol @@ -461,6 +461,16 @@ contract L1BitcoinDepositor is bytes32 l2DepositOwner ) = _finalizeDeposit(depositKey); + // The deposit transaction max fee is in the 1e8 satoshi precision. + // We need to convert them to the 1e18 TBTC precision. + (, , uint64 depositTxMaxFee, ) = bridge.depositParameters(); + uint256 txMaxFee = depositTxMaxFee * SATOSHI_MULTIPLIER; + + // The Threshold DAO decided the deposit transaction max fee to be 0. + // Instead of changing the deposit parameters, we add the fee to the + // amount of TBTC that is transferred to the L2 deposit owner. + tbtcAmount += txMaxFee; + // slither-disable-next-line reentrancy-events emit DepositFinalized( depositKey, From 23d9db1a98ec60c515ba379a5da4e37daf852b2d Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 15 Oct 2024 03:10:43 -0300 Subject: [PATCH 2/9] update-deployment-of-BaseL1BitcoinDepositor-on-sepolia Deployed the updated BaseL1BitcoinDepositor contract to the Sepolia testnet. This deployment includes recent changes where the TBTC transfer amount to the L2 deposit owner now accounts for the fee. Ensured compatibility with contracts implementing AbstractTBTCDepositor without modifying the abstract contract itself. --- .../sepolia/BaseL1BitcoinDepositor.json | 136 ++++++++++++------ 1 file changed, 96 insertions(+), 40 deletions(-) diff --git a/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json b/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json index fbd7dddff..c7a0d3102 100644 --- a/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json +++ b/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "address": "0x37169570D846Cc05D5848AAA30194d308b355638", "abi": [ { "inputs": [], @@ -132,6 +132,25 @@ "name": "OwnershipTransferred", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_address", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "authorization", + "type": "bool" + } + ], + "name": "ReimbursementAuthorizationUpdated", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -464,6 +483,25 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "reimbursementAuthorizations", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "reimbursementPool", @@ -554,6 +592,24 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "address", + "name": "_address", + "type": "address" + }, + { + "internalType": "bool", + "name": "authorization", + "type": "bool" + } + ], + "name": "updateReimbursementAuthorization", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -607,75 +663,75 @@ "type": "function" } ], - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", + "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", "receipt": { "to": null, - "from": "0x68ad60CC5e8f3B7cC53beaB321cf0e6036962dBc", - "contractAddress": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", - "transactionIndex": 94, - "gasUsed": "887851", - "logsBloom": "0x00000000000000000000000000000000400000000000000400800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000001000000000000000000000000000000000000020000000000000000000800000000800000000000000008000000400000000200000000000000000000000000000040000080000000000000800000000000000000000000000000000400000000000000000000000000000010000000000020000000000000200020040000000000000400000000000000000020000000000000000000000000000000100000000000000000000000000000000000", - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c", - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", + "from": "0x949f0ADFDA95351829E49aEec0f99371A227572d", + "contractAddress": "0x37169570D846Cc05D5848AAA30194d308b355638", + "transactionIndex": 14, + "gasUsed": "888024", + "logsBloom": "0x00000000000000000000000080001000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000002000001400000000000000000000000000000004000020000000000000000000800000000800000000000000000004000400000100000000000000000000000000000000200000080000000000000800000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000400100000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b", + "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", "logs": [ { - "transactionIndex": 94, - "blockNumber": 5441536, - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "transactionIndex": 14, + "blockNumber": 6877156, + "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", + "address": "0x37169570D846Cc05D5848AAA30194d308b355638", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000720cb49a8b3c03e199075544f7f1f4d772dd6d06" + "0x000000000000000000000000ff79fca71751a5a0c4487a1ace268d6cd2a64db1" ], "data": "0x", - "logIndex": 75, - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c" + "logIndex": 0, + "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b" }, { - "transactionIndex": 94, - "blockNumber": 5441536, - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "transactionIndex": 14, + "blockNumber": 6877156, + "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", + "address": "0x37169570D846Cc05D5848AAA30194d308b355638", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000068ad60cc5e8f3b7cc53beab321cf0e6036962dbc" + "0x000000000000000000000000949f0adfda95351829e49aeec0f99371a227572d" ], "data": "0x", - "logIndex": 76, - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c" + "logIndex": 1, + "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b" }, { - "transactionIndex": 94, - "blockNumber": 5441536, - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "transactionIndex": 14, + "blockNumber": 6877156, + "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", + "address": "0x37169570D846Cc05D5848AAA30194d308b355638", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 77, - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c" + "logIndex": 2, + "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b" }, { - "transactionIndex": 94, - "blockNumber": 5441536, - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "transactionIndex": 14, + "blockNumber": 6877156, + "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", + "address": "0x37169570D846Cc05D5848AAA30194d308b355638", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd0007713cb99564b7835fd628a1718e8f9f9785", - "logIndex": 78, - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c" + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000008d58747ef805317270ff7f8e51a8018d3488b17b", + "logIndex": 3, + "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b" } ], - "blockNumber": 5441536, - "cumulativeGasUsed": "8903785", + "blockNumber": 6877156, + "cumulativeGasUsed": "16670912", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0x720Cb49A8b3c03E199075544F7f1F4d772Dd6d06", + "implementation": "0xFf79fca71751A5A0C4487a1aCE268d6cd2A64Db1", "devdoc": "Contract deployed as upgradable proxy" -} +} \ No newline at end of file From 55f39244f7fea9b5432c6238f1ffb90ac3100ba5 Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 7 Jan 2025 11:12:35 -0300 Subject: [PATCH 3/9] Adjust `expectedTbtcAmount` for user fee retrieval Adjust `expectedTbtcAmount` to reflect user fee retrieval instead of deducting from user. --- solidity/test/l2/L1BitcoinDepositor.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solidity/test/l2/L1BitcoinDepositor.test.ts b/solidity/test/l2/L1BitcoinDepositor.test.ts index 4dad5ac3c..619f082b1 100644 --- a/solidity/test/l2/L1BitcoinDepositor.test.ts +++ b/solidity/test/l2/L1BitcoinDepositor.test.ts @@ -1123,7 +1123,7 @@ describe("L1BitcoinDepositor", () => { // omFee = amountSubTreasury / optimisticMintingFeeDivisor = 4975 * 1e10 // txMaxFee = depositTxMaxFee * satoshiMultiplier = 1000 * 1e10 // tbtcAmount = amountSubTreasury - omFee - txMaxFee = 93525 * 1e10 - const expectedTbtcAmount = to1ePrecision(93525, 10) + const expectedTbtcAmount = to1ePrecision(94525, 10) let tx: ContractTransaction From b5a7dc5da46e36e59b3033c593314dac63212d69 Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 28 Jan 2025 01:38:59 -0300 Subject: [PATCH 4/9] new-deployment-of-the-L1BitcoinDepositor-on-sepolia-and-L2BitcoinDepositor-on-baseSepolia-for-base-native-minting Deployed the updated L1BitcoinDepositor contract to the Sepolia testnet (for base native minting) and the L2BitcoinDepositor (for proper linkage to L1BitcoinDepositor). A new boolean flag, reimburseTxFee, now controls whether the txMaxFee is reimbursed to the user. This update preserves full backward compatibility by avoiding any modifications to the AbstractTBTCDepositor contract. --- .../base/.openzeppelin/base-sepolia.json | 142 ++++ cross-chain/base/.openzeppelin/sepolia.json | 724 ++++++++++++++++-- .../baseSepolia/BaseL2BitcoinDepositor.json | 78 +- .../sepolia/BaseL1BitcoinDepositor.json | 173 ++++- solidity/contracts/l2/L1BitcoinDepositor.sol | 41 +- solidity/test/l2/L1BitcoinDepositor.test.ts | 113 ++- .../baseSepolia/BaseL2BitcoinDepositor.json | 80 +- .../sepolia/BaseL1BitcoinDepositor.json | 115 ++- 8 files changed, 1253 insertions(+), 213 deletions(-) create mode 100644 cross-chain/base/.openzeppelin/base-sepolia.json diff --git a/cross-chain/base/.openzeppelin/base-sepolia.json b/cross-chain/base/.openzeppelin/base-sepolia.json new file mode 100644 index 000000000..de4932117 --- /dev/null +++ b/cross-chain/base/.openzeppelin/base-sepolia.json @@ -0,0 +1,142 @@ +{ + "manifestVersion": "3.2", + "admin": { + "address": "0xD5D30Fafca5A5D371A46F77CACC4dB5F811Ef917", + "txHash": "0xd5aa149d61c364bf7e5c468c2856471fe31c673e891d96fe68379ba09b3b2722" + }, + "proxies": [ + { + "address": "0xF462413315Ee37AEBD0f5cA4296D9F3F3D9C4A59", + "txHash": "0xa6892c4e53e8343bbfbf53c2968a2bd833f1526811c5e7cb4eb71e1254a6dc49", + "kind": "transparent" + }, + { + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "txHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "kind": "transparent" + } + ], + "impls": { + "6f8a080eb3d81df72370bb32bfb791d146b0b8bb3ffba9da54d6a2155f00b013": { + "address": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", + "txHash": "0x785a8e7c33b6adf9cf95e4f5a9b324959443125dc4a82d939976f1f78e79f10b", + "layout": { + "solcVersion": "0.8.17", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "wormholeRelayer", + "offset": 0, + "slot": "101", + "type": "t_contract(IWormholeRelayer)4663", + "contract": "L2BitcoinDepositor", + "src": "contracts/arbitrumSepolia/L2BitcoinDepositor.sol:55" + }, + { + "label": "l2WormholeGateway", + "offset": 0, + "slot": "102", + "type": "t_contract(IL2WormholeGateway)4393", + "contract": "L2BitcoinDepositor", + "src": "contracts/arbitrumSepolia/L2BitcoinDepositor.sol:59" + }, + { + "label": "l1ChainId", + "offset": 20, + "slot": "102", + "type": "t_uint16", + "contract": "L2BitcoinDepositor", + "src": "contracts/arbitrumSepolia/L2BitcoinDepositor.sol:65" + }, + { + "label": "l1BitcoinDepositor", + "offset": 0, + "slot": "103", + "type": "t_address", + "contract": "L2BitcoinDepositor", + "src": "contracts/arbitrumSepolia/L2BitcoinDepositor.sol:68" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_contract(IL2WormholeGateway)4393": { + "label": "contract IL2WormholeGateway", + "numberOfBytes": "20" + }, + "t_contract(IWormholeRelayer)4663": { + "label": "contract IWormholeRelayer", + "numberOfBytes": "20" + }, + "t_uint16": { + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } + } + } +} diff --git a/cross-chain/base/.openzeppelin/sepolia.json b/cross-chain/base/.openzeppelin/sepolia.json index a088e7559..a759b3512 100644 --- a/cross-chain/base/.openzeppelin/sepolia.json +++ b/cross-chain/base/.openzeppelin/sepolia.json @@ -1,20 +1,635 @@ { "manifestVersion": "3.2", "admin": { - "address": "0xDd0007713CB99564B7835FD628A1718e8F9f9785", - "txHash": "0x078036699e010480a0d2a4c443352cf0f6311f8882dddcf0b4c6c5136bcc69b4" + "address": "0x8d58747Ef805317270FF7f8E51a8018d3488b17b", + "txHash": "0xe630831df51a6aa2450319e27805b6e3d0d42a5dc32ebac235d480e8e5e099bc" }, "proxies": [ { - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", - "txHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", + "address": "0xD9B523fb879C63b00ef14e48C98f4e3398d3BA2D", + "txHash": "0x2673ee5eb6ce999663c7897ab29bf0e0fda955dccc1f7d374968322d0148ade3", + "kind": "transparent" + }, + { + "address": "0x37169570D846Cc05D5848AAA30194d308b355638", + "txHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", + "kind": "transparent" + }, + { + "address": "0xD5D30Fafca5A5D371A46F77CACC4dB5F811Ef917", + "txHash": "0x5be509b38378594b96da0ef547989a2c2b42d6bc2a12809e4d217a1ab6edabaf", + "kind": "transparent" + }, + { + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "txHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", "kind": "transparent" } ], "impls": { - "e1501c59bd3fc7501392b17ad132c0ef733008f7128caa90d854edd898c505ec": { - "address": "0x720Cb49A8b3c03E199075544F7f1F4d772Dd6d06", - "txHash": "0xf055a10c164376e93258e15ff257e76fc8eff5a737820237271a8fb3e3506fe4", + "474c94a50caf8a2aedb92298fbb65c5eaea664750bb7a73a96d07ac8f5f96b49": { + "address": "0xf90292a39014033DE50c81f651365cB6A1040Bb6", + "txHash": "0x4a2e3dab4d5c32c7a1370bf0325f09380188d28987bd5861659dcc2773ecefa9", + "layout": { + "solcVersion": "0.8.17", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:68" + }, + { + "label": "bridge", + "offset": 2, + "slot": "0", + "type": "t_contract(IBridge)5228", + "contract": "AbstractTBTCDepositor", + "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:95" + }, + { + "label": "tbtcVault", + "offset": 0, + "slot": "1", + "type": "t_contract(ITBTCVault)5254", + "contract": "AbstractTBTCDepositor", + "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:96" + }, + { + "label": "__gap", + "offset": 0, + "slot": "2", + "type": "t_array(t_uint256)47_storage", + "contract": "AbstractTBTCDepositor", + "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:111" + }, + { + "label": "__gap", + "offset": 0, + "slot": "49", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin\\contracts-upgradeable\\utils\\ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "99", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "100", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:94" + }, + { + "label": "reimbursementPool", + "offset": 0, + "slot": "149", + "type": "t_contract(ReimbursementPool)2999", + "contract": "Reimbursable", + "src": "@keep-network\\random-beacon\\contracts\\Reimbursable.sol:51" + }, + { + "label": "__gap", + "offset": 0, + "slot": "150", + "type": "t_array(t_uint256)49_storage", + "contract": "Reimbursable", + "src": "@keep-network\\random-beacon\\contracts\\Reimbursable.sol:51" + }, + { + "label": "deposits", + "offset": 0, + "slot": "199", + "type": "t_mapping(t_uint256,t_enum(DepositState)5281)", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:112" + }, + { + "label": "tbtcToken", + "offset": 0, + "slot": "200", + "type": "t_contract(IERC20Upgradeable)3379", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:114" + }, + { + "label": "wormhole", + "offset": 0, + "slot": "201", + "type": "t_contract(IWormhole)6103", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:116" + }, + { + "label": "wormholeRelayer", + "offset": 0, + "slot": "202", + "type": "t_contract(IWormholeRelayer)6143", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:117" + }, + { + "label": "wormholeTokenBridge", + "offset": 0, + "slot": "203", + "type": "t_contract(IWormholeTokenBridge)6228", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:119" + }, + { + "label": "l2WormholeGateway", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:120" + }, + { + "label": "l2ChainId", + "offset": 20, + "slot": "204", + "type": "t_uint16", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:122" + }, + { + "label": "l2BitcoinDepositor", + "offset": 0, + "slot": "205", + "type": "t_address", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:124" + }, + { + "label": "l2FinalizeDepositGasLimit", + "offset": 0, + "slot": "206", + "type": "t_uint256", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:129" + }, + { + "label": "gasReimbursements", + "offset": 0, + "slot": "207", + "type": "t_mapping(t_uint256,t_struct(GasReimbursement)5288_storage)", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:138" + }, + { + "label": "initializeDepositGasOffset", + "offset": 0, + "slot": "208", + "type": "t_uint256", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:141" + }, + { + "label": "finalizeDepositGasOffset", + "offset": 0, + "slot": "209", + "type": "t_uint256", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:148" + }, + { + "label": "reimbursementAuthorizations", + "offset": 0, + "slot": "210", + "type": "t_mapping(t_address,t_bool)", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:158" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)47_storage": { + "label": "uint256[47]", + "numberOfBytes": "1504" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_contract(IBridge)5228": { + "label": "contract IBridge", + "numberOfBytes": "20" + }, + "t_contract(IERC20Upgradeable)3379": { + "label": "contract IERC20Upgradeable", + "numberOfBytes": "20" + }, + "t_contract(ITBTCVault)5254": { + "label": "contract ITBTCVault", + "numberOfBytes": "20" + }, + "t_contract(IWormhole)6103": { + "label": "contract IWormhole", + "numberOfBytes": "20" + }, + "t_contract(IWormholeRelayer)6143": { + "label": "contract IWormholeRelayer", + "numberOfBytes": "20" + }, + "t_contract(IWormholeTokenBridge)6228": { + "label": "contract IWormholeTokenBridge", + "numberOfBytes": "20" + }, + "t_contract(ReimbursementPool)2999": { + "label": "contract ReimbursementPool", + "numberOfBytes": "20" + }, + "t_enum(DepositState)5281": { + "label": "enum L1BitcoinDepositor.DepositState", + "members": [ + "Unknown", + "Initialized", + "Finalized" + ], + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_enum(DepositState)5281)": { + "label": "mapping(uint256 => enum L1BitcoinDepositor.DepositState)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_struct(GasReimbursement)5288_storage)": { + "label": "mapping(uint256 => struct L1BitcoinDepositor.GasReimbursement)", + "numberOfBytes": "32" + }, + "t_struct(GasReimbursement)5288_storage": { + "label": "struct L1BitcoinDepositor.GasReimbursement", + "members": [ + { + "label": "receiver", + "type": "t_address", + "offset": 0, + "slot": "0" + }, + { + "label": "gasSpent", + "type": "t_uint96", + "offset": 20, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_uint16": { + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + }, + "t_uint96": { + "label": "uint96", + "numberOfBytes": "12" + } + }, + "namespaces": {} + } + }, + "a6ee8e05616cabffb964a1fbfba6d1a425cf126ec5a864cdb7d7c660b3cde83e": { + "address": "0xFf79fca71751A5A0C4487a1aCE268d6cd2A64Db1", + "txHash": "0x238607f616e60d3f032fd6e81bde3652a843255334b78b841bc4365a827eec8e", + "layout": { + "solcVersion": "0.8.17", + "storage": [ + { + "label": "bridge", + "offset": 0, + "slot": "0", + "type": "t_contract(IBridge)5228", + "contract": "AbstractTBTCDepositor", + "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:95" + }, + { + "label": "tbtcVault", + "offset": 0, + "slot": "1", + "type": "t_contract(ITBTCVault)5254", + "contract": "AbstractTBTCDepositor", + "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:96" + }, + { + "label": "__gap", + "offset": 0, + "slot": "2", + "type": "t_array(t_uint256)47_storage", + "contract": "AbstractTBTCDepositor", + "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:111" + }, + { + "label": "_initialized", + "offset": 0, + "slot": "49", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "49", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "50", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin\\contracts-upgradeable\\utils\\ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "100", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:94" + }, + { + "label": "reimbursementPool", + "offset": 0, + "slot": "150", + "type": "t_contract(ReimbursementPool)2999", + "contract": "Reimbursable", + "src": "@keep-network\\random-beacon\\contracts\\Reimbursable.sol:51" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)49_storage", + "contract": "Reimbursable", + "src": "@keep-network\\random-beacon\\contracts\\Reimbursable.sol:51" + }, + { + "label": "deposits", + "offset": 0, + "slot": "200", + "type": "t_mapping(t_uint256,t_enum(DepositState)5279)", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:111" + }, + { + "label": "tbtcToken", + "offset": 0, + "slot": "201", + "type": "t_contract(IERC20Upgradeable)3379", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:113" + }, + { + "label": "wormhole", + "offset": 0, + "slot": "202", + "type": "t_contract(IWormhole)6117", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:115" + }, + { + "label": "wormholeRelayer", + "offset": 0, + "slot": "203", + "type": "t_contract(IWormholeRelayer)6157", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:116" + }, + { + "label": "wormholeTokenBridge", + "offset": 0, + "slot": "204", + "type": "t_contract(IWormholeTokenBridge)6242", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:117" + }, + { + "label": "l2WormholeGateway", + "offset": 0, + "slot": "205", + "type": "t_address", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:119" + }, + { + "label": "l2ChainId", + "offset": 20, + "slot": "205", + "type": "t_uint16", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:121" + }, + { + "label": "l2BitcoinDepositor", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:123" + }, + { + "label": "l2FinalizeDepositGasLimit", + "offset": 0, + "slot": "207", + "type": "t_uint256", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:128" + }, + { + "label": "gasReimbursements", + "offset": 0, + "slot": "208", + "type": "t_mapping(t_uint256,t_struct(GasReimbursement)5286_storage)", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:137" + }, + { + "label": "initializeDepositGasOffset", + "offset": 0, + "slot": "209", + "type": "t_uint256", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:140" + }, + { + "label": "finalizeDepositGasOffset", + "offset": 0, + "slot": "210", + "type": "t_uint256", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:146" + }, + { + "label": "reimbursementAuthorizations", + "offset": 0, + "slot": "211", + "type": "t_mapping(t_address,t_bool)", + "contract": "L1BitcoinDepositor", + "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:157" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)47_storage": { + "label": "uint256[47]", + "numberOfBytes": "1504" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_contract(IBridge)5228": { + "label": "contract IBridge", + "numberOfBytes": "20" + }, + "t_contract(IERC20Upgradeable)3379": { + "label": "contract IERC20Upgradeable", + "numberOfBytes": "20" + }, + "t_contract(ITBTCVault)5254": { + "label": "contract ITBTCVault", + "numberOfBytes": "20" + }, + "t_contract(IWormhole)6117": { + "label": "contract IWormhole", + "numberOfBytes": "20" + }, + "t_contract(IWormholeRelayer)6157": { + "label": "contract IWormholeRelayer", + "numberOfBytes": "20" + }, + "t_contract(IWormholeTokenBridge)6242": { + "label": "contract IWormholeTokenBridge", + "numberOfBytes": "20" + }, + "t_contract(ReimbursementPool)2999": { + "label": "contract ReimbursementPool", + "numberOfBytes": "20" + }, + "t_enum(DepositState)5279": { + "label": "enum L1BitcoinDepositor.DepositState", + "members": [ + "Unknown", + "Initialized", + "Finalized" + ], + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_enum(DepositState)5279)": { + "label": "mapping(uint256 => enum L1BitcoinDepositor.DepositState)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_struct(GasReimbursement)5286_storage)": { + "label": "mapping(uint256 => struct L1BitcoinDepositor.GasReimbursement)", + "numberOfBytes": "32" + }, + "t_struct(GasReimbursement)5286_storage": { + "label": "struct L1BitcoinDepositor.GasReimbursement", + "members": [ + { + "label": "receiver", + "type": "t_address", + "offset": 0, + "slot": "0" + }, + { + "label": "gasSpent", + "type": "t_uint96", + "offset": 20, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_uint16": { + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + }, + "t_uint96": { + "label": "uint96", + "numberOfBytes": "12" + } + }, + "namespaces": {} + } + }, + "6d2ea0a2785b57debf45e9592947c1b943a6374b14fb50fc4d08666d1fd2ee9e": { + "address": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", + "txHash": "0xf81b5f159c6e0cfb4ea14a57411688282810e8c6335eadf9d5ea8aa2c5af2752", "layout": { "solcVersion": "0.8.17", "storage": [ @@ -22,17 +637,17 @@ "label": "bridge", "offset": 0, "slot": "0", - "type": "t_contract(IBridge)3414", + "type": "t_contract(IBridge)5228", "contract": "AbstractTBTCDepositor", - "src": "@keep-network/tbtc-v2/contracts/integrator/AbstractTBTCDepositor.sol:95" + "src": "contracts/integrator/AbstractTBTCDepositor.sol:95" }, { "label": "tbtcVault", "offset": 0, "slot": "1", - "type": "t_contract(ITBTCVault)3440", + "type": "t_contract(ITBTCVault)5254", "contract": "AbstractTBTCDepositor", - "src": "@keep-network/tbtc-v2/contracts/integrator/AbstractTBTCDepositor.sol:96" + "src": "contracts/integrator/AbstractTBTCDepositor.sol:96" }, { "label": "__gap", @@ -40,7 +655,7 @@ "slot": "2", "type": "t_array(t_uint256)47_storage", "contract": "AbstractTBTCDepositor", - "src": "@keep-network/tbtc-v2/contracts/integrator/AbstractTBTCDepositor.sol:111" + "src": "contracts/integrator/AbstractTBTCDepositor.sol:111" }, { "label": "_initialized", @@ -48,7 +663,7 @@ "slot": "49", "type": "t_uint8", "contract": "Initializable", - "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", "retypedFrom": "bool" }, { @@ -57,7 +672,7 @@ "slot": "49", "type": "t_bool", "contract": "Initializable", - "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67" + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" }, { "label": "__gap", @@ -65,7 +680,7 @@ "slot": "50", "type": "t_array(t_uint256)50_storage", "contract": "ContextUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36" + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" }, { "label": "_owner", @@ -103,41 +718,41 @@ "label": "deposits", "offset": 0, "slot": "200", - "type": "t_mapping(t_uint256,t_enum(DepositState)3465)", + "type": "t_mapping(t_uint256,t_enum(DepositState)5279)", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:111" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:111" }, { "label": "tbtcToken", "offset": 0, "slot": "201", - "type": "t_contract(IERC20Upgradeable)6699", + "type": "t_contract(IERC20Upgradeable)3379", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:113" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:113" }, { "label": "wormhole", "offset": 0, "slot": "202", - "type": "t_contract(IWormhole)5318", + "type": "t_contract(IWormhole)6149", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:115" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:115" }, { "label": "wormholeRelayer", "offset": 0, "slot": "203", - "type": "t_contract(IWormholeRelayer)5358", + "type": "t_contract(IWormholeRelayer)6189", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:116" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:116" }, { "label": "wormholeTokenBridge", "offset": 0, "slot": "204", - "type": "t_contract(IWormholeTokenBridge)5443", + "type": "t_contract(IWormholeTokenBridge)6274", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:118" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:118" }, { "label": "l2WormholeGateway", @@ -145,7 +760,7 @@ "slot": "205", "type": "t_address", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:119" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:119" }, { "label": "l2ChainId", @@ -153,7 +768,7 @@ "slot": "205", "type": "t_uint16", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:121" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:121" }, { "label": "l2BitcoinDepositor", @@ -161,7 +776,7 @@ "slot": "206", "type": "t_address", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:123" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:123" }, { "label": "l2FinalizeDepositGasLimit", @@ -169,15 +784,15 @@ "slot": "207", "type": "t_uint256", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:128" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:128" }, { "label": "gasReimbursements", "offset": 0, "slot": "208", - "type": "t_mapping(t_uint256,t_struct(GasReimbursement)3472_storage)", + "type": "t_mapping(t_uint256,t_struct(GasReimbursement)5286_storage)", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:137" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:137" }, { "label": "initializeDepositGasOffset", @@ -185,7 +800,7 @@ "slot": "209", "type": "t_uint256", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:146" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:140" }, { "label": "finalizeDepositGasOffset", @@ -193,7 +808,23 @@ "slot": "210", "type": "t_uint256", "contract": "L1BitcoinDepositor", - "src": "@keep-network/tbtc-v2/contracts/l2/L1BitcoinDepositor.sol:153" + "src": "contracts/sepolia/L1BitcoinDepositor.sol:144" + }, + { + "label": "reimbursementAuthorizations", + "offset": 0, + "slot": "211", + "type": "t_mapping(t_address,t_bool)", + "contract": "L1BitcoinDepositor", + "src": "contracts/sepolia/L1BitcoinDepositor.sol:150" + }, + { + "label": "reimburseTxMaxFee", + "offset": 0, + "slot": "212", + "type": "t_bool", + "contract": "L1BitcoinDepositor", + "src": "contracts/sepolia/L1BitcoinDepositor.sol:165" } ], "types": { @@ -217,27 +848,27 @@ "label": "bool", "numberOfBytes": "1" }, - "t_contract(IBridge)3414": { + "t_contract(IBridge)5228": { "label": "contract IBridge", "numberOfBytes": "20" }, - "t_contract(IERC20Upgradeable)6699": { + "t_contract(IERC20Upgradeable)3379": { "label": "contract IERC20Upgradeable", "numberOfBytes": "20" }, - "t_contract(ITBTCVault)3440": { + "t_contract(ITBTCVault)5254": { "label": "contract ITBTCVault", "numberOfBytes": "20" }, - "t_contract(IWormhole)5318": { + "t_contract(IWormhole)6149": { "label": "contract IWormhole", "numberOfBytes": "20" }, - "t_contract(IWormholeRelayer)5358": { + "t_contract(IWormholeRelayer)6189": { "label": "contract IWormholeRelayer", "numberOfBytes": "20" }, - "t_contract(IWormholeTokenBridge)5443": { + "t_contract(IWormholeTokenBridge)6274": { "label": "contract IWormholeTokenBridge", "numberOfBytes": "20" }, @@ -245,7 +876,7 @@ "label": "contract ReimbursementPool", "numberOfBytes": "20" }, - "t_enum(DepositState)3465": { + "t_enum(DepositState)5279": { "label": "enum L1BitcoinDepositor.DepositState", "members": [ "Unknown", @@ -254,15 +885,19 @@ ], "numberOfBytes": "1" }, - "t_mapping(t_uint256,t_enum(DepositState)3465)": { + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_enum(DepositState)5279)": { "label": "mapping(uint256 => enum L1BitcoinDepositor.DepositState)", "numberOfBytes": "32" }, - "t_mapping(t_uint256,t_struct(GasReimbursement)3472_storage)": { + "t_mapping(t_uint256,t_struct(GasReimbursement)5286_storage)": { "label": "mapping(uint256 => struct L1BitcoinDepositor.GasReimbursement)", "numberOfBytes": "32" }, - "t_struct(GasReimbursement)3472_storage": { + "t_struct(GasReimbursement)5286_storage": { "label": "struct L1BitcoinDepositor.GasReimbursement", "members": [ { @@ -296,7 +931,8 @@ "label": "uint96", "numberOfBytes": "12" } - } + }, + "namespaces": {} } } } diff --git a/cross-chain/base/deployments/baseSepolia/BaseL2BitcoinDepositor.json b/cross-chain/base/deployments/baseSepolia/BaseL2BitcoinDepositor.json index a4f4e4337..dc687fb70 100644 --- a/cross-chain/base/deployments/baseSepolia/BaseL2BitcoinDepositor.json +++ b/cross-chain/base/deployments/baseSepolia/BaseL2BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "abi": [ { "inputs": [], @@ -355,75 +355,75 @@ "type": "function" } ], - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", "receipt": { "to": null, - "from": "0x68ad60CC5e8f3B7cC53beaB321cf0e6036962dBc", - "contractAddress": "0x04BE8F183572ec802aD26756F3E9398098700E76", - "transactionIndex": 2, - "gasUsed": "704802", - "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400002000200000000000000000000000000000000000080000000000000800080000000000000000000000000000400000000000100000000000000000000000000000020000000000000000020040000000008000400000000000000000020000000000000000000080000000000000000000000000000000000000000400000", - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85", - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", + "from": "0x353C5c3DE81EDb53FFB398f6416f962b90ae8611", + "contractAddress": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 28, + "gasUsed": "704872", + "logsBloom": "0x00000800000000000000000000000000400000000000000000800000000000020000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400000000000000000000000000000000000000000000084000004000000800000000000000000000000020000000400000000000200000000000000000000000000000020000000000000000000040000000000000400000000000010000020100000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880", + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", "logs": [ { - "transactionIndex": 2, - "blockNumber": 7063584, - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "transactionIndex": 28, + "blockNumber": 21133582, + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000001ecd87c8d510a7390a561ae0ac54fbe7e5125bcf" + "0x0000000000000000000000001fe7385497a45191c5321fdd903d880491e47dd7" ], "data": "0x", - "logIndex": 1, - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85" + "logIndex": 86, + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" }, { - "transactionIndex": 2, - "blockNumber": 7063584, - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "transactionIndex": 28, + "blockNumber": 21133582, + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000068ad60cc5e8f3b7cc53beab321cf0e6036962dbc" + "0x000000000000000000000000353c5c3de81edb53ffb398f6416f962b90ae8611" ], "data": "0x", - "logIndex": 2, - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85" + "logIndex": 87, + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" }, { - "transactionIndex": 2, - "blockNumber": 7063584, - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "transactionIndex": 28, + "blockNumber": 21133582, + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 3, - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85" + "logIndex": 88, + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" }, { - "transactionIndex": 2, - "blockNumber": 7063584, - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "transactionIndex": 28, + "blockNumber": 21133582, + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b2f6c5b73239c39360ee0ea95047565dab13e3c7", - "logIndex": 4, - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85" + "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5d30fafca5a5d371a46f77cacc4db5f811ef917", + "logIndex": 89, + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" } ], - "blockNumber": 7063584, - "cumulativeGasUsed": "804788", + "blockNumber": 21133582, + "cumulativeGasUsed": "4323019", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0x1Ecd87C8D510A7390a561AE0Ac54FBe7e5125BcF", + "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", "devdoc": "Contract deployed as upgradable proxy" } \ No newline at end of file diff --git a/cross-chain/base/deployments/sepolia/BaseL1BitcoinDepositor.json b/cross-chain/base/deployments/sepolia/BaseL1BitcoinDepositor.json index 1826e6b36..4c11de7b9 100644 --- a/cross-chain/base/deployments/sepolia/BaseL1BitcoinDepositor.json +++ b/cross-chain/base/deployments/sepolia/BaseL1BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "abi": [ { "inputs": [], @@ -132,6 +132,38 @@ "name": "OwnershipTransferred", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "reimburseTxMaxFee", + "type": "bool" + } + ], + "name": "ReimburseTxMaxFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_address", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "authorization", + "type": "bool" + } + ], + "name": "ReimbursementAuthorizationUpdated", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -464,6 +496,38 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "reimburseTxMaxFee", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "reimbursementAuthorizations", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "reimbursementPool", @@ -484,6 +548,19 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_reimburseTxMaxFee", + "type": "bool" + } + ], + "name": "setReimburseTxMaxFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [], "name": "tbtcToken", @@ -554,6 +631,24 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "address", + "name": "_address", + "type": "address" + }, + { + "internalType": "bool", + "name": "authorization", + "type": "bool" + } + ], + "name": "updateReimbursementAuthorization", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -607,75 +702,75 @@ "type": "function" } ], - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", "receipt": { "to": null, - "from": "0x68ad60CC5e8f3B7cC53beaB321cf0e6036962dBc", - "contractAddress": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", - "transactionIndex": 94, - "gasUsed": "887851", - "logsBloom": "0x00000000000000000000000000000000400000000000000400800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000001000000000000000000000000000000000000020000000000000000000800000000800000000000000008000000400000000200000000000000000000000000000040000080000000000000800000000000000000000000000000000400000000000000000000000000000010000000000020000000000000200020040000000000000400000000000000000020000000000000000000000000000000100000000000000000000000000000000000", - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c", - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", + "from": "0x353C5c3DE81EDb53FFB398f6416f962b90ae8611", + "contractAddress": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 163, + "gasUsed": "890221", + "logsBloom": "0x00000800000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000200000000000400000000000000000000000000000000000000000000080000004000000800000000000000000000000020000000400000000000200000000000000000000000000000020000000000000000000040010000000000400000000000000000028100000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0", + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", "logs": [ { - "transactionIndex": 94, - "blockNumber": 5441536, - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "transactionIndex": 163, + "blockNumber": 7585981, + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000720cb49a8b3c03e199075544f7f1f4d772dd6d06" + "0x0000000000000000000000001fe7385497a45191c5321fdd903d880491e47dd7" ], "data": "0x", - "logIndex": 75, - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c" + "logIndex": 290, + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" }, { - "transactionIndex": 94, - "blockNumber": 5441536, - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "transactionIndex": 163, + "blockNumber": 7585981, + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000068ad60cc5e8f3b7cc53beab321cf0e6036962dbc" + "0x000000000000000000000000353c5c3de81edb53ffb398f6416f962b90ae8611" ], "data": "0x", - "logIndex": 76, - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c" + "logIndex": 291, + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" }, { - "transactionIndex": 94, - "blockNumber": 5441536, - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "transactionIndex": 163, + "blockNumber": 7585981, + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 77, - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c" + "logIndex": 292, + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" }, { - "transactionIndex": 94, - "blockNumber": 5441536, - "transactionHash": "0x5a405183332f623649fcf19f8506cf2582882d5dc2b05582e0066388ef122229", - "address": "0x0c5e36731008f4AFC1AF5Da2C4D5E07eE4a3EB69", + "transactionIndex": 163, + "blockNumber": 7585981, + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd0007713cb99564b7835fd628a1718e8f9f9785", - "logIndex": 78, - "blockHash": "0x9d4a08d2b6fd26df76447aa1b5e0054686b1d462dc12be4d271dca1299060a2c" + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000008d58747ef805317270ff7f8e51a8018d3488b17b", + "logIndex": 293, + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" } ], - "blockNumber": 5441536, - "cumulativeGasUsed": "8903785", + "blockNumber": 7585981, + "cumulativeGasUsed": "22707418", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0x720Cb49A8b3c03E199075544F7f1F4d772Dd6d06", + "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", "devdoc": "Contract deployed as upgradable proxy" } \ No newline at end of file diff --git a/solidity/contracts/l2/L1BitcoinDepositor.sol b/solidity/contracts/l2/L1BitcoinDepositor.sol index 5247eaef2..f36eb4df7 100644 --- a/solidity/contracts/l2/L1BitcoinDepositor.sol +++ b/solidity/contracts/l2/L1BitcoinDepositor.sol @@ -140,6 +140,12 @@ contract L1BitcoinDepositor is /// granted by the contract owner. mapping(address => bool) public reimbursementAuthorizations; + /// @notice **Feature Flag** controlling whether the deposit transaction max fee + /// is **reimbursed** (added to the user’s TBTC) or **deducted**. + /// - `true` => Add `txMaxFee` to the minted TBTC amount + /// - `false` => Subtract `txMaxFee` from the minted TBTC amount + bool public reimburseTxMaxFee; + event DepositInitialized( uint256 indexed depositKey, address indexed l2DepositOwner, @@ -166,6 +172,10 @@ contract L1BitcoinDepositor is bool authorization ); + /// @notice Emitted whenever the owner toggles the reimbursement of the deposit + /// transaction max fee. + event ReimburseTxMaxFeeUpdated(bool reimburseTxMaxFee); + /// @dev This modifier comes from the `Reimbursable` base contract and /// must be overridden to protect the `updateReimbursementPool` call. modifier onlyReimbursableAdmin() override { @@ -214,6 +224,7 @@ contract L1BitcoinDepositor is l2FinalizeDepositGasLimit = 500_000; initializeDepositGasOffset = 60_000; finalizeDepositGasOffset = 20_000; + reimburseTxMaxFee = false; } /// @notice Sets the address of the `L2BitcoinDepositor` contract on the @@ -284,6 +295,15 @@ contract L1BitcoinDepositor is reimbursementAuthorizations[_address] = authorization; } + /// @notice Toggles whether the deposit transaction max fee is reimbursed + /// or deducted. Only callable by the contract owner. + /// @param _reimburseTxMaxFee `true` => reimburse (add) the deposit tx max fee, + /// `false` => deduct the deposit tx max fee. + function setReimburseTxMaxFee(bool _reimburseTxMaxFee) external onlyOwner { + reimburseTxMaxFee = _reimburseTxMaxFee; + emit ReimburseTxMaxFeeUpdated(_reimburseTxMaxFee); + } + /// @notice Initializes the deposit process on L1 by revealing the deposit /// data (funding transaction and components of the P2(W)SH deposit /// address) to the tBTC Bridge. Once tBTC minting is completed, @@ -461,17 +481,16 @@ contract L1BitcoinDepositor is bytes32 l2DepositOwner ) = _finalizeDeposit(depositKey); - // The deposit transaction max fee is in the 1e8 satoshi precision. - // We need to convert them to the 1e18 TBTC precision. - (, , uint64 depositTxMaxFee, ) = bridge.depositParameters(); - uint256 txMaxFee = depositTxMaxFee * SATOSHI_MULTIPLIER; - - // The Threshold DAO decided the deposit transaction max fee to be 0. - // Instead of changing the deposit parameters, we add the fee to the - // amount of TBTC that is transferred to the L2 deposit owner. - tbtcAmount += txMaxFee; - - // slither-disable-next-line reentrancy-events + // ---------------------------- + // Reimburse or Deduct Max Fee + // ---------------------------- + if (reimburseTxMaxFee) { + // Retrieve deposit tx max fee in 1e8 sat precision -> scale it to 1e18. + (, , uint64 depositTxMaxFee, ) = bridge.depositParameters(); + uint256 txMaxFee = depositTxMaxFee * SATOSHI_MULTIPLIER; + // The DAO is "refunding" it by adding it to the TBTC minted. + tbtcAmount += txMaxFee; + } emit DepositFinalized( depositKey, WormholeUtils.fromWormholeAddress(l2DepositOwner), diff --git a/solidity/test/l2/L1BitcoinDepositor.test.ts b/solidity/test/l2/L1BitcoinDepositor.test.ts index 619f082b1..43db8b106 100644 --- a/solidity/test/l2/L1BitcoinDepositor.test.ts +++ b/solidity/test/l2/L1BitcoinDepositor.test.ts @@ -46,7 +46,7 @@ describe("L1BitcoinDepositor", () => { // pass the vault address check in the initializeDeposit function. address: tbtcVaultAddress, }) - // Attack the tbtcToken mock to the tbtcVault mock. + // Attach the tbtcToken mock to the tbtcVault mock. tbtcVault.tbtcToken.returns(tbtcToken.address) const wormhole = await smock.fake("IWormhole") @@ -1123,7 +1123,7 @@ describe("L1BitcoinDepositor", () => { // omFee = amountSubTreasury / optimisticMintingFeeDivisor = 4975 * 1e10 // txMaxFee = depositTxMaxFee * satoshiMultiplier = 1000 * 1e10 // tbtcAmount = amountSubTreasury - omFee - txMaxFee = 93525 * 1e10 - const expectedTbtcAmount = to1ePrecision(94525, 10) + const expectedTbtcAmount = to1ePrecision(93525, 10) let tx: ContractTransaction @@ -1810,6 +1810,115 @@ describe("L1BitcoinDepositor", () => { expect(cost).to.be.equal(6000) // delivery cost + message fee }) }) + + context("when reimburseTxMaxFee is true", () => { + const satoshiMultiplier = to1ePrecision(1, 10) + const messageFee = 1000 + const deliveryCost = 5000 + const depositTxMaxFee = BigNumber.from(1000) + const depositAmount = BigNumber.from(100000) + const treasuryFee = BigNumber.from(500) + const optimisticMintingFeeDivisor = 20 + + // For depositAmount=100000 & treasuryFee=500: + // (depositAmount - treasuryFee)=99500 + // => *1e10 => 99500e10 + // => omFee= (99500e10 /20)=4975e10 + // => depositTxMaxFee => 1000e10 + // + // The standard _calculateTbtcAmount would do: 99500e10 -4975e10 -1000e10=93525e10 + // Because we reimburse depositTxMaxFee, we add 1000e10 back => 94525e10 + const expectedTbtcAmountReimbursed = to1ePrecision(94525, 10) + + before(async () => { + await createSnapshot() + + // Turn the feature flag on + await l1BitcoinDepositor.connect(governance).setReimburseTxMaxFee(true) + + // The L2BitcoinDepositor contract must be attached + if ( + (await l1BitcoinDepositor.l2BitcoinDepositor()) === + ethers.constants.AddressZero + ) { + await l1BitcoinDepositor + .connect(governance) + .attachL2BitcoinDepositor(l2BitcoinDepositor) + } + }) + + after(async () => { + await restoreSnapshot() + }) + + it("should add depositTxMaxFee back to the minted TBTC amount", async () => { + // 1) Initialize deposit + await l1BitcoinDepositor + .connect(relayer) + .initializeDeposit( + initializeDepositFixture.fundingTx, + initializeDepositFixture.reveal, + initializeDepositFixture.l2DepositOwner + ) + + // 2) Setup Bridge deposit parameters + bridge.depositParameters.returns({ + depositDustThreshold: 0, + depositTreasuryFeeDivisor: 0, + depositTxMaxFee, + depositRevealAheadPeriod: 0, + }) + // 3) Setup vault fees + tbtcVault.optimisticMintingFeeDivisor.returns(optimisticMintingFeeDivisor) + + // 4) Prepare deposit finalization + const revealedAt = (await lastBlockTime()) - 7200 + const finalizedAt = await lastBlockTime() + bridge.deposits + .whenCalledWith(initializeDepositFixture.depositKey) + .returns({ + depositor: l1BitcoinDepositor.address, + amount: depositAmount, + revealedAt, + vault: initializeDepositFixture.reveal.vault, + treasuryFee, + sweptAt: finalizedAt, + extraData: toWormholeAddress(initializeDepositFixture.l2DepositOwner), + }) + tbtcVault.optimisticMintingRequests + .whenCalledWith(initializeDepositFixture.depositKey) + .returns([revealedAt, finalizedAt]) + + // 5) Setup Wormhole cost + wormhole.messageFee.returns(messageFee) + wormholeRelayer.quoteEVMDeliveryPrice.returns({ + nativePriceQuote: BigNumber.from(deliveryCost), + targetChainRefundPerGasUnused: BigNumber.from(0), + }) + + // 6) The bridging calls + wormholeTokenBridge.transferTokensWithPayload.returns(555) + wormholeRelayer.sendVaasToEvm.returns(999) + + // 7) Now finalize with enough payment + const tx = await l1BitcoinDepositor + .connect(relayer) + .finalizeDeposit(initializeDepositFixture.depositKey, { + value: messageFee + deliveryCost, + }) + + // 8) The final minted TBTC should be 94525e10 + await expect(tx) + .to.emit(l1BitcoinDepositor, "DepositFinalized") + .withArgs( + initializeDepositFixture.depositKey, + initializeDepositFixture.l2DepositOwner, + relayer.address, + depositAmount.mul(satoshiMultiplier), + expectedTbtcAmountReimbursed + ) + }) + }) }) // Just an arbitrary TBTCVault address. diff --git a/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json b/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json index 6ed5a21d0..dc687fb70 100644 --- a/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json +++ b/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "abi": [ { "inputs": [], @@ -355,75 +355,75 @@ "type": "function" } ], - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", "receipt": { "to": null, - "from": "0x68ad60CC5e8f3B7cC53beaB321cf0e6036962dBc", - "contractAddress": "0x04BE8F183572ec802aD26756F3E9398098700E76", - "transactionIndex": 2, - "gasUsed": "704802", - "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400002000200000000000000000000000000000000000080000000000000800080000000000000000000000000000400000000000100000000000000000000000000000020000000000000000020040000000008000400000000000000000020000000000000000000080000000000000000000000000000000000000000400000", - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85", - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", + "from": "0x353C5c3DE81EDb53FFB398f6416f962b90ae8611", + "contractAddress": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 28, + "gasUsed": "704872", + "logsBloom": "0x00000800000000000000000000000000400000000000000000800000000000020000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400000000000000000000000000000000000000000000084000004000000800000000000000000000000020000000400000000000200000000000000000000000000000020000000000000000000040000000000000400000000000010000020100000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880", + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", "logs": [ { - "transactionIndex": 2, - "blockNumber": 7063584, - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "transactionIndex": 28, + "blockNumber": 21133582, + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000001ecd87c8d510a7390a561ae0ac54fbe7e5125bcf" + "0x0000000000000000000000001fe7385497a45191c5321fdd903d880491e47dd7" ], "data": "0x", - "logIndex": 1, - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85" + "logIndex": 86, + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" }, { - "transactionIndex": 2, - "blockNumber": 7063584, - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "transactionIndex": 28, + "blockNumber": 21133582, + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000068ad60cc5e8f3b7cc53beab321cf0e6036962dbc" + "0x000000000000000000000000353c5c3de81edb53ffb398f6416f962b90ae8611" ], "data": "0x", - "logIndex": 2, - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85" + "logIndex": 87, + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" }, { - "transactionIndex": 2, - "blockNumber": 7063584, - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "transactionIndex": 28, + "blockNumber": 21133582, + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 3, - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85" + "logIndex": 88, + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" }, { - "transactionIndex": 2, - "blockNumber": 7063584, - "transactionHash": "0xaeb9ee6679e0f96108788abffa9ed78c943c09565686dfdb826378e9bd1487df", - "address": "0x04BE8F183572ec802aD26756F3E9398098700E76", + "transactionIndex": 28, + "blockNumber": 21133582, + "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b2f6c5b73239c39360ee0ea95047565dab13e3c7", - "logIndex": 4, - "blockHash": "0xcb1f5aa73f2f63d359224b51e7abf66a431e3420daa6940b72a3a58dd5a00c85" + "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5d30fafca5a5d371a46f77cacc4db5f811ef917", + "logIndex": 89, + "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" } ], - "blockNumber": 7063584, - "cumulativeGasUsed": "804788", + "blockNumber": 21133582, + "cumulativeGasUsed": "4323019", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0x1Ecd87C8D510A7390a561AE0Ac54FBe7e5125BcF", + "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", "devdoc": "Contract deployed as upgradable proxy" -} +} \ No newline at end of file diff --git a/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json b/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json index c7a0d3102..4c11de7b9 100644 --- a/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json +++ b/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x37169570D846Cc05D5848AAA30194d308b355638", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "abi": [ { "inputs": [], @@ -132,6 +132,19 @@ "name": "OwnershipTransferred", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "reimburseTxMaxFee", + "type": "bool" + } + ], + "name": "ReimburseTxMaxFeeUpdated", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -483,6 +496,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "reimburseTxMaxFee", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -522,6 +548,19 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_reimburseTxMaxFee", + "type": "bool" + } + ], + "name": "setReimburseTxMaxFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [], "name": "tbtcToken", @@ -663,75 +702,75 @@ "type": "function" } ], - "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", "receipt": { "to": null, - "from": "0x949f0ADFDA95351829E49aEec0f99371A227572d", - "contractAddress": "0x37169570D846Cc05D5848AAA30194d308b355638", - "transactionIndex": 14, - "gasUsed": "888024", - "logsBloom": "0x00000000000000000000000080001000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000002000001400000000000000000000000000000004000020000000000000000000800000000800000000000000000004000400000100000000000000000000000000000000200000080000000000000800000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000400100000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b", - "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", + "from": "0x353C5c3DE81EDb53FFB398f6416f962b90ae8611", + "contractAddress": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 163, + "gasUsed": "890221", + "logsBloom": "0x00000800000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000200000000000400000000000000000000000000000000000000000000080000004000000800000000000000000000000020000000400000000000200000000000000000000000000000020000000000000000000040010000000000400000000000000000028100000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0", + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", "logs": [ { - "transactionIndex": 14, - "blockNumber": 6877156, - "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", - "address": "0x37169570D846Cc05D5848AAA30194d308b355638", + "transactionIndex": 163, + "blockNumber": 7585981, + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000ff79fca71751a5a0c4487a1ace268d6cd2a64db1" + "0x0000000000000000000000001fe7385497a45191c5321fdd903d880491e47dd7" ], "data": "0x", - "logIndex": 0, - "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b" + "logIndex": 290, + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" }, { - "transactionIndex": 14, - "blockNumber": 6877156, - "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", - "address": "0x37169570D846Cc05D5848AAA30194d308b355638", + "transactionIndex": 163, + "blockNumber": 7585981, + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000949f0adfda95351829e49aeec0f99371a227572d" + "0x000000000000000000000000353c5c3de81edb53ffb398f6416f962b90ae8611" ], "data": "0x", - "logIndex": 1, - "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b" + "logIndex": 291, + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" }, { - "transactionIndex": 14, - "blockNumber": 6877156, - "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", - "address": "0x37169570D846Cc05D5848AAA30194d308b355638", + "transactionIndex": 163, + "blockNumber": 7585981, + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 2, - "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b" + "logIndex": 292, + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" }, { - "transactionIndex": 14, - "blockNumber": 6877156, - "transactionHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", - "address": "0x37169570D846Cc05D5848AAA30194d308b355638", + "transactionIndex": 163, + "blockNumber": 7585981, + "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000008d58747ef805317270ff7f8e51a8018d3488b17b", - "logIndex": 3, - "blockHash": "0xbf3cf876ca6f3c6271e272fbf1ac1b2004ad949892f038fb0132c22552f5664b" + "logIndex": 293, + "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" } ], - "blockNumber": 6877156, - "cumulativeGasUsed": "16670912", + "blockNumber": 7585981, + "cumulativeGasUsed": "22707418", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0xFf79fca71751A5A0C4487a1aCE268d6cd2A64Db1", + "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", "devdoc": "Contract deployed as upgradable proxy" } \ No newline at end of file From 4f5b8e1e916301b04a377bbe8980bdb36531a5e3 Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 28 Jan 2025 17:59:35 -0300 Subject: [PATCH 5/9] linting fixes --- .../lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json | 2 +- .../lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json b/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json index dc687fb70..067c79f63 100644 --- a/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json +++ b/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json @@ -426,4 +426,4 @@ "numDeployments": 1, "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", "devdoc": "Contract deployed as upgradable proxy" -} \ No newline at end of file +} diff --git a/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json b/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json index 4c11de7b9..89fd16d6f 100644 --- a/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json +++ b/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json @@ -773,4 +773,4 @@ "numDeployments": 1, "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", "devdoc": "Contract deployed as upgradable proxy" -} \ No newline at end of file +} From c128edad7086f28241c3230c92d79c58c12a5cc6 Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 28 Jan 2025 21:41:50 -0300 Subject: [PATCH 6/9] Revert "Merge branch 'add-txMaxFee-to-tbtcAmount' of https://github.com/lrsaturnino/tbtc-v2 into pr/827" This reverts commit 40a65bb982d634a1766beec7b7ec4b361624e5c1, reversing changes made to 4f5b8e1e916301b04a377bbe8980bdb36531a5e3. --- solidity/deployments/mainnet/Timelock.json | 1351 ------ .../98e272e2fbf178ec895387b6c503f9de.json | 68 - solidity/export.json | 4200 +++++++---------- solidity/package.json | 2 +- 4 files changed, 1666 insertions(+), 3955 deletions(-) delete mode 100644 solidity/deployments/mainnet/Timelock.json delete mode 100644 solidity/deployments/mainnet/solcInputs/98e272e2fbf178ec895387b6c503f9de.json diff --git a/solidity/deployments/mainnet/Timelock.json b/solidity/deployments/mainnet/Timelock.json deleted file mode 100644 index 61a161abb..000000000 --- a/solidity/deployments/mainnet/Timelock.json +++ /dev/null @@ -1,1351 +0,0 @@ -{ - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "abi": [ - { - "inputs": [ - { - "internalType": "uint256", - "name": "minDelay", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "proposers", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "executors", - "type": "address[]" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "CallExecuted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "delay", - "type": "uint256" - } - ], - "name": "CallScheduled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "Cancelled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldDuration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newDuration", - "type": "uint256" - } - ], - "name": "MinDelayChange", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "CANCELLER_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "EXECUTOR_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "PROPOSER_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "TIMELOCK_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "cancel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "payload", - "type": "bytes" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - } - ], - "name": "execute", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "targets", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - }, - { - "internalType": "bytes[]", - "name": "payloads", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - } - ], - "name": "executeBatch", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "getMinDelay", - "outputs": [ - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "getTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - } - ], - "name": "hashOperation", - "outputs": [ - { - "internalType": "bytes32", - "name": "hash", - "type": "bytes32" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "targets", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - }, - { - "internalType": "bytes[]", - "name": "payloads", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - } - ], - "name": "hashOperationBatch", - "outputs": [ - { - "internalType": "bytes32", - "name": "hash", - "type": "bytes32" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "isOperation", - "outputs": [ - { - "internalType": "bool", - "name": "registered", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "isOperationDone", - "outputs": [ - { - "internalType": "bool", - "name": "done", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "isOperationPending", - "outputs": [ - { - "internalType": "bool", - "name": "pending", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "isOperationReady", - "outputs": [ - { - "internalType": "bool", - "name": "ready", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC1155BatchReceived", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC1155Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC721Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "delay", - "type": "uint256" - } - ], - "name": "schedule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "targets", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - }, - { - "internalType": "bytes[]", - "name": "payloads", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "delay", - "type": "uint256" - } - ], - "name": "scheduleBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newDelay", - "type": "uint256" - } - ], - "name": "updateDelay", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "receipt": { - "to": null, - "from": "0x123694886DBf5Ac94DDA07135349534536D14cAf", - "contractAddress": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "transactionIndex": 57, - "gasUsed": "2335681", - "logsBloom": "0x000008040000000008000000000080000a0000000002000000000000000000000000000000000004000000001001000000000000000000000200400090200400000080000000000000100010000000020040800000000000020000002001000000000000020000400000000000000800000000202000000000020000000040000000000001001000400000100000000000000000000000080000000000000004000000000022000000000000000010010100000000000000001000020000000000000000000000004000000080400000000200000000000101000100200020000000000000001000000000000080000000800000080000010000040000002000", - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225", - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "logs": [ - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", - "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5" - ], - "data": "0x", - "logIndex": 109, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", - "0xb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5" - ], - "data": "0x", - "logIndex": 110, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5" - ], - "data": "0x", - "logIndex": 111, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", - "0xfd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5" - ], - "data": "0x", - "logIndex": 112, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5", - "0x00000000000000000000000092f2d8b72a7f6a551be60b9aa4194248e9b4913d", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 113, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1", - "0x0000000000000000000000009f6e831c8f8939dc0c830c6e492e7cef4f9c2f5f", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 114, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xfd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783", - "0x0000000000000000000000009f6e831c8f8939dc0c830c6e492e7cef4f9c2f5f", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 115, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x0000000000000000000000002844a0d6442034d3027a05635f4224d966c54fd7", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 116, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x000000000000000000000000f35dee924f483bc234f09cbfbc8b4488fd06be20", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 117, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x000000000000000000000000739730ccb2a34cc83d3e30645002c52ba4b06167", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 118, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x000000000000000000000000e989805835093e37e6b12dcddf718e0481024573", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 119, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x0000000000000000000000001ba899530a89fab245de9ff6cc23534f4a8a4e58", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 120, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x00000000000000000000000075ed7b219a737134f00255e331a36a706bd2ae2c", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 121, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x000000000000000000000000ce3778528fc73d46685069d455bbcce16a6e22af", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 122, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x00000000000000000000000035b46702c5d1cd36194217fb92f72b563eff851a", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 123, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x000000000000000000000000f791efdf778a3ca9cc193ffbe57da33d1596e854", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 124, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", - "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", - "0x0000000000000000000000009f6e831c8f8939dc0c830c6e492e7cef4f9c2f5f", - "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" - ], - "data": "0x", - "logIndex": 125, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - }, - { - "transactionIndex": 57, - "blockNumber": 21392558, - "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", - "topics": [ - "0x11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5" - ], - "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015180", - "logIndex": 126, - "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" - } - ], - "blockNumber": 21392558, - "cumulativeGasUsed": "6792038", - "status": 1, - "byzantium": true - }, - "args": [ - 86400, - [ - "0x9F6e831c8F8939DC0C830C6e492e7cEf4f9C2F5f" - ], - [ - "0x2844a0d6442034D3027A05635F4224d966C54fD7", - "0xf35dEE924F483Bc234F09cbfbc8B4488fD06be20", - "0x739730cCb2a34cc83D3e30645002C52bA4B06167", - "0xe989805835093e37E6b12dCddF718e0481024573", - "0x1Ba899530A89fAb245De9ff6cc23534F4a8A4e58", - "0x75ed7b219a737134f00255e331a36a706BD2ae2C", - "0xcE3778528fC73D46685069D455bbCcE16A6e22Af", - "0x35B46702C5d1CD36194217Fb92F72B563eFf851A", - "0xf791EfdF778a3Ca9cc193fFbe57Da33d1596E854", - "0x9F6e831c8F8939DC0C830C6e492e7cEf4f9C2F5f" - ] - ], - "numDeployments": 1, - "solcInputHash": "98e272e2fbf178ec895387b6c503f9de", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minDelay\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"proposers\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"executors\",\"type\":\"address[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"CallExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"delay\",\"type\":\"uint256\"}],\"name\":\"CallScheduled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"Cancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldDuration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDuration\",\"type\":\"uint256\"}],\"name\":\"MinDelayChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CANCELLER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"EXECUTOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PROPOSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TIMELOCK_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"cancel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"execute\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"payloads\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"executeBatch\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMinDelay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"hashOperation\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"payloads\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"hashOperationBatch\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"isOperation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"registered\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"isOperationDone\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"done\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"isOperationPending\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"pending\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"isOperationReady\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"ready\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"delay\",\"type\":\"uint256\"}],\"name\":\"schedule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"payloads\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"delay\",\"type\":\"uint256\"}],\"name\":\"scheduleBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newDelay\",\"type\":\"uint256\"}],\"name\":\"updateDelay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"cancel(bytes32)\":{\"details\":\"Cancel an operation. Requirements: - the caller must have the 'canceller' role.\"},\"execute(address,uint256,bytes,bytes32,bytes32)\":{\"details\":\"Execute an (ready) operation containing a single transaction. Emits a {CallExecuted} event. Requirements: - the caller must have the 'executor' role.\"},\"executeBatch(address[],uint256[],bytes[],bytes32,bytes32)\":{\"details\":\"Execute an (ready) operation containing a batch of transactions. Emits one {CallExecuted} event per transaction in the batch. Requirements: - the caller must have the 'executor' role.\"},\"getMinDelay()\":{\"details\":\"Returns the minimum delay for an operation to become valid. This value can be changed by executing an operation that calls `updateDelay`.\"},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"getTimestamp(bytes32)\":{\"details\":\"Returns the timestamp at with an operation becomes ready (0 for unset operations, 1 for done operations).\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"hashOperation(address,uint256,bytes,bytes32,bytes32)\":{\"details\":\"Returns the identifier of an operation containing a single transaction.\"},\"hashOperationBatch(address[],uint256[],bytes[],bytes32,bytes32)\":{\"details\":\"Returns the identifier of an operation containing a batch of transactions.\"},\"isOperation(bytes32)\":{\"details\":\"Returns whether an id correspond to a registered operation. This includes both Pending, Ready and Done operations.\"},\"isOperationDone(bytes32)\":{\"details\":\"Returns whether an operation is done or not.\"},\"isOperationPending(bytes32)\":{\"details\":\"Returns whether an operation is pending or not.\"},\"isOperationReady(bytes32)\":{\"details\":\"Returns whether an operation is ready or not.\"},\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\":{\"details\":\"See {IERC1155Receiver-onERC1155BatchReceived}.\"},\"onERC1155Received(address,address,uint256,uint256,bytes)\":{\"details\":\"See {IERC1155Receiver-onERC1155Received}.\"},\"onERC721Received(address,address,uint256,bytes)\":{\"details\":\"See {IERC721Receiver-onERC721Received}.\"},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"schedule(address,uint256,bytes,bytes32,bytes32,uint256)\":{\"details\":\"Schedule an operation containing a single transaction. Emits a {CallScheduled} event. Requirements: - the caller must have the 'proposer' role.\"},\"scheduleBatch(address[],uint256[],bytes[],bytes32,bytes32,uint256)\":{\"details\":\"Schedule an operation containing a batch of transactions. Emits one {CallScheduled} event per transaction in the batch. Requirements: - the caller must have the 'proposer' role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"updateDelay(uint256)\":{\"details\":\"Changes the minimum timelock duration for future operations. Emits a {MinDelayChange} event. Requirements: - the caller must be the timelock itself. This can only be achieved by scheduling and later executing an operation where the timelock is the target and the data is the ABI-encoded call to this function.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Timelock.sol\":\"Timelock\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"@openzeppelin/contracts/governance/TimelockController.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (governance/TimelockController.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../access/AccessControl.sol\\\";\\nimport \\\"../token/ERC721/IERC721Receiver.sol\\\";\\nimport \\\"../token/ERC1155/IERC1155Receiver.sol\\\";\\nimport \\\"../utils/Address.sol\\\";\\n\\n/**\\n * @dev Contract module which acts as a timelocked controller. When set as the\\n * owner of an `Ownable` smart contract, it enforces a timelock on all\\n * `onlyOwner` maintenance operations. This gives time for users of the\\n * controlled contract to exit before a potentially dangerous maintenance\\n * operation is applied.\\n *\\n * By default, this contract is self administered, meaning administration tasks\\n * have to go through the timelock process. The proposer (resp executor) role\\n * is in charge of proposing (resp executing) operations. A common use case is\\n * to position this {TimelockController} as the owner of a smart contract, with\\n * a multisig or a DAO as the sole proposer.\\n *\\n * _Available since v3.3._\\n */\\ncontract TimelockController is AccessControl, IERC721Receiver, IERC1155Receiver {\\n bytes32 public constant TIMELOCK_ADMIN_ROLE = keccak256(\\\"TIMELOCK_ADMIN_ROLE\\\");\\n bytes32 public constant PROPOSER_ROLE = keccak256(\\\"PROPOSER_ROLE\\\");\\n bytes32 public constant EXECUTOR_ROLE = keccak256(\\\"EXECUTOR_ROLE\\\");\\n bytes32 public constant CANCELLER_ROLE = keccak256(\\\"CANCELLER_ROLE\\\");\\n uint256 internal constant _DONE_TIMESTAMP = uint256(1);\\n\\n mapping(bytes32 => uint256) private _timestamps;\\n uint256 private _minDelay;\\n\\n /**\\n * @dev Emitted when a call is scheduled as part of operation `id`.\\n */\\n event CallScheduled(\\n bytes32 indexed id,\\n uint256 indexed index,\\n address target,\\n uint256 value,\\n bytes data,\\n bytes32 predecessor,\\n uint256 delay\\n );\\n\\n /**\\n * @dev Emitted when a call is performed as part of operation `id`.\\n */\\n event CallExecuted(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data);\\n\\n /**\\n * @dev Emitted when operation `id` is cancelled.\\n */\\n event Cancelled(bytes32 indexed id);\\n\\n /**\\n * @dev Emitted when the minimum delay for future operations is modified.\\n */\\n event MinDelayChange(uint256 oldDuration, uint256 newDuration);\\n\\n /**\\n * @dev Initializes the contract with the following parameters:\\n *\\n * - `minDelay`: initial minimum delay for operations\\n * - `proposers`: accounts to be granted proposer and canceller roles\\n * - `executors`: accounts to be granted executor role\\n * - `admin`: optional account to be granted admin role; disable with zero address\\n *\\n * IMPORTANT: The optional admin can aid with initial configuration of roles after deployment\\n * without being subject to delay, but this role should be subsequently renounced in favor of\\n * administration through timelocked proposals. Previous versions of this contract would assign\\n * this admin to the deployer automatically and should be renounced as well.\\n */\\n constructor(\\n uint256 minDelay,\\n address[] memory proposers,\\n address[] memory executors,\\n address admin\\n ) {\\n _setRoleAdmin(TIMELOCK_ADMIN_ROLE, TIMELOCK_ADMIN_ROLE);\\n _setRoleAdmin(PROPOSER_ROLE, TIMELOCK_ADMIN_ROLE);\\n _setRoleAdmin(EXECUTOR_ROLE, TIMELOCK_ADMIN_ROLE);\\n _setRoleAdmin(CANCELLER_ROLE, TIMELOCK_ADMIN_ROLE);\\n\\n // self administration\\n _setupRole(TIMELOCK_ADMIN_ROLE, address(this));\\n\\n // optional admin\\n if (admin != address(0)) {\\n _setupRole(TIMELOCK_ADMIN_ROLE, admin);\\n }\\n\\n // register proposers and cancellers\\n for (uint256 i = 0; i < proposers.length; ++i) {\\n _setupRole(PROPOSER_ROLE, proposers[i]);\\n _setupRole(CANCELLER_ROLE, proposers[i]);\\n }\\n\\n // register executors\\n for (uint256 i = 0; i < executors.length; ++i) {\\n _setupRole(EXECUTOR_ROLE, executors[i]);\\n }\\n\\n _minDelay = minDelay;\\n emit MinDelayChange(0, minDelay);\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only by a certain role. In\\n * addition to checking the sender's role, `address(0)` 's role is also\\n * considered. Granting a role to `address(0)` is equivalent to enabling\\n * this role for everyone.\\n */\\n modifier onlyRoleOrOpenRole(bytes32 role) {\\n if (!hasRole(role, address(0))) {\\n _checkRole(role, _msgSender());\\n }\\n _;\\n }\\n\\n /**\\n * @dev Contract might receive/hold ETH as part of the maintenance process.\\n */\\n receive() external payable {}\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, AccessControl) returns (bool) {\\n return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns whether an id correspond to a registered operation. This\\n * includes both Pending, Ready and Done operations.\\n */\\n function isOperation(bytes32 id) public view virtual returns (bool registered) {\\n return getTimestamp(id) > 0;\\n }\\n\\n /**\\n * @dev Returns whether an operation is pending or not.\\n */\\n function isOperationPending(bytes32 id) public view virtual returns (bool pending) {\\n return getTimestamp(id) > _DONE_TIMESTAMP;\\n }\\n\\n /**\\n * @dev Returns whether an operation is ready or not.\\n */\\n function isOperationReady(bytes32 id) public view virtual returns (bool ready) {\\n uint256 timestamp = getTimestamp(id);\\n return timestamp > _DONE_TIMESTAMP && timestamp <= block.timestamp;\\n }\\n\\n /**\\n * @dev Returns whether an operation is done or not.\\n */\\n function isOperationDone(bytes32 id) public view virtual returns (bool done) {\\n return getTimestamp(id) == _DONE_TIMESTAMP;\\n }\\n\\n /**\\n * @dev Returns the timestamp at with an operation becomes ready (0 for\\n * unset operations, 1 for done operations).\\n */\\n function getTimestamp(bytes32 id) public view virtual returns (uint256 timestamp) {\\n return _timestamps[id];\\n }\\n\\n /**\\n * @dev Returns the minimum delay for an operation to become valid.\\n *\\n * This value can be changed by executing an operation that calls `updateDelay`.\\n */\\n function getMinDelay() public view virtual returns (uint256 duration) {\\n return _minDelay;\\n }\\n\\n /**\\n * @dev Returns the identifier of an operation containing a single\\n * transaction.\\n */\\n function hashOperation(\\n address target,\\n uint256 value,\\n bytes calldata data,\\n bytes32 predecessor,\\n bytes32 salt\\n ) public pure virtual returns (bytes32 hash) {\\n return keccak256(abi.encode(target, value, data, predecessor, salt));\\n }\\n\\n /**\\n * @dev Returns the identifier of an operation containing a batch of\\n * transactions.\\n */\\n function hashOperationBatch(\\n address[] calldata targets,\\n uint256[] calldata values,\\n bytes[] calldata payloads,\\n bytes32 predecessor,\\n bytes32 salt\\n ) public pure virtual returns (bytes32 hash) {\\n return keccak256(abi.encode(targets, values, payloads, predecessor, salt));\\n }\\n\\n /**\\n * @dev Schedule an operation containing a single transaction.\\n *\\n * Emits a {CallScheduled} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'proposer' role.\\n */\\n function schedule(\\n address target,\\n uint256 value,\\n bytes calldata data,\\n bytes32 predecessor,\\n bytes32 salt,\\n uint256 delay\\n ) public virtual onlyRole(PROPOSER_ROLE) {\\n bytes32 id = hashOperation(target, value, data, predecessor, salt);\\n _schedule(id, delay);\\n emit CallScheduled(id, 0, target, value, data, predecessor, delay);\\n }\\n\\n /**\\n * @dev Schedule an operation containing a batch of transactions.\\n *\\n * Emits one {CallScheduled} event per transaction in the batch.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'proposer' role.\\n */\\n function scheduleBatch(\\n address[] calldata targets,\\n uint256[] calldata values,\\n bytes[] calldata payloads,\\n bytes32 predecessor,\\n bytes32 salt,\\n uint256 delay\\n ) public virtual onlyRole(PROPOSER_ROLE) {\\n require(targets.length == values.length, \\\"TimelockController: length mismatch\\\");\\n require(targets.length == payloads.length, \\\"TimelockController: length mismatch\\\");\\n\\n bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt);\\n _schedule(id, delay);\\n for (uint256 i = 0; i < targets.length; ++i) {\\n emit CallScheduled(id, i, targets[i], values[i], payloads[i], predecessor, delay);\\n }\\n }\\n\\n /**\\n * @dev Schedule an operation that is to becomes valid after a given delay.\\n */\\n function _schedule(bytes32 id, uint256 delay) private {\\n require(!isOperation(id), \\\"TimelockController: operation already scheduled\\\");\\n require(delay >= getMinDelay(), \\\"TimelockController: insufficient delay\\\");\\n _timestamps[id] = block.timestamp + delay;\\n }\\n\\n /**\\n * @dev Cancel an operation.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'canceller' role.\\n */\\n function cancel(bytes32 id) public virtual onlyRole(CANCELLER_ROLE) {\\n require(isOperationPending(id), \\\"TimelockController: operation cannot be cancelled\\\");\\n delete _timestamps[id];\\n\\n emit Cancelled(id);\\n }\\n\\n /**\\n * @dev Execute an (ready) operation containing a single transaction.\\n *\\n * Emits a {CallExecuted} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'executor' role.\\n */\\n // This function can reenter, but it doesn't pose a risk because _afterCall checks that the proposal is pending,\\n // thus any modifications to the operation during reentrancy should be caught.\\n // slither-disable-next-line reentrancy-eth\\n function execute(\\n address target,\\n uint256 value,\\n bytes calldata payload,\\n bytes32 predecessor,\\n bytes32 salt\\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\\n bytes32 id = hashOperation(target, value, payload, predecessor, salt);\\n\\n _beforeCall(id, predecessor);\\n _execute(target, value, payload);\\n emit CallExecuted(id, 0, target, value, payload);\\n _afterCall(id);\\n }\\n\\n /**\\n * @dev Execute an (ready) operation containing a batch of transactions.\\n *\\n * Emits one {CallExecuted} event per transaction in the batch.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'executor' role.\\n */\\n function executeBatch(\\n address[] calldata targets,\\n uint256[] calldata values,\\n bytes[] calldata payloads,\\n bytes32 predecessor,\\n bytes32 salt\\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\\n require(targets.length == values.length, \\\"TimelockController: length mismatch\\\");\\n require(targets.length == payloads.length, \\\"TimelockController: length mismatch\\\");\\n\\n bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt);\\n\\n _beforeCall(id, predecessor);\\n for (uint256 i = 0; i < targets.length; ++i) {\\n address target = targets[i];\\n uint256 value = values[i];\\n bytes calldata payload = payloads[i];\\n _execute(target, value, payload);\\n emit CallExecuted(id, i, target, value, payload);\\n }\\n _afterCall(id);\\n }\\n\\n /**\\n * @dev Execute an operation's call.\\n */\\n function _execute(\\n address target,\\n uint256 value,\\n bytes calldata data\\n ) internal virtual {\\n (bool success, ) = target.call{value: value}(data);\\n require(success, \\\"TimelockController: underlying transaction reverted\\\");\\n }\\n\\n /**\\n * @dev Checks before execution of an operation's calls.\\n */\\n function _beforeCall(bytes32 id, bytes32 predecessor) private view {\\n require(isOperationReady(id), \\\"TimelockController: operation is not ready\\\");\\n require(predecessor == bytes32(0) || isOperationDone(predecessor), \\\"TimelockController: missing dependency\\\");\\n }\\n\\n /**\\n * @dev Checks after execution of an operation's calls.\\n */\\n function _afterCall(bytes32 id) private {\\n require(isOperationReady(id), \\\"TimelockController: operation is not ready\\\");\\n _timestamps[id] = _DONE_TIMESTAMP;\\n }\\n\\n /**\\n * @dev Changes the minimum timelock duration for future operations.\\n *\\n * Emits a {MinDelayChange} event.\\n *\\n * Requirements:\\n *\\n * - the caller must be the timelock itself. This can only be achieved by scheduling and later executing\\n * an operation where the timelock is the target and the data is the ABI-encoded call to this function.\\n */\\n function updateDelay(uint256 newDelay) external virtual {\\n require(msg.sender == address(this), \\\"TimelockController: caller must be timelock\\\");\\n emit MinDelayChange(_minDelay, newDelay);\\n _minDelay = newDelay;\\n }\\n\\n /**\\n * @dev See {IERC721Receiver-onERC721Received}.\\n */\\n function onERC721Received(\\n address,\\n address,\\n uint256,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC721Received.selector;\\n }\\n\\n /**\\n * @dev See {IERC1155Receiver-onERC1155Received}.\\n */\\n function onERC1155Received(\\n address,\\n address,\\n uint256,\\n uint256,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC1155Received.selector;\\n }\\n\\n /**\\n * @dev See {IERC1155Receiver-onERC1155BatchReceived}.\\n */\\n function onERC1155BatchReceived(\\n address,\\n address,\\n uint256[] memory,\\n uint256[] memory,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC1155BatchReceived.selector;\\n }\\n}\\n\",\"keccak256\":\"0xf3ffa69c5f7c9ebb35775be2f3b27389550a102f0e1cdfff99a54663c7b162ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev _Available since v3.1._\\n */\\ninterface IERC1155Receiver is IERC165 {\\n /**\\n * @dev Handles the receipt of a single ERC1155 token type. This function is\\n * called at the end of a `safeTransferFrom` after the balance has been updated.\\n *\\n * NOTE: To accept the transfer, this must return\\n * `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))`\\n * (i.e. 0xf23a6e61, or its own function selector).\\n *\\n * @param operator The address which initiated the transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param id The ID of the token being transferred\\n * @param value The amount of tokens being transferred\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155Received(\\n address operator,\\n address from,\\n uint256 id,\\n uint256 value,\\n bytes calldata data\\n ) external returns (bytes4);\\n\\n /**\\n * @dev Handles the receipt of a multiple ERC1155 token types. This function\\n * is called at the end of a `safeBatchTransferFrom` after the balances have\\n * been updated.\\n *\\n * NOTE: To accept the transfer(s), this must return\\n * `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))`\\n * (i.e. 0xbc197c81, or its own function selector).\\n *\\n * @param operator The address which initiated the batch transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param ids An array containing ids of each token being transferred (order and length must match values array)\\n * @param values An array containing amounts of each token being transferred (order and length must match ids array)\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155BatchReceived(\\n address operator,\\n address from,\\n uint256[] calldata ids,\\n uint256[] calldata values,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xeb373f1fdc7b755c6a750123a9b9e3a8a02c1470042fd6505d875000a80bde0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @title ERC721 token receiver interface\\n * @dev Interface for any contract that wants to support safeTransfers\\n * from ERC721 asset contracts.\\n */\\ninterface IERC721Receiver {\\n /**\\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\\n * by `operator` from `from`, this function is called.\\n *\\n * It must return its Solidity selector to confirm the token transfer.\\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\\n *\\n * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\\n */\\n function onERC721Received(\\n address operator,\\n address from,\\n uint256 tokenId,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xa82b58eca1ee256be466e536706850163d2ec7821945abd6b4778cfb3bee37da\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"},\"contracts/Timelock.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts/governance/TimelockController.sol\\\";\\n\\ncontract Timelock is TimelockController {\\n constructor(\\n uint256 minDelay,\\n address[] memory proposers,\\n address[] memory executors\\n ) TimelockController(minDelay, proposers, executors, address(0)) {}\\n}\\n\",\"keccak256\":\"0x5cf54c0bfd03a1387cbc20a560d668054fcd74821be5096a71705403dcd41cad\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040516200263038038062002630833981016040819052620000349162000410565b828282600062000054600080516020620025b08339815191528062000235565b6200007e600080516020620025d0833981519152600080516020620025b083398151915262000235565b620000a8600080516020620025f0833981519152600080516020620025b083398151915262000235565b620000d260008051602062002610833981519152600080516020620025b083398151915262000235565b620000ed600080516020620025b08339815191523062000280565b6001600160a01b03811615620001185762000118600080516020620025b08339815191528262000280565b60005b83518110156200019e5762000162600080516020620025d08339815191528583815181106200014e576200014e62000484565b60200260200101516200028060201b60201c565b6200018b600080516020620026108339815191528583815181106200014e576200014e62000484565b62000196816200049a565b90506200011b565b5060005b8251811015620001e857620001d5600080516020620025f08339815191528483815181106200014e576200014e62000484565b620001e0816200049a565b9050620001a2565b5060028490556040805160008152602081018690527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a150505050505050620004c2565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6200028c828262000290565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200028c576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002ec3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200035e57600080fd5b919050565b600082601f8301126200037557600080fd5b815160206001600160401b038083111562000394576200039462000330565b8260051b604051601f19603f83011681018181108482111715620003bc57620003bc62000330565b604052938452858101830193838101925087851115620003db57600080fd5b83870191505b848210156200040557620003f58262000346565b83529183019190830190620003e1565b979650505050505050565b6000806000606084860312156200042657600080fd5b835160208501519093506001600160401b03808211156200044657600080fd5b620004548783880162000363565b935060408601519150808211156200046b57600080fd5b506200047a8682870162000363565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b600060018201620004bb57634e487b7160e01b600052601160045260246000fd5b5060010190565b6120de80620004d26000396000f3fe6080604052600436106101bb5760003560e01c80638065657f116100ec578063bc197c811161008a578063d547741f11610064578063d547741f146105d8578063e38335e5146105f8578063f23a6e611461060b578063f27a0c921461065057600080fd5b8063bc197c8114610546578063c4d252f51461058b578063d45c4435146105ab57600080fd5b806391d14854116100c657806391d1485414610499578063a217fddf146104dd578063b08e51c0146104f2578063b1c5f4271461052657600080fd5b80638065657f146104255780638f2a0bb0146104455780638f61f4f51461046557600080fd5b8063248a9ca31161015957806331d507501161013357806331d50750146103a557806336568abe146103c5578063584b153e146103e557806364d623531461040557600080fd5b8063248a9ca3146103245780632ab0f529146103545780632f2ff15d1461038557600080fd5b80630d3cf6fc116101955780630d3cf6fc14610260578063134008d31461029457806313bc9f20146102a7578063150b7a02146102c757600080fd5b806301d5062a146101c757806301ffc9a7146101e957806307bd02651461021e57600080fd5b366101c257005b600080fd5b3480156101d357600080fd5b506101e76101e2366004611754565b610665565b005b3480156101f557600080fd5b506102096102043660046117c9565b6106fa565b60405190151581526020015b60405180910390f35b34801561022a57600080fd5b506102527fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b604051908152602001610215565b34801561026c57600080fd5b506102527f5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca581565b6101e76102a23660046117f3565b61073e565b3480156102b357600080fd5b506102096102c236600461185f565b610836565b3480156102d357600080fd5b5061030b6102e236600461192f565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b03199091168152602001610215565b34801561033057600080fd5b5061025261033f36600461185f565b60009081526020819052604090206001015490565b34801561036057600080fd5b5061020961036f36600461185f565b6000908152600160208190526040909120541490565b34801561039157600080fd5b506101e76103a0366004611997565b61085c565b3480156103b157600080fd5b506102096103c036600461185f565b610886565b3480156103d157600080fd5b506101e76103e0366004611997565b61089f565b3480156103f157600080fd5b5061020961040036600461185f565b610930565b34801561041157600080fd5b506101e761042036600461185f565b610946565b34801561043157600080fd5b506102526104403660046117f3565b6109fc565b34801561045157600080fd5b506101e7610460366004611a08565b610a3b565b34801561047157600080fd5b506102527fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc181565b3480156104a557600080fd5b506102096104b4366004611997565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156104e957600080fd5b50610252600081565b3480156104fe57600080fd5b506102527ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78381565b34801561053257600080fd5b50610252610541366004611aba565b610c05565b34801561055257600080fd5b5061030b610561366004611be3565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b34801561059757600080fd5b506101e76105a636600461185f565b610c4a565b3480156105b757600080fd5b506102526105c636600461185f565b60009081526001602052604090205490565b3480156105e457600080fd5b506101e76105f3366004611997565b610d2b565b6101e7610606366004611aba565b610d50565b34801561061757600080fd5b5061030b610626366004611c8d565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561065c57600080fd5b50600254610252565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc161068f81610f95565b600061069f8989898989896109fc565b90506106ab8184610fa2565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b8b8b8b8a6040516106e796959493929190611d1b565b60405180910390a3505050505050505050565b60006001600160e01b031982167f4e2312e00000000000000000000000000000000000000000000000000000000014806107385750610738826110b6565b92915050565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff166107bb576107bb813361111d565b60006107cb8888888888886109fc565b90506107d78185611190565b6107e388888888611286565b6000817fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b588a8a8a8a60405161081b9493929190611d59565b60405180910390a361082c81611363565b5050505050505050565b6000818152600160205260408120546001811180156108555750428111155b9392505050565b60008281526020819052604090206001015461087781610f95565b61088183836113df565b505050565b60008181526001602052604081205481905b1192915050565b6001600160a01b03811633146109225760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61092c828261147d565b5050565b6000818152600160208190526040822054610898565b3330146109bb5760405162461bcd60e51b815260206004820152602b60248201527f54696d656c6f636b436f6e74726f6c6c65723a2063616c6c6572206d7573742060448201527f62652074696d656c6f636b0000000000000000000000000000000000000000006064820152608401610919565b60025460408051918252602082018390527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a1600255565b6000868686868686604051602001610a1996959493929190611d1b565b6040516020818303038152906040528051906020012090509695505050505050565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1610a6581610f95565b888714610ac05760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b888514610b1b5760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b6000610b2d8b8b8b8b8b8b8b8b610c05565b9050610b398184610fa2565b60005b8a811015610bf75780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8e8e85818110610b7957610b79611d8c565b9050602002016020810190610b8e9190611da2565b8d8d86818110610ba057610ba0611d8c565b905060200201358c8c87818110610bb957610bb9611d8c565b9050602002810190610bcb9190611dbd565b8c8b604051610bdf96959493929190611d1b565b60405180910390a3610bf081611e1a565b9050610b3c565b505050505050505050505050565b60008888888888888888604051602001610c26989796959493929190611ec5565b60405160208183030381529060405280519060200120905098975050505050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783610c7481610f95565b610c7d82610930565b610cef5760405162461bcd60e51b815260206004820152603160248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20636160448201527f6e6e6f742062652063616e63656c6c65640000000000000000000000000000006064820152608401610919565b6000828152600160205260408082208290555183917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a25050565b600082815260208190526040902060010154610d4681610f95565b610881838361147d565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff16610dcd57610dcd813361111d565b878614610e285760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b878414610e835760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b6000610e958a8a8a8a8a8a8a8a610c05565b9050610ea18185611190565b60005b89811015610f7f5760008b8b83818110610ec057610ec0611d8c565b9050602002016020810190610ed59190611da2565b905060008a8a84818110610eeb57610eeb611d8c565b9050602002013590503660008a8a86818110610f0957610f09611d8c565b9050602002810190610f1b9190611dbd565b91509150610f2b84848484611286565b84867fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5886868686604051610f629493929190611d59565b60405180910390a35050505080610f7890611e1a565b9050610ea4565b50610f8981611363565b50505050505050505050565b610f9f813361111d565b50565b610fab82610886565b1561101e5760405162461bcd60e51b815260206004820152602f60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20616c60448201527f7265616479207363686564756c656400000000000000000000000000000000006064820152608401610919565b6002548110156110965760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a20696e73756666696369656e7460448201527f2064656c617900000000000000000000000000000000000000000000000000006064820152608401610919565b6110a08142611f7f565b6000928352600160205260409092209190915550565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061073857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610738565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661092c5761114e816114fc565b61115983602061150e565b60405160200161116a929190611fb6565b60408051601f198184030181529082905262461bcd60e51b825261091991600401612037565b61119982610836565b6111f85760405162461bcd60e51b815260206004820152602a60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604482015269206e6f7420726561647960b01b6064820152608401610919565b8015806112145750600081815260016020819052604090912054145b61092c5760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a206d697373696e67206465706560448201527f6e64656e637900000000000000000000000000000000000000000000000000006064820152608401610919565b6000846001600160a01b03168484846040516112a392919061206a565b60006040518083038185875af1925050503d80600081146112e0576040519150601f19603f3d011682016040523d82523d6000602084013e6112e5565b606091505b505090508061135c5760405162461bcd60e51b815260206004820152603360248201527f54696d656c6f636b436f6e74726f6c6c65723a20756e6465726c79696e67207460448201527f72616e73616374696f6e207265766572746564000000000000000000000000006064820152608401610919565b5050505050565b61136c81610836565b6113cb5760405162461bcd60e51b815260206004820152602a60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604482015269206e6f7420726561647960b01b6064820152608401610919565b600090815260016020819052604090912055565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661092c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556114393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff161561092c576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606107386001600160a01b03831660145b6060600061151d83600261207a565b611528906002611f7f565b67ffffffffffffffff81111561154057611540611878565b6040519080825280601f01601f19166020018201604052801561156a576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106115a1576115a1611d8c565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106115ec576115ec611d8c565b60200101906001600160f81b031916908160001a905350600061161084600261207a565b61161b906001611f7f565b90505b60018111156116a0577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061165c5761165c611d8c565b1a60f81b82828151811061167257611672611d8c565b60200101906001600160f81b031916908160001a90535060049490941c9361169981612091565b905061161e565b5083156108555760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610919565b80356001600160a01b038116811461170657600080fd5b919050565b60008083601f84011261171d57600080fd5b50813567ffffffffffffffff81111561173557600080fd5b60208301915083602082850101111561174d57600080fd5b9250929050565b600080600080600080600060c0888a03121561176f57600080fd5b611778886116ef565b965060208801359550604088013567ffffffffffffffff81111561179b57600080fd5b6117a78a828b0161170b565b989b979a50986060810135976080820135975060a09091013595509350505050565b6000602082840312156117db57600080fd5b81356001600160e01b03198116811461085557600080fd5b60008060008060008060a0878903121561180c57600080fd5b611815876116ef565b955060208701359450604087013567ffffffffffffffff81111561183857600080fd5b61184489828a0161170b565b979a9699509760608101359660809091013595509350505050565b60006020828403121561187157600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156118b7576118b7611878565b604052919050565b600082601f8301126118d057600080fd5b813567ffffffffffffffff8111156118ea576118ea611878565b6118fd601f8201601f191660200161188e565b81815284602083860101111561191257600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561194557600080fd5b61194e856116ef565b935061195c602086016116ef565b925060408501359150606085013567ffffffffffffffff81111561197f57600080fd5b61198b878288016118bf565b91505092959194509250565b600080604083850312156119aa57600080fd5b823591506119ba602084016116ef565b90509250929050565b60008083601f8401126119d557600080fd5b50813567ffffffffffffffff8111156119ed57600080fd5b6020830191508360208260051b850101111561174d57600080fd5b600080600080600080600080600060c08a8c031215611a2657600080fd5b893567ffffffffffffffff80821115611a3e57600080fd5b611a4a8d838e016119c3565b909b50995060208c0135915080821115611a6357600080fd5b611a6f8d838e016119c3565b909950975060408c0135915080821115611a8857600080fd5b50611a958c828d016119c3565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060008060008060008060a0898b031215611ad657600080fd5b883567ffffffffffffffff80821115611aee57600080fd5b611afa8c838d016119c3565b909a50985060208b0135915080821115611b1357600080fd5b611b1f8c838d016119c3565b909850965060408b0135915080821115611b3857600080fd5b50611b458b828c016119c3565b999c989b509699959896976060870135966080013595509350505050565b600082601f830112611b7457600080fd5b8135602067ffffffffffffffff821115611b9057611b90611878565b8160051b611b9f82820161188e565b9283528481018201928281019087851115611bb957600080fd5b83870192505b84831015611bd857823582529183019190830190611bbf565b979650505050505050565b600080600080600060a08688031215611bfb57600080fd5b611c04866116ef565b9450611c12602087016116ef565b9350604086013567ffffffffffffffff80821115611c2f57600080fd5b611c3b89838a01611b63565b94506060880135915080821115611c5157600080fd5b611c5d89838a01611b63565b93506080880135915080821115611c7357600080fd5b50611c80888289016118bf565b9150509295509295909350565b600080600080600060a08688031215611ca557600080fd5b611cae866116ef565b9450611cbc602087016116ef565b93506040860135925060608601359150608086013567ffffffffffffffff811115611ce657600080fd5b611c80888289016118bf565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038716815285602082015260a060408201526000611d4460a083018688611cf2565b60608301949094525060800152949350505050565b6001600160a01b0385168152836020820152606060408201526000611d82606083018486611cf2565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611db457600080fd5b610855826116ef565b6000808335601e19843603018112611dd457600080fd5b83018035915067ffffffffffffffff821115611def57600080fd5b60200191503681900382131561174d57600080fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2c57611e2c611e04565b5060010190565b81835260006020808501808196508560051b810191508460005b87811015611eb85782840389528135601e19883603018112611e6e57600080fd5b8701858101903567ffffffffffffffff811115611e8a57600080fd5b803603821315611e9957600080fd5b611ea4868284611cf2565b9a87019a9550505090840190600101611e4d565b5091979650505050505050565b60a0808252810188905260008960c08301825b8b811015611f06576001600160a01b03611ef1846116ef565b16825260209283019290910190600101611ed8565b5083810360208501528881527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff891115611f3f57600080fd5b8860051b9150818a60208301370182810360209081016040850152611f679082018789611e33565b60608401959095525050608001529695505050505050565b8082018082111561073857610738611e04565b60005b83811015611fad578181015183820152602001611f95565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611fee816017850160208801611f92565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161202b816028840160208801611f92565b01602801949350505050565b6020815260008251806020840152612056816040850160208701611f92565b601f01601f19169190910160400192915050565b8183823760009101908152919050565b808202811582820484141761073857610738611e04565b6000816120a0576120a0611e04565b50600019019056fea26469706673582212204b43b5f3f37bab4243e2d543ff403435038a7fafbc4b2837a680fc62cde4c33d64736f6c634300081100335f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5b09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1d8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63fd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783", - "deployedBytecode": "0x6080604052600436106101bb5760003560e01c80638065657f116100ec578063bc197c811161008a578063d547741f11610064578063d547741f146105d8578063e38335e5146105f8578063f23a6e611461060b578063f27a0c921461065057600080fd5b8063bc197c8114610546578063c4d252f51461058b578063d45c4435146105ab57600080fd5b806391d14854116100c657806391d1485414610499578063a217fddf146104dd578063b08e51c0146104f2578063b1c5f4271461052657600080fd5b80638065657f146104255780638f2a0bb0146104455780638f61f4f51461046557600080fd5b8063248a9ca31161015957806331d507501161013357806331d50750146103a557806336568abe146103c5578063584b153e146103e557806364d623531461040557600080fd5b8063248a9ca3146103245780632ab0f529146103545780632f2ff15d1461038557600080fd5b80630d3cf6fc116101955780630d3cf6fc14610260578063134008d31461029457806313bc9f20146102a7578063150b7a02146102c757600080fd5b806301d5062a146101c757806301ffc9a7146101e957806307bd02651461021e57600080fd5b366101c257005b600080fd5b3480156101d357600080fd5b506101e76101e2366004611754565b610665565b005b3480156101f557600080fd5b506102096102043660046117c9565b6106fa565b60405190151581526020015b60405180910390f35b34801561022a57600080fd5b506102527fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b604051908152602001610215565b34801561026c57600080fd5b506102527f5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca581565b6101e76102a23660046117f3565b61073e565b3480156102b357600080fd5b506102096102c236600461185f565b610836565b3480156102d357600080fd5b5061030b6102e236600461192f565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b03199091168152602001610215565b34801561033057600080fd5b5061025261033f36600461185f565b60009081526020819052604090206001015490565b34801561036057600080fd5b5061020961036f36600461185f565b6000908152600160208190526040909120541490565b34801561039157600080fd5b506101e76103a0366004611997565b61085c565b3480156103b157600080fd5b506102096103c036600461185f565b610886565b3480156103d157600080fd5b506101e76103e0366004611997565b61089f565b3480156103f157600080fd5b5061020961040036600461185f565b610930565b34801561041157600080fd5b506101e761042036600461185f565b610946565b34801561043157600080fd5b506102526104403660046117f3565b6109fc565b34801561045157600080fd5b506101e7610460366004611a08565b610a3b565b34801561047157600080fd5b506102527fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc181565b3480156104a557600080fd5b506102096104b4366004611997565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156104e957600080fd5b50610252600081565b3480156104fe57600080fd5b506102527ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78381565b34801561053257600080fd5b50610252610541366004611aba565b610c05565b34801561055257600080fd5b5061030b610561366004611be3565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b34801561059757600080fd5b506101e76105a636600461185f565b610c4a565b3480156105b757600080fd5b506102526105c636600461185f565b60009081526001602052604090205490565b3480156105e457600080fd5b506101e76105f3366004611997565b610d2b565b6101e7610606366004611aba565b610d50565b34801561061757600080fd5b5061030b610626366004611c8d565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561065c57600080fd5b50600254610252565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc161068f81610f95565b600061069f8989898989896109fc565b90506106ab8184610fa2565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b8b8b8b8a6040516106e796959493929190611d1b565b60405180910390a3505050505050505050565b60006001600160e01b031982167f4e2312e00000000000000000000000000000000000000000000000000000000014806107385750610738826110b6565b92915050565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff166107bb576107bb813361111d565b60006107cb8888888888886109fc565b90506107d78185611190565b6107e388888888611286565b6000817fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b588a8a8a8a60405161081b9493929190611d59565b60405180910390a361082c81611363565b5050505050505050565b6000818152600160205260408120546001811180156108555750428111155b9392505050565b60008281526020819052604090206001015461087781610f95565b61088183836113df565b505050565b60008181526001602052604081205481905b1192915050565b6001600160a01b03811633146109225760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61092c828261147d565b5050565b6000818152600160208190526040822054610898565b3330146109bb5760405162461bcd60e51b815260206004820152602b60248201527f54696d656c6f636b436f6e74726f6c6c65723a2063616c6c6572206d7573742060448201527f62652074696d656c6f636b0000000000000000000000000000000000000000006064820152608401610919565b60025460408051918252602082018390527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a1600255565b6000868686868686604051602001610a1996959493929190611d1b565b6040516020818303038152906040528051906020012090509695505050505050565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1610a6581610f95565b888714610ac05760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b888514610b1b5760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b6000610b2d8b8b8b8b8b8b8b8b610c05565b9050610b398184610fa2565b60005b8a811015610bf75780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8e8e85818110610b7957610b79611d8c565b9050602002016020810190610b8e9190611da2565b8d8d86818110610ba057610ba0611d8c565b905060200201358c8c87818110610bb957610bb9611d8c565b9050602002810190610bcb9190611dbd565b8c8b604051610bdf96959493929190611d1b565b60405180910390a3610bf081611e1a565b9050610b3c565b505050505050505050505050565b60008888888888888888604051602001610c26989796959493929190611ec5565b60405160208183030381529060405280519060200120905098975050505050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783610c7481610f95565b610c7d82610930565b610cef5760405162461bcd60e51b815260206004820152603160248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20636160448201527f6e6e6f742062652063616e63656c6c65640000000000000000000000000000006064820152608401610919565b6000828152600160205260408082208290555183917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a25050565b600082815260208190526040902060010154610d4681610f95565b610881838361147d565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff16610dcd57610dcd813361111d565b878614610e285760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b878414610e835760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b6000610e958a8a8a8a8a8a8a8a610c05565b9050610ea18185611190565b60005b89811015610f7f5760008b8b83818110610ec057610ec0611d8c565b9050602002016020810190610ed59190611da2565b905060008a8a84818110610eeb57610eeb611d8c565b9050602002013590503660008a8a86818110610f0957610f09611d8c565b9050602002810190610f1b9190611dbd565b91509150610f2b84848484611286565b84867fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5886868686604051610f629493929190611d59565b60405180910390a35050505080610f7890611e1a565b9050610ea4565b50610f8981611363565b50505050505050505050565b610f9f813361111d565b50565b610fab82610886565b1561101e5760405162461bcd60e51b815260206004820152602f60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20616c60448201527f7265616479207363686564756c656400000000000000000000000000000000006064820152608401610919565b6002548110156110965760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a20696e73756666696369656e7460448201527f2064656c617900000000000000000000000000000000000000000000000000006064820152608401610919565b6110a08142611f7f565b6000928352600160205260409092209190915550565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061073857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610738565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661092c5761114e816114fc565b61115983602061150e565b60405160200161116a929190611fb6565b60408051601f198184030181529082905262461bcd60e51b825261091991600401612037565b61119982610836565b6111f85760405162461bcd60e51b815260206004820152602a60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604482015269206e6f7420726561647960b01b6064820152608401610919565b8015806112145750600081815260016020819052604090912054145b61092c5760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a206d697373696e67206465706560448201527f6e64656e637900000000000000000000000000000000000000000000000000006064820152608401610919565b6000846001600160a01b03168484846040516112a392919061206a565b60006040518083038185875af1925050503d80600081146112e0576040519150601f19603f3d011682016040523d82523d6000602084013e6112e5565b606091505b505090508061135c5760405162461bcd60e51b815260206004820152603360248201527f54696d656c6f636b436f6e74726f6c6c65723a20756e6465726c79696e67207460448201527f72616e73616374696f6e207265766572746564000000000000000000000000006064820152608401610919565b5050505050565b61136c81610836565b6113cb5760405162461bcd60e51b815260206004820152602a60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604482015269206e6f7420726561647960b01b6064820152608401610919565b600090815260016020819052604090912055565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661092c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556114393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff161561092c576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606107386001600160a01b03831660145b6060600061151d83600261207a565b611528906002611f7f565b67ffffffffffffffff81111561154057611540611878565b6040519080825280601f01601f19166020018201604052801561156a576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106115a1576115a1611d8c565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106115ec576115ec611d8c565b60200101906001600160f81b031916908160001a905350600061161084600261207a565b61161b906001611f7f565b90505b60018111156116a0577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061165c5761165c611d8c565b1a60f81b82828151811061167257611672611d8c565b60200101906001600160f81b031916908160001a90535060049490941c9361169981612091565b905061161e565b5083156108555760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610919565b80356001600160a01b038116811461170657600080fd5b919050565b60008083601f84011261171d57600080fd5b50813567ffffffffffffffff81111561173557600080fd5b60208301915083602082850101111561174d57600080fd5b9250929050565b600080600080600080600060c0888a03121561176f57600080fd5b611778886116ef565b965060208801359550604088013567ffffffffffffffff81111561179b57600080fd5b6117a78a828b0161170b565b989b979a50986060810135976080820135975060a09091013595509350505050565b6000602082840312156117db57600080fd5b81356001600160e01b03198116811461085557600080fd5b60008060008060008060a0878903121561180c57600080fd5b611815876116ef565b955060208701359450604087013567ffffffffffffffff81111561183857600080fd5b61184489828a0161170b565b979a9699509760608101359660809091013595509350505050565b60006020828403121561187157600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156118b7576118b7611878565b604052919050565b600082601f8301126118d057600080fd5b813567ffffffffffffffff8111156118ea576118ea611878565b6118fd601f8201601f191660200161188e565b81815284602083860101111561191257600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561194557600080fd5b61194e856116ef565b935061195c602086016116ef565b925060408501359150606085013567ffffffffffffffff81111561197f57600080fd5b61198b878288016118bf565b91505092959194509250565b600080604083850312156119aa57600080fd5b823591506119ba602084016116ef565b90509250929050565b60008083601f8401126119d557600080fd5b50813567ffffffffffffffff8111156119ed57600080fd5b6020830191508360208260051b850101111561174d57600080fd5b600080600080600080600080600060c08a8c031215611a2657600080fd5b893567ffffffffffffffff80821115611a3e57600080fd5b611a4a8d838e016119c3565b909b50995060208c0135915080821115611a6357600080fd5b611a6f8d838e016119c3565b909950975060408c0135915080821115611a8857600080fd5b50611a958c828d016119c3565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060008060008060008060a0898b031215611ad657600080fd5b883567ffffffffffffffff80821115611aee57600080fd5b611afa8c838d016119c3565b909a50985060208b0135915080821115611b1357600080fd5b611b1f8c838d016119c3565b909850965060408b0135915080821115611b3857600080fd5b50611b458b828c016119c3565b999c989b509699959896976060870135966080013595509350505050565b600082601f830112611b7457600080fd5b8135602067ffffffffffffffff821115611b9057611b90611878565b8160051b611b9f82820161188e565b9283528481018201928281019087851115611bb957600080fd5b83870192505b84831015611bd857823582529183019190830190611bbf565b979650505050505050565b600080600080600060a08688031215611bfb57600080fd5b611c04866116ef565b9450611c12602087016116ef565b9350604086013567ffffffffffffffff80821115611c2f57600080fd5b611c3b89838a01611b63565b94506060880135915080821115611c5157600080fd5b611c5d89838a01611b63565b93506080880135915080821115611c7357600080fd5b50611c80888289016118bf565b9150509295509295909350565b600080600080600060a08688031215611ca557600080fd5b611cae866116ef565b9450611cbc602087016116ef565b93506040860135925060608601359150608086013567ffffffffffffffff811115611ce657600080fd5b611c80888289016118bf565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038716815285602082015260a060408201526000611d4460a083018688611cf2565b60608301949094525060800152949350505050565b6001600160a01b0385168152836020820152606060408201526000611d82606083018486611cf2565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611db457600080fd5b610855826116ef565b6000808335601e19843603018112611dd457600080fd5b83018035915067ffffffffffffffff821115611def57600080fd5b60200191503681900382131561174d57600080fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2c57611e2c611e04565b5060010190565b81835260006020808501808196508560051b810191508460005b87811015611eb85782840389528135601e19883603018112611e6e57600080fd5b8701858101903567ffffffffffffffff811115611e8a57600080fd5b803603821315611e9957600080fd5b611ea4868284611cf2565b9a87019a9550505090840190600101611e4d565b5091979650505050505050565b60a0808252810188905260008960c08301825b8b811015611f06576001600160a01b03611ef1846116ef565b16825260209283019290910190600101611ed8565b5083810360208501528881527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff891115611f3f57600080fd5b8860051b9150818a60208301370182810360209081016040850152611f679082018789611e33565b60608401959095525050608001529695505050505050565b8082018082111561073857610738611e04565b60005b83811015611fad578181015183820152602001611f95565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611fee816017850160208801611f92565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161202b816028840160208801611f92565b01602801949350505050565b6020815260008251806020840152612056816040850160208701611f92565b601f01601f19169190910160400192915050565b8183823760009101908152919050565b808202811582820484141761073857610738611e04565b6000816120a0576120a0611e04565b50600019019056fea26469706673582212204b43b5f3f37bab4243e2d543ff403435038a7fafbc4b2837a680fc62cde4c33d64736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "cancel(bytes32)": { - "details": "Cancel an operation. Requirements: - the caller must have the 'canceller' role." - }, - "execute(address,uint256,bytes,bytes32,bytes32)": { - "details": "Execute an (ready) operation containing a single transaction. Emits a {CallExecuted} event. Requirements: - the caller must have the 'executor' role." - }, - "executeBatch(address[],uint256[],bytes[],bytes32,bytes32)": { - "details": "Execute an (ready) operation containing a batch of transactions. Emits one {CallExecuted} event per transaction in the batch. Requirements: - the caller must have the 'executor' role." - }, - "getMinDelay()": { - "details": "Returns the minimum delay for an operation to become valid. This value can be changed by executing an operation that calls `updateDelay`." - }, - "getRoleAdmin(bytes32)": { - "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." - }, - "getTimestamp(bytes32)": { - "details": "Returns the timestamp at with an operation becomes ready (0 for unset operations, 1 for done operations)." - }, - "grantRole(bytes32,address)": { - "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." - }, - "hasRole(bytes32,address)": { - "details": "Returns `true` if `account` has been granted `role`." - }, - "hashOperation(address,uint256,bytes,bytes32,bytes32)": { - "details": "Returns the identifier of an operation containing a single transaction." - }, - "hashOperationBatch(address[],uint256[],bytes[],bytes32,bytes32)": { - "details": "Returns the identifier of an operation containing a batch of transactions." - }, - "isOperation(bytes32)": { - "details": "Returns whether an id correspond to a registered operation. This includes both Pending, Ready and Done operations." - }, - "isOperationDone(bytes32)": { - "details": "Returns whether an operation is done or not." - }, - "isOperationPending(bytes32)": { - "details": "Returns whether an operation is pending or not." - }, - "isOperationReady(bytes32)": { - "details": "Returns whether an operation is ready or not." - }, - "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": { - "details": "See {IERC1155Receiver-onERC1155BatchReceived}." - }, - "onERC1155Received(address,address,uint256,uint256,bytes)": { - "details": "See {IERC1155Receiver-onERC1155Received}." - }, - "onERC721Received(address,address,uint256,bytes)": { - "details": "See {IERC721Receiver-onERC721Received}." - }, - "renounceRole(bytes32,address)": { - "details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event." - }, - "revokeRole(bytes32,address)": { - "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." - }, - "schedule(address,uint256,bytes,bytes32,bytes32,uint256)": { - "details": "Schedule an operation containing a single transaction. Emits a {CallScheduled} event. Requirements: - the caller must have the 'proposer' role." - }, - "scheduleBatch(address[],uint256[],bytes[],bytes32,bytes32,uint256)": { - "details": "Schedule an operation containing a batch of transactions. Emits one {CallScheduled} event per transaction in the batch. Requirements: - the caller must have the 'proposer' role." - }, - "supportsInterface(bytes4)": { - "details": "See {IERC165-supportsInterface}." - }, - "updateDelay(uint256)": { - "details": "Changes the minimum timelock duration for future operations. Emits a {MinDelayChange} event. Requirements: - the caller must be the timelock itself. This can only be achieved by scheduling and later executing an operation where the timelock is the target and the data is the ABI-encoded call to this function." - } - }, - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": {}, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 24, - "contract": "contracts/Timelock.sol:Timelock", - "label": "_roles", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)19_storage)" - }, - { - "astId": 431, - "contract": "contracts/Timelock.sol:Timelock", - "label": "_timestamps", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_uint256)" - }, - { - "astId": 433, - "contract": "contracts/Timelock.sol:Timelock", - "label": "_minDelay", - "offset": 0, - "slot": "2", - "type": "t_uint256" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_bytes32,t_struct(RoleData)19_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct AccessControl.RoleData)", - "numberOfBytes": "32", - "value": "t_struct(RoleData)19_storage" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_struct(RoleData)19_storage": { - "encoding": "inplace", - "label": "struct AccessControl.RoleData", - "members": [ - { - "astId": 16, - "contract": "contracts/Timelock.sol:Timelock", - "label": "members", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_address,t_bool)" - }, - { - "astId": 18, - "contract": "contracts/Timelock.sol:Timelock", - "label": "adminRole", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} \ No newline at end of file diff --git a/solidity/deployments/mainnet/solcInputs/98e272e2fbf178ec895387b6c503f9de.json b/solidity/deployments/mainnet/solcInputs/98e272e2fbf178ec895387b6c503f9de.json deleted file mode 100644 index f3853b3d4..000000000 --- a/solidity/deployments/mainnet/solcInputs/98e272e2fbf178ec895387b6c503f9de.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "language": "Solidity", - "sources": { - "@openzeppelin/contracts/access/AccessControl.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/Strings.sol\";\nimport \"../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```\n * function foo() public {\n * require(hasRole(MY_ROLE, msg.sender));\n * ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it.\n */\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\n struct RoleData {\n mapping(address => bool) members;\n bytes32 adminRole;\n }\n\n mapping(bytes32 => RoleData) private _roles;\n\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n /**\n * @dev Modifier that checks that an account has a specific role. Reverts\n * with a standardized message including the required role.\n *\n * The format of the revert reason is given by the following regular expression:\n *\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n *\n * _Available since v4.1._\n */\n modifier onlyRole(bytes32 role) {\n _checkRole(role);\n _;\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Returns `true` if `account` has been granted `role`.\n */\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\n return _roles[role].members[account];\n }\n\n /**\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\n * Overriding this function changes the behavior of the {onlyRole} modifier.\n *\n * Format of the revert message is described in {_checkRole}.\n *\n * _Available since v4.6._\n */\n function _checkRole(bytes32 role) internal view virtual {\n _checkRole(role, _msgSender());\n }\n\n /**\n * @dev Revert with a standard message if `account` is missing `role`.\n *\n * The format of the revert reason is given by the following regular expression:\n *\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n */\n function _checkRole(bytes32 role, address account) internal view virtual {\n if (!hasRole(role, account)) {\n revert(\n string(\n abi.encodePacked(\n \"AccessControl: account \",\n Strings.toHexString(account),\n \" is missing role \",\n Strings.toHexString(uint256(role), 32)\n )\n )\n );\n }\n }\n\n /**\n * @dev Returns the admin role that controls `role`. See {grantRole} and\n * {revokeRole}.\n *\n * To change a role's admin, use {_setRoleAdmin}.\n */\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\n return _roles[role].adminRole;\n }\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n *\n * May emit a {RoleGranted} event.\n */\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n _grantRole(role, account);\n }\n\n /**\n * @dev Revokes `role` from `account`.\n *\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n *\n * May emit a {RoleRevoked} event.\n */\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n _revokeRole(role, account);\n }\n\n /**\n * @dev Revokes `role` from the calling account.\n *\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\n * purpose is to provide a mechanism for accounts to lose their privileges\n * if they are compromised (such as when a trusted device is misplaced).\n *\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\n * event.\n *\n * Requirements:\n *\n * - the caller must be `account`.\n *\n * May emit a {RoleRevoked} event.\n */\n function renounceRole(bytes32 role, address account) public virtual override {\n require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\n\n _revokeRole(role, account);\n }\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event. Note that unlike {grantRole}, this function doesn't perform any\n * checks on the calling account.\n *\n * May emit a {RoleGranted} event.\n *\n * [WARNING]\n * ====\n * This function should only be called from the constructor when setting\n * up the initial roles for the system.\n *\n * Using this function in any other way is effectively circumventing the admin\n * system imposed by {AccessControl}.\n * ====\n *\n * NOTE: This function is deprecated in favor of {_grantRole}.\n */\n function _setupRole(bytes32 role, address account) internal virtual {\n _grantRole(role, account);\n }\n\n /**\n * @dev Sets `adminRole` as ``role``'s admin role.\n *\n * Emits a {RoleAdminChanged} event.\n */\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n bytes32 previousAdminRole = getRoleAdmin(role);\n _roles[role].adminRole = adminRole;\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\n }\n\n /**\n * @dev Grants `role` to `account`.\n *\n * Internal function without access restriction.\n *\n * May emit a {RoleGranted} event.\n */\n function _grantRole(bytes32 role, address account) internal virtual {\n if (!hasRole(role, account)) {\n _roles[role].members[account] = true;\n emit RoleGranted(role, account, _msgSender());\n }\n }\n\n /**\n * @dev Revokes `role` from `account`.\n *\n * Internal function without access restriction.\n *\n * May emit a {RoleRevoked} event.\n */\n function _revokeRole(bytes32 role, address account) internal virtual {\n if (hasRole(role, account)) {\n _roles[role].members[account] = false;\n emit RoleRevoked(role, account, _msgSender());\n }\n }\n}\n" - }, - "@openzeppelin/contracts/access/IAccessControl.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n /**\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n *\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n * {RoleAdminChanged} not being emitted signaling this.\n *\n * _Available since v3.1._\n */\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n /**\n * @dev Emitted when `account` is granted `role`.\n *\n * `sender` is the account that originated the contract call, an admin role\n * bearer except when using {AccessControl-_setupRole}.\n */\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n /**\n * @dev Emitted when `account` is revoked `role`.\n *\n * `sender` is the account that originated the contract call:\n * - if using `revokeRole`, it is the admin role bearer\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\n */\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n /**\n * @dev Returns `true` if `account` has been granted `role`.\n */\n function hasRole(bytes32 role, address account) external view returns (bool);\n\n /**\n * @dev Returns the admin role that controls `role`. See {grantRole} and\n * {revokeRole}.\n *\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n */\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n */\n function grantRole(bytes32 role, address account) external;\n\n /**\n * @dev Revokes `role` from `account`.\n *\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n */\n function revokeRole(bytes32 role, address account) external;\n\n /**\n * @dev Revokes `role` from the calling account.\n *\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\n * purpose is to provide a mechanism for accounts to lose their privileges\n * if they are compromised (such as when a trusted device is misplaced).\n *\n * If the calling account had been granted `role`, emits a {RoleRevoked}\n * event.\n *\n * Requirements:\n *\n * - the caller must be `account`.\n */\n function renounceRole(bytes32 role, address account) external;\n}\n" - }, - "@openzeppelin/contracts/governance/TimelockController.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (governance/TimelockController.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../token/ERC721/IERC721Receiver.sol\";\nimport \"../token/ERC1155/IERC1155Receiver.sol\";\nimport \"../utils/Address.sol\";\n\n/**\n * @dev Contract module which acts as a timelocked controller. When set as the\n * owner of an `Ownable` smart contract, it enforces a timelock on all\n * `onlyOwner` maintenance operations. This gives time for users of the\n * controlled contract to exit before a potentially dangerous maintenance\n * operation is applied.\n *\n * By default, this contract is self administered, meaning administration tasks\n * have to go through the timelock process. The proposer (resp executor) role\n * is in charge of proposing (resp executing) operations. A common use case is\n * to position this {TimelockController} as the owner of a smart contract, with\n * a multisig or a DAO as the sole proposer.\n *\n * _Available since v3.3._\n */\ncontract TimelockController is AccessControl, IERC721Receiver, IERC1155Receiver {\n bytes32 public constant TIMELOCK_ADMIN_ROLE = keccak256(\"TIMELOCK_ADMIN_ROLE\");\n bytes32 public constant PROPOSER_ROLE = keccak256(\"PROPOSER_ROLE\");\n bytes32 public constant EXECUTOR_ROLE = keccak256(\"EXECUTOR_ROLE\");\n bytes32 public constant CANCELLER_ROLE = keccak256(\"CANCELLER_ROLE\");\n uint256 internal constant _DONE_TIMESTAMP = uint256(1);\n\n mapping(bytes32 => uint256) private _timestamps;\n uint256 private _minDelay;\n\n /**\n * @dev Emitted when a call is scheduled as part of operation `id`.\n */\n event CallScheduled(\n bytes32 indexed id,\n uint256 indexed index,\n address target,\n uint256 value,\n bytes data,\n bytes32 predecessor,\n uint256 delay\n );\n\n /**\n * @dev Emitted when a call is performed as part of operation `id`.\n */\n event CallExecuted(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data);\n\n /**\n * @dev Emitted when operation `id` is cancelled.\n */\n event Cancelled(bytes32 indexed id);\n\n /**\n * @dev Emitted when the minimum delay for future operations is modified.\n */\n event MinDelayChange(uint256 oldDuration, uint256 newDuration);\n\n /**\n * @dev Initializes the contract with the following parameters:\n *\n * - `minDelay`: initial minimum delay for operations\n * - `proposers`: accounts to be granted proposer and canceller roles\n * - `executors`: accounts to be granted executor role\n * - `admin`: optional account to be granted admin role; disable with zero address\n *\n * IMPORTANT: The optional admin can aid with initial configuration of roles after deployment\n * without being subject to delay, but this role should be subsequently renounced in favor of\n * administration through timelocked proposals. Previous versions of this contract would assign\n * this admin to the deployer automatically and should be renounced as well.\n */\n constructor(\n uint256 minDelay,\n address[] memory proposers,\n address[] memory executors,\n address admin\n ) {\n _setRoleAdmin(TIMELOCK_ADMIN_ROLE, TIMELOCK_ADMIN_ROLE);\n _setRoleAdmin(PROPOSER_ROLE, TIMELOCK_ADMIN_ROLE);\n _setRoleAdmin(EXECUTOR_ROLE, TIMELOCK_ADMIN_ROLE);\n _setRoleAdmin(CANCELLER_ROLE, TIMELOCK_ADMIN_ROLE);\n\n // self administration\n _setupRole(TIMELOCK_ADMIN_ROLE, address(this));\n\n // optional admin\n if (admin != address(0)) {\n _setupRole(TIMELOCK_ADMIN_ROLE, admin);\n }\n\n // register proposers and cancellers\n for (uint256 i = 0; i < proposers.length; ++i) {\n _setupRole(PROPOSER_ROLE, proposers[i]);\n _setupRole(CANCELLER_ROLE, proposers[i]);\n }\n\n // register executors\n for (uint256 i = 0; i < executors.length; ++i) {\n _setupRole(EXECUTOR_ROLE, executors[i]);\n }\n\n _minDelay = minDelay;\n emit MinDelayChange(0, minDelay);\n }\n\n /**\n * @dev Modifier to make a function callable only by a certain role. In\n * addition to checking the sender's role, `address(0)` 's role is also\n * considered. Granting a role to `address(0)` is equivalent to enabling\n * this role for everyone.\n */\n modifier onlyRoleOrOpenRole(bytes32 role) {\n if (!hasRole(role, address(0))) {\n _checkRole(role, _msgSender());\n }\n _;\n }\n\n /**\n * @dev Contract might receive/hold ETH as part of the maintenance process.\n */\n receive() external payable {}\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, AccessControl) returns (bool) {\n return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Returns whether an id correspond to a registered operation. This\n * includes both Pending, Ready and Done operations.\n */\n function isOperation(bytes32 id) public view virtual returns (bool registered) {\n return getTimestamp(id) > 0;\n }\n\n /**\n * @dev Returns whether an operation is pending or not.\n */\n function isOperationPending(bytes32 id) public view virtual returns (bool pending) {\n return getTimestamp(id) > _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Returns whether an operation is ready or not.\n */\n function isOperationReady(bytes32 id) public view virtual returns (bool ready) {\n uint256 timestamp = getTimestamp(id);\n return timestamp > _DONE_TIMESTAMP && timestamp <= block.timestamp;\n }\n\n /**\n * @dev Returns whether an operation is done or not.\n */\n function isOperationDone(bytes32 id) public view virtual returns (bool done) {\n return getTimestamp(id) == _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Returns the timestamp at with an operation becomes ready (0 for\n * unset operations, 1 for done operations).\n */\n function getTimestamp(bytes32 id) public view virtual returns (uint256 timestamp) {\n return _timestamps[id];\n }\n\n /**\n * @dev Returns the minimum delay for an operation to become valid.\n *\n * This value can be changed by executing an operation that calls `updateDelay`.\n */\n function getMinDelay() public view virtual returns (uint256 duration) {\n return _minDelay;\n }\n\n /**\n * @dev Returns the identifier of an operation containing a single\n * transaction.\n */\n function hashOperation(\n address target,\n uint256 value,\n bytes calldata data,\n bytes32 predecessor,\n bytes32 salt\n ) public pure virtual returns (bytes32 hash) {\n return keccak256(abi.encode(target, value, data, predecessor, salt));\n }\n\n /**\n * @dev Returns the identifier of an operation containing a batch of\n * transactions.\n */\n function hashOperationBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata payloads,\n bytes32 predecessor,\n bytes32 salt\n ) public pure virtual returns (bytes32 hash) {\n return keccak256(abi.encode(targets, values, payloads, predecessor, salt));\n }\n\n /**\n * @dev Schedule an operation containing a single transaction.\n *\n * Emits a {CallScheduled} event.\n *\n * Requirements:\n *\n * - the caller must have the 'proposer' role.\n */\n function schedule(\n address target,\n uint256 value,\n bytes calldata data,\n bytes32 predecessor,\n bytes32 salt,\n uint256 delay\n ) public virtual onlyRole(PROPOSER_ROLE) {\n bytes32 id = hashOperation(target, value, data, predecessor, salt);\n _schedule(id, delay);\n emit CallScheduled(id, 0, target, value, data, predecessor, delay);\n }\n\n /**\n * @dev Schedule an operation containing a batch of transactions.\n *\n * Emits one {CallScheduled} event per transaction in the batch.\n *\n * Requirements:\n *\n * - the caller must have the 'proposer' role.\n */\n function scheduleBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata payloads,\n bytes32 predecessor,\n bytes32 salt,\n uint256 delay\n ) public virtual onlyRole(PROPOSER_ROLE) {\n require(targets.length == values.length, \"TimelockController: length mismatch\");\n require(targets.length == payloads.length, \"TimelockController: length mismatch\");\n\n bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt);\n _schedule(id, delay);\n for (uint256 i = 0; i < targets.length; ++i) {\n emit CallScheduled(id, i, targets[i], values[i], payloads[i], predecessor, delay);\n }\n }\n\n /**\n * @dev Schedule an operation that is to becomes valid after a given delay.\n */\n function _schedule(bytes32 id, uint256 delay) private {\n require(!isOperation(id), \"TimelockController: operation already scheduled\");\n require(delay >= getMinDelay(), \"TimelockController: insufficient delay\");\n _timestamps[id] = block.timestamp + delay;\n }\n\n /**\n * @dev Cancel an operation.\n *\n * Requirements:\n *\n * - the caller must have the 'canceller' role.\n */\n function cancel(bytes32 id) public virtual onlyRole(CANCELLER_ROLE) {\n require(isOperationPending(id), \"TimelockController: operation cannot be cancelled\");\n delete _timestamps[id];\n\n emit Cancelled(id);\n }\n\n /**\n * @dev Execute an (ready) operation containing a single transaction.\n *\n * Emits a {CallExecuted} event.\n *\n * Requirements:\n *\n * - the caller must have the 'executor' role.\n */\n // This function can reenter, but it doesn't pose a risk because _afterCall checks that the proposal is pending,\n // thus any modifications to the operation during reentrancy should be caught.\n // slither-disable-next-line reentrancy-eth\n function execute(\n address target,\n uint256 value,\n bytes calldata payload,\n bytes32 predecessor,\n bytes32 salt\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\n bytes32 id = hashOperation(target, value, payload, predecessor, salt);\n\n _beforeCall(id, predecessor);\n _execute(target, value, payload);\n emit CallExecuted(id, 0, target, value, payload);\n _afterCall(id);\n }\n\n /**\n * @dev Execute an (ready) operation containing a batch of transactions.\n *\n * Emits one {CallExecuted} event per transaction in the batch.\n *\n * Requirements:\n *\n * - the caller must have the 'executor' role.\n */\n function executeBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata payloads,\n bytes32 predecessor,\n bytes32 salt\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\n require(targets.length == values.length, \"TimelockController: length mismatch\");\n require(targets.length == payloads.length, \"TimelockController: length mismatch\");\n\n bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt);\n\n _beforeCall(id, predecessor);\n for (uint256 i = 0; i < targets.length; ++i) {\n address target = targets[i];\n uint256 value = values[i];\n bytes calldata payload = payloads[i];\n _execute(target, value, payload);\n emit CallExecuted(id, i, target, value, payload);\n }\n _afterCall(id);\n }\n\n /**\n * @dev Execute an operation's call.\n */\n function _execute(\n address target,\n uint256 value,\n bytes calldata data\n ) internal virtual {\n (bool success, ) = target.call{value: value}(data);\n require(success, \"TimelockController: underlying transaction reverted\");\n }\n\n /**\n * @dev Checks before execution of an operation's calls.\n */\n function _beforeCall(bytes32 id, bytes32 predecessor) private view {\n require(isOperationReady(id), \"TimelockController: operation is not ready\");\n require(predecessor == bytes32(0) || isOperationDone(predecessor), \"TimelockController: missing dependency\");\n }\n\n /**\n * @dev Checks after execution of an operation's calls.\n */\n function _afterCall(bytes32 id) private {\n require(isOperationReady(id), \"TimelockController: operation is not ready\");\n _timestamps[id] = _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Changes the minimum timelock duration for future operations.\n *\n * Emits a {MinDelayChange} event.\n *\n * Requirements:\n *\n * - the caller must be the timelock itself. This can only be achieved by scheduling and later executing\n * an operation where the timelock is the target and the data is the ABI-encoded call to this function.\n */\n function updateDelay(uint256 newDelay) external virtual {\n require(msg.sender == address(this), \"TimelockController: caller must be timelock\");\n emit MinDelayChange(_minDelay, newDelay);\n _minDelay = newDelay;\n }\n\n /**\n * @dev See {IERC721Receiver-onERC721Received}.\n */\n function onERC721Received(\n address,\n address,\n uint256,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC721Received.selector;\n }\n\n /**\n * @dev See {IERC1155Receiver-onERC1155Received}.\n */\n function onERC1155Received(\n address,\n address,\n uint256,\n uint256,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC1155Received.selector;\n }\n\n /**\n * @dev See {IERC1155Receiver-onERC1155BatchReceived}.\n */\n function onERC1155BatchReceived(\n address,\n address,\n uint256[] memory,\n uint256[] memory,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC1155BatchReceived.selector;\n }\n}\n" - }, - "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\ninterface IERC1155Receiver is IERC165 {\n /**\n * @dev Handles the receipt of a single ERC1155 token type. This function is\n * called at the end of a `safeTransferFrom` after the balance has been updated.\n *\n * NOTE: To accept the transfer, this must return\n * `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))`\n * (i.e. 0xf23a6e61, or its own function selector).\n *\n * @param operator The address which initiated the transfer (i.e. msg.sender)\n * @param from The address which previously owned the token\n * @param id The ID of the token being transferred\n * @param value The amount of tokens being transferred\n * @param data Additional data with no specified format\n * @return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed\n */\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n ) external returns (bytes4);\n\n /**\n * @dev Handles the receipt of a multiple ERC1155 token types. This function\n * is called at the end of a `safeBatchTransferFrom` after the balances have\n * been updated.\n *\n * NOTE: To accept the transfer(s), this must return\n * `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))`\n * (i.e. 0xbc197c81, or its own function selector).\n *\n * @param operator The address which initiated the batch transfer (i.e. msg.sender)\n * @param from The address which previously owned the token\n * @param ids An array containing ids of each token being transferred (order and length must match values array)\n * @param values An array containing amounts of each token being transferred (order and length must match ids array)\n * @param data Additional data with no specified format\n * @return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed\n */\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n ) external returns (bytes4);\n}\n" - }, - "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(\n address operator,\n address from,\n uint256 tokenId,\n bytes calldata data\n ) external returns (bytes4);\n}\n" - }, - "@openzeppelin/contracts/utils/Address.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" - }, - "@openzeppelin/contracts/utils/Context.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" - }, - "@openzeppelin/contracts/utils/introspection/ERC165.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IERC165).interfaceId;\n }\n}\n" - }, - "@openzeppelin/contracts/utils/introspection/IERC165.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n" - }, - "@openzeppelin/contracts/utils/math/Math.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator\n ) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1);\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator,\n Rounding rounding\n ) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10**64) {\n value /= 10**64;\n result += 64;\n }\n if (value >= 10**32) {\n value /= 10**32;\n result += 32;\n }\n if (value >= 10**16) {\n value /= 10**16;\n result += 16;\n }\n if (value >= 10**8) {\n value /= 10**8;\n result += 8;\n }\n if (value >= 10**4) {\n value /= 10**4;\n result += 4;\n }\n if (value >= 10**2) {\n value /= 10**2;\n result += 2;\n }\n if (value >= 10**1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\n }\n }\n}\n" - }, - "@openzeppelin/contracts/utils/Strings.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n}\n" - }, - "contracts/Timelock.sol": { - "content": "// SPDX-License-Identifier: GPL-3.0-only\npragma solidity 0.8.17;\n\nimport \"@openzeppelin/contracts/governance/TimelockController.sol\";\n\ncontract Timelock is TimelockController {\n constructor(\n uint256 minDelay,\n address[] memory proposers,\n address[] memory executors\n ) TimelockController(minDelay, proposers, executors, address(0)) {}\n}\n" - } - }, - "settings": { - "optimizer": { - "enabled": true, - "runs": 1000 - }, - "outputSelection": { - "*": { - "*": [ - "abi", - "evm.bytecode", - "evm.deployedBytecode", - "evm.methodIdentifiers", - "metadata", - "storageLayout", - "devdoc", - "userdoc", - "evm.gasEstimates" - ], - "": [ - "ast" - ] - } - }, - "metadata": { - "useLiteralContent": true - } - } -} \ No newline at end of file diff --git a/solidity/export.json b/solidity/export.json index af5b008da..af3c07792 100644 --- a/solidity/export.json +++ b/solidity/export.json @@ -11143,25 +11143,25 @@ } ] }, - "Timelock": { - "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "VendingMachine": { + "address": "0x6590DFF6abEd7C077839E8227A4f12Ec90E6D85F", "abi": [ { "inputs": [ { - "internalType": "uint256", - "name": "minDelay", - "type": "uint256" + "internalType": "contract IERC20", + "name": "_tbtcV1", + "type": "address" }, { - "internalType": "address[]", - "name": "proposers", - "type": "address[]" + "internalType": "contract TBTC", + "name": "_tbtcV2", + "type": "address" }, { - "internalType": "address[]", - "name": "executors", - "type": "address[]" + "internalType": "uint256", + "name": "_unmintFee", + "type": "uint256" } ], "stateMutability": "nonpayable", @@ -11172,36 +11172,18 @@ "inputs": [ { "indexed": true, - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, "internalType": "address", - "name": "target", + "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", - "name": "value", + "name": "amount", "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" } ], - "name": "CallExecuted", + "name": "Minted", "type": "event" }, { @@ -11209,61 +11191,37 @@ "inputs": [ { "indexed": true, - "internalType": "bytes32", - "name": "id", - "type": "bytes32" + "internalType": "address", + "name": "previousOwner", + "type": "address" }, { "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, "internalType": "address", - "name": "target", + "name": "newOwner", "type": "address" - }, + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { "indexed": false, "internalType": "uint256", - "name": "value", + "name": "newUnmintFee", "type": "uint256" }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, { "indexed": false, "internalType": "uint256", - "name": "delay", + "name": "timestamp", "type": "uint256" } ], - "name": "CallScheduled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "Cancelled", + "name": "UnmintFeeUpdateInitiated", "type": "event" }, { @@ -11272,17 +11230,11 @@ { "indexed": false, "internalType": "uint256", - "name": "oldDuration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newDuration", + "name": "newUnmintFee", "type": "uint256" } ], - "name": "MinDelayChange", + "name": "UnmintFeeUpdated", "type": "event" }, { @@ -11290,84 +11242,66 @@ "inputs": [ { "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" + "internalType": "address", + "name": "recipient", + "type": "address" }, { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" + "indexed": false, + "internalType": "uint256", + "name": "fee", + "type": "uint256" } ], - "name": "RoleAdminChanged", + "name": "Unminted", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "account", + "name": "newVendingMachine", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" } ], - "name": "RoleGranted", + "name": "VendingMachineUpgradeInitiated", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "sender", + "name": "newVendingMachine", "type": "address" } ], - "name": "RoleRevoked", + "name": "VendingMachineUpgraded", "type": "event" }, { "inputs": [], - "name": "CANCELLER_ROLE", + "name": "FLOATING_POINT_DIVISOR", "outputs": [ { - "internalType": "bytes32", + "internalType": "uint256", "name": "", - "type": "bytes32" + "type": "uint256" } ], "stateMutability": "view", @@ -11375,12 +11309,12 @@ }, { "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", + "name": "GOVERNANCE_DELAY", "outputs": [ { - "internalType": "bytes32", + "internalType": "uint256", "name": "", - "type": "bytes32" + "type": "uint256" } ], "stateMutability": "view", @@ -11388,25 +11322,26 @@ }, { "inputs": [], - "name": "EXECUTOR_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", + "name": "finalizeUnmintFeeUpdate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "finalizeVendingMachineUpgrade", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "PROPOSER_ROLE", + "name": "getRemainingUnmintFeeUpdateTime", "outputs": [ { - "internalType": "bytes32", + "internalType": "uint256", "name": "", - "type": "bytes32" + "type": "uint256" } ], "stateMutability": "view", @@ -11414,12 +11349,12 @@ }, { "inputs": [], - "name": "TIMELOCK_ADMIN_ROLE", + "name": "getRemainingVendingMachineUpgradeTime", "outputs": [ { - "internalType": "bytes32", + "internalType": "uint256", "name": "", - "type": "bytes32" + "type": "uint256" } ], "stateMutability": "view", @@ -11428,12 +11363,12 @@ { "inputs": [ { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" + "internalType": "uint256", + "name": "_newUnmintFee", + "type": "uint256" } ], - "name": "cancel", + "name": "initiateUnmintFeeUpdate", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -11442,75 +11377,35 @@ "inputs": [ { "internalType": "address", - "name": "target", + "name": "_newVendingMachine", "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "payload", - "type": "bytes" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" } ], - "name": "execute", + "name": "initiateVendingMachineUpgrade", "outputs": [], - "stateMutability": "payable", + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "address[]", - "name": "targets", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - }, - { - "internalType": "bytes[]", - "name": "payloads", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "executeBatch", + "name": "mint", "outputs": [], - "stateMutability": "payable", + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "getMinDelay", + "name": "newUnmintFee", "outputs": [ { "internalType": "uint256", - "name": "duration", + "name": "", "type": "uint256" } ], @@ -11518,19 +11413,26 @@ "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "newVendingMachine", + "outputs": [ { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" + "internalType": "address", + "name": "", + "type": "address" } ], - "name": "getRoleAdmin", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", "outputs": [ { - "internalType": "bytes32", + "internalType": "address", "name": "", - "type": "bytes32" + "type": "address" } ], "stateMutability": "view", @@ -11539,59 +11441,59 @@ { "inputs": [ { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "getTimestamp", - "outputs": [ + "internalType": "address", + "name": "from", + "type": "address" + }, { "internalType": "uint256", - "name": "timestamp", + "name": "amount", "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" }, { "internalType": "address", - "name": "account", + "name": "token", "type": "address" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" } ], - "name": "grantRole", + "name": "receiveApproval", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "tbtcV1", + "outputs": [ { - "internalType": "address", - "name": "account", + "internalType": "contract IERC20", + "name": "", "type": "address" } ], - "name": "hasRole", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "tbtcV2", "outputs": [ { - "internalType": "bool", + "internalType": "contract TBTC", "name": "", - "type": "bool" + "type": "address" } ], "stateMutability": "view", @@ -11601,113 +11503,62 @@ "inputs": [ { "internalType": "address", - "name": "target", + "name": "newOwner", "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - } - ], - "name": "hashOperation", - "outputs": [ - { - "internalType": "bytes32", - "name": "hash", - "type": "bytes32" } ], - "stateMutability": "pure", + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "address[]", - "name": "targets", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - }, - { - "internalType": "bytes[]", - "name": "payloads", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - } - ], - "name": "hashOperationBatch", - "outputs": [ - { - "internalType": "bytes32", - "name": "hash", - "type": "bytes32" + "internalType": "address", + "name": "newInitiator", + "type": "address" } ], - "stateMutability": "pure", + "name": "transferUnmintFeeUpdateInitiatorRole", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "isOperation", - "outputs": [ - { - "internalType": "bool", - "name": "registered", - "type": "bool" + "internalType": "address", + "name": "newInitiator", + "type": "address" } ], - "stateMutability": "view", + "name": "transferVendingMachineUpgradeInitiatorRole", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "isOperationDone", + "name": "unmint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unmintFee", "outputs": [ { - "internalType": "bool", - "name": "done", - "type": "bool" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], "stateMutability": "view", @@ -11716,223 +11567,204 @@ { "inputs": [ { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "isOperationPending", + "name": "unmintFeeFor", "outputs": [ { - "internalType": "bool", - "name": "pending", - "type": "bool" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - } - ], - "name": "isOperationReady", + "inputs": [], + "name": "unmintFeeUpdateInitiatedTimestamp", "outputs": [ { - "internalType": "bool", - "name": "ready", - "type": "bool" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, + "inputs": [], + "name": "unmintFeeUpdateInitiator", + "outputs": [ { "internalType": "address", "name": "", "type": "address" - }, - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" } ], - "name": "onERC1155BatchReceived", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "vendingMachineUpgradeInitiatedTimestamp", "outputs": [ { - "internalType": "bytes4", + "internalType": "uint256", "name": "", - "type": "bytes4" + "type": "uint256" } ], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "vendingMachineUpgradeInitiator", + "outputs": [ { "internalType": "address", "name": "", "type": "address" - }, + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ { "internalType": "address", - "name": "", + "name": "recipient", "type": "address" }, { "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", + "name": "amount", "type": "uint256" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC1155Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" } ], + "name": "withdrawFees", + "outputs": [], "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "VendingMachineV2": { + "address": "0xcE1F983c29f7A6C0C0dFA78C4D8Fe7bdfe026d4B", + "abi": [ { "inputs": [ { - "internalType": "address", - "name": "", + "internalType": "contract IERC20", + "name": "_tbtcV1", "type": "address" }, { - "internalType": "address", - "name": "", + "internalType": "contract TBTC", + "name": "_tbtcV2", "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC721Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" } ], "stateMutability": "nonpayable", - "type": "function" + "type": "constructor" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" + "indexed": false, + "internalType": "address", + "name": "from", + "type": "address" }, { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Deposited", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, "internalType": "address", - "name": "account", + "name": "to", "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "Exchanged", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" }, { + "indexed": true, "internalType": "address", - "name": "account", + "name": "newOwner", "type": "address" } ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "OwnershipTransferred", + "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": false, "internalType": "address", - "name": "target", + "name": "token", "type": "address" }, { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" }, { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Withdrawn", + "type": "event" + }, + { + "inputs": [ { "internalType": "uint256", - "name": "delay", + "name": "amount", "type": "uint256" } ], - "name": "schedule", + "name": "depositTbtcV2", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -11940,55 +11772,85 @@ { "inputs": [ { - "internalType": "address[]", - "name": "targets", - "type": "address[]" - }, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "exchange", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ { - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - }, + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ { - "internalType": "bytes[]", - "name": "payloads", - "type": "bytes[]" + "internalType": "address", + "name": "from", + "type": "address" }, { - "internalType": "bytes32", - "name": "predecessor", - "type": "bytes32" + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" + "internalType": "address", + "name": "token", + "type": "address" }, { - "internalType": "uint256", - "name": "delay", - "type": "uint256" + "internalType": "bytes", + "name": "", + "type": "bytes" } ], - "name": "scheduleBatch", + "name": "receiveApproval", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "tbtcV1", + "outputs": [ { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" + "internalType": "contract IERC20", + "name": "", + "type": "address" } ], - "name": "supportsInterface", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "tbtcV2", "outputs": [ { - "internalType": "bool", + "internalType": "contract TBTC", "name": "", - "type": "bool" + "type": "address" } ], "stateMutability": "view", @@ -11997,24 +11859,43 @@ { "inputs": [ { - "internalType": "uint256", - "name": "newDelay", - "type": "uint256" + "internalType": "address", + "name": "newOwner", + "type": "address" } ], - "name": "updateDelay", + "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "stateMutability": "payable", - "type": "receive" + "inputs": [ + { + "internalType": "contract IERC20", + "name": "token", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawFunds", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } ] }, - "VendingMachine": { - "address": "0x6590DFF6abEd7C077839E8227A4f12Ec90E6D85F", + "VendingMachineV3": { + "address": "0x7570a2350183b4BdF7CA74faD3Fc19048E6437e6", "abi": [ { "inputs": [ @@ -12027,11 +11908,6 @@ "internalType": "contract TBTC", "name": "_tbtcV2", "type": "address" - }, - { - "internalType": "uint256", - "name": "_unmintFee", - "type": "uint256" } ], "stateMutability": "nonpayable", @@ -12041,9 +11917,9 @@ "anonymous": false, "inputs": [ { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "recipient", + "name": "from", "type": "address" }, { @@ -12053,7 +11929,7 @@ "type": "uint256" } ], - "name": "Minted", + "name": "Deposited", "type": "event" }, { @@ -12062,17 +11938,17 @@ { "indexed": true, "internalType": "address", - "name": "previousOwner", + "name": "to", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "OwnershipTransferred", + "name": "Exchanged", "type": "event" }, { @@ -12080,31 +11956,24 @@ "inputs": [ { "indexed": false, - "internalType": "uint256", - "name": "newUnmintFee", - "type": "uint256" + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" }, { "indexed": false, "internalType": "uint256", - "name": "timestamp", + "name": "amount", "type": "uint256" } ], - "name": "UnmintFeeUpdateInitiated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "newUnmintFee", - "type": "uint256" - } - ], - "name": "UnmintFeeUpdated", + "name": "FundsRecovered", "type": "event" }, { @@ -12113,23 +11982,17 @@ { "indexed": true, "internalType": "address", - "name": "recipient", + "name": "previousOwner", "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "fee", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" } ], - "name": "Unminted", + "name": "OwnershipTransferred", "type": "event" }, { @@ -12138,120 +12001,28 @@ { "indexed": false, "internalType": "address", - "name": "newVendingMachine", + "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", - "name": "timestamp", + "name": "amount", "type": "uint256" } ], - "name": "VendingMachineUpgradeInitiated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newVendingMachine", - "type": "address" - } - ], - "name": "VendingMachineUpgraded", + "name": "TbtcV2Withdrawn", "type": "event" }, - { - "inputs": [], - "name": "FLOATING_POINT_DIVISOR", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "GOVERNANCE_DELAY", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "finalizeUnmintFeeUpdate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "finalizeVendingMachineUpgrade", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRemainingUnmintFeeUpdateTime", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getRemainingVendingMachineUpgradeTime", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, { "inputs": [ { "internalType": "uint256", - "name": "_newUnmintFee", + "name": "amount", "type": "uint256" } ], - "name": "initiateUnmintFeeUpdate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_newVendingMachine", - "type": "address" - } - ], - "name": "initiateVendingMachineUpgrade", + "name": "depositTbtcV2", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -12264,37 +12035,11 @@ "type": "uint256" } ], - "name": "mint", + "name": "exchange", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [], - "name": "newUnmintFee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "newVendingMachine", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, { "inputs": [], "name": "owner", @@ -12336,6 +12081,29 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "contract IERC20", + "name": "token", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "recoverFunds", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [], "name": "renounceOwnership", @@ -12386,159 +12154,142 @@ "inputs": [ { "internalType": "address", - "name": "newInitiator", + "name": "recipient", "type": "address" - } - ], - "name": "transferUnmintFeeUpdateInitiatorRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + }, { - "internalType": "address", - "name": "newInitiator", - "type": "address" + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "transferVendingMachineUpgradeInitiatorRole", + "name": "withdrawTbtcV2", "outputs": [], "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "Wallets": { + "address": "0xc989d3E486AAe6355F65281B4d0bde08c8e32fBC", + "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" } ], - "name": "unmint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "NewWalletRegistered", + "type": "event" }, { + "anonymous": false, "inputs": [], - "name": "unmintFee", - "outputs": [ + "name": "NewWalletRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" } ], - "stateMutability": "view", - "type": "function" + "name": "WalletClosed", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "unmintFeeFor", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "unmintFeeUpdateInitiatedTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "unmintFeeUpdateInitiator", - "outputs": [ + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" + }, { - "internalType": "address", - "name": "", - "type": "address" + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" } ], - "stateMutability": "view", - "type": "function" + "name": "WalletClosing", + "type": "event" }, { - "inputs": [], - "name": "vendingMachineUpgradeInitiatedTimestamp", - "outputs": [ + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vendingMachineUpgradeInitiator", - "outputs": [ + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" + }, { - "internalType": "address", - "name": "", - "type": "address" + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" } ], - "stateMutability": "view", - "type": "function" + "name": "WalletMovingFunds", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "address", - "name": "recipient", - "type": "address" + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" }, { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" } ], - "name": "withdrawFees", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "WalletTerminated", + "type": "event" } ] }, - "VendingMachineV2": { - "address": "0xcE1F983c29f7A6C0C0dFA78C4D8Fe7bdfe026d4B", + "ReimbursementPool": { + "address": "0x8adF3f35dBE4026112bCFc078872bcb967732Ea8", "abi": [ { "inputs": [ { - "internalType": "contract IERC20", - "name": "_tbtcV1", - "type": "address" + "internalType": "uint256", + "name": "_staticGas", + "type": "uint256" }, { - "internalType": "contract TBTC", - "name": "_tbtcV2", - "type": "address" + "internalType": "uint256", + "name": "_maxGasPrice", + "type": "uint256" } ], "stateMutability": "nonpayable", @@ -12550,36 +12301,43 @@ { "indexed": false, "internalType": "address", - "name": "from", + "name": "thirdPartyContract", "type": "address" - }, + } + ], + "name": "AuthorizedContract", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "withdrawnAmount", "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" } ], - "name": "Deposited", + "name": "FundsWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, { "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "newMaxGasPrice", "type": "uint256" } ], - "name": "Exchanged", + "name": "MaxGasPriceUpdated", "type": "event" }, { @@ -12606,108 +12364,86 @@ "inputs": [ { "indexed": false, - "internalType": "address", - "name": "token", - "type": "address" + "internalType": "uint256", + "name": "refundAmount", + "type": "uint256" }, { "indexed": false, "internalType": "address", - "name": "to", + "name": "receiver", "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" } ], - "name": "Withdrawn", + "name": "SendingEtherFailed", "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "newStaticGas", "type": "uint256" } ], - "name": "depositTbtcV2", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "StaticGasUpdated", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "indexed": false, + "internalType": "address", + "name": "thirdPartyContract", + "type": "address" } ], - "name": "exchange", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "UnauthorizedContract", + "type": "event" }, { - "inputs": [], - "name": "owner", - "outputs": [ + "inputs": [ { "internalType": "address", - "name": "", + "name": "_contract", "type": "address" } ], - "stateMutability": "view", + "name": "authorize", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "token", + "name": "", "type": "address" - }, + } + ], + "name": "isAuthorized", + "outputs": [ { - "internalType": "bytes", + "internalType": "bool", "name": "", - "type": "bytes" + "type": "bool" } ], - "name": "receiveApproval", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [], - "name": "tbtcV1", + "name": "maxGasPrice", "outputs": [ { - "internalType": "contract IERC20", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "stateMutability": "view", @@ -12715,10 +12451,10 @@ }, { "inputs": [], - "name": "tbtcV2", + "name": "owner", "outputs": [ { - "internalType": "contract TBTC", + "internalType": "address", "name": "", "type": "address" } @@ -12728,122 +12464,169 @@ }, { "inputs": [ + { + "internalType": "uint256", + "name": "gasSpent", + "type": "uint256" + }, { "internalType": "address", - "name": "newOwner", + "name": "receiver", "type": "address" } ], - "name": "transferOwnership", + "name": "refund", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { - "internalType": "contract IERC20", - "name": "token", - "type": "address" - }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, { "internalType": "uint256", - "name": "amount", + "name": "_maxGasPrice", "type": "uint256" } ], - "name": "withdrawFunds", + "name": "setMaxGasPrice", "outputs": [], "stateMutability": "nonpayable", "type": "function" - } - ] - }, - "VendingMachineV3": { - "address": "0x7570a2350183b4BdF7CA74faD3Fc19048E6437e6", - "abi": [ + }, { "inputs": [ { - "internalType": "contract IERC20", - "name": "_tbtcV1", - "type": "address" - }, + "internalType": "uint256", + "name": "_staticGas", + "type": "uint256" + } + ], + "name": "setStaticGas", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "staticGas", + "outputs": [ { - "internalType": "contract TBTC", - "name": "_tbtcV2", + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", "type": "address" } ], + "name": "transferOwnership", + "outputs": [], "stateMutability": "nonpayable", - "type": "constructor" + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, "internalType": "address", - "name": "from", + "name": "_contract", "type": "address" - }, + } + ], + "name": "unauthorize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" } ], - "name": "Deposited", - "type": "event" + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, "internalType": "address", - "name": "to", + "name": "receiver", "type": "address" - }, + } + ], + "name": "withdrawAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ] + }, + "TBTCToken": { + "address": "0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa", + "abi": [ + { + "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "internalType": "address", + "name": "_VendingMachine", + "type": "address" } ], - "name": "Exchanged", - "type": "event" + "payable": false, + "stateMutability": "nonpayable", + "type": "constructor" }, { "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "address", - "name": "token", + "name": "owner", "type": "address" }, { - "indexed": false, + "indexed": true, "internalType": "address", - "name": "to", + "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "value", "type": "uint256" } ], - "name": "FundsRecovered", + "name": "Approval", "type": "event" }, { @@ -12852,1434 +12635,401 @@ { "indexed": true, "internalType": "address", - "name": "previousOwner", + "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", - "name": "newOwner", + "name": "to", "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "name": "OwnershipTransferred", + "name": "Transfer", "type": "event" }, { - "anonymous": false, + "constant": true, "inputs": [ { - "indexed": false, "internalType": "address", - "name": "to", + "name": "owner", "type": "address" }, { - "indexed": false, + "internalType": "address", + "name": "spender", + "type": "address" + } + ], + "name": "allowance", + "outputs": [ + { "internalType": "uint256", - "name": "amount", + "name": "", "type": "uint256" } ], - "name": "TbtcV2Withdrawn", - "type": "event" + "payable": false, + "stateMutability": "view", + "type": "function" }, { + "constant": false, "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, { "internalType": "uint256", - "name": "amount", + "name": "value", "type": "uint256" } ], - "name": "depositTbtcV2", - "outputs": [], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, "stateMutability": "nonpayable", "type": "function" }, { + "constant": false, "inputs": [ + { + "internalType": "contract ITokenRecipient", + "name": "_spender", + "type": "address" + }, { "internalType": "uint256", - "name": "amount", + "name": "_value", "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_extraData", + "type": "bytes" } ], - "name": "exchange", - "outputs": [], + "name": "approveAndCall", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "owner", - "outputs": [ + "constant": true, + "inputs": [ { "internalType": "address", - "name": "", + "name": "account", "type": "address" } ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, "stateMutability": "view", "type": "function" }, { + "constant": false, "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, { "internalType": "uint256", - "name": "amount", + "name": "_amount", "type": "uint256" - }, - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" } ], - "name": "receiveApproval", + "name": "burn", "outputs": [], + "payable": false, "stateMutability": "nonpayable", "type": "function" }, { + "constant": false, "inputs": [ - { - "internalType": "contract IERC20", - "name": "token", - "type": "address" - }, { "internalType": "address", - "name": "recipient", + "name": "_account", "type": "address" }, { "internalType": "uint256", - "name": "amount", + "name": "_amount", "type": "uint256" } ], - "name": "recoverFunds", + "name": "burnFrom", "outputs": [], + "payable": false, "stateMutability": "nonpayable", "type": "function" }, { + "constant": true, "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "tbtcV1", + "name": "decimals", "outputs": [ { - "internalType": "contract IERC20", + "internalType": "uint8", "name": "", - "type": "address" + "type": "uint8" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "tbtcV2", + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", "outputs": [ { - "internalType": "contract TBTC", + "internalType": "bool", "name": "", - "type": "address" + "type": "bool" } ], - "stateMutability": "view", + "payable": false, + "stateMutability": "nonpayable", "type": "function" }, { + "constant": false, "inputs": [ { "internalType": "address", - "name": "newOwner", + "name": "spender", "type": "address" + }, + { + "internalType": "uint256", + "name": "addedValue", + "type": "uint256" } ], - "name": "transferOwnership", - "outputs": [], + "name": "increaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, "stateMutability": "nonpayable", "type": "function" }, { + "constant": false, "inputs": [ { "internalType": "address", - "name": "recipient", + "name": "_account", "type": "address" }, { "internalType": "uint256", - "name": "amount", + "name": "_amount", "type": "uint256" } ], - "name": "withdrawTbtcV2", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] - }, - "WalletProposalValidator": { - "address": "0x30019D85a86ABD3cDA1167F4C052690c32FBDEc2", - "abi": [ - { - "inputs": [ + "name": "mint", + "outputs": [ { - "internalType": "contract Bridge", - "name": "_bridge", - "type": "address" + "internalType": "bool", + "name": "", + "type": "bool" } ], + "payable": false, "stateMutability": "nonpayable", - "type": "constructor" + "type": "function" }, { + "constant": true, "inputs": [], - "name": "DEPOSIT_MIN_AGE", + "name": "name", "outputs": [ { - "internalType": "uint32", + "internalType": "string", "name": "", - "type": "uint32" + "type": "string" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { + "constant": true, "inputs": [], - "name": "DEPOSIT_REFUND_SAFETY_MARGIN", + "name": "symbol", "outputs": [ { - "internalType": "uint32", + "internalType": "string", "name": "", - "type": "uint32" + "type": "string" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { + "constant": true, "inputs": [], - "name": "DEPOSIT_SWEEP_MAX_SIZE", + "name": "totalSupply", "outputs": [ { - "internalType": "uint16", + "internalType": "uint256", "name": "", - "type": "uint16" + "type": "uint256" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "REDEMPTION_MAX_SIZE", + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", "outputs": [ { - "internalType": "uint16", + "internalType": "bool", "name": "", - "type": "uint16" + "type": "bool" } ], - "stateMutability": "view", + "payable": false, + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "REDEMPTION_REQUEST_MIN_AGE", + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transferFrom", "outputs": [ { - "internalType": "uint32", + "internalType": "bool", "name": "", - "type": "uint32" + "type": "bool" } ], - "stateMutability": "view", + "payable": false, + "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "WalletRegistry": { + "address": "0x46d52E41C2F300BC82217Ce22b920c34995204eb", + "abi": [ { - "inputs": [], - "name": "REDEMPTION_REQUEST_TIMEOUT_SAFETY_MARGIN", - "outputs": [ + "inputs": [ { - "internalType": "uint32", - "name": "", - "type": "uint32" + "internalType": "contract SortitionPool", + "name": "_sortitionPool", + "type": "address" + }, + { + "internalType": "contract IStaking", + "name": "_staking", + "type": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable", + "type": "constructor" }, { - "inputs": [], - "name": "bridge", - "outputs": [ + "anonymous": false, + "inputs": [ { - "internalType": "contract Bridge", - "name": "", + "indexed": true, + "internalType": "address", + "name": "stakingProvider", "type": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "AuthorizationDecreaseApproved", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "components": [ - { - "internalType": "bytes32", - "name": "fundingTxHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "fundingOutputIndex", - "type": "uint32" - } - ], - "internalType": "struct WalletProposalValidator.DepositKey[]", - "name": "depositsKeys", - "type": "tuple[]" - }, - { - "internalType": "uint256", - "name": "sweepTxFee", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "depositsRevealBlocks", - "type": "uint256[]" - } - ], - "internalType": "struct WalletProposalValidator.DepositSweepProposal", - "name": "proposal", - "type": "tuple" - }, - { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "version", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "inputVector", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "outputVector", - "type": "bytes" - }, - { - "internalType": "bytes4", - "name": "locktime", - "type": "bytes4" - } - ], - "internalType": "struct BitcoinTx.Info", - "name": "fundingTx", - "type": "tuple" - }, - { - "internalType": "bytes8", - "name": "blindingFactor", - "type": "bytes8" - }, - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes20", - "name": "refundPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes4", - "name": "refundLocktime", - "type": "bytes4" - } - ], - "internalType": "struct WalletProposalValidator.DepositExtraInfo[]", - "name": "depositsExtraInfo", - "type": "tuple[]" - } - ], - "name": "validateDepositSweepProposal", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes", - "name": "message", - "type": "bytes" - } - ], - "internalType": "struct WalletProposalValidator.HeartbeatProposal", - "name": "proposal", - "type": "tuple" - } - ], - "name": "validateHeartbeatProposal", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes32", - "name": "movingFundsTxHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "movingFundsTxOutputIndex", - "type": "uint32" - }, - { - "internalType": "uint256", - "name": "movedFundsSweepTxFee", - "type": "uint256" - } - ], - "internalType": "struct WalletProposalValidator.MovedFundsSweepProposal", - "name": "proposal", - "type": "tuple" - } - ], - "name": "validateMovedFundsSweepProposal", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes20[]", - "name": "targetWallets", - "type": "bytes20[]" - }, - { - "internalType": "uint256", - "name": "movingFundsTxFee", - "type": "uint256" - } - ], - "internalType": "struct WalletProposalValidator.MovingFundsProposal", - "name": "proposal", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "txOutputIndex", - "type": "uint32" - }, - { - "internalType": "uint64", - "name": "txOutputValue", - "type": "uint64" - } - ], - "internalType": "struct BitcoinTx.UTXO", - "name": "walletMainUtxo", - "type": "tuple" - } - ], - "name": "validateMovingFundsProposal", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes[]", - "name": "redeemersOutputScripts", - "type": "bytes[]" - }, - { - "internalType": "uint256", - "name": "redemptionTxFee", - "type": "uint256" - } - ], - "internalType": "struct WalletProposalValidator.RedemptionProposal", - "name": "proposal", - "type": "tuple" - } - ], - "name": "validateRedemptionProposal", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - } - ] - }, - "Wallets": { - "address": "0xc989d3E486AAe6355F65281B4d0bde08c8e32fBC", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - } - ], - "name": "NewWalletRegistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "NewWalletRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - } - ], - "name": "WalletClosed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - } - ], - "name": "WalletClosing", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - } - ], - "name": "WalletMovingFunds", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - } - ], - "name": "WalletTerminated", - "type": "event" - } - ] - }, - "ReimbursementPool": { - "address": "0x8adF3f35dBE4026112bCFc078872bcb967732Ea8", - "abi": [ - { - "inputs": [ - { - "internalType": "uint256", - "name": "_staticGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_maxGasPrice", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "thirdPartyContract", - "type": "address" - } - ], - "name": "AuthorizedContract", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "receiver", - "type": "address" - } - ], - "name": "FundsWithdrawn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "newMaxGasPrice", - "type": "uint256" - } - ], - "name": "MaxGasPriceUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "refundAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "receiver", - "type": "address" - } - ], - "name": "SendingEtherFailed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "newStaticGas", - "type": "uint256" - } - ], - "name": "StaticGasUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "thirdPartyContract", - "type": "address" - } - ], - "name": "UnauthorizedContract", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_contract", - "type": "address" - } - ], - "name": "authorize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "isAuthorized", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxGasPrice", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "gasSpent", - "type": "uint256" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - } - ], - "name": "refund", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxGasPrice", - "type": "uint256" - } - ], - "name": "setMaxGasPrice", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_staticGas", - "type": "uint256" - } - ], - "name": "setStaticGas", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "staticGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_contract", - "type": "address" - } - ], - "name": "unauthorize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "receiver", - "type": "address" - } - ], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ] - }, - "TBTCToken": { - "address": "0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_VendingMachine", - "type": "address" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract ITokenRecipient", - "name": "_spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "_extraData", - "type": "bytes" - } - ], - "name": "approveAndCall", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "burn", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "burnFrom", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "addedValue", - "type": "uint256" - } - ], - "name": "increaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ] - }, - "WalletRegistry": { - "address": "0x46d52E41C2F300BC82217Ce22b920c34995204eb", - "abi": [ - { - "inputs": [ - { - "internalType": "contract SortitionPool", - "name": "_sortitionPool", - "type": "address" - }, - { - "internalType": "contract IStaking", - "name": "_staking", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "stakingProvider", - "type": "address" - } - ], - "name": "AuthorizationDecreaseApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "stakingProvider", - "type": "address" + "indexed": true, + "internalType": "address", + "name": "stakingProvider", + "type": "address" }, { "indexed": true, @@ -15328,63 +14078,242 @@ "inputs": [ { "internalType": "bytes32", - "name": "", + "name": "", + "type": "bytes32" + } + ], + "name": "inactivityClaimNonce", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract EcdsaDkgValidator", + "name": "_ecdsaDkgValidator", + "type": "address" + }, + { + "internalType": "contract IRandomBeacon", + "name": "_randomBeacon", + "type": "address" + }, + { + "internalType": "contract ReimbursementPool", + "name": "_reimbursementPool", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "stakingProvider", + "type": "address" + }, + { + "internalType": "uint96", + "name": "fromAmount", + "type": "uint96" + }, + { + "internalType": "uint96", + "name": "toAmount", + "type": "uint96" + } + ], + "name": "involuntaryAuthorizationDecrease", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "submitterMemberIndex", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "groupPubKey", + "type": "bytes" + }, + { + "internalType": "uint8[]", + "name": "misbehavedMembersIndices", + "type": "uint8[]" + }, + { + "internalType": "bytes", + "name": "signatures", + "type": "bytes" + }, + { + "internalType": "uint256[]", + "name": "signingMembersIndices", + "type": "uint256[]" + }, + { + "internalType": "uint32[]", + "name": "members", + "type": "uint32[]" + }, + { + "internalType": "bytes32", + "name": "membersHash", + "type": "bytes32" + } + ], + "internalType": "struct EcdsaDkg.Result", + "name": "result", + "type": "tuple" + } + ], + "name": "isDkgResultValid", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + }, + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isOperatorInPool", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isOperatorUpToDate", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" + }, + { + "internalType": "uint32[]", + "name": "walletMembersIDs", + "type": "uint32[]" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "walletMemberIndex", + "type": "uint256" + } + ], + "name": "isWalletMember", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "walletID", "type": "bytes32" } ], - "name": "inactivityClaimNonce", + "name": "isWalletRegistered", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "contract EcdsaDkgValidator", - "name": "_ecdsaDkgValidator", - "type": "address" - }, - { - "internalType": "contract IRandomBeacon", - "name": "_randomBeacon", - "type": "address" - }, - { - "internalType": "contract ReimbursementPool", - "name": "_reimbursementPool", - "type": "address" - } - ], - "name": "initialize", + "inputs": [], + "name": "joinSortitionPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "stakingProvider", - "type": "address" - }, - { - "internalType": "uint96", - "name": "fromAmount", - "type": "uint96" - }, + "inputs": [], + "name": "minimumAuthorization", + "outputs": [ { "internalType": "uint96", - "name": "toAmount", + "name": "", "type": "uint96" } ], - "name": "involuntaryAuthorizationDecrease", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "notifyDkgTimeout", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -15394,19 +14323,19 @@ { "components": [ { - "internalType": "uint256", - "name": "submitterMemberIndex", - "type": "uint256" + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" }, { - "internalType": "bytes", - "name": "groupPubKey", - "type": "bytes" + "internalType": "uint256[]", + "name": "inactiveMembersIndices", + "type": "uint256[]" }, { - "internalType": "uint8[]", - "name": "misbehavedMembersIndices", - "type": "uint8[]" + "internalType": "bool", + "name": "heartbeatFailed", + "type": "bool" }, { "internalType": "bytes", @@ -15417,34 +14346,81 @@ "internalType": "uint256[]", "name": "signingMembersIndices", "type": "uint256[]" - }, - { - "internalType": "uint32[]", - "name": "members", - "type": "uint32[]" - }, - { - "internalType": "bytes32", - "name": "membersHash", - "type": "bytes32" } ], - "internalType": "struct EcdsaDkg.Result", - "name": "result", + "internalType": "struct EcdsaInactivity.Claim", + "name": "claim", "type": "tuple" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "internalType": "uint32[]", + "name": "groupMembers", + "type": "uint32[]" } ], - "name": "isDkgResultValid", + "name": "notifyOperatorInactivity", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "notifySeedTimeout", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "operatorToStakingProvider", "outputs": [ { - "internalType": "bool", + "internalType": "address", "name": "", - "type": "bool" - }, + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ { - "internalType": "string", + "internalType": "address", + "name": "stakingProvider", + "type": "address" + } + ], + "name": "pendingAuthorizationDecrease", + "outputs": [ + { + "internalType": "uint96", "name": "", - "type": "string" + "type": "uint96" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "randomBeacon", + "outputs": [ + { + "internalType": "contract IRandomBeacon", + "name": "", + "type": "address" } ], "stateMutability": "view", @@ -15458,12 +14434,19 @@ "type": "address" } ], - "name": "isOperatorInPool", + "name": "registerOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "reimbursementPool", "outputs": [ { - "internalType": "bool", + "internalType": "contract ReimbursementPool", "name": "", - "type": "bool" + "type": "address" } ], "stateMutability": "view", @@ -15473,16 +14456,41 @@ "inputs": [ { "internalType": "address", - "name": "operator", + "name": "stakingProvider", "type": "address" } ], - "name": "isOperatorUpToDate", + "name": "remainingAuthorizationDecreaseDelay", "outputs": [ { - "internalType": "bool", + "internalType": "uint64", "name": "", - "type": "bool" + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "requestNewWallet", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "rewardParameters", + "outputs": [ + { + "internalType": "uint256", + "name": "maliciousDkgResultNotificationRewardMultiplier", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sortitionPoolRewardsBanDuration", + "type": "uint256" } ], "stateMutability": "view", @@ -15491,51 +14499,70 @@ { "inputs": [ { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" + "internalType": "uint96", + "name": "amount", + "type": "uint96" }, { - "internalType": "uint32[]", - "name": "walletMembersIDs", - "type": "uint32[]" + "internalType": "uint256", + "name": "rewardMultiplier", + "type": "uint256" }, { "internalType": "address", - "name": "operator", + "name": "notifier", "type": "address" }, { - "internalType": "uint256", - "name": "walletMemberIndex", - "type": "uint256" + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" + }, + { + "internalType": "uint32[]", + "name": "walletMembersIDs", + "type": "uint32[]" } ], - "name": "isWalletMember", + "name": "seize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "selectGroup", "outputs": [ { - "internalType": "bool", + "internalType": "uint32[]", "name": "", - "type": "bool" + "type": "uint32[]" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "slashingParameters", + "outputs": [ { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" + "internalType": "uint96", + "name": "maliciousDkgResultSlashingAmount", + "type": "uint96" } ], - "name": "isWalletRegistered", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "sortitionPool", "outputs": [ { - "internalType": "bool", + "internalType": "contract SortitionPool", "name": "", - "type": "bool" + "type": "address" } ], "stateMutability": "view", @@ -15543,29 +14570,34 @@ }, { "inputs": [], - "name": "joinSortitionPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "minimumAuthorization", + "name": "staking", "outputs": [ { - "internalType": "uint96", + "internalType": "contract IStaking", "name": "", - "type": "uint96" + "type": "address" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "notifyDkgTimeout", - "outputs": [], - "stateMutability": "nonpayable", + "inputs": [ + { + "internalType": "address", + "name": "stakingProvider", + "type": "address" + } + ], + "name": "stakingProviderToOperator", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", "type": "function" }, { @@ -15573,19 +14605,19 @@ { "components": [ { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" + "internalType": "uint256", + "name": "submitterMemberIndex", + "type": "uint256" }, { - "internalType": "uint256[]", - "name": "inactiveMembersIndices", - "type": "uint256[]" + "internalType": "bytes", + "name": "groupPubKey", + "type": "bytes" }, { - "internalType": "bool", - "name": "heartbeatFailed", - "type": "bool" + "internalType": "uint8[]", + "name": "misbehavedMembersIndices", + "type": "uint8[]" }, { "internalType": "bytes", @@ -15596,31 +14628,126 @@ "internalType": "uint256[]", "name": "signingMembersIndices", "type": "uint256[]" + }, + { + "internalType": "uint32[]", + "name": "members", + "type": "uint32[]" + }, + { + "internalType": "bytes32", + "name": "membersHash", + "type": "bytes32" } ], - "internalType": "struct EcdsaInactivity.Claim", - "name": "claim", + "internalType": "struct EcdsaDkg.Result", + "name": "dkgResult", "type": "tuple" + } + ], + "name": "submitDkgResult", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newGovernance", + "type": "address" + } + ], + "name": "transferGovernance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint96", + "name": "_minimumAuthorization", + "type": "uint96" + }, + { + "internalType": "uint64", + "name": "_authorizationDecreaseDelay", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "_authorizationDecreaseChangePeriod", + "type": "uint64" + } + ], + "name": "updateAuthorizationParameters", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_seedTimeout", + "type": "uint256" }, { "internalType": "uint256", - "name": "nonce", + "name": "_resultChallengePeriodLength", "type": "uint256" }, { - "internalType": "uint32[]", - "name": "groupMembers", - "type": "uint32[]" + "internalType": "uint256", + "name": "_resultChallengeExtraGas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_resultSubmissionTimeout", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_submitterPrecedencePeriodLength", + "type": "uint256" } ], - "name": "notifyOperatorInactivity", + "name": "updateDkgParameters", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "notifySeedTimeout", + "inputs": [ + { + "internalType": "uint256", + "name": "dkgResultSubmissionGas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dkgResultApprovalGasOffset", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "notifyOperatorInactivityGasOffset", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "notifySeedTimeoutGasOffset", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "notifyDkgTimeoutNegativeGasOffset", + "type": "uint256" + } + ], + "name": "updateGasParameters", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -15633,68 +14760,87 @@ "type": "address" } ], - "name": "operatorToStakingProvider", - "outputs": [ + "name": "updateOperatorStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "address", - "name": "", + "internalType": "contract ReimbursementPool", + "name": "_reimbursementPool", "type": "address" } ], - "stateMutability": "view", + "name": "updateReimbursementPool", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "stakingProvider", - "type": "address" + "internalType": "uint256", + "name": "maliciousDkgResultNotificationRewardMultiplier", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sortitionPoolRewardsBanDuration", + "type": "uint256" } ], - "name": "pendingAuthorizationDecrease", - "outputs": [ + "name": "updateRewardParameters", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { "internalType": "uint96", - "name": "", + "name": "maliciousDkgResultSlashingAmount", "type": "uint96" } ], - "stateMutability": "view", + "name": "updateSlashingParameters", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "randomBeacon", - "outputs": [ + "inputs": [ { - "internalType": "contract IRandomBeacon", - "name": "", + "internalType": "contract IWalletOwner", + "name": "_walletOwner", "type": "address" } ], - "stateMutability": "view", + "name": "updateWalletOwner", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "operator", + "internalType": "contract IRandomBeacon", + "name": "_randomBeacon", "type": "address" } ], - "name": "registerOperator", + "name": "upgradeRandomBeacon", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "reimbursementPool", + "name": "walletOwner", "outputs": [ { - "internalType": "contract ReimbursementPool", + "internalType": "contract IWalletOwner", "name": "", "type": "address" } @@ -15702,6 +14848,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "name": "withdrawIneligibleRewards", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -15710,83 +14869,61 @@ "type": "address" } ], - "name": "remainingAuthorizationDecreaseDelay", - "outputs": [ + "name": "withdrawRewards", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] + }, + "WalletProposalValidator": { + "address": "0x30019D85a86ABD3cDA1167F4C052690c32FBDEc2", + "abi": [ + { + "inputs": [ { - "internalType": "uint64", - "name": "", - "type": "uint64" + "internalType": "contract Bridge", + "name": "_bridge", + "type": "address" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "requestNewWallet", - "outputs": [], "stateMutability": "nonpayable", - "type": "function" + "type": "constructor" }, { "inputs": [], - "name": "rewardParameters", + "name": "DEPOSIT_MIN_AGE", "outputs": [ { - "internalType": "uint256", - "name": "maliciousDkgResultNotificationRewardMultiplier", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sortitionPoolRewardsBanDuration", - "type": "uint256" + "internalType": "uint32", + "name": "", + "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint96", - "name": "amount", - "type": "uint96" - }, - { - "internalType": "uint256", - "name": "rewardMultiplier", - "type": "uint256" - }, - { - "internalType": "address", - "name": "notifier", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" - }, + "inputs": [], + "name": "DEPOSIT_REFUND_SAFETY_MARGIN", + "outputs": [ { - "internalType": "uint32[]", - "name": "walletMembersIDs", - "type": "uint32[]" + "internalType": "uint32", + "name": "", + "type": "uint32" } ], - "name": "seize", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [], - "name": "selectGroup", + "name": "DEPOSIT_SWEEP_MAX_SIZE", "outputs": [ { - "internalType": "uint32[]", + "internalType": "uint16", "name": "", - "type": "uint32[]" + "type": "uint16" } ], "stateMutability": "view", @@ -15794,12 +14931,12 @@ }, { "inputs": [], - "name": "slashingParameters", + "name": "REDEMPTION_MAX_SIZE", "outputs": [ { - "internalType": "uint96", - "name": "maliciousDkgResultSlashingAmount", - "type": "uint96" + "internalType": "uint16", + "name": "", + "type": "uint16" } ], "stateMutability": "view", @@ -15807,12 +14944,12 @@ }, { "inputs": [], - "name": "sortitionPool", + "name": "REDEMPTION_REQUEST_MIN_AGE", "outputs": [ { - "internalType": "contract SortitionPool", + "internalType": "uint32", "name": "", - "type": "address" + "type": "uint32" } ], "stateMutability": "view", @@ -15820,29 +14957,23 @@ }, { "inputs": [], - "name": "staking", + "name": "REDEMPTION_REQUEST_TIMEOUT_SAFETY_MARGIN", "outputs": [ { - "internalType": "contract IStaking", + "internalType": "uint32", "name": "", - "type": "address" + "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "stakingProvider", - "type": "address" - } - ], - "name": "stakingProviderToOperator", + "inputs": [], + "name": "bridge", "outputs": [ { - "internalType": "address", + "internalType": "contract Bridge", "name": "", "type": "address" } @@ -15855,244 +14986,233 @@ { "components": [ { - "internalType": "uint256", - "name": "submitterMemberIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "groupPubKey", - "type": "bytes" + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" }, { - "internalType": "uint8[]", - "name": "misbehavedMembersIndices", - "type": "uint8[]" + "components": [ + { + "internalType": "bytes32", + "name": "fundingTxHash", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "fundingOutputIndex", + "type": "uint32" + } + ], + "internalType": "struct WalletProposalValidator.DepositKey[]", + "name": "depositsKeys", + "type": "tuple[]" }, { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" + "internalType": "uint256", + "name": "sweepTxFee", + "type": "uint256" }, { "internalType": "uint256[]", - "name": "signingMembersIndices", + "name": "depositsRevealBlocks", "type": "uint256[]" - }, - { - "internalType": "uint32[]", - "name": "members", - "type": "uint32[]" - }, - { - "internalType": "bytes32", - "name": "membersHash", - "type": "bytes32" } ], - "internalType": "struct EcdsaDkg.Result", - "name": "dkgResult", + "internalType": "struct WalletProposalValidator.DepositSweepProposal", + "name": "proposal", "type": "tuple" - } - ], - "name": "submitDkgResult", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newGovernance", - "type": "address" - } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint96", - "name": "_minimumAuthorization", - "type": "uint96" - }, - { - "internalType": "uint64", - "name": "_authorizationDecreaseDelay", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "_authorizationDecreaseChangePeriod", - "type": "uint64" - } - ], - "name": "updateAuthorizationParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_seedTimeout", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_resultChallengePeriodLength", - "type": "uint256" }, { - "internalType": "uint256", - "name": "_resultChallengeExtraGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_resultSubmissionTimeout", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_submitterPrecedencePeriodLength", - "type": "uint256" + "components": [ + { + "components": [ + { + "internalType": "bytes4", + "name": "version", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "inputVector", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "outputVector", + "type": "bytes" + }, + { + "internalType": "bytes4", + "name": "locktime", + "type": "bytes4" + } + ], + "internalType": "struct BitcoinTx.Info", + "name": "fundingTx", + "type": "tuple" + }, + { + "internalType": "bytes8", + "name": "blindingFactor", + "type": "bytes8" + }, + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes20", + "name": "refundPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes4", + "name": "refundLocktime", + "type": "bytes4" + } + ], + "internalType": "struct WalletProposalValidator.DepositExtraInfo[]", + "name": "depositsExtraInfo", + "type": "tuple[]" } ], - "name": "updateDkgParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dkgResultSubmissionGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "dkgResultApprovalGasOffset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "notifyOperatorInactivityGasOffset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "notifySeedTimeoutGasOffset", - "type": "uint256" - }, + "name": "validateDepositSweepProposal", + "outputs": [ { - "internalType": "uint256", - "name": "notifyDkgTimeoutNegativeGasOffset", - "type": "uint256" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "updateGasParameters", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "operator", - "type": "address" + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct WalletProposalValidator.HeartbeatProposal", + "name": "proposal", + "type": "tuple" } ], - "name": "updateOperatorStatus", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "name": "validateHeartbeatProposal", + "outputs": [ { - "internalType": "contract ReimbursementPool", - "name": "_reimbursementPool", - "type": "address" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "updateReimbursementPool", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "maliciousDkgResultNotificationRewardMultiplier", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sortitionPoolRewardsBanDuration", - "type": "uint256" + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes32", + "name": "movingFundsTxHash", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "movingFundsTxOutputIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "movedFundsSweepTxFee", + "type": "uint256" + } + ], + "internalType": "struct WalletProposalValidator.MovedFundsSweepProposal", + "name": "proposal", + "type": "tuple" } ], - "name": "updateRewardParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "name": "validateMovedFundsSweepProposal", + "outputs": [ { - "internalType": "uint96", - "name": "maliciousDkgResultSlashingAmount", - "type": "uint96" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "updateSlashingParameters", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "contract IWalletOwner", - "name": "_walletOwner", - "type": "address" - } - ], - "name": "updateWalletOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes20[]", + "name": "targetWallets", + "type": "bytes20[]" + }, + { + "internalType": "uint256", + "name": "movingFundsTxFee", + "type": "uint256" + } + ], + "internalType": "struct WalletProposalValidator.MovingFundsProposal", + "name": "proposal", + "type": "tuple" + }, { - "internalType": "contract IRandomBeacon", - "name": "_randomBeacon", - "type": "address" + "components": [ + { + "internalType": "bytes32", + "name": "txHash", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "txOutputIndex", + "type": "uint32" + }, + { + "internalType": "uint64", + "name": "txOutputValue", + "type": "uint64" + } + ], + "internalType": "struct BitcoinTx.UTXO", + "name": "walletMainUtxo", + "type": "tuple" } ], - "name": "upgradeRandomBeacon", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "walletOwner", + "name": "validateMovingFundsProposal", "outputs": [ { - "internalType": "contract IWalletOwner", + "internalType": "bool", "name": "", - "type": "address" + "type": "bool" } ], "stateMutability": "view", @@ -16101,27 +15221,37 @@ { "inputs": [ { - "internalType": "address", - "name": "recipient", - "type": "address" + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes[]", + "name": "redeemersOutputScripts", + "type": "bytes[]" + }, + { + "internalType": "uint256", + "name": "redemptionTxFee", + "type": "uint256" + } + ], + "internalType": "struct WalletProposalValidator.RedemptionProposal", + "name": "proposal", + "type": "tuple" } ], - "name": "withdrawIneligibleRewards", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "name": "validateRedemptionProposal", + "outputs": [ { - "internalType": "address", - "name": "stakingProvider", - "type": "address" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "withdrawRewards", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" } ] diff --git a/solidity/package.json b/solidity/package.json index 781cd2806..a13c51bb5 100644 --- a/solidity/package.json +++ b/solidity/package.json @@ -1,6 +1,6 @@ { "name": "@keep-network/tbtc-v2", - "version": "1.8.0-dev", + "version": "1.7.0-dev", "license": "GPL-3.0-only", "files": [ "artifacts/", From 6b2903d3b916cd9ba4612d837c1a7d71daa6f7bd Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 28 Jan 2025 22:00:41 -0300 Subject: [PATCH 7/9] added slither-disable-next-line for reentrancy warning It has been set deposits[depositKey] = DepositState.Finalized; before the external call. If an attacker tries to re-enter finalizeDeposit, it fails because the deposit is no longer in the Initialized state. Added slither-disable-next-line for the reentrancy warning. --- solidity/contracts/l2/L1BitcoinDepositor.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solidity/contracts/l2/L1BitcoinDepositor.sol b/solidity/contracts/l2/L1BitcoinDepositor.sol index f36eb4df7..0d02cc05c 100644 --- a/solidity/contracts/l2/L1BitcoinDepositor.sol +++ b/solidity/contracts/l2/L1BitcoinDepositor.sol @@ -491,6 +491,8 @@ contract L1BitcoinDepositor is // The DAO is "refunding" it by adding it to the TBTC minted. tbtcAmount += txMaxFee; } + + // slither-disable-next-line reentrancy-events emit DepositFinalized( depositKey, WormholeUtils.fromWormholeAddress(l2DepositOwner), From 67d1d51377684967d60e91facda43650d2a08a0b Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 28 Jan 2025 23:08:20 -0300 Subject: [PATCH 8/9] updating artifacts for new deployment version of the L1BitcoinDepositor updating artifacts for new deployment version of the L1BitcoinDepositor. L2BitcoinDepositor was re-deployed for correct attachment to the new L1BitcoinDepositor. --- .../base/.openzeppelin/base-sepolia.json | 25 +- cross-chain/base/.openzeppelin/sepolia.json | 627 +----------------- .../baseSepolia/BaseL2BitcoinDepositor.json | 76 +-- .../sepolia/BaseL1BitcoinDepositor.json | 72 +- .../baseSepolia/BaseL2BitcoinDepositor.json | 76 +-- .../sepolia/BaseL1BitcoinDepositor.json | 72 +- 6 files changed, 164 insertions(+), 784 deletions(-) diff --git a/cross-chain/base/.openzeppelin/base-sepolia.json b/cross-chain/base/.openzeppelin/base-sepolia.json index de4932117..3e9b503ec 100644 --- a/cross-chain/base/.openzeppelin/base-sepolia.json +++ b/cross-chain/base/.openzeppelin/base-sepolia.json @@ -1,25 +1,20 @@ { "manifestVersion": "3.2", "admin": { - "address": "0xD5D30Fafca5A5D371A46F77CACC4dB5F811Ef917", - "txHash": "0xd5aa149d61c364bf7e5c468c2856471fe31c673e891d96fe68379ba09b3b2722" + "address": "0xbbe11Cb434f9DDAc9CC2eEC7D88D5C6ED4C41EA7", + "txHash": "0xf28a215383f01f3f757eac8e950907959b47f488c5233363cf4d11c3afd269b0" }, "proxies": [ { - "address": "0xF462413315Ee37AEBD0f5cA4296D9F3F3D9C4A59", - "txHash": "0xa6892c4e53e8343bbfbf53c2968a2bd833f1526811c5e7cb4eb71e1254a6dc49", - "kind": "transparent" - }, - { - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", - "txHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", + "txHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", "kind": "transparent" } ], "impls": { "6f8a080eb3d81df72370bb32bfb791d146b0b8bb3ffba9da54d6a2155f00b013": { - "address": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", - "txHash": "0x785a8e7c33b6adf9cf95e4f5a9b324959443125dc4a82d939976f1f78e79f10b", + "address": "0xda04b0Ae3E07dd4a14Ca993C47461b5Be18C3D4A", + "txHash": "0x410681893ea908a34d396cd25fa019b3cad441852df67f6bb54f79b3592bf07c", "layout": { "solcVersion": "0.8.17", "storage": [ @@ -70,7 +65,7 @@ "slot": "101", "type": "t_contract(IWormholeRelayer)4663", "contract": "L2BitcoinDepositor", - "src": "contracts/arbitrumSepolia/L2BitcoinDepositor.sol:55" + "src": "contracts/baseSepolia/L2BitcoinDepositor.sol:55" }, { "label": "l2WormholeGateway", @@ -78,7 +73,7 @@ "slot": "102", "type": "t_contract(IL2WormholeGateway)4393", "contract": "L2BitcoinDepositor", - "src": "contracts/arbitrumSepolia/L2BitcoinDepositor.sol:59" + "src": "contracts/baseSepolia/L2BitcoinDepositor.sol:59" }, { "label": "l1ChainId", @@ -86,7 +81,7 @@ "slot": "102", "type": "t_uint16", "contract": "L2BitcoinDepositor", - "src": "contracts/arbitrumSepolia/L2BitcoinDepositor.sol:65" + "src": "contracts/baseSepolia/L2BitcoinDepositor.sol:65" }, { "label": "l1BitcoinDepositor", @@ -94,7 +89,7 @@ "slot": "103", "type": "t_address", "contract": "L2BitcoinDepositor", - "src": "contracts/arbitrumSepolia/L2BitcoinDepositor.sol:68" + "src": "contracts/baseSepolia/L2BitcoinDepositor.sol:68" } ], "types": { diff --git a/cross-chain/base/.openzeppelin/sepolia.json b/cross-chain/base/.openzeppelin/sepolia.json index a759b3512..b3b703f95 100644 --- a/cross-chain/base/.openzeppelin/sepolia.json +++ b/cross-chain/base/.openzeppelin/sepolia.json @@ -1,635 +1,20 @@ { "manifestVersion": "3.2", "admin": { - "address": "0x8d58747Ef805317270FF7f8E51a8018d3488b17b", - "txHash": "0xe630831df51a6aa2450319e27805b6e3d0d42a5dc32ebac235d480e8e5e099bc" + "address": "0xF9DAe701c26E4DF76E3CD6E16f9939Af15d5590B", + "txHash": "0x17a9bb8dc21ea475f29656ee24b87c8b270690973123201506746fed5b1a1988" }, "proxies": [ { - "address": "0xD9B523fb879C63b00ef14e48C98f4e3398d3BA2D", - "txHash": "0x2673ee5eb6ce999663c7897ab29bf0e0fda955dccc1f7d374968322d0148ade3", - "kind": "transparent" - }, - { - "address": "0x37169570D846Cc05D5848AAA30194d308b355638", - "txHash": "0xa484c7875f4a2f5e387316cc4490e348767004e351a2d0b312fd32eb509d0f96", - "kind": "transparent" - }, - { - "address": "0xD5D30Fafca5A5D371A46F77CACC4dB5F811Ef917", - "txHash": "0x5be509b38378594b96da0ef547989a2c2b42d6bc2a12809e4d217a1ab6edabaf", - "kind": "transparent" - }, - { - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", - "txHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", + "txHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", "kind": "transparent" } ], "impls": { - "474c94a50caf8a2aedb92298fbb65c5eaea664750bb7a73a96d07ac8f5f96b49": { - "address": "0xf90292a39014033DE50c81f651365cB6A1040Bb6", - "txHash": "0x4a2e3dab4d5c32c7a1370bf0325f09380188d28987bd5861659dcc2773ecefa9", - "layout": { - "solcVersion": "0.8.17", - "storage": [ - { - "label": "_initialized", - "offset": 0, - "slot": "0", - "type": "t_uint8", - "contract": "Initializable", - "src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:63", - "retypedFrom": "bool" - }, - { - "label": "_initializing", - "offset": 1, - "slot": "0", - "type": "t_bool", - "contract": "Initializable", - "src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:68" - }, - { - "label": "bridge", - "offset": 2, - "slot": "0", - "type": "t_contract(IBridge)5228", - "contract": "AbstractTBTCDepositor", - "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:95" - }, - { - "label": "tbtcVault", - "offset": 0, - "slot": "1", - "type": "t_contract(ITBTCVault)5254", - "contract": "AbstractTBTCDepositor", - "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:96" - }, - { - "label": "__gap", - "offset": 0, - "slot": "2", - "type": "t_array(t_uint256)47_storage", - "contract": "AbstractTBTCDepositor", - "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:111" - }, - { - "label": "__gap", - "offset": 0, - "slot": "49", - "type": "t_array(t_uint256)50_storage", - "contract": "ContextUpgradeable", - "src": "@openzeppelin\\contracts-upgradeable\\utils\\ContextUpgradeable.sol:40" - }, - { - "label": "_owner", - "offset": 0, - "slot": "99", - "type": "t_address", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:22" - }, - { - "label": "__gap", - "offset": 0, - "slot": "100", - "type": "t_array(t_uint256)49_storage", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:94" - }, - { - "label": "reimbursementPool", - "offset": 0, - "slot": "149", - "type": "t_contract(ReimbursementPool)2999", - "contract": "Reimbursable", - "src": "@keep-network\\random-beacon\\contracts\\Reimbursable.sol:51" - }, - { - "label": "__gap", - "offset": 0, - "slot": "150", - "type": "t_array(t_uint256)49_storage", - "contract": "Reimbursable", - "src": "@keep-network\\random-beacon\\contracts\\Reimbursable.sol:51" - }, - { - "label": "deposits", - "offset": 0, - "slot": "199", - "type": "t_mapping(t_uint256,t_enum(DepositState)5281)", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:112" - }, - { - "label": "tbtcToken", - "offset": 0, - "slot": "200", - "type": "t_contract(IERC20Upgradeable)3379", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:114" - }, - { - "label": "wormhole", - "offset": 0, - "slot": "201", - "type": "t_contract(IWormhole)6103", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:116" - }, - { - "label": "wormholeRelayer", - "offset": 0, - "slot": "202", - "type": "t_contract(IWormholeRelayer)6143", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:117" - }, - { - "label": "wormholeTokenBridge", - "offset": 0, - "slot": "203", - "type": "t_contract(IWormholeTokenBridge)6228", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:119" - }, - { - "label": "l2WormholeGateway", - "offset": 0, - "slot": "204", - "type": "t_address", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:120" - }, - { - "label": "l2ChainId", - "offset": 20, - "slot": "204", - "type": "t_uint16", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:122" - }, - { - "label": "l2BitcoinDepositor", - "offset": 0, - "slot": "205", - "type": "t_address", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:124" - }, - { - "label": "l2FinalizeDepositGasLimit", - "offset": 0, - "slot": "206", - "type": "t_uint256", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:129" - }, - { - "label": "gasReimbursements", - "offset": 0, - "slot": "207", - "type": "t_mapping(t_uint256,t_struct(GasReimbursement)5288_storage)", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:138" - }, - { - "label": "initializeDepositGasOffset", - "offset": 0, - "slot": "208", - "type": "t_uint256", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:141" - }, - { - "label": "finalizeDepositGasOffset", - "offset": 0, - "slot": "209", - "type": "t_uint256", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:148" - }, - { - "label": "reimbursementAuthorizations", - "offset": 0, - "slot": "210", - "type": "t_mapping(t_address,t_bool)", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:158" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_uint256)47_storage": { - "label": "uint256[47]", - "numberOfBytes": "1504" - }, - "t_array(t_uint256)49_storage": { - "label": "uint256[49]", - "numberOfBytes": "1568" - }, - "t_array(t_uint256)50_storage": { - "label": "uint256[50]", - "numberOfBytes": "1600" - }, - "t_bool": { - "label": "bool", - "numberOfBytes": "1" - }, - "t_contract(IBridge)5228": { - "label": "contract IBridge", - "numberOfBytes": "20" - }, - "t_contract(IERC20Upgradeable)3379": { - "label": "contract IERC20Upgradeable", - "numberOfBytes": "20" - }, - "t_contract(ITBTCVault)5254": { - "label": "contract ITBTCVault", - "numberOfBytes": "20" - }, - "t_contract(IWormhole)6103": { - "label": "contract IWormhole", - "numberOfBytes": "20" - }, - "t_contract(IWormholeRelayer)6143": { - "label": "contract IWormholeRelayer", - "numberOfBytes": "20" - }, - "t_contract(IWormholeTokenBridge)6228": { - "label": "contract IWormholeTokenBridge", - "numberOfBytes": "20" - }, - "t_contract(ReimbursementPool)2999": { - "label": "contract ReimbursementPool", - "numberOfBytes": "20" - }, - "t_enum(DepositState)5281": { - "label": "enum L1BitcoinDepositor.DepositState", - "members": [ - "Unknown", - "Initialized", - "Finalized" - ], - "numberOfBytes": "1" - }, - "t_mapping(t_address,t_bool)": { - "label": "mapping(address => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_enum(DepositState)5281)": { - "label": "mapping(uint256 => enum L1BitcoinDepositor.DepositState)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_struct(GasReimbursement)5288_storage)": { - "label": "mapping(uint256 => struct L1BitcoinDepositor.GasReimbursement)", - "numberOfBytes": "32" - }, - "t_struct(GasReimbursement)5288_storage": { - "label": "struct L1BitcoinDepositor.GasReimbursement", - "members": [ - { - "label": "receiver", - "type": "t_address", - "offset": 0, - "slot": "0" - }, - { - "label": "gasSpent", - "type": "t_uint96", - "offset": 20, - "slot": "0" - } - ], - "numberOfBytes": "32" - }, - "t_uint16": { - "label": "uint16", - "numberOfBytes": "2" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - }, - "t_uint96": { - "label": "uint96", - "numberOfBytes": "12" - } - }, - "namespaces": {} - } - }, - "a6ee8e05616cabffb964a1fbfba6d1a425cf126ec5a864cdb7d7c660b3cde83e": { - "address": "0xFf79fca71751A5A0C4487a1aCE268d6cd2A64Db1", - "txHash": "0x238607f616e60d3f032fd6e81bde3652a843255334b78b841bc4365a827eec8e", - "layout": { - "solcVersion": "0.8.17", - "storage": [ - { - "label": "bridge", - "offset": 0, - "slot": "0", - "type": "t_contract(IBridge)5228", - "contract": "AbstractTBTCDepositor", - "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:95" - }, - { - "label": "tbtcVault", - "offset": 0, - "slot": "1", - "type": "t_contract(ITBTCVault)5254", - "contract": "AbstractTBTCDepositor", - "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:96" - }, - { - "label": "__gap", - "offset": 0, - "slot": "2", - "type": "t_array(t_uint256)47_storage", - "contract": "AbstractTBTCDepositor", - "src": "contracts\\integrator\\AbstractTBTCDepositor.sol:111" - }, - { - "label": "_initialized", - "offset": 0, - "slot": "49", - "type": "t_uint8", - "contract": "Initializable", - "src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:63", - "retypedFrom": "bool" - }, - { - "label": "_initializing", - "offset": 1, - "slot": "49", - "type": "t_bool", - "contract": "Initializable", - "src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:68" - }, - { - "label": "__gap", - "offset": 0, - "slot": "50", - "type": "t_array(t_uint256)50_storage", - "contract": "ContextUpgradeable", - "src": "@openzeppelin\\contracts-upgradeable\\utils\\ContextUpgradeable.sol:40" - }, - { - "label": "_owner", - "offset": 0, - "slot": "100", - "type": "t_address", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:22" - }, - { - "label": "__gap", - "offset": 0, - "slot": "101", - "type": "t_array(t_uint256)49_storage", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:94" - }, - { - "label": "reimbursementPool", - "offset": 0, - "slot": "150", - "type": "t_contract(ReimbursementPool)2999", - "contract": "Reimbursable", - "src": "@keep-network\\random-beacon\\contracts\\Reimbursable.sol:51" - }, - { - "label": "__gap", - "offset": 0, - "slot": "151", - "type": "t_array(t_uint256)49_storage", - "contract": "Reimbursable", - "src": "@keep-network\\random-beacon\\contracts\\Reimbursable.sol:51" - }, - { - "label": "deposits", - "offset": 0, - "slot": "200", - "type": "t_mapping(t_uint256,t_enum(DepositState)5279)", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:111" - }, - { - "label": "tbtcToken", - "offset": 0, - "slot": "201", - "type": "t_contract(IERC20Upgradeable)3379", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:113" - }, - { - "label": "wormhole", - "offset": 0, - "slot": "202", - "type": "t_contract(IWormhole)6117", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:115" - }, - { - "label": "wormholeRelayer", - "offset": 0, - "slot": "203", - "type": "t_contract(IWormholeRelayer)6157", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:116" - }, - { - "label": "wormholeTokenBridge", - "offset": 0, - "slot": "204", - "type": "t_contract(IWormholeTokenBridge)6242", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:117" - }, - { - "label": "l2WormholeGateway", - "offset": 0, - "slot": "205", - "type": "t_address", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:119" - }, - { - "label": "l2ChainId", - "offset": 20, - "slot": "205", - "type": "t_uint16", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:121" - }, - { - "label": "l2BitcoinDepositor", - "offset": 0, - "slot": "206", - "type": "t_address", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:123" - }, - { - "label": "l2FinalizeDepositGasLimit", - "offset": 0, - "slot": "207", - "type": "t_uint256", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:128" - }, - { - "label": "gasReimbursements", - "offset": 0, - "slot": "208", - "type": "t_mapping(t_uint256,t_struct(GasReimbursement)5286_storage)", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:137" - }, - { - "label": "initializeDepositGasOffset", - "offset": 0, - "slot": "209", - "type": "t_uint256", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:140" - }, - { - "label": "finalizeDepositGasOffset", - "offset": 0, - "slot": "210", - "type": "t_uint256", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:146" - }, - { - "label": "reimbursementAuthorizations", - "offset": 0, - "slot": "211", - "type": "t_mapping(t_address,t_bool)", - "contract": "L1BitcoinDepositor", - "src": "contracts\\sepolia\\L1BitcoinDepositor.sol:157" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_uint256)47_storage": { - "label": "uint256[47]", - "numberOfBytes": "1504" - }, - "t_array(t_uint256)49_storage": { - "label": "uint256[49]", - "numberOfBytes": "1568" - }, - "t_array(t_uint256)50_storage": { - "label": "uint256[50]", - "numberOfBytes": "1600" - }, - "t_bool": { - "label": "bool", - "numberOfBytes": "1" - }, - "t_contract(IBridge)5228": { - "label": "contract IBridge", - "numberOfBytes": "20" - }, - "t_contract(IERC20Upgradeable)3379": { - "label": "contract IERC20Upgradeable", - "numberOfBytes": "20" - }, - "t_contract(ITBTCVault)5254": { - "label": "contract ITBTCVault", - "numberOfBytes": "20" - }, - "t_contract(IWormhole)6117": { - "label": "contract IWormhole", - "numberOfBytes": "20" - }, - "t_contract(IWormholeRelayer)6157": { - "label": "contract IWormholeRelayer", - "numberOfBytes": "20" - }, - "t_contract(IWormholeTokenBridge)6242": { - "label": "contract IWormholeTokenBridge", - "numberOfBytes": "20" - }, - "t_contract(ReimbursementPool)2999": { - "label": "contract ReimbursementPool", - "numberOfBytes": "20" - }, - "t_enum(DepositState)5279": { - "label": "enum L1BitcoinDepositor.DepositState", - "members": [ - "Unknown", - "Initialized", - "Finalized" - ], - "numberOfBytes": "1" - }, - "t_mapping(t_address,t_bool)": { - "label": "mapping(address => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_enum(DepositState)5279)": { - "label": "mapping(uint256 => enum L1BitcoinDepositor.DepositState)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_struct(GasReimbursement)5286_storage)": { - "label": "mapping(uint256 => struct L1BitcoinDepositor.GasReimbursement)", - "numberOfBytes": "32" - }, - "t_struct(GasReimbursement)5286_storage": { - "label": "struct L1BitcoinDepositor.GasReimbursement", - "members": [ - { - "label": "receiver", - "type": "t_address", - "offset": 0, - "slot": "0" - }, - { - "label": "gasSpent", - "type": "t_uint96", - "offset": 20, - "slot": "0" - } - ], - "numberOfBytes": "32" - }, - "t_uint16": { - "label": "uint16", - "numberOfBytes": "2" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - }, - "t_uint96": { - "label": "uint96", - "numberOfBytes": "12" - } - }, - "namespaces": {} - } - }, "6d2ea0a2785b57debf45e9592947c1b943a6374b14fb50fc4d08666d1fd2ee9e": { - "address": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", - "txHash": "0xf81b5f159c6e0cfb4ea14a57411688282810e8c6335eadf9d5ea8aa2c5af2752", + "address": "0x8e261d2a1966E2329C161C1ec2a6E4686056a99c", + "txHash": "0xe0f75571e5193fd188bcb15699673ee3f115efa02eb8d0f8a64d785fb5c8ec02", "layout": { "solcVersion": "0.8.17", "storage": [ diff --git a/cross-chain/base/deployments/baseSepolia/BaseL2BitcoinDepositor.json b/cross-chain/base/deployments/baseSepolia/BaseL2BitcoinDepositor.json index dc687fb70..1f614ee66 100644 --- a/cross-chain/base/deployments/baseSepolia/BaseL2BitcoinDepositor.json +++ b/cross-chain/base/deployments/baseSepolia/BaseL2BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "abi": [ { "inputs": [], @@ -355,75 +355,75 @@ "type": "function" } ], - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", "receipt": { "to": null, - "from": "0x353C5c3DE81EDb53FFB398f6416f962b90ae8611", - "contractAddress": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", - "transactionIndex": 28, + "from": "0xAAe2a793666c0A0C7BbBbAa18170298aB9146d0e", + "contractAddress": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", + "transactionIndex": 27, "gasUsed": "704872", - "logsBloom": "0x00000800000000000000000000000000400000000000000000800000000000020000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400000000000000000000000000000000000000000000084000004000000800000000000000000000000020000000400000000000200000000000000000000000000000020000000000000000000040000000000000400000000000010000020100000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880", - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "logsBloom": "0x00000000000000000002000000000000400000000000000000800000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000002000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000002000400000000010000000000000000000000000000000000080000000080000800000000000000000000100000000000400000000000000000000000008000000000000000020000000000000000000040000000000000400000010000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d", + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", "logs": [ { - "transactionIndex": 28, - "blockNumber": 21133582, - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 27, + "blockNumber": 21173079, + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000001fe7385497a45191c5321fdd903d880491e47dd7" + "0x000000000000000000000000da04b0ae3e07dd4a14ca993c47461b5be18c3d4a" ], "data": "0x", - "logIndex": 86, - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" + "logIndex": 55, + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d" }, { - "transactionIndex": 28, - "blockNumber": 21133582, - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 27, + "blockNumber": 21173079, + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000353c5c3de81edb53ffb398f6416f962b90ae8611" + "0x000000000000000000000000aae2a793666c0a0c7bbbbaa18170298ab9146d0e" ], "data": "0x", - "logIndex": 87, - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" + "logIndex": 56, + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d" }, { - "transactionIndex": 28, - "blockNumber": 21133582, - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 27, + "blockNumber": 21173079, + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 88, - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" + "logIndex": 57, + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d" }, { - "transactionIndex": 28, - "blockNumber": 21133582, - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 27, + "blockNumber": 21173079, + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5d30fafca5a5d371a46f77cacc4db5f811ef917", - "logIndex": 89, - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" + "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbe11cb434f9ddac9cc2eec7d88d5c6ed4c41ea7", + "logIndex": 58, + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d" } ], - "blockNumber": 21133582, - "cumulativeGasUsed": "4323019", + "blockNumber": 21173079, + "cumulativeGasUsed": "3229068", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", + "implementation": "0xda04b0Ae3E07dd4a14Ca993C47461b5Be18C3D4A", "devdoc": "Contract deployed as upgradable proxy" } \ No newline at end of file diff --git a/cross-chain/base/deployments/sepolia/BaseL1BitcoinDepositor.json b/cross-chain/base/deployments/sepolia/BaseL1BitcoinDepositor.json index 4c11de7b9..17c3caf22 100644 --- a/cross-chain/base/deployments/sepolia/BaseL1BitcoinDepositor.json +++ b/cross-chain/base/deployments/sepolia/BaseL1BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "abi": [ { "inputs": [], @@ -702,75 +702,75 @@ "type": "function" } ], - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", "receipt": { "to": null, "from": "0x353C5c3DE81EDb53FFB398f6416f962b90ae8611", - "contractAddress": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", - "transactionIndex": 163, + "contractAddress": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", + "transactionIndex": 109, "gasUsed": "890221", - "logsBloom": "0x00000800000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000200000000000400000000000000000000000000000000000000000000080000004000000800000000000000000000000020000000400000000000200000000000000000000000000000020000000000000000000040010000000000400000000000000000028100000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0", - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "logsBloom": "0x00000000800000000000000000000000400000000000040000800000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000200000000000020000000000000000000800000000800000000000000000000000400000000000000000000000000040000000000000000080000000000000800800000000000000000000000000000400000000000200000000000000000000000000000020000000000000000000040000000000000400000000100000000020100000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6", + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", "logs": [ { - "transactionIndex": 163, - "blockNumber": 7585981, - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 109, + "blockNumber": 7592526, + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000001fe7385497a45191c5321fdd903d880491e47dd7" + "0x0000000000000000000000008e261d2a1966e2329c161c1ec2a6e4686056a99c" ], "data": "0x", - "logIndex": 290, - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" + "logIndex": 151, + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6" }, { - "transactionIndex": 163, - "blockNumber": 7585981, - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 109, + "blockNumber": 7592526, + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x000000000000000000000000353c5c3de81edb53ffb398f6416f962b90ae8611" ], "data": "0x", - "logIndex": 291, - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" + "logIndex": 152, + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6" }, { - "transactionIndex": 163, - "blockNumber": 7585981, - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 109, + "blockNumber": 7592526, + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 292, - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" + "logIndex": 153, + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6" }, { - "transactionIndex": 163, - "blockNumber": 7585981, - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 109, + "blockNumber": 7592526, + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], - "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000008d58747ef805317270ff7f8e51a8018d3488b17b", - "logIndex": 293, - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" + "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9dae701c26e4df76e3cd6e16f9939af15d5590b", + "logIndex": 154, + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6" } ], - "blockNumber": 7585981, - "cumulativeGasUsed": "22707418", + "blockNumber": 7592526, + "cumulativeGasUsed": "11291714", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", + "implementation": "0x8e261d2a1966E2329C161C1ec2a6E4686056a99c", "devdoc": "Contract deployed as upgradable proxy" } \ No newline at end of file diff --git a/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json b/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json index 067c79f63..a6e3de4a1 100644 --- a/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json +++ b/typescript/src/lib/base/artifacts/baseSepolia/BaseL2BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "abi": [ { "inputs": [], @@ -355,75 +355,75 @@ "type": "function" } ], - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", "receipt": { "to": null, - "from": "0x353C5c3DE81EDb53FFB398f6416f962b90ae8611", - "contractAddress": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", - "transactionIndex": 28, + "from": "0xAAe2a793666c0A0C7BbBbAa18170298aB9146d0e", + "contractAddress": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", + "transactionIndex": 27, "gasUsed": "704872", - "logsBloom": "0x00000800000000000000000000000000400000000000000000800000000000020000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400000000000000000000000000000000000000000000084000004000000800000000000000000000000020000000400000000000200000000000000000000000000000020000000000000000000040000000000000400000000000010000020100000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880", - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", + "logsBloom": "0x00000000000000000002000000000000400000000000000000800000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000002000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000002000400000000010000000000000000000000000000000000080000000080000800000000000000000000100000000000400000000000000000000000008000000000000000020000000000000000000040000000000000400000010000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d", + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", "logs": [ { - "transactionIndex": 28, - "blockNumber": 21133582, - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 27, + "blockNumber": 21173079, + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000001fe7385497a45191c5321fdd903d880491e47dd7" + "0x000000000000000000000000da04b0ae3e07dd4a14ca993c47461b5be18c3d4a" ], "data": "0x", - "logIndex": 86, - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" + "logIndex": 55, + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d" }, { - "transactionIndex": 28, - "blockNumber": 21133582, - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 27, + "blockNumber": 21173079, + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000353c5c3de81edb53ffb398f6416f962b90ae8611" + "0x000000000000000000000000aae2a793666c0a0c7bbbbaa18170298ab9146d0e" ], "data": "0x", - "logIndex": 87, - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" + "logIndex": 56, + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d" }, { - "transactionIndex": 28, - "blockNumber": 21133582, - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 27, + "blockNumber": 21173079, + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 88, - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" + "logIndex": 57, + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d" }, { - "transactionIndex": 28, - "blockNumber": 21133582, - "transactionHash": "0x71ab0fe261eb0384d92fa4867462ddec5da79471b4dbeb91d3910baab5bd76b6", - "address": "0x4dC7F374226FDe3395fEdDF4A591F6bfc02Ef9Cf", + "transactionIndex": 27, + "blockNumber": 21173079, + "transactionHash": "0x8338ef2cea60670e4cce6c0ef68592abe2a1e7fc0cde5b2e5d74468438f3cecd", + "address": "0xDEbD9aA9BC4845c7Cd2d9a997F82A2Daea540bD5", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5d30fafca5a5d371a46f77cacc4db5f811ef917", - "logIndex": 89, - "blockHash": "0x926a4c7206d730a0f552b6ac95551464ec8919568cfd3b7735e01c9c64f89880" + "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbe11cb434f9ddac9cc2eec7d88d5c6ed4c41ea7", + "logIndex": 58, + "blockHash": "0xf151516e60cc77d48b4a34495a8a258c1b748f019394fa00cc4a82fc57571c0d" } ], - "blockNumber": 21133582, - "cumulativeGasUsed": "4323019", + "blockNumber": 21173079, + "cumulativeGasUsed": "3229068", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", + "implementation": "0xda04b0Ae3E07dd4a14Ca993C47461b5Be18C3D4A", "devdoc": "Contract deployed as upgradable proxy" } diff --git a/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json b/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json index 89fd16d6f..3ceebbb36 100644 --- a/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json +++ b/typescript/src/lib/ethereum/artifacts/sepolia/BaseL1BitcoinDepositor.json @@ -1,5 +1,5 @@ { - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "abi": [ { "inputs": [], @@ -702,75 +702,75 @@ "type": "function" } ], - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", "receipt": { "to": null, "from": "0x353C5c3DE81EDb53FFB398f6416f962b90ae8611", - "contractAddress": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", - "transactionIndex": 163, + "contractAddress": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", + "transactionIndex": 109, "gasUsed": "890221", - "logsBloom": "0x00000800000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000200000000000400000000000000000000000000000000000000000000080000004000000800000000000000000000000020000000400000000000200000000000000000000000000000020000000000000000000040010000000000400000000000000000028100000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0", - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", + "logsBloom": "0x00000000800000000000000000000000400000000000040000800000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000002000001000000000000000000000000200000000000020000000000000000000800000000800000000000000000000000400000000000000000000000000040000000000000000080000000000000800800000000000000000000000000000400000000000200000000000000000000000000000020000000000000000000040000000000000400000000100000000020100000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6", + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", "logs": [ { - "transactionIndex": 163, - "blockNumber": 7585981, - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 109, + "blockNumber": 7592526, + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000001fe7385497a45191c5321fdd903d880491e47dd7" + "0x0000000000000000000000008e261d2a1966e2329c161c1ec2a6e4686056a99c" ], "data": "0x", - "logIndex": 290, - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" + "logIndex": 151, + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6" }, { - "transactionIndex": 163, - "blockNumber": 7585981, - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 109, + "blockNumber": 7592526, + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x000000000000000000000000353c5c3de81edb53ffb398f6416f962b90ae8611" ], "data": "0x", - "logIndex": 291, - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" + "logIndex": 152, + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6" }, { - "transactionIndex": 163, - "blockNumber": 7585981, - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 109, + "blockNumber": 7592526, + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 292, - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" + "logIndex": 153, + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6" }, { - "transactionIndex": 163, - "blockNumber": 7585981, - "transactionHash": "0x79e534abfe3409af61a5d2454c1527c17c165854926254a866dc6a2d8d802fd9", - "address": "0x39dd60293D1D435aEFa75c3773b92D86Cd47c582", + "transactionIndex": 109, + "blockNumber": 7592526, + "transactionHash": "0xa717881fde2b4a8f0bfd99bed89217df6cde5b09179c1562dc90d5a585fb3a3f", + "address": "0x59FAE614867b66421b44D1Ed3461e6B6a4B50106", "topics": [ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" ], - "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000008d58747ef805317270ff7f8e51a8018d3488b17b", - "logIndex": 293, - "blockHash": "0xebac2a7b6d9da294a139a27df2e0eafcb489d3d24603dddf1ea85afa13ad31f0" + "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9dae701c26e4df76e3cd6e16f9939af15d5590b", + "logIndex": 154, + "blockHash": "0x8763fc2bcf540d3e552042512e5563e404054b580ed517c5ee35cefc92da78d6" } ], - "blockNumber": 7585981, - "cumulativeGasUsed": "22707418", + "blockNumber": 7592526, + "cumulativeGasUsed": "11291714", "status": 1, "byzantium": true }, "numDeployments": 1, - "implementation": "0x1Fe7385497a45191C5321FDd903d880491e47dD7", + "implementation": "0x8e261d2a1966E2329C161C1ec2a6E4686056a99c", "devdoc": "Contract deployed as upgradable proxy" } From e2e8cc37c1450e219a6cb71b18b171c34e6a0a1d Mon Sep 17 00:00:00 2001 From: Leonardo Saturnino Date: Tue, 28 Jan 2025 23:20:28 -0300 Subject: [PATCH 9/9] Reapply "Merge branch 'add-txMaxFee-to-tbtcAmount' of https://github.com/lrsaturnino/tbtc-v2 into pr/827" This reverts commit c128edad7086f28241c3230c92d79c58c12a5cc6. --- solidity/deployments/mainnet/Timelock.json | 1351 +++++ .../98e272e2fbf178ec895387b6c503f9de.json | 68 + solidity/export.json | 4946 ++++++++++------- solidity/package.json | 2 +- 4 files changed, 4328 insertions(+), 2039 deletions(-) create mode 100644 solidity/deployments/mainnet/Timelock.json create mode 100644 solidity/deployments/mainnet/solcInputs/98e272e2fbf178ec895387b6c503f9de.json diff --git a/solidity/deployments/mainnet/Timelock.json b/solidity/deployments/mainnet/Timelock.json new file mode 100644 index 000000000..61a161abb --- /dev/null +++ b/solidity/deployments/mainnet/Timelock.json @@ -0,0 +1,1351 @@ +{ + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "abi": [ + { + "inputs": [ + { + "internalType": "uint256", + "name": "minDelay", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "proposers", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "executors", + "type": "address[]" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "CallExecuted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "delay", + "type": "uint256" + } + ], + "name": "CallScheduled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "Cancelled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDuration", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDuration", + "type": "uint256" + } + ], + "name": "MinDelayChange", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" + } + ], + "name": "RoleAdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleGranted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleRevoked", + "type": "event" + }, + { + "inputs": [], + "name": "CANCELLER_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "DEFAULT_ADMIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "EXECUTOR_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "PROPOSER_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "TIMELOCK_ADMIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "cancel", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "payload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "execute", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "payloads", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "executeBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "getMinDelay", + "outputs": [ + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleAdmin", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "getTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "hashOperation", + "outputs": [ + { + "internalType": "bytes32", + "name": "hash", + "type": "bytes32" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "payloads", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "hashOperationBatch", + "outputs": [ + { + "internalType": "bytes32", + "name": "hash", + "type": "bytes32" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "isOperation", + "outputs": [ + { + "internalType": "bool", + "name": "registered", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "isOperationDone", + "outputs": [ + { + "internalType": "bool", + "name": "done", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "isOperationPending", + "outputs": [ + { + "internalType": "bool", + "name": "pending", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "isOperationReady", + "outputs": [ + { + "internalType": "bool", + "name": "ready", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155BatchReceived", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC721Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "delay", + "type": "uint256" + } + ], + "name": "schedule", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "payloads", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "delay", + "type": "uint256" + } + ], + "name": "scheduleBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelay", + "type": "uint256" + } + ], + "name": "updateDelay", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "receipt": { + "to": null, + "from": "0x123694886DBf5Ac94DDA07135349534536D14cAf", + "contractAddress": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "transactionIndex": 57, + "gasUsed": "2335681", + "logsBloom": "0x000008040000000008000000000080000a0000000002000000000000000000000000000000000004000000001001000000000000000000000200400090200400000080000000000000100010000000020040800000000000020000002001000000000000020000400000000000000800000000202000000000020000000040000000000001001000400000100000000000000000000000080000000000000004000000000022000000000000000010010100000000000000001000020000000000000000000000004000000080400000000200000000000101000100200020000000000000001000000000000080000000800000080000010000040000002000", + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225", + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "logs": [ + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", + "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5" + ], + "data": "0x", + "logIndex": 109, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", + "0xb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5" + ], + "data": "0x", + "logIndex": 110, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5" + ], + "data": "0x", + "logIndex": 111, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", + "0xfd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5" + ], + "data": "0x", + "logIndex": 112, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0x5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5", + "0x00000000000000000000000092f2d8b72a7f6a551be60b9aa4194248e9b4913d", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 113, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1", + "0x0000000000000000000000009f6e831c8f8939dc0c830c6e492e7cef4f9c2f5f", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 114, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xfd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783", + "0x0000000000000000000000009f6e831c8f8939dc0c830c6e492e7cef4f9c2f5f", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 115, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x0000000000000000000000002844a0d6442034d3027a05635f4224d966c54fd7", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 116, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x000000000000000000000000f35dee924f483bc234f09cbfbc8b4488fd06be20", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 117, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x000000000000000000000000739730ccb2a34cc83d3e30645002c52ba4b06167", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 118, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x000000000000000000000000e989805835093e37e6b12dcddf718e0481024573", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 119, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x0000000000000000000000001ba899530a89fab245de9ff6cc23534f4a8a4e58", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 120, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x00000000000000000000000075ed7b219a737134f00255e331a36a706bd2ae2c", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 121, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x000000000000000000000000ce3778528fc73d46685069d455bbcce16a6e22af", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 122, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x00000000000000000000000035b46702c5d1cd36194217fb92f72b563eff851a", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 123, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x000000000000000000000000f791efdf778a3ca9cc193ffbe57da33d1596e854", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 124, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63", + "0x0000000000000000000000009f6e831c8f8939dc0c830c6e492e7cef4f9c2f5f", + "0x000000000000000000000000123694886dbf5ac94dda07135349534536d14caf" + ], + "data": "0x", + "logIndex": 125, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + }, + { + "transactionIndex": 57, + "blockNumber": 21392558, + "transactionHash": "0xa2858c2fc415365c3774d56d5b1def3096ac784e44e7809617dbf3161272e974", + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", + "topics": [ + "0x11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015180", + "logIndex": 126, + "blockHash": "0x2ea576718ea1decc577ff0a781b9ed2131b1b02efed42ea61268b66a6238f225" + } + ], + "blockNumber": 21392558, + "cumulativeGasUsed": "6792038", + "status": 1, + "byzantium": true + }, + "args": [ + 86400, + [ + "0x9F6e831c8F8939DC0C830C6e492e7cEf4f9C2F5f" + ], + [ + "0x2844a0d6442034D3027A05635F4224d966C54fD7", + "0xf35dEE924F483Bc234F09cbfbc8B4488fD06be20", + "0x739730cCb2a34cc83D3e30645002C52bA4B06167", + "0xe989805835093e37E6b12dCddF718e0481024573", + "0x1Ba899530A89fAb245De9ff6cc23534F4a8A4e58", + "0x75ed7b219a737134f00255e331a36a706BD2ae2C", + "0xcE3778528fC73D46685069D455bbCcE16A6e22Af", + "0x35B46702C5d1CD36194217Fb92F72B563eFf851A", + "0xf791EfdF778a3Ca9cc193fFbe57Da33d1596E854", + "0x9F6e831c8F8939DC0C830C6e492e7cEf4f9C2F5f" + ] + ], + "numDeployments": 1, + "solcInputHash": "98e272e2fbf178ec895387b6c503f9de", + "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minDelay\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"proposers\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"executors\",\"type\":\"address[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"CallExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"delay\",\"type\":\"uint256\"}],\"name\":\"CallScheduled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"Cancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldDuration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDuration\",\"type\":\"uint256\"}],\"name\":\"MinDelayChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CANCELLER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"EXECUTOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PROPOSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TIMELOCK_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"cancel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"execute\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"payloads\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"executeBatch\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMinDelay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"hashOperation\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"payloads\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"hashOperationBatch\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"isOperation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"registered\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"isOperationDone\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"done\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"isOperationPending\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"pending\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"isOperationReady\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"ready\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"delay\",\"type\":\"uint256\"}],\"name\":\"schedule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"payloads\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"predecessor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"delay\",\"type\":\"uint256\"}],\"name\":\"scheduleBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newDelay\",\"type\":\"uint256\"}],\"name\":\"updateDelay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"cancel(bytes32)\":{\"details\":\"Cancel an operation. Requirements: - the caller must have the 'canceller' role.\"},\"execute(address,uint256,bytes,bytes32,bytes32)\":{\"details\":\"Execute an (ready) operation containing a single transaction. Emits a {CallExecuted} event. Requirements: - the caller must have the 'executor' role.\"},\"executeBatch(address[],uint256[],bytes[],bytes32,bytes32)\":{\"details\":\"Execute an (ready) operation containing a batch of transactions. Emits one {CallExecuted} event per transaction in the batch. Requirements: - the caller must have the 'executor' role.\"},\"getMinDelay()\":{\"details\":\"Returns the minimum delay for an operation to become valid. This value can be changed by executing an operation that calls `updateDelay`.\"},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"getTimestamp(bytes32)\":{\"details\":\"Returns the timestamp at with an operation becomes ready (0 for unset operations, 1 for done operations).\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"hashOperation(address,uint256,bytes,bytes32,bytes32)\":{\"details\":\"Returns the identifier of an operation containing a single transaction.\"},\"hashOperationBatch(address[],uint256[],bytes[],bytes32,bytes32)\":{\"details\":\"Returns the identifier of an operation containing a batch of transactions.\"},\"isOperation(bytes32)\":{\"details\":\"Returns whether an id correspond to a registered operation. This includes both Pending, Ready and Done operations.\"},\"isOperationDone(bytes32)\":{\"details\":\"Returns whether an operation is done or not.\"},\"isOperationPending(bytes32)\":{\"details\":\"Returns whether an operation is pending or not.\"},\"isOperationReady(bytes32)\":{\"details\":\"Returns whether an operation is ready or not.\"},\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\":{\"details\":\"See {IERC1155Receiver-onERC1155BatchReceived}.\"},\"onERC1155Received(address,address,uint256,uint256,bytes)\":{\"details\":\"See {IERC1155Receiver-onERC1155Received}.\"},\"onERC721Received(address,address,uint256,bytes)\":{\"details\":\"See {IERC721Receiver-onERC721Received}.\"},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"schedule(address,uint256,bytes,bytes32,bytes32,uint256)\":{\"details\":\"Schedule an operation containing a single transaction. Emits a {CallScheduled} event. Requirements: - the caller must have the 'proposer' role.\"},\"scheduleBatch(address[],uint256[],bytes[],bytes32,bytes32,uint256)\":{\"details\":\"Schedule an operation containing a batch of transactions. Emits one {CallScheduled} event per transaction in the batch. Requirements: - the caller must have the 'proposer' role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"updateDelay(uint256)\":{\"details\":\"Changes the minimum timelock duration for future operations. Emits a {MinDelayChange} event. Requirements: - the caller must be the timelock itself. This can only be achieved by scheduling and later executing an operation where the timelock is the target and the data is the ABI-encoded call to this function.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Timelock.sol\":\"Timelock\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"@openzeppelin/contracts/governance/TimelockController.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (governance/TimelockController.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../access/AccessControl.sol\\\";\\nimport \\\"../token/ERC721/IERC721Receiver.sol\\\";\\nimport \\\"../token/ERC1155/IERC1155Receiver.sol\\\";\\nimport \\\"../utils/Address.sol\\\";\\n\\n/**\\n * @dev Contract module which acts as a timelocked controller. When set as the\\n * owner of an `Ownable` smart contract, it enforces a timelock on all\\n * `onlyOwner` maintenance operations. This gives time for users of the\\n * controlled contract to exit before a potentially dangerous maintenance\\n * operation is applied.\\n *\\n * By default, this contract is self administered, meaning administration tasks\\n * have to go through the timelock process. The proposer (resp executor) role\\n * is in charge of proposing (resp executing) operations. A common use case is\\n * to position this {TimelockController} as the owner of a smart contract, with\\n * a multisig or a DAO as the sole proposer.\\n *\\n * _Available since v3.3._\\n */\\ncontract TimelockController is AccessControl, IERC721Receiver, IERC1155Receiver {\\n bytes32 public constant TIMELOCK_ADMIN_ROLE = keccak256(\\\"TIMELOCK_ADMIN_ROLE\\\");\\n bytes32 public constant PROPOSER_ROLE = keccak256(\\\"PROPOSER_ROLE\\\");\\n bytes32 public constant EXECUTOR_ROLE = keccak256(\\\"EXECUTOR_ROLE\\\");\\n bytes32 public constant CANCELLER_ROLE = keccak256(\\\"CANCELLER_ROLE\\\");\\n uint256 internal constant _DONE_TIMESTAMP = uint256(1);\\n\\n mapping(bytes32 => uint256) private _timestamps;\\n uint256 private _minDelay;\\n\\n /**\\n * @dev Emitted when a call is scheduled as part of operation `id`.\\n */\\n event CallScheduled(\\n bytes32 indexed id,\\n uint256 indexed index,\\n address target,\\n uint256 value,\\n bytes data,\\n bytes32 predecessor,\\n uint256 delay\\n );\\n\\n /**\\n * @dev Emitted when a call is performed as part of operation `id`.\\n */\\n event CallExecuted(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data);\\n\\n /**\\n * @dev Emitted when operation `id` is cancelled.\\n */\\n event Cancelled(bytes32 indexed id);\\n\\n /**\\n * @dev Emitted when the minimum delay for future operations is modified.\\n */\\n event MinDelayChange(uint256 oldDuration, uint256 newDuration);\\n\\n /**\\n * @dev Initializes the contract with the following parameters:\\n *\\n * - `minDelay`: initial minimum delay for operations\\n * - `proposers`: accounts to be granted proposer and canceller roles\\n * - `executors`: accounts to be granted executor role\\n * - `admin`: optional account to be granted admin role; disable with zero address\\n *\\n * IMPORTANT: The optional admin can aid with initial configuration of roles after deployment\\n * without being subject to delay, but this role should be subsequently renounced in favor of\\n * administration through timelocked proposals. Previous versions of this contract would assign\\n * this admin to the deployer automatically and should be renounced as well.\\n */\\n constructor(\\n uint256 minDelay,\\n address[] memory proposers,\\n address[] memory executors,\\n address admin\\n ) {\\n _setRoleAdmin(TIMELOCK_ADMIN_ROLE, TIMELOCK_ADMIN_ROLE);\\n _setRoleAdmin(PROPOSER_ROLE, TIMELOCK_ADMIN_ROLE);\\n _setRoleAdmin(EXECUTOR_ROLE, TIMELOCK_ADMIN_ROLE);\\n _setRoleAdmin(CANCELLER_ROLE, TIMELOCK_ADMIN_ROLE);\\n\\n // self administration\\n _setupRole(TIMELOCK_ADMIN_ROLE, address(this));\\n\\n // optional admin\\n if (admin != address(0)) {\\n _setupRole(TIMELOCK_ADMIN_ROLE, admin);\\n }\\n\\n // register proposers and cancellers\\n for (uint256 i = 0; i < proposers.length; ++i) {\\n _setupRole(PROPOSER_ROLE, proposers[i]);\\n _setupRole(CANCELLER_ROLE, proposers[i]);\\n }\\n\\n // register executors\\n for (uint256 i = 0; i < executors.length; ++i) {\\n _setupRole(EXECUTOR_ROLE, executors[i]);\\n }\\n\\n _minDelay = minDelay;\\n emit MinDelayChange(0, minDelay);\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only by a certain role. In\\n * addition to checking the sender's role, `address(0)` 's role is also\\n * considered. Granting a role to `address(0)` is equivalent to enabling\\n * this role for everyone.\\n */\\n modifier onlyRoleOrOpenRole(bytes32 role) {\\n if (!hasRole(role, address(0))) {\\n _checkRole(role, _msgSender());\\n }\\n _;\\n }\\n\\n /**\\n * @dev Contract might receive/hold ETH as part of the maintenance process.\\n */\\n receive() external payable {}\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, AccessControl) returns (bool) {\\n return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns whether an id correspond to a registered operation. This\\n * includes both Pending, Ready and Done operations.\\n */\\n function isOperation(bytes32 id) public view virtual returns (bool registered) {\\n return getTimestamp(id) > 0;\\n }\\n\\n /**\\n * @dev Returns whether an operation is pending or not.\\n */\\n function isOperationPending(bytes32 id) public view virtual returns (bool pending) {\\n return getTimestamp(id) > _DONE_TIMESTAMP;\\n }\\n\\n /**\\n * @dev Returns whether an operation is ready or not.\\n */\\n function isOperationReady(bytes32 id) public view virtual returns (bool ready) {\\n uint256 timestamp = getTimestamp(id);\\n return timestamp > _DONE_TIMESTAMP && timestamp <= block.timestamp;\\n }\\n\\n /**\\n * @dev Returns whether an operation is done or not.\\n */\\n function isOperationDone(bytes32 id) public view virtual returns (bool done) {\\n return getTimestamp(id) == _DONE_TIMESTAMP;\\n }\\n\\n /**\\n * @dev Returns the timestamp at with an operation becomes ready (0 for\\n * unset operations, 1 for done operations).\\n */\\n function getTimestamp(bytes32 id) public view virtual returns (uint256 timestamp) {\\n return _timestamps[id];\\n }\\n\\n /**\\n * @dev Returns the minimum delay for an operation to become valid.\\n *\\n * This value can be changed by executing an operation that calls `updateDelay`.\\n */\\n function getMinDelay() public view virtual returns (uint256 duration) {\\n return _minDelay;\\n }\\n\\n /**\\n * @dev Returns the identifier of an operation containing a single\\n * transaction.\\n */\\n function hashOperation(\\n address target,\\n uint256 value,\\n bytes calldata data,\\n bytes32 predecessor,\\n bytes32 salt\\n ) public pure virtual returns (bytes32 hash) {\\n return keccak256(abi.encode(target, value, data, predecessor, salt));\\n }\\n\\n /**\\n * @dev Returns the identifier of an operation containing a batch of\\n * transactions.\\n */\\n function hashOperationBatch(\\n address[] calldata targets,\\n uint256[] calldata values,\\n bytes[] calldata payloads,\\n bytes32 predecessor,\\n bytes32 salt\\n ) public pure virtual returns (bytes32 hash) {\\n return keccak256(abi.encode(targets, values, payloads, predecessor, salt));\\n }\\n\\n /**\\n * @dev Schedule an operation containing a single transaction.\\n *\\n * Emits a {CallScheduled} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'proposer' role.\\n */\\n function schedule(\\n address target,\\n uint256 value,\\n bytes calldata data,\\n bytes32 predecessor,\\n bytes32 salt,\\n uint256 delay\\n ) public virtual onlyRole(PROPOSER_ROLE) {\\n bytes32 id = hashOperation(target, value, data, predecessor, salt);\\n _schedule(id, delay);\\n emit CallScheduled(id, 0, target, value, data, predecessor, delay);\\n }\\n\\n /**\\n * @dev Schedule an operation containing a batch of transactions.\\n *\\n * Emits one {CallScheduled} event per transaction in the batch.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'proposer' role.\\n */\\n function scheduleBatch(\\n address[] calldata targets,\\n uint256[] calldata values,\\n bytes[] calldata payloads,\\n bytes32 predecessor,\\n bytes32 salt,\\n uint256 delay\\n ) public virtual onlyRole(PROPOSER_ROLE) {\\n require(targets.length == values.length, \\\"TimelockController: length mismatch\\\");\\n require(targets.length == payloads.length, \\\"TimelockController: length mismatch\\\");\\n\\n bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt);\\n _schedule(id, delay);\\n for (uint256 i = 0; i < targets.length; ++i) {\\n emit CallScheduled(id, i, targets[i], values[i], payloads[i], predecessor, delay);\\n }\\n }\\n\\n /**\\n * @dev Schedule an operation that is to becomes valid after a given delay.\\n */\\n function _schedule(bytes32 id, uint256 delay) private {\\n require(!isOperation(id), \\\"TimelockController: operation already scheduled\\\");\\n require(delay >= getMinDelay(), \\\"TimelockController: insufficient delay\\\");\\n _timestamps[id] = block.timestamp + delay;\\n }\\n\\n /**\\n * @dev Cancel an operation.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'canceller' role.\\n */\\n function cancel(bytes32 id) public virtual onlyRole(CANCELLER_ROLE) {\\n require(isOperationPending(id), \\\"TimelockController: operation cannot be cancelled\\\");\\n delete _timestamps[id];\\n\\n emit Cancelled(id);\\n }\\n\\n /**\\n * @dev Execute an (ready) operation containing a single transaction.\\n *\\n * Emits a {CallExecuted} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'executor' role.\\n */\\n // This function can reenter, but it doesn't pose a risk because _afterCall checks that the proposal is pending,\\n // thus any modifications to the operation during reentrancy should be caught.\\n // slither-disable-next-line reentrancy-eth\\n function execute(\\n address target,\\n uint256 value,\\n bytes calldata payload,\\n bytes32 predecessor,\\n bytes32 salt\\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\\n bytes32 id = hashOperation(target, value, payload, predecessor, salt);\\n\\n _beforeCall(id, predecessor);\\n _execute(target, value, payload);\\n emit CallExecuted(id, 0, target, value, payload);\\n _afterCall(id);\\n }\\n\\n /**\\n * @dev Execute an (ready) operation containing a batch of transactions.\\n *\\n * Emits one {CallExecuted} event per transaction in the batch.\\n *\\n * Requirements:\\n *\\n * - the caller must have the 'executor' role.\\n */\\n function executeBatch(\\n address[] calldata targets,\\n uint256[] calldata values,\\n bytes[] calldata payloads,\\n bytes32 predecessor,\\n bytes32 salt\\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\\n require(targets.length == values.length, \\\"TimelockController: length mismatch\\\");\\n require(targets.length == payloads.length, \\\"TimelockController: length mismatch\\\");\\n\\n bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt);\\n\\n _beforeCall(id, predecessor);\\n for (uint256 i = 0; i < targets.length; ++i) {\\n address target = targets[i];\\n uint256 value = values[i];\\n bytes calldata payload = payloads[i];\\n _execute(target, value, payload);\\n emit CallExecuted(id, i, target, value, payload);\\n }\\n _afterCall(id);\\n }\\n\\n /**\\n * @dev Execute an operation's call.\\n */\\n function _execute(\\n address target,\\n uint256 value,\\n bytes calldata data\\n ) internal virtual {\\n (bool success, ) = target.call{value: value}(data);\\n require(success, \\\"TimelockController: underlying transaction reverted\\\");\\n }\\n\\n /**\\n * @dev Checks before execution of an operation's calls.\\n */\\n function _beforeCall(bytes32 id, bytes32 predecessor) private view {\\n require(isOperationReady(id), \\\"TimelockController: operation is not ready\\\");\\n require(predecessor == bytes32(0) || isOperationDone(predecessor), \\\"TimelockController: missing dependency\\\");\\n }\\n\\n /**\\n * @dev Checks after execution of an operation's calls.\\n */\\n function _afterCall(bytes32 id) private {\\n require(isOperationReady(id), \\\"TimelockController: operation is not ready\\\");\\n _timestamps[id] = _DONE_TIMESTAMP;\\n }\\n\\n /**\\n * @dev Changes the minimum timelock duration for future operations.\\n *\\n * Emits a {MinDelayChange} event.\\n *\\n * Requirements:\\n *\\n * - the caller must be the timelock itself. This can only be achieved by scheduling and later executing\\n * an operation where the timelock is the target and the data is the ABI-encoded call to this function.\\n */\\n function updateDelay(uint256 newDelay) external virtual {\\n require(msg.sender == address(this), \\\"TimelockController: caller must be timelock\\\");\\n emit MinDelayChange(_minDelay, newDelay);\\n _minDelay = newDelay;\\n }\\n\\n /**\\n * @dev See {IERC721Receiver-onERC721Received}.\\n */\\n function onERC721Received(\\n address,\\n address,\\n uint256,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC721Received.selector;\\n }\\n\\n /**\\n * @dev See {IERC1155Receiver-onERC1155Received}.\\n */\\n function onERC1155Received(\\n address,\\n address,\\n uint256,\\n uint256,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC1155Received.selector;\\n }\\n\\n /**\\n * @dev See {IERC1155Receiver-onERC1155BatchReceived}.\\n */\\n function onERC1155BatchReceived(\\n address,\\n address,\\n uint256[] memory,\\n uint256[] memory,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC1155BatchReceived.selector;\\n }\\n}\\n\",\"keccak256\":\"0xf3ffa69c5f7c9ebb35775be2f3b27389550a102f0e1cdfff99a54663c7b162ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev _Available since v3.1._\\n */\\ninterface IERC1155Receiver is IERC165 {\\n /**\\n * @dev Handles the receipt of a single ERC1155 token type. This function is\\n * called at the end of a `safeTransferFrom` after the balance has been updated.\\n *\\n * NOTE: To accept the transfer, this must return\\n * `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))`\\n * (i.e. 0xf23a6e61, or its own function selector).\\n *\\n * @param operator The address which initiated the transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param id The ID of the token being transferred\\n * @param value The amount of tokens being transferred\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155Received(\\n address operator,\\n address from,\\n uint256 id,\\n uint256 value,\\n bytes calldata data\\n ) external returns (bytes4);\\n\\n /**\\n * @dev Handles the receipt of a multiple ERC1155 token types. This function\\n * is called at the end of a `safeBatchTransferFrom` after the balances have\\n * been updated.\\n *\\n * NOTE: To accept the transfer(s), this must return\\n * `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))`\\n * (i.e. 0xbc197c81, or its own function selector).\\n *\\n * @param operator The address which initiated the batch transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param ids An array containing ids of each token being transferred (order and length must match values array)\\n * @param values An array containing amounts of each token being transferred (order and length must match ids array)\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155BatchReceived(\\n address operator,\\n address from,\\n uint256[] calldata ids,\\n uint256[] calldata values,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xeb373f1fdc7b755c6a750123a9b9e3a8a02c1470042fd6505d875000a80bde0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @title ERC721 token receiver interface\\n * @dev Interface for any contract that wants to support safeTransfers\\n * from ERC721 asset contracts.\\n */\\ninterface IERC721Receiver {\\n /**\\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\\n * by `operator` from `from`, this function is called.\\n *\\n * It must return its Solidity selector to confirm the token transfer.\\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\\n *\\n * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\\n */\\n function onERC721Received(\\n address operator,\\n address from,\\n uint256 tokenId,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xa82b58eca1ee256be466e536706850163d2ec7821945abd6b4778cfb3bee37da\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"},\"contracts/Timelock.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts/governance/TimelockController.sol\\\";\\n\\ncontract Timelock is TimelockController {\\n constructor(\\n uint256 minDelay,\\n address[] memory proposers,\\n address[] memory executors\\n ) TimelockController(minDelay, proposers, executors, address(0)) {}\\n}\\n\",\"keccak256\":\"0x5cf54c0bfd03a1387cbc20a560d668054fcd74821be5096a71705403dcd41cad\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x60806040523480156200001157600080fd5b506040516200263038038062002630833981016040819052620000349162000410565b828282600062000054600080516020620025b08339815191528062000235565b6200007e600080516020620025d0833981519152600080516020620025b083398151915262000235565b620000a8600080516020620025f0833981519152600080516020620025b083398151915262000235565b620000d260008051602062002610833981519152600080516020620025b083398151915262000235565b620000ed600080516020620025b08339815191523062000280565b6001600160a01b03811615620001185762000118600080516020620025b08339815191528262000280565b60005b83518110156200019e5762000162600080516020620025d08339815191528583815181106200014e576200014e62000484565b60200260200101516200028060201b60201c565b6200018b600080516020620026108339815191528583815181106200014e576200014e62000484565b62000196816200049a565b90506200011b565b5060005b8251811015620001e857620001d5600080516020620025f08339815191528483815181106200014e576200014e62000484565b620001e0816200049a565b9050620001a2565b5060028490556040805160008152602081018690527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a150505050505050620004c2565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6200028c828262000290565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200028c576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002ec3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200035e57600080fd5b919050565b600082601f8301126200037557600080fd5b815160206001600160401b038083111562000394576200039462000330565b8260051b604051601f19603f83011681018181108482111715620003bc57620003bc62000330565b604052938452858101830193838101925087851115620003db57600080fd5b83870191505b848210156200040557620003f58262000346565b83529183019190830190620003e1565b979650505050505050565b6000806000606084860312156200042657600080fd5b835160208501519093506001600160401b03808211156200044657600080fd5b620004548783880162000363565b935060408601519150808211156200046b57600080fd5b506200047a8682870162000363565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b600060018201620004bb57634e487b7160e01b600052601160045260246000fd5b5060010190565b6120de80620004d26000396000f3fe6080604052600436106101bb5760003560e01c80638065657f116100ec578063bc197c811161008a578063d547741f11610064578063d547741f146105d8578063e38335e5146105f8578063f23a6e611461060b578063f27a0c921461065057600080fd5b8063bc197c8114610546578063c4d252f51461058b578063d45c4435146105ab57600080fd5b806391d14854116100c657806391d1485414610499578063a217fddf146104dd578063b08e51c0146104f2578063b1c5f4271461052657600080fd5b80638065657f146104255780638f2a0bb0146104455780638f61f4f51461046557600080fd5b8063248a9ca31161015957806331d507501161013357806331d50750146103a557806336568abe146103c5578063584b153e146103e557806364d623531461040557600080fd5b8063248a9ca3146103245780632ab0f529146103545780632f2ff15d1461038557600080fd5b80630d3cf6fc116101955780630d3cf6fc14610260578063134008d31461029457806313bc9f20146102a7578063150b7a02146102c757600080fd5b806301d5062a146101c757806301ffc9a7146101e957806307bd02651461021e57600080fd5b366101c257005b600080fd5b3480156101d357600080fd5b506101e76101e2366004611754565b610665565b005b3480156101f557600080fd5b506102096102043660046117c9565b6106fa565b60405190151581526020015b60405180910390f35b34801561022a57600080fd5b506102527fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b604051908152602001610215565b34801561026c57600080fd5b506102527f5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca581565b6101e76102a23660046117f3565b61073e565b3480156102b357600080fd5b506102096102c236600461185f565b610836565b3480156102d357600080fd5b5061030b6102e236600461192f565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b03199091168152602001610215565b34801561033057600080fd5b5061025261033f36600461185f565b60009081526020819052604090206001015490565b34801561036057600080fd5b5061020961036f36600461185f565b6000908152600160208190526040909120541490565b34801561039157600080fd5b506101e76103a0366004611997565b61085c565b3480156103b157600080fd5b506102096103c036600461185f565b610886565b3480156103d157600080fd5b506101e76103e0366004611997565b61089f565b3480156103f157600080fd5b5061020961040036600461185f565b610930565b34801561041157600080fd5b506101e761042036600461185f565b610946565b34801561043157600080fd5b506102526104403660046117f3565b6109fc565b34801561045157600080fd5b506101e7610460366004611a08565b610a3b565b34801561047157600080fd5b506102527fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc181565b3480156104a557600080fd5b506102096104b4366004611997565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156104e957600080fd5b50610252600081565b3480156104fe57600080fd5b506102527ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78381565b34801561053257600080fd5b50610252610541366004611aba565b610c05565b34801561055257600080fd5b5061030b610561366004611be3565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b34801561059757600080fd5b506101e76105a636600461185f565b610c4a565b3480156105b757600080fd5b506102526105c636600461185f565b60009081526001602052604090205490565b3480156105e457600080fd5b506101e76105f3366004611997565b610d2b565b6101e7610606366004611aba565b610d50565b34801561061757600080fd5b5061030b610626366004611c8d565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561065c57600080fd5b50600254610252565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc161068f81610f95565b600061069f8989898989896109fc565b90506106ab8184610fa2565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b8b8b8b8a6040516106e796959493929190611d1b565b60405180910390a3505050505050505050565b60006001600160e01b031982167f4e2312e00000000000000000000000000000000000000000000000000000000014806107385750610738826110b6565b92915050565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff166107bb576107bb813361111d565b60006107cb8888888888886109fc565b90506107d78185611190565b6107e388888888611286565b6000817fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b588a8a8a8a60405161081b9493929190611d59565b60405180910390a361082c81611363565b5050505050505050565b6000818152600160205260408120546001811180156108555750428111155b9392505050565b60008281526020819052604090206001015461087781610f95565b61088183836113df565b505050565b60008181526001602052604081205481905b1192915050565b6001600160a01b03811633146109225760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61092c828261147d565b5050565b6000818152600160208190526040822054610898565b3330146109bb5760405162461bcd60e51b815260206004820152602b60248201527f54696d656c6f636b436f6e74726f6c6c65723a2063616c6c6572206d7573742060448201527f62652074696d656c6f636b0000000000000000000000000000000000000000006064820152608401610919565b60025460408051918252602082018390527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a1600255565b6000868686868686604051602001610a1996959493929190611d1b565b6040516020818303038152906040528051906020012090509695505050505050565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1610a6581610f95565b888714610ac05760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b888514610b1b5760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b6000610b2d8b8b8b8b8b8b8b8b610c05565b9050610b398184610fa2565b60005b8a811015610bf75780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8e8e85818110610b7957610b79611d8c565b9050602002016020810190610b8e9190611da2565b8d8d86818110610ba057610ba0611d8c565b905060200201358c8c87818110610bb957610bb9611d8c565b9050602002810190610bcb9190611dbd565b8c8b604051610bdf96959493929190611d1b565b60405180910390a3610bf081611e1a565b9050610b3c565b505050505050505050505050565b60008888888888888888604051602001610c26989796959493929190611ec5565b60405160208183030381529060405280519060200120905098975050505050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783610c7481610f95565b610c7d82610930565b610cef5760405162461bcd60e51b815260206004820152603160248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20636160448201527f6e6e6f742062652063616e63656c6c65640000000000000000000000000000006064820152608401610919565b6000828152600160205260408082208290555183917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a25050565b600082815260208190526040902060010154610d4681610f95565b610881838361147d565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff16610dcd57610dcd813361111d565b878614610e285760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b878414610e835760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b6000610e958a8a8a8a8a8a8a8a610c05565b9050610ea18185611190565b60005b89811015610f7f5760008b8b83818110610ec057610ec0611d8c565b9050602002016020810190610ed59190611da2565b905060008a8a84818110610eeb57610eeb611d8c565b9050602002013590503660008a8a86818110610f0957610f09611d8c565b9050602002810190610f1b9190611dbd565b91509150610f2b84848484611286565b84867fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5886868686604051610f629493929190611d59565b60405180910390a35050505080610f7890611e1a565b9050610ea4565b50610f8981611363565b50505050505050505050565b610f9f813361111d565b50565b610fab82610886565b1561101e5760405162461bcd60e51b815260206004820152602f60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20616c60448201527f7265616479207363686564756c656400000000000000000000000000000000006064820152608401610919565b6002548110156110965760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a20696e73756666696369656e7460448201527f2064656c617900000000000000000000000000000000000000000000000000006064820152608401610919565b6110a08142611f7f565b6000928352600160205260409092209190915550565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061073857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610738565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661092c5761114e816114fc565b61115983602061150e565b60405160200161116a929190611fb6565b60408051601f198184030181529082905262461bcd60e51b825261091991600401612037565b61119982610836565b6111f85760405162461bcd60e51b815260206004820152602a60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604482015269206e6f7420726561647960b01b6064820152608401610919565b8015806112145750600081815260016020819052604090912054145b61092c5760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a206d697373696e67206465706560448201527f6e64656e637900000000000000000000000000000000000000000000000000006064820152608401610919565b6000846001600160a01b03168484846040516112a392919061206a565b60006040518083038185875af1925050503d80600081146112e0576040519150601f19603f3d011682016040523d82523d6000602084013e6112e5565b606091505b505090508061135c5760405162461bcd60e51b815260206004820152603360248201527f54696d656c6f636b436f6e74726f6c6c65723a20756e6465726c79696e67207460448201527f72616e73616374696f6e207265766572746564000000000000000000000000006064820152608401610919565b5050505050565b61136c81610836565b6113cb5760405162461bcd60e51b815260206004820152602a60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604482015269206e6f7420726561647960b01b6064820152608401610919565b600090815260016020819052604090912055565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661092c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556114393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff161561092c576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606107386001600160a01b03831660145b6060600061151d83600261207a565b611528906002611f7f565b67ffffffffffffffff81111561154057611540611878565b6040519080825280601f01601f19166020018201604052801561156a576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106115a1576115a1611d8c565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106115ec576115ec611d8c565b60200101906001600160f81b031916908160001a905350600061161084600261207a565b61161b906001611f7f565b90505b60018111156116a0577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061165c5761165c611d8c565b1a60f81b82828151811061167257611672611d8c565b60200101906001600160f81b031916908160001a90535060049490941c9361169981612091565b905061161e565b5083156108555760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610919565b80356001600160a01b038116811461170657600080fd5b919050565b60008083601f84011261171d57600080fd5b50813567ffffffffffffffff81111561173557600080fd5b60208301915083602082850101111561174d57600080fd5b9250929050565b600080600080600080600060c0888a03121561176f57600080fd5b611778886116ef565b965060208801359550604088013567ffffffffffffffff81111561179b57600080fd5b6117a78a828b0161170b565b989b979a50986060810135976080820135975060a09091013595509350505050565b6000602082840312156117db57600080fd5b81356001600160e01b03198116811461085557600080fd5b60008060008060008060a0878903121561180c57600080fd5b611815876116ef565b955060208701359450604087013567ffffffffffffffff81111561183857600080fd5b61184489828a0161170b565b979a9699509760608101359660809091013595509350505050565b60006020828403121561187157600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156118b7576118b7611878565b604052919050565b600082601f8301126118d057600080fd5b813567ffffffffffffffff8111156118ea576118ea611878565b6118fd601f8201601f191660200161188e565b81815284602083860101111561191257600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561194557600080fd5b61194e856116ef565b935061195c602086016116ef565b925060408501359150606085013567ffffffffffffffff81111561197f57600080fd5b61198b878288016118bf565b91505092959194509250565b600080604083850312156119aa57600080fd5b823591506119ba602084016116ef565b90509250929050565b60008083601f8401126119d557600080fd5b50813567ffffffffffffffff8111156119ed57600080fd5b6020830191508360208260051b850101111561174d57600080fd5b600080600080600080600080600060c08a8c031215611a2657600080fd5b893567ffffffffffffffff80821115611a3e57600080fd5b611a4a8d838e016119c3565b909b50995060208c0135915080821115611a6357600080fd5b611a6f8d838e016119c3565b909950975060408c0135915080821115611a8857600080fd5b50611a958c828d016119c3565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060008060008060008060a0898b031215611ad657600080fd5b883567ffffffffffffffff80821115611aee57600080fd5b611afa8c838d016119c3565b909a50985060208b0135915080821115611b1357600080fd5b611b1f8c838d016119c3565b909850965060408b0135915080821115611b3857600080fd5b50611b458b828c016119c3565b999c989b509699959896976060870135966080013595509350505050565b600082601f830112611b7457600080fd5b8135602067ffffffffffffffff821115611b9057611b90611878565b8160051b611b9f82820161188e565b9283528481018201928281019087851115611bb957600080fd5b83870192505b84831015611bd857823582529183019190830190611bbf565b979650505050505050565b600080600080600060a08688031215611bfb57600080fd5b611c04866116ef565b9450611c12602087016116ef565b9350604086013567ffffffffffffffff80821115611c2f57600080fd5b611c3b89838a01611b63565b94506060880135915080821115611c5157600080fd5b611c5d89838a01611b63565b93506080880135915080821115611c7357600080fd5b50611c80888289016118bf565b9150509295509295909350565b600080600080600060a08688031215611ca557600080fd5b611cae866116ef565b9450611cbc602087016116ef565b93506040860135925060608601359150608086013567ffffffffffffffff811115611ce657600080fd5b611c80888289016118bf565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038716815285602082015260a060408201526000611d4460a083018688611cf2565b60608301949094525060800152949350505050565b6001600160a01b0385168152836020820152606060408201526000611d82606083018486611cf2565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611db457600080fd5b610855826116ef565b6000808335601e19843603018112611dd457600080fd5b83018035915067ffffffffffffffff821115611def57600080fd5b60200191503681900382131561174d57600080fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2c57611e2c611e04565b5060010190565b81835260006020808501808196508560051b810191508460005b87811015611eb85782840389528135601e19883603018112611e6e57600080fd5b8701858101903567ffffffffffffffff811115611e8a57600080fd5b803603821315611e9957600080fd5b611ea4868284611cf2565b9a87019a9550505090840190600101611e4d565b5091979650505050505050565b60a0808252810188905260008960c08301825b8b811015611f06576001600160a01b03611ef1846116ef565b16825260209283019290910190600101611ed8565b5083810360208501528881527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff891115611f3f57600080fd5b8860051b9150818a60208301370182810360209081016040850152611f679082018789611e33565b60608401959095525050608001529695505050505050565b8082018082111561073857610738611e04565b60005b83811015611fad578181015183820152602001611f95565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611fee816017850160208801611f92565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161202b816028840160208801611f92565b01602801949350505050565b6020815260008251806020840152612056816040850160208701611f92565b601f01601f19169190910160400192915050565b8183823760009101908152919050565b808202811582820484141761073857610738611e04565b6000816120a0576120a0611e04565b50600019019056fea26469706673582212204b43b5f3f37bab4243e2d543ff403435038a7fafbc4b2837a680fc62cde4c33d64736f6c634300081100335f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5b09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1d8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63fd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783", + "deployedBytecode": "0x6080604052600436106101bb5760003560e01c80638065657f116100ec578063bc197c811161008a578063d547741f11610064578063d547741f146105d8578063e38335e5146105f8578063f23a6e611461060b578063f27a0c921461065057600080fd5b8063bc197c8114610546578063c4d252f51461058b578063d45c4435146105ab57600080fd5b806391d14854116100c657806391d1485414610499578063a217fddf146104dd578063b08e51c0146104f2578063b1c5f4271461052657600080fd5b80638065657f146104255780638f2a0bb0146104455780638f61f4f51461046557600080fd5b8063248a9ca31161015957806331d507501161013357806331d50750146103a557806336568abe146103c5578063584b153e146103e557806364d623531461040557600080fd5b8063248a9ca3146103245780632ab0f529146103545780632f2ff15d1461038557600080fd5b80630d3cf6fc116101955780630d3cf6fc14610260578063134008d31461029457806313bc9f20146102a7578063150b7a02146102c757600080fd5b806301d5062a146101c757806301ffc9a7146101e957806307bd02651461021e57600080fd5b366101c257005b600080fd5b3480156101d357600080fd5b506101e76101e2366004611754565b610665565b005b3480156101f557600080fd5b506102096102043660046117c9565b6106fa565b60405190151581526020015b60405180910390f35b34801561022a57600080fd5b506102527fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b604051908152602001610215565b34801561026c57600080fd5b506102527f5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca581565b6101e76102a23660046117f3565b61073e565b3480156102b357600080fd5b506102096102c236600461185f565b610836565b3480156102d357600080fd5b5061030b6102e236600461192f565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b03199091168152602001610215565b34801561033057600080fd5b5061025261033f36600461185f565b60009081526020819052604090206001015490565b34801561036057600080fd5b5061020961036f36600461185f565b6000908152600160208190526040909120541490565b34801561039157600080fd5b506101e76103a0366004611997565b61085c565b3480156103b157600080fd5b506102096103c036600461185f565b610886565b3480156103d157600080fd5b506101e76103e0366004611997565b61089f565b3480156103f157600080fd5b5061020961040036600461185f565b610930565b34801561041157600080fd5b506101e761042036600461185f565b610946565b34801561043157600080fd5b506102526104403660046117f3565b6109fc565b34801561045157600080fd5b506101e7610460366004611a08565b610a3b565b34801561047157600080fd5b506102527fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc181565b3480156104a557600080fd5b506102096104b4366004611997565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156104e957600080fd5b50610252600081565b3480156104fe57600080fd5b506102527ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78381565b34801561053257600080fd5b50610252610541366004611aba565b610c05565b34801561055257600080fd5b5061030b610561366004611be3565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b34801561059757600080fd5b506101e76105a636600461185f565b610c4a565b3480156105b757600080fd5b506102526105c636600461185f565b60009081526001602052604090205490565b3480156105e457600080fd5b506101e76105f3366004611997565b610d2b565b6101e7610606366004611aba565b610d50565b34801561061757600080fd5b5061030b610626366004611c8d565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561065c57600080fd5b50600254610252565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc161068f81610f95565b600061069f8989898989896109fc565b90506106ab8184610fa2565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b8b8b8b8a6040516106e796959493929190611d1b565b60405180910390a3505050505050505050565b60006001600160e01b031982167f4e2312e00000000000000000000000000000000000000000000000000000000014806107385750610738826110b6565b92915050565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff166107bb576107bb813361111d565b60006107cb8888888888886109fc565b90506107d78185611190565b6107e388888888611286565b6000817fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b588a8a8a8a60405161081b9493929190611d59565b60405180910390a361082c81611363565b5050505050505050565b6000818152600160205260408120546001811180156108555750428111155b9392505050565b60008281526020819052604090206001015461087781610f95565b61088183836113df565b505050565b60008181526001602052604081205481905b1192915050565b6001600160a01b03811633146109225760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61092c828261147d565b5050565b6000818152600160208190526040822054610898565b3330146109bb5760405162461bcd60e51b815260206004820152602b60248201527f54696d656c6f636b436f6e74726f6c6c65723a2063616c6c6572206d7573742060448201527f62652074696d656c6f636b0000000000000000000000000000000000000000006064820152608401610919565b60025460408051918252602082018390527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a1600255565b6000868686868686604051602001610a1996959493929190611d1b565b6040516020818303038152906040528051906020012090509695505050505050565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1610a6581610f95565b888714610ac05760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b888514610b1b5760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b6000610b2d8b8b8b8b8b8b8b8b610c05565b9050610b398184610fa2565b60005b8a811015610bf75780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8e8e85818110610b7957610b79611d8c565b9050602002016020810190610b8e9190611da2565b8d8d86818110610ba057610ba0611d8c565b905060200201358c8c87818110610bb957610bb9611d8c565b9050602002810190610bcb9190611dbd565b8c8b604051610bdf96959493929190611d1b565b60405180910390a3610bf081611e1a565b9050610b3c565b505050505050505050505050565b60008888888888888888604051602001610c26989796959493929190611ec5565b60405160208183030381529060405280519060200120905098975050505050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783610c7481610f95565b610c7d82610930565b610cef5760405162461bcd60e51b815260206004820152603160248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20636160448201527f6e6e6f742062652063616e63656c6c65640000000000000000000000000000006064820152608401610919565b6000828152600160205260408082208290555183917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a25050565b600082815260208190526040902060010154610d4681610f95565b610881838361147d565b600080527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea157951547fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff16610dcd57610dcd813361111d565b878614610e285760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b878414610e835760405162461bcd60e51b815260206004820152602360248201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616044820152620e8c6d60eb1b6064820152608401610919565b6000610e958a8a8a8a8a8a8a8a610c05565b9050610ea18185611190565b60005b89811015610f7f5760008b8b83818110610ec057610ec0611d8c565b9050602002016020810190610ed59190611da2565b905060008a8a84818110610eeb57610eeb611d8c565b9050602002013590503660008a8a86818110610f0957610f09611d8c565b9050602002810190610f1b9190611dbd565b91509150610f2b84848484611286565b84867fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5886868686604051610f629493929190611d59565b60405180910390a35050505080610f7890611e1a565b9050610ea4565b50610f8981611363565b50505050505050505050565b610f9f813361111d565b50565b610fab82610886565b1561101e5760405162461bcd60e51b815260206004820152602f60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20616c60448201527f7265616479207363686564756c656400000000000000000000000000000000006064820152608401610919565b6002548110156110965760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a20696e73756666696369656e7460448201527f2064656c617900000000000000000000000000000000000000000000000000006064820152608401610919565b6110a08142611f7f565b6000928352600160205260409092209190915550565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061073857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610738565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661092c5761114e816114fc565b61115983602061150e565b60405160200161116a929190611fb6565b60408051601f198184030181529082905262461bcd60e51b825261091991600401612037565b61119982610836565b6111f85760405162461bcd60e51b815260206004820152602a60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604482015269206e6f7420726561647960b01b6064820152608401610919565b8015806112145750600081815260016020819052604090912054145b61092c5760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a206d697373696e67206465706560448201527f6e64656e637900000000000000000000000000000000000000000000000000006064820152608401610919565b6000846001600160a01b03168484846040516112a392919061206a565b60006040518083038185875af1925050503d80600081146112e0576040519150601f19603f3d011682016040523d82523d6000602084013e6112e5565b606091505b505090508061135c5760405162461bcd60e51b815260206004820152603360248201527f54696d656c6f636b436f6e74726f6c6c65723a20756e6465726c79696e67207460448201527f72616e73616374696f6e207265766572746564000000000000000000000000006064820152608401610919565b5050505050565b61136c81610836565b6113cb5760405162461bcd60e51b815260206004820152602a60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604482015269206e6f7420726561647960b01b6064820152608401610919565b600090815260016020819052604090912055565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661092c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556114393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff161561092c576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606107386001600160a01b03831660145b6060600061151d83600261207a565b611528906002611f7f565b67ffffffffffffffff81111561154057611540611878565b6040519080825280601f01601f19166020018201604052801561156a576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106115a1576115a1611d8c565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106115ec576115ec611d8c565b60200101906001600160f81b031916908160001a905350600061161084600261207a565b61161b906001611f7f565b90505b60018111156116a0577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061165c5761165c611d8c565b1a60f81b82828151811061167257611672611d8c565b60200101906001600160f81b031916908160001a90535060049490941c9361169981612091565b905061161e565b5083156108555760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610919565b80356001600160a01b038116811461170657600080fd5b919050565b60008083601f84011261171d57600080fd5b50813567ffffffffffffffff81111561173557600080fd5b60208301915083602082850101111561174d57600080fd5b9250929050565b600080600080600080600060c0888a03121561176f57600080fd5b611778886116ef565b965060208801359550604088013567ffffffffffffffff81111561179b57600080fd5b6117a78a828b0161170b565b989b979a50986060810135976080820135975060a09091013595509350505050565b6000602082840312156117db57600080fd5b81356001600160e01b03198116811461085557600080fd5b60008060008060008060a0878903121561180c57600080fd5b611815876116ef565b955060208701359450604087013567ffffffffffffffff81111561183857600080fd5b61184489828a0161170b565b979a9699509760608101359660809091013595509350505050565b60006020828403121561187157600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156118b7576118b7611878565b604052919050565b600082601f8301126118d057600080fd5b813567ffffffffffffffff8111156118ea576118ea611878565b6118fd601f8201601f191660200161188e565b81815284602083860101111561191257600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561194557600080fd5b61194e856116ef565b935061195c602086016116ef565b925060408501359150606085013567ffffffffffffffff81111561197f57600080fd5b61198b878288016118bf565b91505092959194509250565b600080604083850312156119aa57600080fd5b823591506119ba602084016116ef565b90509250929050565b60008083601f8401126119d557600080fd5b50813567ffffffffffffffff8111156119ed57600080fd5b6020830191508360208260051b850101111561174d57600080fd5b600080600080600080600080600060c08a8c031215611a2657600080fd5b893567ffffffffffffffff80821115611a3e57600080fd5b611a4a8d838e016119c3565b909b50995060208c0135915080821115611a6357600080fd5b611a6f8d838e016119c3565b909950975060408c0135915080821115611a8857600080fd5b50611a958c828d016119c3565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060008060008060008060a0898b031215611ad657600080fd5b883567ffffffffffffffff80821115611aee57600080fd5b611afa8c838d016119c3565b909a50985060208b0135915080821115611b1357600080fd5b611b1f8c838d016119c3565b909850965060408b0135915080821115611b3857600080fd5b50611b458b828c016119c3565b999c989b509699959896976060870135966080013595509350505050565b600082601f830112611b7457600080fd5b8135602067ffffffffffffffff821115611b9057611b90611878565b8160051b611b9f82820161188e565b9283528481018201928281019087851115611bb957600080fd5b83870192505b84831015611bd857823582529183019190830190611bbf565b979650505050505050565b600080600080600060a08688031215611bfb57600080fd5b611c04866116ef565b9450611c12602087016116ef565b9350604086013567ffffffffffffffff80821115611c2f57600080fd5b611c3b89838a01611b63565b94506060880135915080821115611c5157600080fd5b611c5d89838a01611b63565b93506080880135915080821115611c7357600080fd5b50611c80888289016118bf565b9150509295509295909350565b600080600080600060a08688031215611ca557600080fd5b611cae866116ef565b9450611cbc602087016116ef565b93506040860135925060608601359150608086013567ffffffffffffffff811115611ce657600080fd5b611c80888289016118bf565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038716815285602082015260a060408201526000611d4460a083018688611cf2565b60608301949094525060800152949350505050565b6001600160a01b0385168152836020820152606060408201526000611d82606083018486611cf2565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611db457600080fd5b610855826116ef565b6000808335601e19843603018112611dd457600080fd5b83018035915067ffffffffffffffff821115611def57600080fd5b60200191503681900382131561174d57600080fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2c57611e2c611e04565b5060010190565b81835260006020808501808196508560051b810191508460005b87811015611eb85782840389528135601e19883603018112611e6e57600080fd5b8701858101903567ffffffffffffffff811115611e8a57600080fd5b803603821315611e9957600080fd5b611ea4868284611cf2565b9a87019a9550505090840190600101611e4d565b5091979650505050505050565b60a0808252810188905260008960c08301825b8b811015611f06576001600160a01b03611ef1846116ef565b16825260209283019290910190600101611ed8565b5083810360208501528881527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff891115611f3f57600080fd5b8860051b9150818a60208301370182810360209081016040850152611f679082018789611e33565b60608401959095525050608001529695505050505050565b8082018082111561073857610738611e04565b60005b83811015611fad578181015183820152602001611f95565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611fee816017850160208801611f92565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161202b816028840160208801611f92565b01602801949350505050565b6020815260008251806020840152612056816040850160208701611f92565b601f01601f19169190910160400192915050565b8183823760009101908152919050565b808202811582820484141761073857610738611e04565b6000816120a0576120a0611e04565b50600019019056fea26469706673582212204b43b5f3f37bab4243e2d543ff403435038a7fafbc4b2837a680fc62cde4c33d64736f6c63430008110033", + "devdoc": { + "kind": "dev", + "methods": { + "cancel(bytes32)": { + "details": "Cancel an operation. Requirements: - the caller must have the 'canceller' role." + }, + "execute(address,uint256,bytes,bytes32,bytes32)": { + "details": "Execute an (ready) operation containing a single transaction. Emits a {CallExecuted} event. Requirements: - the caller must have the 'executor' role." + }, + "executeBatch(address[],uint256[],bytes[],bytes32,bytes32)": { + "details": "Execute an (ready) operation containing a batch of transactions. Emits one {CallExecuted} event per transaction in the batch. Requirements: - the caller must have the 'executor' role." + }, + "getMinDelay()": { + "details": "Returns the minimum delay for an operation to become valid. This value can be changed by executing an operation that calls `updateDelay`." + }, + "getRoleAdmin(bytes32)": { + "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." + }, + "getTimestamp(bytes32)": { + "details": "Returns the timestamp at with an operation becomes ready (0 for unset operations, 1 for done operations)." + }, + "grantRole(bytes32,address)": { + "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." + }, + "hasRole(bytes32,address)": { + "details": "Returns `true` if `account` has been granted `role`." + }, + "hashOperation(address,uint256,bytes,bytes32,bytes32)": { + "details": "Returns the identifier of an operation containing a single transaction." + }, + "hashOperationBatch(address[],uint256[],bytes[],bytes32,bytes32)": { + "details": "Returns the identifier of an operation containing a batch of transactions." + }, + "isOperation(bytes32)": { + "details": "Returns whether an id correspond to a registered operation. This includes both Pending, Ready and Done operations." + }, + "isOperationDone(bytes32)": { + "details": "Returns whether an operation is done or not." + }, + "isOperationPending(bytes32)": { + "details": "Returns whether an operation is pending or not." + }, + "isOperationReady(bytes32)": { + "details": "Returns whether an operation is ready or not." + }, + "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": { + "details": "See {IERC1155Receiver-onERC1155BatchReceived}." + }, + "onERC1155Received(address,address,uint256,uint256,bytes)": { + "details": "See {IERC1155Receiver-onERC1155Received}." + }, + "onERC721Received(address,address,uint256,bytes)": { + "details": "See {IERC721Receiver-onERC721Received}." + }, + "renounceRole(bytes32,address)": { + "details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event." + }, + "revokeRole(bytes32,address)": { + "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." + }, + "schedule(address,uint256,bytes,bytes32,bytes32,uint256)": { + "details": "Schedule an operation containing a single transaction. Emits a {CallScheduled} event. Requirements: - the caller must have the 'proposer' role." + }, + "scheduleBatch(address[],uint256[],bytes[],bytes32,bytes32,uint256)": { + "details": "Schedule an operation containing a batch of transactions. Emits one {CallScheduled} event per transaction in the batch. Requirements: - the caller must have the 'proposer' role." + }, + "supportsInterface(bytes4)": { + "details": "See {IERC165-supportsInterface}." + }, + "updateDelay(uint256)": { + "details": "Changes the minimum timelock duration for future operations. Emits a {MinDelayChange} event. Requirements: - the caller must be the timelock itself. This can only be achieved by scheduling and later executing an operation where the timelock is the target and the data is the ABI-encoded call to this function." + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 24, + "contract": "contracts/Timelock.sol:Timelock", + "label": "_roles", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_bytes32,t_struct(RoleData)19_storage)" + }, + { + "astId": 431, + "contract": "contracts/Timelock.sol:Timelock", + "label": "_timestamps", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_bytes32,t_uint256)" + }, + { + "astId": 433, + "contract": "contracts/Timelock.sol:Timelock", + "label": "_minDelay", + "offset": 0, + "slot": "2", + "type": "t_uint256" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_bytes32,t_struct(RoleData)19_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => struct AccessControl.RoleData)", + "numberOfBytes": "32", + "value": "t_struct(RoleData)19_storage" + }, + "t_mapping(t_bytes32,t_uint256)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_struct(RoleData)19_storage": { + "encoding": "inplace", + "label": "struct AccessControl.RoleData", + "members": [ + { + "astId": 16, + "contract": "contracts/Timelock.sol:Timelock", + "label": "members", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_bool)" + }, + { + "astId": 18, + "contract": "contracts/Timelock.sol:Timelock", + "label": "adminRole", + "offset": 0, + "slot": "1", + "type": "t_bytes32" + } + ], + "numberOfBytes": "64" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file diff --git a/solidity/deployments/mainnet/solcInputs/98e272e2fbf178ec895387b6c503f9de.json b/solidity/deployments/mainnet/solcInputs/98e272e2fbf178ec895387b6c503f9de.json new file mode 100644 index 000000000..f3853b3d4 --- /dev/null +++ b/solidity/deployments/mainnet/solcInputs/98e272e2fbf178ec895387b6c503f9de.json @@ -0,0 +1,68 @@ +{ + "language": "Solidity", + "sources": { + "@openzeppelin/contracts/access/AccessControl.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/Strings.sol\";\nimport \"../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```\n * function foo() public {\n * require(hasRole(MY_ROLE, msg.sender));\n * ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it.\n */\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\n struct RoleData {\n mapping(address => bool) members;\n bytes32 adminRole;\n }\n\n mapping(bytes32 => RoleData) private _roles;\n\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n /**\n * @dev Modifier that checks that an account has a specific role. Reverts\n * with a standardized message including the required role.\n *\n * The format of the revert reason is given by the following regular expression:\n *\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n *\n * _Available since v4.1._\n */\n modifier onlyRole(bytes32 role) {\n _checkRole(role);\n _;\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Returns `true` if `account` has been granted `role`.\n */\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\n return _roles[role].members[account];\n }\n\n /**\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\n * Overriding this function changes the behavior of the {onlyRole} modifier.\n *\n * Format of the revert message is described in {_checkRole}.\n *\n * _Available since v4.6._\n */\n function _checkRole(bytes32 role) internal view virtual {\n _checkRole(role, _msgSender());\n }\n\n /**\n * @dev Revert with a standard message if `account` is missing `role`.\n *\n * The format of the revert reason is given by the following regular expression:\n *\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n */\n function _checkRole(bytes32 role, address account) internal view virtual {\n if (!hasRole(role, account)) {\n revert(\n string(\n abi.encodePacked(\n \"AccessControl: account \",\n Strings.toHexString(account),\n \" is missing role \",\n Strings.toHexString(uint256(role), 32)\n )\n )\n );\n }\n }\n\n /**\n * @dev Returns the admin role that controls `role`. See {grantRole} and\n * {revokeRole}.\n *\n * To change a role's admin, use {_setRoleAdmin}.\n */\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\n return _roles[role].adminRole;\n }\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n *\n * May emit a {RoleGranted} event.\n */\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n _grantRole(role, account);\n }\n\n /**\n * @dev Revokes `role` from `account`.\n *\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n *\n * May emit a {RoleRevoked} event.\n */\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n _revokeRole(role, account);\n }\n\n /**\n * @dev Revokes `role` from the calling account.\n *\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\n * purpose is to provide a mechanism for accounts to lose their privileges\n * if they are compromised (such as when a trusted device is misplaced).\n *\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\n * event.\n *\n * Requirements:\n *\n * - the caller must be `account`.\n *\n * May emit a {RoleRevoked} event.\n */\n function renounceRole(bytes32 role, address account) public virtual override {\n require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\n\n _revokeRole(role, account);\n }\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event. Note that unlike {grantRole}, this function doesn't perform any\n * checks on the calling account.\n *\n * May emit a {RoleGranted} event.\n *\n * [WARNING]\n * ====\n * This function should only be called from the constructor when setting\n * up the initial roles for the system.\n *\n * Using this function in any other way is effectively circumventing the admin\n * system imposed by {AccessControl}.\n * ====\n *\n * NOTE: This function is deprecated in favor of {_grantRole}.\n */\n function _setupRole(bytes32 role, address account) internal virtual {\n _grantRole(role, account);\n }\n\n /**\n * @dev Sets `adminRole` as ``role``'s admin role.\n *\n * Emits a {RoleAdminChanged} event.\n */\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n bytes32 previousAdminRole = getRoleAdmin(role);\n _roles[role].adminRole = adminRole;\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\n }\n\n /**\n * @dev Grants `role` to `account`.\n *\n * Internal function without access restriction.\n *\n * May emit a {RoleGranted} event.\n */\n function _grantRole(bytes32 role, address account) internal virtual {\n if (!hasRole(role, account)) {\n _roles[role].members[account] = true;\n emit RoleGranted(role, account, _msgSender());\n }\n }\n\n /**\n * @dev Revokes `role` from `account`.\n *\n * Internal function without access restriction.\n *\n * May emit a {RoleRevoked} event.\n */\n function _revokeRole(bytes32 role, address account) internal virtual {\n if (hasRole(role, account)) {\n _roles[role].members[account] = false;\n emit RoleRevoked(role, account, _msgSender());\n }\n }\n}\n" + }, + "@openzeppelin/contracts/access/IAccessControl.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n /**\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n *\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n * {RoleAdminChanged} not being emitted signaling this.\n *\n * _Available since v3.1._\n */\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n /**\n * @dev Emitted when `account` is granted `role`.\n *\n * `sender` is the account that originated the contract call, an admin role\n * bearer except when using {AccessControl-_setupRole}.\n */\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n /**\n * @dev Emitted when `account` is revoked `role`.\n *\n * `sender` is the account that originated the contract call:\n * - if using `revokeRole`, it is the admin role bearer\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\n */\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n /**\n * @dev Returns `true` if `account` has been granted `role`.\n */\n function hasRole(bytes32 role, address account) external view returns (bool);\n\n /**\n * @dev Returns the admin role that controls `role`. See {grantRole} and\n * {revokeRole}.\n *\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n */\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n */\n function grantRole(bytes32 role, address account) external;\n\n /**\n * @dev Revokes `role` from `account`.\n *\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n */\n function revokeRole(bytes32 role, address account) external;\n\n /**\n * @dev Revokes `role` from the calling account.\n *\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\n * purpose is to provide a mechanism for accounts to lose their privileges\n * if they are compromised (such as when a trusted device is misplaced).\n *\n * If the calling account had been granted `role`, emits a {RoleRevoked}\n * event.\n *\n * Requirements:\n *\n * - the caller must be `account`.\n */\n function renounceRole(bytes32 role, address account) external;\n}\n" + }, + "@openzeppelin/contracts/governance/TimelockController.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (governance/TimelockController.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../token/ERC721/IERC721Receiver.sol\";\nimport \"../token/ERC1155/IERC1155Receiver.sol\";\nimport \"../utils/Address.sol\";\n\n/**\n * @dev Contract module which acts as a timelocked controller. When set as the\n * owner of an `Ownable` smart contract, it enforces a timelock on all\n * `onlyOwner` maintenance operations. This gives time for users of the\n * controlled contract to exit before a potentially dangerous maintenance\n * operation is applied.\n *\n * By default, this contract is self administered, meaning administration tasks\n * have to go through the timelock process. The proposer (resp executor) role\n * is in charge of proposing (resp executing) operations. A common use case is\n * to position this {TimelockController} as the owner of a smart contract, with\n * a multisig or a DAO as the sole proposer.\n *\n * _Available since v3.3._\n */\ncontract TimelockController is AccessControl, IERC721Receiver, IERC1155Receiver {\n bytes32 public constant TIMELOCK_ADMIN_ROLE = keccak256(\"TIMELOCK_ADMIN_ROLE\");\n bytes32 public constant PROPOSER_ROLE = keccak256(\"PROPOSER_ROLE\");\n bytes32 public constant EXECUTOR_ROLE = keccak256(\"EXECUTOR_ROLE\");\n bytes32 public constant CANCELLER_ROLE = keccak256(\"CANCELLER_ROLE\");\n uint256 internal constant _DONE_TIMESTAMP = uint256(1);\n\n mapping(bytes32 => uint256) private _timestamps;\n uint256 private _minDelay;\n\n /**\n * @dev Emitted when a call is scheduled as part of operation `id`.\n */\n event CallScheduled(\n bytes32 indexed id,\n uint256 indexed index,\n address target,\n uint256 value,\n bytes data,\n bytes32 predecessor,\n uint256 delay\n );\n\n /**\n * @dev Emitted when a call is performed as part of operation `id`.\n */\n event CallExecuted(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data);\n\n /**\n * @dev Emitted when operation `id` is cancelled.\n */\n event Cancelled(bytes32 indexed id);\n\n /**\n * @dev Emitted when the minimum delay for future operations is modified.\n */\n event MinDelayChange(uint256 oldDuration, uint256 newDuration);\n\n /**\n * @dev Initializes the contract with the following parameters:\n *\n * - `minDelay`: initial minimum delay for operations\n * - `proposers`: accounts to be granted proposer and canceller roles\n * - `executors`: accounts to be granted executor role\n * - `admin`: optional account to be granted admin role; disable with zero address\n *\n * IMPORTANT: The optional admin can aid with initial configuration of roles after deployment\n * without being subject to delay, but this role should be subsequently renounced in favor of\n * administration through timelocked proposals. Previous versions of this contract would assign\n * this admin to the deployer automatically and should be renounced as well.\n */\n constructor(\n uint256 minDelay,\n address[] memory proposers,\n address[] memory executors,\n address admin\n ) {\n _setRoleAdmin(TIMELOCK_ADMIN_ROLE, TIMELOCK_ADMIN_ROLE);\n _setRoleAdmin(PROPOSER_ROLE, TIMELOCK_ADMIN_ROLE);\n _setRoleAdmin(EXECUTOR_ROLE, TIMELOCK_ADMIN_ROLE);\n _setRoleAdmin(CANCELLER_ROLE, TIMELOCK_ADMIN_ROLE);\n\n // self administration\n _setupRole(TIMELOCK_ADMIN_ROLE, address(this));\n\n // optional admin\n if (admin != address(0)) {\n _setupRole(TIMELOCK_ADMIN_ROLE, admin);\n }\n\n // register proposers and cancellers\n for (uint256 i = 0; i < proposers.length; ++i) {\n _setupRole(PROPOSER_ROLE, proposers[i]);\n _setupRole(CANCELLER_ROLE, proposers[i]);\n }\n\n // register executors\n for (uint256 i = 0; i < executors.length; ++i) {\n _setupRole(EXECUTOR_ROLE, executors[i]);\n }\n\n _minDelay = minDelay;\n emit MinDelayChange(0, minDelay);\n }\n\n /**\n * @dev Modifier to make a function callable only by a certain role. In\n * addition to checking the sender's role, `address(0)` 's role is also\n * considered. Granting a role to `address(0)` is equivalent to enabling\n * this role for everyone.\n */\n modifier onlyRoleOrOpenRole(bytes32 role) {\n if (!hasRole(role, address(0))) {\n _checkRole(role, _msgSender());\n }\n _;\n }\n\n /**\n * @dev Contract might receive/hold ETH as part of the maintenance process.\n */\n receive() external payable {}\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, AccessControl) returns (bool) {\n return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Returns whether an id correspond to a registered operation. This\n * includes both Pending, Ready and Done operations.\n */\n function isOperation(bytes32 id) public view virtual returns (bool registered) {\n return getTimestamp(id) > 0;\n }\n\n /**\n * @dev Returns whether an operation is pending or not.\n */\n function isOperationPending(bytes32 id) public view virtual returns (bool pending) {\n return getTimestamp(id) > _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Returns whether an operation is ready or not.\n */\n function isOperationReady(bytes32 id) public view virtual returns (bool ready) {\n uint256 timestamp = getTimestamp(id);\n return timestamp > _DONE_TIMESTAMP && timestamp <= block.timestamp;\n }\n\n /**\n * @dev Returns whether an operation is done or not.\n */\n function isOperationDone(bytes32 id) public view virtual returns (bool done) {\n return getTimestamp(id) == _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Returns the timestamp at with an operation becomes ready (0 for\n * unset operations, 1 for done operations).\n */\n function getTimestamp(bytes32 id) public view virtual returns (uint256 timestamp) {\n return _timestamps[id];\n }\n\n /**\n * @dev Returns the minimum delay for an operation to become valid.\n *\n * This value can be changed by executing an operation that calls `updateDelay`.\n */\n function getMinDelay() public view virtual returns (uint256 duration) {\n return _minDelay;\n }\n\n /**\n * @dev Returns the identifier of an operation containing a single\n * transaction.\n */\n function hashOperation(\n address target,\n uint256 value,\n bytes calldata data,\n bytes32 predecessor,\n bytes32 salt\n ) public pure virtual returns (bytes32 hash) {\n return keccak256(abi.encode(target, value, data, predecessor, salt));\n }\n\n /**\n * @dev Returns the identifier of an operation containing a batch of\n * transactions.\n */\n function hashOperationBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata payloads,\n bytes32 predecessor,\n bytes32 salt\n ) public pure virtual returns (bytes32 hash) {\n return keccak256(abi.encode(targets, values, payloads, predecessor, salt));\n }\n\n /**\n * @dev Schedule an operation containing a single transaction.\n *\n * Emits a {CallScheduled} event.\n *\n * Requirements:\n *\n * - the caller must have the 'proposer' role.\n */\n function schedule(\n address target,\n uint256 value,\n bytes calldata data,\n bytes32 predecessor,\n bytes32 salt,\n uint256 delay\n ) public virtual onlyRole(PROPOSER_ROLE) {\n bytes32 id = hashOperation(target, value, data, predecessor, salt);\n _schedule(id, delay);\n emit CallScheduled(id, 0, target, value, data, predecessor, delay);\n }\n\n /**\n * @dev Schedule an operation containing a batch of transactions.\n *\n * Emits one {CallScheduled} event per transaction in the batch.\n *\n * Requirements:\n *\n * - the caller must have the 'proposer' role.\n */\n function scheduleBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata payloads,\n bytes32 predecessor,\n bytes32 salt,\n uint256 delay\n ) public virtual onlyRole(PROPOSER_ROLE) {\n require(targets.length == values.length, \"TimelockController: length mismatch\");\n require(targets.length == payloads.length, \"TimelockController: length mismatch\");\n\n bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt);\n _schedule(id, delay);\n for (uint256 i = 0; i < targets.length; ++i) {\n emit CallScheduled(id, i, targets[i], values[i], payloads[i], predecessor, delay);\n }\n }\n\n /**\n * @dev Schedule an operation that is to becomes valid after a given delay.\n */\n function _schedule(bytes32 id, uint256 delay) private {\n require(!isOperation(id), \"TimelockController: operation already scheduled\");\n require(delay >= getMinDelay(), \"TimelockController: insufficient delay\");\n _timestamps[id] = block.timestamp + delay;\n }\n\n /**\n * @dev Cancel an operation.\n *\n * Requirements:\n *\n * - the caller must have the 'canceller' role.\n */\n function cancel(bytes32 id) public virtual onlyRole(CANCELLER_ROLE) {\n require(isOperationPending(id), \"TimelockController: operation cannot be cancelled\");\n delete _timestamps[id];\n\n emit Cancelled(id);\n }\n\n /**\n * @dev Execute an (ready) operation containing a single transaction.\n *\n * Emits a {CallExecuted} event.\n *\n * Requirements:\n *\n * - the caller must have the 'executor' role.\n */\n // This function can reenter, but it doesn't pose a risk because _afterCall checks that the proposal is pending,\n // thus any modifications to the operation during reentrancy should be caught.\n // slither-disable-next-line reentrancy-eth\n function execute(\n address target,\n uint256 value,\n bytes calldata payload,\n bytes32 predecessor,\n bytes32 salt\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\n bytes32 id = hashOperation(target, value, payload, predecessor, salt);\n\n _beforeCall(id, predecessor);\n _execute(target, value, payload);\n emit CallExecuted(id, 0, target, value, payload);\n _afterCall(id);\n }\n\n /**\n * @dev Execute an (ready) operation containing a batch of transactions.\n *\n * Emits one {CallExecuted} event per transaction in the batch.\n *\n * Requirements:\n *\n * - the caller must have the 'executor' role.\n */\n function executeBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata payloads,\n bytes32 predecessor,\n bytes32 salt\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\n require(targets.length == values.length, \"TimelockController: length mismatch\");\n require(targets.length == payloads.length, \"TimelockController: length mismatch\");\n\n bytes32 id = hashOperationBatch(targets, values, payloads, predecessor, salt);\n\n _beforeCall(id, predecessor);\n for (uint256 i = 0; i < targets.length; ++i) {\n address target = targets[i];\n uint256 value = values[i];\n bytes calldata payload = payloads[i];\n _execute(target, value, payload);\n emit CallExecuted(id, i, target, value, payload);\n }\n _afterCall(id);\n }\n\n /**\n * @dev Execute an operation's call.\n */\n function _execute(\n address target,\n uint256 value,\n bytes calldata data\n ) internal virtual {\n (bool success, ) = target.call{value: value}(data);\n require(success, \"TimelockController: underlying transaction reverted\");\n }\n\n /**\n * @dev Checks before execution of an operation's calls.\n */\n function _beforeCall(bytes32 id, bytes32 predecessor) private view {\n require(isOperationReady(id), \"TimelockController: operation is not ready\");\n require(predecessor == bytes32(0) || isOperationDone(predecessor), \"TimelockController: missing dependency\");\n }\n\n /**\n * @dev Checks after execution of an operation's calls.\n */\n function _afterCall(bytes32 id) private {\n require(isOperationReady(id), \"TimelockController: operation is not ready\");\n _timestamps[id] = _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Changes the minimum timelock duration for future operations.\n *\n * Emits a {MinDelayChange} event.\n *\n * Requirements:\n *\n * - the caller must be the timelock itself. This can only be achieved by scheduling and later executing\n * an operation where the timelock is the target and the data is the ABI-encoded call to this function.\n */\n function updateDelay(uint256 newDelay) external virtual {\n require(msg.sender == address(this), \"TimelockController: caller must be timelock\");\n emit MinDelayChange(_minDelay, newDelay);\n _minDelay = newDelay;\n }\n\n /**\n * @dev See {IERC721Receiver-onERC721Received}.\n */\n function onERC721Received(\n address,\n address,\n uint256,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC721Received.selector;\n }\n\n /**\n * @dev See {IERC1155Receiver-onERC1155Received}.\n */\n function onERC1155Received(\n address,\n address,\n uint256,\n uint256,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC1155Received.selector;\n }\n\n /**\n * @dev See {IERC1155Receiver-onERC1155BatchReceived}.\n */\n function onERC1155BatchReceived(\n address,\n address,\n uint256[] memory,\n uint256[] memory,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC1155BatchReceived.selector;\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\ninterface IERC1155Receiver is IERC165 {\n /**\n * @dev Handles the receipt of a single ERC1155 token type. This function is\n * called at the end of a `safeTransferFrom` after the balance has been updated.\n *\n * NOTE: To accept the transfer, this must return\n * `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))`\n * (i.e. 0xf23a6e61, or its own function selector).\n *\n * @param operator The address which initiated the transfer (i.e. msg.sender)\n * @param from The address which previously owned the token\n * @param id The ID of the token being transferred\n * @param value The amount of tokens being transferred\n * @param data Additional data with no specified format\n * @return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed\n */\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n ) external returns (bytes4);\n\n /**\n * @dev Handles the receipt of a multiple ERC1155 token types. This function\n * is called at the end of a `safeBatchTransferFrom` after the balances have\n * been updated.\n *\n * NOTE: To accept the transfer(s), this must return\n * `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))`\n * (i.e. 0xbc197c81, or its own function selector).\n *\n * @param operator The address which initiated the batch transfer (i.e. msg.sender)\n * @param from The address which previously owned the token\n * @param ids An array containing ids of each token being transferred (order and length must match values array)\n * @param values An array containing amounts of each token being transferred (order and length must match ids array)\n * @param data Additional data with no specified format\n * @return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed\n */\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n ) external returns (bytes4);\n}\n" + }, + "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(\n address operator,\n address from,\n uint256 tokenId,\n bytes calldata data\n ) external returns (bytes4);\n}\n" + }, + "@openzeppelin/contracts/utils/Address.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Context.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" + }, + "@openzeppelin/contracts/utils/introspection/ERC165.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IERC165).interfaceId;\n }\n}\n" + }, + "@openzeppelin/contracts/utils/introspection/IERC165.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n" + }, + "@openzeppelin/contracts/utils/math/Math.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator\n ) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1);\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(\n uint256 x,\n uint256 y,\n uint256 denominator,\n Rounding rounding\n ) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10**64) {\n value /= 10**64;\n result += 64;\n }\n if (value >= 10**32) {\n value /= 10**32;\n result += 32;\n }\n if (value >= 10**16) {\n value /= 10**16;\n result += 16;\n }\n if (value >= 10**8) {\n value /= 10**8;\n result += 8;\n }\n if (value >= 10**4) {\n value /= 10**4;\n result += 4;\n }\n if (value >= 10**2) {\n value /= 10**2;\n result += 2;\n }\n if (value >= 10**1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Strings.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n}\n" + }, + "contracts/Timelock.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-only\npragma solidity 0.8.17;\n\nimport \"@openzeppelin/contracts/governance/TimelockController.sol\";\n\ncontract Timelock is TimelockController {\n constructor(\n uint256 minDelay,\n address[] memory proposers,\n address[] memory executors\n ) TimelockController(minDelay, proposers, executors, address(0)) {}\n}\n" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 1000 + }, + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata", + "storageLayout", + "devdoc", + "userdoc", + "evm.gasEstimates" + ], + "": [ + "ast" + ] + } + }, + "metadata": { + "useLiteralContent": true + } + } +} \ No newline at end of file diff --git a/solidity/export.json b/solidity/export.json index af3c07792..af5b008da 100644 --- a/solidity/export.json +++ b/solidity/export.json @@ -11143,25 +11143,25 @@ } ] }, - "VendingMachine": { - "address": "0x6590DFF6abEd7C077839E8227A4f12Ec90E6D85F", + "Timelock": { + "address": "0x92f2d8b72a7F6a551Be60b9aa4194248E9B4913D", "abi": [ { "inputs": [ { - "internalType": "contract IERC20", - "name": "_tbtcV1", - "type": "address" + "internalType": "uint256", + "name": "minDelay", + "type": "uint256" }, { - "internalType": "contract TBTC", - "name": "_tbtcV2", - "type": "address" + "internalType": "address[]", + "name": "proposers", + "type": "address[]" }, { - "internalType": "uint256", - "name": "_unmintFee", - "type": "uint256" + "internalType": "address[]", + "name": "executors", + "type": "address[]" } ], "stateMutability": "nonpayable", @@ -11172,18 +11172,36 @@ "inputs": [ { "indexed": true, + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "indexed": false, "internalType": "address", - "name": "recipient", + "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "value", "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "name": "Minted", + "name": "CallExecuted", "type": "event" }, { @@ -11191,117 +11209,165 @@ "inputs": [ { "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" + "internalType": "bytes32", + "name": "id", + "type": "bytes32" }, { "indexed": true, + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "indexed": false, "internalType": "address", - "name": "newOwner", + "name": "target", "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + }, { "indexed": false, "internalType": "uint256", - "name": "newUnmintFee", + "name": "value", "type": "uint256" }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, { "indexed": false, "internalType": "uint256", - "name": "timestamp", + "name": "delay", "type": "uint256" } ], - "name": "UnmintFeeUpdateInitiated", + "name": "CallScheduled", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "newUnmintFee", - "type": "uint256" + "indexed": true, + "internalType": "bytes32", + "name": "id", + "type": "bytes32" } ], - "name": "UnmintFeeUpdated", + "name": "Cancelled", "type": "event" }, { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, { "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "oldDuration", "type": "uint256" }, { "indexed": false, "internalType": "uint256", - "name": "fee", + "name": "newDuration", "type": "uint256" } ], - "name": "Unminted", + "name": "MinDelayChange", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" + } + ], + "name": "RoleAdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, "internalType": "address", - "name": "newVendingMachine", + "name": "account", "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" } ], - "name": "VendingMachineUpgradeInitiated", + "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, "internalType": "address", - "name": "newVendingMachine", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", "type": "address" } ], - "name": "VendingMachineUpgraded", + "name": "RoleRevoked", "type": "event" }, { "inputs": [], - "name": "FLOATING_POINT_DIVISOR", + "name": "CANCELLER_ROLE", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes32", "name": "", - "type": "uint256" + "type": "bytes32" } ], "stateMutability": "view", @@ -11309,12 +11375,12 @@ }, { "inputs": [], - "name": "GOVERNANCE_DELAY", + "name": "DEFAULT_ADMIN_ROLE", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes32", "name": "", - "type": "uint256" + "type": "bytes32" } ], "stateMutability": "view", @@ -11322,26 +11388,25 @@ }, { "inputs": [], - "name": "finalizeUnmintFeeUpdate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "finalizeVendingMachineUpgrade", - "outputs": [], - "stateMutability": "nonpayable", + "name": "EXECUTOR_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", "type": "function" }, { "inputs": [], - "name": "getRemainingUnmintFeeUpdateTime", + "name": "PROPOSER_ROLE", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes32", "name": "", - "type": "uint256" + "type": "bytes32" } ], "stateMutability": "view", @@ -11349,12 +11414,12 @@ }, { "inputs": [], - "name": "getRemainingVendingMachineUpgradeTime", + "name": "TIMELOCK_ADMIN_ROLE", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes32", "name": "", - "type": "uint256" + "type": "bytes32" } ], "stateMutability": "view", @@ -11363,12 +11428,12 @@ { "inputs": [ { - "internalType": "uint256", - "name": "_newUnmintFee", - "type": "uint256" + "internalType": "bytes32", + "name": "id", + "type": "bytes32" } ], - "name": "initiateUnmintFeeUpdate", + "name": "cancel", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -11377,35 +11442,75 @@ "inputs": [ { "internalType": "address", - "name": "_newVendingMachine", + "name": "target", "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "payload", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" } ], - "name": "initiateVendingMachineUpgrade", + "name": "execute", "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "payloads", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" } ], - "name": "mint", + "name": "executeBatch", "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { "inputs": [], - "name": "newUnmintFee", + "name": "getMinDelay", "outputs": [ { "internalType": "uint256", - "name": "", + "name": "duration", "type": "uint256" } ], @@ -11413,26 +11518,19 @@ "type": "function" }, { - "inputs": [], - "name": "newVendingMachine", - "outputs": [ + "inputs": [ { - "internalType": "address", - "name": "", - "type": "address" + "internalType": "bytes32", + "name": "role", + "type": "bytes32" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", + "name": "getRoleAdmin", "outputs": [ { - "internalType": "address", + "internalType": "bytes32", "name": "", - "type": "address" + "type": "bytes32" } ], "stateMutability": "view", @@ -11441,59 +11539,59 @@ { "inputs": [ { - "internalType": "address", - "name": "from", - "type": "address" - }, + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "getTimestamp", + "outputs": [ { "internalType": "uint256", - "name": "amount", + "name": "timestamp", "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" }, { "internalType": "address", - "name": "token", + "name": "account", "type": "address" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" } ], - "name": "receiveApproval", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", + "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "tbtcV1", - "outputs": [ + "inputs": [ { - "internalType": "contract IERC20", - "name": "", + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", "type": "address" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "tbtcV2", + "name": "hasRole", "outputs": [ { - "internalType": "contract TBTC", + "internalType": "bool", "name": "", - "type": "address" + "type": "bool" } ], "stateMutability": "view", @@ -11503,62 +11601,113 @@ "inputs": [ { "internalType": "address", - "name": "newOwner", + "name": "target", "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" } ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", + "name": "hashOperation", + "outputs": [ + { + "internalType": "bytes32", + "name": "hash", + "type": "bytes32" + } + ], + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "newInitiator", - "type": "address" + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "payloads", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" } ], - "name": "transferUnmintFeeUpdateInitiatorRole", - "outputs": [], - "stateMutability": "nonpayable", + "name": "hashOperationBatch", + "outputs": [ + { + "internalType": "bytes32", + "name": "hash", + "type": "bytes32" + } + ], + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "newInitiator", - "type": "address" + "internalType": "bytes32", + "name": "id", + "type": "bytes32" } ], - "name": "transferVendingMachineUpgradeInitiatorRole", - "outputs": [], - "stateMutability": "nonpayable", + "name": "isOperation", + "outputs": [ + { + "internalType": "bool", + "name": "registered", + "type": "bool" + } + ], + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "internalType": "bytes32", + "name": "id", + "type": "bytes32" } ], - "name": "unmint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unmintFee", + "name": "isOperationDone", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "bool", + "name": "done", + "type": "bool" } ], "stateMutability": "view", @@ -11567,204 +11716,223 @@ { "inputs": [ { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "internalType": "bytes32", + "name": "id", + "type": "bytes32" } ], - "name": "unmintFeeFor", + "name": "isOperationPending", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "bool", + "name": "pending", + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "unmintFeeUpdateInitiatedTimestamp", + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "isOperationReady", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "bool", + "name": "ready", + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "unmintFeeUpdateInitiator", - "outputs": [ + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, { "internalType": "address", "name": "", "type": "address" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vendingMachineUpgradeInitiatedTimestamp", + "name": "onERC1155BatchReceived", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes4", "name": "", - "type": "uint256" + "type": "bytes4" } ], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "vendingMachineUpgradeInitiator", - "outputs": [ + "inputs": [ { "internalType": "address", "name": "", "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + }, { "internalType": "address", - "name": "recipient", + "name": "", "type": "address" }, { "internalType": "uint256", - "name": "amount", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" } ], - "name": "withdrawFees", - "outputs": [], "stateMutability": "nonpayable", "type": "function" - } - ] - }, - "VendingMachineV2": { - "address": "0xcE1F983c29f7A6C0C0dFA78C4D8Fe7bdfe026d4B", - "abi": [ + }, { "inputs": [ { - "internalType": "contract IERC20", - "name": "_tbtcV1", + "internalType": "address", + "name": "", "type": "address" }, { - "internalType": "contract TBTC", - "name": "_tbtcV2", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "from", + "internalType": "address", + "name": "", "type": "address" }, { - "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "", "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" } ], - "name": "Deposited", - "type": "event" + "name": "onERC721Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" + "internalType": "bytes32", + "name": "role", + "type": "bytes32" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "internalType": "address", + "name": "account", + "type": "address" } ], - "name": "Exchanged", - "type": "event" + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" + "internalType": "bytes32", + "name": "role", + "type": "bytes32" }, { - "indexed": true, "internalType": "address", - "name": "newOwner", + "name": "account", "type": "address" } ], - "name": "OwnershipTransferred", - "type": "event" + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": false, "internalType": "address", - "name": "to", + "name": "target", "type": "address" }, { - "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "value", "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [ + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + }, { "internalType": "uint256", - "name": "amount", + "name": "delay", "type": "uint256" } ], - "name": "depositTbtcV2", + "name": "schedule", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -11772,85 +11940,55 @@ { "inputs": [ { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "exchange", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, { - "internalType": "address", - "name": "from", - "type": "address" + "internalType": "bytes[]", + "name": "payloads", + "type": "bytes[]" }, { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "internalType": "bytes32", + "name": "predecessor", + "type": "bytes32" }, { - "internalType": "address", - "name": "token", - "type": "address" + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" }, { - "internalType": "bytes", - "name": "", - "type": "bytes" + "internalType": "uint256", + "name": "delay", + "type": "uint256" } ], - "name": "receiveApproval", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", + "name": "scheduleBatch", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "tbtcV1", - "outputs": [ + "inputs": [ { - "internalType": "contract IERC20", - "name": "", - "type": "address" + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "tbtcV2", + "name": "supportsInterface", "outputs": [ { - "internalType": "contract TBTC", + "internalType": "bool", "name": "", - "type": "address" + "type": "bool" } ], "stateMutability": "view", @@ -11858,44 +11996,25 @@ }, { "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "token", - "type": "address" - }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, { "internalType": "uint256", - "name": "amount", + "name": "newDelay", "type": "uint256" } ], - "name": "withdrawFunds", + "name": "updateDelay", "outputs": [], "stateMutability": "nonpayable", "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" } ] }, - "VendingMachineV3": { - "address": "0x7570a2350183b4BdF7CA74faD3Fc19048E6437e6", + "VendingMachine": { + "address": "0x6590DFF6abEd7C077839E8227A4f12Ec90E6D85F", "abi": [ { "inputs": [ @@ -11908,6 +12027,11 @@ "internalType": "contract TBTC", "name": "_tbtcV2", "type": "address" + }, + { + "internalType": "uint256", + "name": "_unmintFee", + "type": "uint256" } ], "stateMutability": "nonpayable", @@ -11917,9 +12041,9 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "address", - "name": "from", + "name": "recipient", "type": "address" }, { @@ -11929,7 +12053,7 @@ "type": "uint256" } ], - "name": "Deposited", + "name": "Minted", "type": "event" }, { @@ -11938,17 +12062,17 @@ { "indexed": true, "internalType": "address", - "name": "to", + "name": "previousOwner", "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" } ], - "name": "Exchanged", + "name": "OwnershipTransferred", "type": "event" }, { @@ -11956,24 +12080,31 @@ "inputs": [ { "indexed": false, - "internalType": "address", - "name": "token", - "type": "address" + "internalType": "uint256", + "name": "newUnmintFee", + "type": "uint256" }, { "indexed": false, - "internalType": "address", - "name": "to", - "type": "address" - }, + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "name": "UnmintFeeUpdateInitiated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "newUnmintFee", "type": "uint256" } ], - "name": "FundsRecovered", + "name": "UnmintFeeUpdated", "type": "event" }, { @@ -11982,17 +12113,23 @@ { "indexed": true, "internalType": "address", - "name": "previousOwner", + "name": "recipient", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "fee", + "type": "uint256" } ], - "name": "OwnershipTransferred", + "name": "Unminted", "type": "event" }, { @@ -12001,28 +12138,120 @@ { "indexed": false, "internalType": "address", - "name": "to", + "name": "newVendingMachine", "type": "address" }, { "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "timestamp", "type": "uint256" } ], - "name": "TbtcV2Withdrawn", + "name": "VendingMachineUpgradeInitiated", "type": "event" }, { + "anonymous": false, "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "newVendingMachine", + "type": "address" + } + ], + "name": "VendingMachineUpgraded", + "type": "event" + }, + { + "inputs": [], + "name": "FLOATING_POINT_DIVISOR", + "outputs": [ { "internalType": "uint256", - "name": "amount", + "name": "", "type": "uint256" } ], - "name": "depositTbtcV2", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GOVERNANCE_DELAY", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "finalizeUnmintFeeUpdate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "finalizeVendingMachineUpgrade", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getRemainingUnmintFeeUpdateTime", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getRemainingVendingMachineUpgradeTime", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_newUnmintFee", + "type": "uint256" + } + ], + "name": "initiateUnmintFeeUpdate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_newVendingMachine", + "type": "address" + } + ], + "name": "initiateVendingMachineUpgrade", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -12035,11 +12264,37 @@ "type": "uint256" } ], - "name": "exchange", + "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [], + "name": "newUnmintFee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "newVendingMachine", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "owner", @@ -12081,29 +12336,6 @@ "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "token", - "type": "address" - }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "recoverFunds", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [], "name": "renounceOwnership", @@ -12154,142 +12386,159 @@ "inputs": [ { "internalType": "address", - "name": "recipient", + "name": "newInitiator", "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" } ], - "name": "withdrawTbtcV2", + "name": "transferUnmintFeeUpdateInitiatorRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" - } - ] - }, - "Wallets": { - "address": "0xc989d3E486AAe6355F65281B4d0bde08c8e32fBC", - "abi": [ + }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" + "internalType": "address", + "name": "newInitiator", + "type": "address" } ], - "name": "NewWalletRegistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "NewWalletRequested", - "type": "event" + "name": "transferVendingMachineUpgradeInitiatorRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "WalletClosed", - "type": "event" + "name": "unmint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, + "inputs": [], + "name": "unmintFee", + "outputs": [ { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "WalletClosing", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" - }, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "unmintFeeFor", + "outputs": [ { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "WalletMovingFunds", - "type": "event" + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unmintFeeUpdateInitiatedTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unmintFeeUpdateInitiator", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "vendingMachineUpgradeInitiatedTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "vendingMachineUpgradeInitiator", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "ecdsaWalletID", - "type": "bytes32" + "internalType": "address", + "name": "recipient", + "type": "address" }, { - "indexed": true, - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "WalletTerminated", - "type": "event" + "name": "withdrawFees", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } ] }, - "ReimbursementPool": { - "address": "0x8adF3f35dBE4026112bCFc078872bcb967732Ea8", + "VendingMachineV2": { + "address": "0xcE1F983c29f7A6C0C0dFA78C4D8Fe7bdfe026d4B", "abi": [ { "inputs": [ { - "internalType": "uint256", - "name": "_staticGas", - "type": "uint256" + "internalType": "contract IERC20", + "name": "_tbtcV1", + "type": "address" }, { - "internalType": "uint256", - "name": "_maxGasPrice", - "type": "uint256" + "internalType": "contract TBTC", + "name": "_tbtcV2", + "type": "address" } ], "stateMutability": "nonpayable", @@ -12301,43 +12550,36 @@ { "indexed": false, "internalType": "address", - "name": "thirdPartyContract", + "name": "from", "type": "address" - } - ], - "name": "AuthorizedContract", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + }, { "indexed": false, "internalType": "uint256", - "name": "withdrawnAmount", + "name": "amount", "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "receiver", - "type": "address" } ], - "name": "FundsWithdrawn", + "name": "Deposited", "type": "event" }, { "anonymous": false, "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, { "indexed": false, "internalType": "uint256", - "name": "newMaxGasPrice", + "name": "amount", "type": "uint256" } ], - "name": "MaxGasPriceUpdated", + "name": "Exchanged", "type": "event" }, { @@ -12364,89 +12606,50 @@ "inputs": [ { "indexed": false, - "internalType": "uint256", - "name": "refundAmount", - "type": "uint256" + "internalType": "address", + "name": "token", + "type": "address" }, { "indexed": false, "internalType": "address", - "name": "receiver", + "name": "to", "type": "address" - } - ], - "name": "SendingEtherFailed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + }, { "indexed": false, "internalType": "uint256", - "name": "newStaticGas", + "name": "amount", "type": "uint256" } ], - "name": "StaticGasUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "thirdPartyContract", - "type": "address" - } - ], - "name": "UnauthorizedContract", + "name": "Withdrawn", "type": "event" }, { "inputs": [ { - "internalType": "address", - "name": "_contract", - "type": "address" + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "authorize", + "name": "depositTbtcV2", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "isAuthorized", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxGasPrice", - "outputs": [ { "internalType": "uint256", - "name": "", + "name": "amount", "type": "uint256" } ], - "stateMutability": "view", + "name": "exchange", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { @@ -12464,18 +12667,28 @@ }, { "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, { "internalType": "uint256", - "name": "gasSpent", + "name": "amount", "type": "uint256" }, { "internalType": "address", - "name": "receiver", + "name": "token", "type": "address" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" } ], - "name": "refund", + "name": "receiveApproval", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -12488,42 +12701,29 @@ "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "tbtcV1", + "outputs": [ { - "internalType": "uint256", - "name": "_maxGasPrice", - "type": "uint256" + "internalType": "contract IERC20", + "name": "", + "type": "address" } ], - "name": "setMaxGasPrice", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "tbtcV2", + "outputs": [ { - "internalType": "uint256", - "name": "_staticGas", - "type": "uint256" + "internalType": "contract TBTC", + "name": "", + "type": "address" } ], - "name": "setStaticGas", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "staticGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", + "stateMutability": "view", "type": "function" }, { @@ -12542,65 +12742,44 @@ { "inputs": [ { - "internalType": "address", - "name": "_contract", + "internalType": "contract IERC20", + "name": "token", "type": "address" - } - ], - "name": "unauthorize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" }, { "internalType": "address", - "name": "receiver", + "name": "recipient", "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + }, { - "internalType": "address", - "name": "receiver", - "type": "address" + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "withdrawAll", + "name": "withdrawFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" } ] }, - "TBTCToken": { - "address": "0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa", + "VendingMachineV3": { + "address": "0x7570a2350183b4BdF7CA74faD3Fc19048E6437e6", "abi": [ { "inputs": [ { - "internalType": "address", - "name": "_VendingMachine", + "internalType": "contract IERC20", + "name": "_tbtcV1", + "type": "address" + }, + { + "internalType": "contract TBTC", + "name": "_tbtcV2", "type": "address" } ], - "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, @@ -12608,36 +12787,24 @@ "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "spender", + "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", - "name": "value", + "name": "amount", "type": "uint256" } ], - "name": "Approval", + "name": "Deposited", "type": "event" }, { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, { "indexed": true, "internalType": "address", @@ -12647,324 +12814,214 @@ { "indexed": false, "internalType": "uint256", - "name": "value", + "name": "amount", "type": "uint256" } ], - "name": "Transfer", + "name": "Exchanged", "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ { + "indexed": false, "internalType": "address", - "name": "owner", + "name": "token", "type": "address" }, { + "indexed": false, "internalType": "address", - "name": "spender", + "name": "to", "type": "address" - } - ], - "name": "allowance", - "outputs": [ + }, { + "indexed": false, "internalType": "uint256", - "name": "", + "name": "amount", "type": "uint256" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "FundsRecovered", + "type": "event" }, { - "constant": false, + "anonymous": false, "inputs": [ { + "indexed": true, "internalType": "address", - "name": "spender", + "name": "previousOwner", "type": "address" }, { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract ITokenRecipient", - "name": "_spender", + "indexed": true, + "internalType": "address", + "name": "newOwner", "type": "address" - }, - { - "internalType": "uint256", - "name": "_value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "_extraData", - "type": "bytes" - } - ], - "name": "approveAndCall", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "OwnershipTransferred", + "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ { + "indexed": false, "internalType": "address", - "name": "account", + "name": "to", "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ + }, { + "indexed": false, "internalType": "uint256", - "name": "", + "name": "amount", "type": "uint256" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "TbtcV2Withdrawn", + "type": "event" }, { - "constant": false, "inputs": [ { "internalType": "uint256", - "name": "_amount", + "name": "amount", "type": "uint256" } ], - "name": "burn", + "name": "depositTbtcV2", "outputs": [], - "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": false, "inputs": [ - { - "internalType": "address", - "name": "_account", - "type": "address" - }, { "internalType": "uint256", - "name": "_amount", + "name": "amount", "type": "uint256" } ], - "name": "burnFrom", + "name": "exchange", "outputs": [], - "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, "inputs": [], - "name": "decimals", + "name": "owner", "outputs": [ { - "internalType": "uint8", + "internalType": "address", "name": "", - "type": "uint8" + "type": "address" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": false, "inputs": [ { "internalType": "address", - "name": "spender", + "name": "from", "type": "address" }, { "internalType": "uint256", - "name": "subtractedValue", + "name": "amount", "type": "uint256" - } - ], - "name": "decreaseAllowance", - "outputs": [ + }, { - "internalType": "bool", + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "bytes", "name": "", - "type": "bool" + "type": "bytes" } ], - "payable": false, + "name": "receiveApproval", + "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "constant": false, "inputs": [ + { + "internalType": "contract IERC20", + "name": "token", + "type": "address" + }, { "internalType": "address", - "name": "spender", + "name": "recipient", "type": "address" }, { "internalType": "uint256", - "name": "addedValue", + "name": "amount", "type": "uint256" } ], - "name": "increaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, + "name": "recoverFunds", + "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, "inputs": [], - "name": "symbol", + "name": "tbtcV1", "outputs": [ { - "internalType": "string", + "internalType": "contract IERC20", "name": "", - "type": "string" + "type": "address" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, "inputs": [], - "name": "totalSupply", + "name": "tbtcV2", "outputs": [ { - "internalType": "uint256", + "internalType": "contract TBTC", "name": "", - "type": "uint256" + "type": "address" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": false, "inputs": [ { "internalType": "address", - "name": "recipient", + "name": "newOwner", "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" } ], - "payable": false, + "name": "transferOwnership", + "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "constant": false, "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - }, { "internalType": "address", "name": "recipient", @@ -12976,33 +13033,21 @@ "type": "uint256" } ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, + "name": "withdrawTbtcV2", + "outputs": [], "stateMutability": "nonpayable", "type": "function" } ] }, - "WalletRegistry": { - "address": "0x46d52E41C2F300BC82217Ce22b920c34995204eb", + "WalletProposalValidator": { + "address": "0x30019D85a86ABD3cDA1167F4C052690c32FBDEc2", "abi": [ { "inputs": [ { - "internalType": "contract SortitionPool", - "name": "_sortitionPool", - "type": "address" - }, - { - "internalType": "contract IStaking", - "name": "_staking", + "internalType": "contract Bridge", + "name": "_bridge", "type": "address" } ], @@ -13010,159 +13055,577 @@ "type": "constructor" }, { - "anonymous": false, - "inputs": [ + "inputs": [], + "name": "DEPOSIT_MIN_AGE", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "stakingProvider", - "type": "address" + "internalType": "uint32", + "name": "", + "type": "uint32" } ], - "name": "AuthorizationDecreaseApproved", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "stakingProvider", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "fromAmount", - "type": "uint96" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "toAmount", - "type": "uint96" - }, + "inputs": [], + "name": "DEPOSIT_REFUND_SAFETY_MARGIN", + "outputs": [ { - "indexed": false, - "internalType": "uint64", - "name": "decreasingAt", - "type": "uint64" + "internalType": "uint32", + "name": "", + "type": "uint32" } ], - "name": "AuthorizationDecreaseRequested", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "stakingProvider", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "fromAmount", - "type": "uint96" - }, + "inputs": [], + "name": "DEPOSIT_SWEEP_MAX_SIZE", + "outputs": [ { - "indexed": false, - "internalType": "uint96", - "name": "toAmount", - "type": "uint96" + "internalType": "uint16", + "name": "", + "type": "uint16" } ], - "name": "AuthorizationIncreased", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint96", - "name": "minimumAuthorization", - "type": "uint96" - }, - { - "indexed": false, - "internalType": "uint64", - "name": "authorizationDecreaseDelay", - "type": "uint64" - }, + "inputs": [], + "name": "REDEMPTION_MAX_SIZE", + "outputs": [ { - "indexed": false, - "internalType": "uint64", - "name": "authorizationDecreaseChangePeriod", - "type": "uint64" + "internalType": "uint16", + "name": "", + "type": "uint16" } ], - "name": "AuthorizationParametersUpdated", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "resultHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "slashingAmount", - "type": "uint256" - }, + "inputs": [], + "name": "REDEMPTION_REQUEST_MIN_AGE", + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "maliciousSubmitter", - "type": "address" + "internalType": "uint32", + "name": "", + "type": "uint32" } ], - "name": "DkgMaliciousResultSlashed", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, - "inputs": [ + "inputs": [], + "name": "REDEMPTION_REQUEST_TIMEOUT_SAFETY_MARGIN", + "outputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "resultHash", + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "bridge", + "outputs": [ + { + "internalType": "contract Bridge", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "components": [ + { + "internalType": "bytes32", + "name": "fundingTxHash", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "fundingOutputIndex", + "type": "uint32" + } + ], + "internalType": "struct WalletProposalValidator.DepositKey[]", + "name": "depositsKeys", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "sweepTxFee", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "depositsRevealBlocks", + "type": "uint256[]" + } + ], + "internalType": "struct WalletProposalValidator.DepositSweepProposal", + "name": "proposal", + "type": "tuple" + }, + { + "components": [ + { + "components": [ + { + "internalType": "bytes4", + "name": "version", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "inputVector", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "outputVector", + "type": "bytes" + }, + { + "internalType": "bytes4", + "name": "locktime", + "type": "bytes4" + } + ], + "internalType": "struct BitcoinTx.Info", + "name": "fundingTx", + "type": "tuple" + }, + { + "internalType": "bytes8", + "name": "blindingFactor", + "type": "bytes8" + }, + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes20", + "name": "refundPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes4", + "name": "refundLocktime", + "type": "bytes4" + } + ], + "internalType": "struct WalletProposalValidator.DepositExtraInfo[]", + "name": "depositsExtraInfo", + "type": "tuple[]" + } + ], + "name": "validateDepositSweepProposal", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct WalletProposalValidator.HeartbeatProposal", + "name": "proposal", + "type": "tuple" + } + ], + "name": "validateHeartbeatProposal", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes32", + "name": "movingFundsTxHash", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "movingFundsTxOutputIndex", + "type": "uint32" + }, + { + "internalType": "uint256", + "name": "movedFundsSweepTxFee", + "type": "uint256" + } + ], + "internalType": "struct WalletProposalValidator.MovedFundsSweepProposal", + "name": "proposal", + "type": "tuple" + } + ], + "name": "validateMovedFundsSweepProposal", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes20[]", + "name": "targetWallets", + "type": "bytes20[]" + }, + { + "internalType": "uint256", + "name": "movingFundsTxFee", + "type": "uint256" + } + ], + "internalType": "struct WalletProposalValidator.MovingFundsProposal", + "name": "proposal", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "bytes32", + "name": "txHash", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "txOutputIndex", + "type": "uint32" + }, + { + "internalType": "uint64", + "name": "txOutputValue", + "type": "uint64" + } + ], + "internalType": "struct BitcoinTx.UTXO", + "name": "walletMainUtxo", + "type": "tuple" + } + ], + "name": "validateMovingFundsProposal", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + }, + { + "internalType": "bytes[]", + "name": "redeemersOutputScripts", + "type": "bytes[]" + }, + { + "internalType": "uint256", + "name": "redemptionTxFee", + "type": "uint256" + } + ], + "internalType": "struct WalletProposalValidator.RedemptionProposal", + "name": "proposal", + "type": "tuple" + } + ], + "name": "validateRedemptionProposal", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + } + ] + }, + "Wallets": { + "address": "0xc989d3E486AAe6355F65281B4d0bde08c8e32fBC", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + } + ], + "name": "NewWalletRegistered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [], + "name": "NewWalletRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + } + ], + "name": "WalletClosed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + } + ], + "name": "WalletClosing", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", "type": "bytes32" }, + { + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + } + ], + "name": "WalletMovingFunds", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "ecdsaWalletID", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes20", + "name": "walletPubKeyHash", + "type": "bytes20" + } + ], + "name": "WalletTerminated", + "type": "event" + } + ] + }, + "ReimbursementPool": { + "address": "0x8adF3f35dBE4026112bCFc078872bcb967732Ea8", + "abi": [ + { + "inputs": [ + { + "internalType": "uint256", + "name": "_staticGas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_maxGasPrice", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "thirdPartyContract", + "type": "address" + } + ], + "name": "AuthorizedContract", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "withdrawnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "FundsWithdrawn", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "newMaxGasPrice", + "type": "uint256" + } + ], + "name": "MaxGasPriceUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { "indexed": false, "internalType": "uint256", - "name": "slashingAmount", + "name": "refundAmount", "type": "uint256" }, { "indexed": false, "internalType": "address", - "name": "maliciousSubmitter", + "name": "receiver", "type": "address" } ], - "name": "DkgMaliciousResultSlashingFailed", + "name": "SendingEtherFailed", "type": "event" }, { @@ -13171,267 +13634,225 @@ { "indexed": false, "internalType": "uint256", - "name": "seedTimeout", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultChallengePeriodLength", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultChallengeExtraGas", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultSubmissionTimeout", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultSubmitterPrecedencePeriodLength", + "name": "newStaticGas", "type": "uint256" } ], - "name": "DkgParametersUpdated", + "name": "StaticGasUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "resultHash", - "type": "bytes32" - }, - { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "approver", + "name": "thirdPartyContract", "type": "address" } ], - "name": "DkgResultApproved", + "name": "UnauthorizedContract", "type": "event" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "resultHash", - "type": "bytes32" - }, - { - "indexed": true, "internalType": "address", - "name": "challenger", + "name": "_contract", "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "reason", - "type": "string" } ], - "name": "DkgResultChallenged", - "type": "event" + "name": "authorize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "resultHash", - "type": "bytes32" - }, + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "isAuthorized", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "maxGasPrice", + "outputs": [ { - "indexed": true, "internalType": "uint256", - "name": "seed", + "name": "", "type": "uint256" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "submitterMemberIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "groupPubKey", - "type": "bytes" - }, - { - "internalType": "uint8[]", - "name": "misbehavedMembersIndices", - "type": "uint8[]" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256[]", - "name": "signingMembersIndices", - "type": "uint256[]" - }, - { - "internalType": "uint32[]", - "name": "members", - "type": "uint32[]" - }, - { - "internalType": "bytes32", - "name": "membersHash", - "type": "bytes32" - } - ], - "indexed": false, - "internalType": "struct EcdsaDkg.Result", - "name": "result", - "type": "tuple" } ], - "name": "DkgResultSubmitted", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [], - "name": "DkgSeedTimedOut", - "type": "event" + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, "internalType": "uint256", - "name": "seed", + "name": "gasSpent", "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" } ], - "name": "DkgStarted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "DkgStateLocked", - "type": "event" + "name": "refund", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [], - "name": "DkgTimedOut", - "type": "event" + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, "internalType": "uint256", - "name": "dkgResultSubmissionGas", + "name": "_maxGasPrice", "type": "uint256" - }, + } + ], + "name": "setMaxGasPrice", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "indexed": false, "internalType": "uint256", - "name": "dkgResultApprovalGasOffset", + "name": "_staticGas", "type": "uint256" - }, + } + ], + "name": "setStaticGas", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "staticGas", + "outputs": [ { - "indexed": false, "internalType": "uint256", - "name": "notifyOperatorInactivityGasOffset", + "name": "", "type": "uint256" - }, + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "notifySeedTimeoutGasOffset", - "type": "uint256" - }, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "notifyDkgTimeoutNegativeGasOffset", - "type": "uint256" + "internalType": "address", + "name": "_contract", + "type": "address" } ], - "name": "GasParametersUpdated", - "type": "event" + "name": "unauthorize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "oldGovernance", - "type": "address" + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "indexed": false, "internalType": "address", - "name": "newGovernance", + "name": "receiver", "type": "address" } ], - "name": "GovernanceTransferred", - "type": "event" + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "nonce", - "type": "uint256" - }, - { - "indexed": false, "internalType": "address", - "name": "notifier", + "name": "receiver", "type": "address" } ], - "name": "InactivityClaimed", - "type": "event" + "name": "withdrawAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "stateMutability": "payable", + "type": "receive" + } + ] + }, + "TBTCToken": { + "address": "0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa", + "abi": [ + { "inputs": [ { - "indexed": false, - "internalType": "uint8", - "name": "version", - "type": "uint8" + "internalType": "address", + "name": "_VendingMachine", + "type": "address" } ], - "name": "Initialized", - "type": "event" + "payable": false, + "stateMutability": "nonpayable", + "type": "constructor" }, { "anonymous": false, @@ -13439,29 +13860,23 @@ { "indexed": true, "internalType": "address", - "name": "stakingProvider", + "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", - "name": "operator", + "name": "spender", "type": "address" }, { "indexed": false, - "internalType": "uint96", - "name": "fromAmount", - "type": "uint96" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "toAmount", - "type": "uint96" + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "name": "InvoluntaryAuthorizationDecreaseFailed", + "name": "Approval", "type": "event" }, { @@ -13470,350 +13885,632 @@ { "indexed": true, "internalType": "address", - "name": "stakingProvider", + "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", - "name": "operator", + "name": "to", "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "name": "OperatorJoinedSortitionPool", + "name": "Transfer", "type": "event" }, { - "anonymous": false, + "constant": true, "inputs": [ { - "indexed": true, "internalType": "address", - "name": "stakingProvider", + "name": "owner", "type": "address" }, { - "indexed": true, "internalType": "address", - "name": "operator", + "name": "spender", "type": "address" } ], - "name": "OperatorRegistered", - "type": "event" + "name": "allowance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, "internalType": "address", - "name": "stakingProvider", + "name": "spender", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "operator", + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "contract ITokenRecipient", + "name": "_spender", "type": "address" + }, + { + "internalType": "uint256", + "name": "_value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_extraData", + "type": "bytes" } ], - "name": "OperatorStatusUpdated", - "type": "event" + "name": "approveAndCall", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": true, "inputs": [ { - "indexed": false, "internalType": "address", - "name": "randomBeacon", + "name": "account", "type": "address" } ], - "name": "RandomBeaconUpgraded", - "type": "event" + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, + "inputs": [ + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "burn", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, "inputs": [ { - "indexed": false, "internalType": "address", - "name": "newReimbursementPool", + "name": "_account", "type": "address" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" } ], - "name": "ReimbursementPoolUpdated", - "type": "event" + "name": "burnFrom", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": true, + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, "inputs": [ { - "indexed": false, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { "internalType": "uint256", - "name": "maliciousDkgResultNotificationRewardMultiplier", + "name": "subtractedValue", "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" }, { - "indexed": false, "internalType": "uint256", - "name": "sortitionPoolRewardsBanDuration", + "name": "addedValue", "type": "uint256" } ], - "name": "RewardParametersUpdated", - "type": "event" + "name": "increaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, "internalType": "address", - "name": "stakingProvider", + "name": "_account", "type": "address" }, { - "indexed": false, - "internalType": "uint96", - "name": "amount", - "type": "uint96" + "internalType": "uint256", + "name": "_amount", + "type": "uint256" } ], - "name": "RewardsWithdrawn", - "type": "event" + "name": "mint", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ + "constant": true, + "inputs": [], + "name": "name", + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "maliciousDkgResultSlashingAmount", - "type": "uint256" + "internalType": "string", + "name": "", + "type": "string" } ], - "name": "SlashingParametersUpdated", - "type": "event" + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, - "inputs": [ + "constant": true, + "inputs": [], + "name": "symbol", + "outputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" + "internalType": "string", + "name": "", + "type": "string" } ], - "name": "WalletClosed", - "type": "event" + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" - }, + "constant": true, + "inputs": [], + "name": "totalSupply", + "outputs": [ { - "indexed": true, - "internalType": "bytes32", - "name": "dkgResultHash", - "type": "bytes32" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "WalletCreated", - "type": "event" + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": false, "internalType": "address", - "name": "walletOwner", + "name": "recipient", "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "WalletOwnerUpdated", - "type": "event" + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { + "constant": false, "inputs": [ { - "internalType": "uint256", - "name": "relayEntry", - "type": "uint256" + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" }, { "internalType": "uint256", - "name": "", + "name": "amount", "type": "uint256" } ], - "name": "__beaconCallback", - "outputs": [], + "name": "transferFrom", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "WalletRegistry": { + "address": "0x46d52E41C2F300BC82217Ce22b920c34995204eb", + "abi": [ { "inputs": [ { - "internalType": "address", - "name": "stakingProvider", + "internalType": "contract SortitionPool", + "name": "_sortitionPool", + "type": "address" + }, + { + "internalType": "contract IStaking", + "name": "_staking", "type": "address" } ], - "name": "approveAuthorizationDecrease", - "outputs": [], "stateMutability": "nonpayable", - "type": "function" + "type": "constructor" }, { + "anonymous": false, "inputs": [ { - "components": [ - { - "internalType": "uint256", - "name": "submitterMemberIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "groupPubKey", - "type": "bytes" - }, - { - "internalType": "uint8[]", - "name": "misbehavedMembersIndices", - "type": "uint8[]" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256[]", - "name": "signingMembersIndices", - "type": "uint256[]" - }, - { - "internalType": "uint32[]", - "name": "members", - "type": "uint32[]" - }, - { - "internalType": "bytes32", - "name": "membersHash", - "type": "bytes32" - } - ], - "internalType": "struct EcdsaDkg.Result", - "name": "dkgResult", - "type": "tuple" + "indexed": true, + "internalType": "address", + "name": "stakingProvider", + "type": "address" } ], - "name": "approveDkgResult", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "AuthorizationDecreaseApproved", + "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": true, "internalType": "address", "name": "stakingProvider", "type": "address" }, { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, "internalType": "uint96", "name": "fromAmount", "type": "uint96" }, { + "indexed": false, "internalType": "uint96", "name": "toAmount", "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint64", + "name": "decreasingAt", + "type": "uint64" } ], - "name": "authorizationDecreaseRequested", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "AuthorizationDecreaseRequested", + "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": true, + "internalType": "address", + "name": "stakingProvider", + "type": "address" + }, + { + "indexed": true, "internalType": "address", - "name": "stakingProvider", + "name": "operator", "type": "address" }, { + "indexed": false, "internalType": "uint96", "name": "fromAmount", "type": "uint96" }, { + "indexed": false, "internalType": "uint96", "name": "toAmount", "type": "uint96" } ], - "name": "authorizationIncreased", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "AuthorizationIncreased", + "type": "event" }, { - "inputs": [], - "name": "authorizationParameters", - "outputs": [ + "anonymous": false, + "inputs": [ { + "indexed": false, "internalType": "uint96", "name": "minimumAuthorization", "type": "uint96" }, { + "indexed": false, "internalType": "uint64", "name": "authorizationDecreaseDelay", "type": "uint64" }, { + "indexed": false, "internalType": "uint64", "name": "authorizationDecreaseChangePeriod", "type": "uint64" } ], - "stateMutability": "view", - "type": "function" + "name": "AuthorizationParametersUpdated", + "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": true, + "internalType": "bytes32", + "name": "resultHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "slashingAmount", + "type": "uint256" + }, + { + "indexed": false, "internalType": "address", - "name": "stakingProvider", + "name": "maliciousSubmitter", "type": "address" } ], - "name": "availableRewards", - "outputs": [ + "name": "DkgMaliciousResultSlashed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint96", - "name": "", - "type": "uint96" + "indexed": true, + "internalType": "bytes32", + "name": "resultHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "slashingAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "maliciousSubmitter", + "type": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "DkgMaliciousResultSlashingFailed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "seedTimeout", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "resultChallengePeriodLength", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "resultChallengeExtraGas", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "resultSubmissionTimeout", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "resultSubmitterPrecedencePeriodLength", + "type": "uint256" + } + ], + "name": "DkgParametersUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "resultHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "approver", + "type": "address" + } + ], + "name": "DkgResultApproved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "resultHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "challenger", + "type": "address" + }, + { + "indexed": false, + "internalType": "string", + "name": "reason", + "type": "string" + } + ], + "name": "DkgResultChallenged", + "type": "event" }, { + "anonymous": false, "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "resultHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "seed", + "type": "uint256" + }, { "components": [ { @@ -13852,266 +14549,364 @@ "type": "bytes32" } ], + "indexed": false, "internalType": "struct EcdsaDkg.Result", - "name": "dkgResult", + "name": "result", "type": "tuple" } ], - "name": "challengeDkgResult", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" - } - ], - "name": "closeWallet", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "DkgResultSubmitted", + "type": "event" }, { + "anonymous": false, "inputs": [], - "name": "dkgParameters", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "seedTimeout", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "resultChallengePeriodLength", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "resultChallengeExtraGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "resultSubmissionTimeout", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "submitterPrecedencePeriodLength", - "type": "uint256" - } - ], - "internalType": "struct EcdsaDkg.Parameters", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" + "name": "DkgSeedTimedOut", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "address", - "name": "stakingProvider", - "type": "address" - } - ], - "name": "eligibleStake", - "outputs": [ - { - "internalType": "uint96", - "name": "", - "type": "uint96" + "indexed": true, + "internalType": "uint256", + "name": "seed", + "type": "uint256" } ], - "stateMutability": "view", - "type": "function" + "name": "DkgStarted", + "type": "event" }, { + "anonymous": false, "inputs": [], - "name": "gasParameters", - "outputs": [ + "name": "DkgStateLocked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [], + "name": "DkgTimedOut", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { + "indexed": false, "internalType": "uint256", "name": "dkgResultSubmissionGas", "type": "uint256" }, { + "indexed": false, "internalType": "uint256", "name": "dkgResultApprovalGasOffset", "type": "uint256" }, { + "indexed": false, "internalType": "uint256", "name": "notifyOperatorInactivityGasOffset", "type": "uint256" }, { + "indexed": false, "internalType": "uint256", "name": "notifySeedTimeoutGasOffset", "type": "uint256" }, { + "indexed": false, "internalType": "uint256", "name": "notifyDkgTimeoutNegativeGasOffset", "type": "uint256" } ], - "stateMutability": "view", - "type": "function" + "name": "GasParametersUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldGovernance", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newGovernance", + "type": "address" + } + ], + "name": "GovernanceTransferred", + "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": true, "internalType": "bytes32", "name": "walletID", "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "notifier", + "type": "address" } ], - "name": "getWallet", - "outputs": [ + "name": "InactivityClaimed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "components": [ - { - "internalType": "bytes32", - "name": "membersIdsHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "publicKeyX", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "publicKeyY", - "type": "bytes32" - } - ], - "internalType": "struct Wallets.Wallet", - "name": "", - "type": "tuple" + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" } ], - "stateMutability": "view", - "type": "function" + "name": "Initialized", + "type": "event" }, { - "inputs": [], - "name": "getWalletCreationState", - "outputs": [ + "anonymous": false, + "inputs": [ { - "internalType": "enum EcdsaDkg.State", - "name": "", - "type": "uint8" + "indexed": true, + "internalType": "address", + "name": "stakingProvider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "fromAmount", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "toAmount", + "type": "uint96" } ], - "stateMutability": "view", - "type": "function" + "name": "InvoluntaryAuthorizationDecreaseFailed", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" + "indexed": true, + "internalType": "address", + "name": "stakingProvider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" } ], - "name": "getWalletPublicKey", - "outputs": [ + "name": "OperatorJoinedSortitionPool", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "bytes", - "name": "", - "type": "bytes" + "indexed": true, + "internalType": "address", + "name": "stakingProvider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "OperatorRegistered", + "type": "event" }, { - "inputs": [], - "name": "governance", - "outputs": [ + "anonymous": false, + "inputs": [ { + "indexed": true, "internalType": "address", - "name": "", + "name": "stakingProvider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", "type": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "OperatorStatusUpdated", + "type": "event" }, { - "inputs": [], - "name": "hasDkgTimedOut", - "outputs": [ + "anonymous": false, + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "indexed": false, + "internalType": "address", + "name": "randomBeacon", + "type": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "RandomBeaconUpgraded", + "type": "event" }, { - "inputs": [], - "name": "hasSeedTimedOut", - "outputs": [ + "anonymous": false, + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "indexed": false, + "internalType": "address", + "name": "newReimbursementPool", + "type": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "ReimbursementPoolUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "maliciousDkgResultNotificationRewardMultiplier", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "sortitionPoolRewardsBanDuration", + "type": "uint256" + } + ], + "name": "RewardParametersUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "stakingProvider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "amount", + "type": "uint96" + } + ], + "name": "RewardsWithdrawn", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "maliciousDkgResultSlashingAmount", + "type": "uint256" + } + ], + "name": "SlashingParametersUpdated", + "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": true, "internalType": "bytes32", - "name": "", + "name": "walletID", "type": "bytes32" } ], - "name": "inactivityClaimNonce", - "outputs": [ + "name": "WalletClosed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "indexed": true, + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "dkgResultHash", + "type": "bytes32" } ], - "stateMutability": "view", - "type": "function" + "name": "WalletCreated", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "contract EcdsaDkgValidator", - "name": "_ecdsaDkgValidator", + "indexed": false, + "internalType": "address", + "name": "walletOwner", "type": "address" - }, + } + ], + "name": "WalletOwnerUpdated", + "type": "event" + }, + { + "inputs": [ { - "internalType": "contract IRandomBeacon", - "name": "_randomBeacon", - "type": "address" + "internalType": "uint256", + "name": "relayEntry", + "type": "uint256" }, { - "internalType": "contract ReimbursementPool", - "name": "_reimbursementPool", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "initialize", + "name": "__beaconCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -14122,19 +14917,9 @@ "internalType": "address", "name": "stakingProvider", "type": "address" - }, - { - "internalType": "uint96", - "name": "fromAmount", - "type": "uint96" - }, - { - "internalType": "uint96", - "name": "toAmount", - "type": "uint96" } ], - "name": "involuntaryAuthorizationDecrease", + "name": "approveAuthorizationDecrease", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -14180,93 +14965,79 @@ } ], "internalType": "struct EcdsaDkg.Result", - "name": "result", + "name": "dkgResult", "type": "tuple" } ], - "name": "isDkgResultValid", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - }, - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", + "name": "approveDkgResult", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "operator", + "name": "stakingProvider", "type": "address" - } - ], - "name": "isOperatorInPool", - "outputs": [ + }, { - "internalType": "bool", - "name": "", - "type": "bool" + "internalType": "uint96", + "name": "fromAmount", + "type": "uint96" + }, + { + "internalType": "uint96", + "name": "toAmount", + "type": "uint96" } ], - "stateMutability": "view", + "name": "authorizationDecreaseRequested", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "operator", + "name": "stakingProvider", "type": "address" - } - ], - "name": "isOperatorUpToDate", - "outputs": [ + }, { - "internalType": "bool", - "name": "", - "type": "bool" + "internalType": "uint96", + "name": "fromAmount", + "type": "uint96" + }, + { + "internalType": "uint96", + "name": "toAmount", + "type": "uint96" } ], - "stateMutability": "view", + "name": "authorizationIncreased", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" - }, + "inputs": [], + "name": "authorizationParameters", + "outputs": [ { - "internalType": "uint32[]", - "name": "walletMembersIDs", - "type": "uint32[]" + "internalType": "uint96", + "name": "minimumAuthorization", + "type": "uint96" }, { - "internalType": "address", - "name": "operator", - "type": "address" + "internalType": "uint64", + "name": "authorizationDecreaseDelay", + "type": "uint64" }, { - "internalType": "uint256", - "name": "walletMemberIndex", - "type": "uint256" - } - ], - "name": "isWalletMember", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" + "internalType": "uint64", + "name": "authorizationDecreaseChangePeriod", + "type": "uint64" } ], "stateMutability": "view", @@ -14275,32 +15046,12 @@ { "inputs": [ { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" - } - ], - "name": "isWalletRegistered", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" + "internalType": "address", + "name": "stakingProvider", + "type": "address" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "joinSortitionPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "minimumAuthorization", + "name": "availableRewards", "outputs": [ { "internalType": "uint96", @@ -14311,31 +15062,24 @@ "stateMutability": "view", "type": "function" }, - { - "inputs": [], - "name": "notifyDkgTimeout", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [ { "components": [ { - "internalType": "bytes32", - "name": "walletID", - "type": "bytes32" + "internalType": "uint256", + "name": "submitterMemberIndex", + "type": "uint256" }, { - "internalType": "uint256[]", - "name": "inactiveMembersIndices", - "type": "uint256[]" + "internalType": "bytes", + "name": "groupPubKey", + "type": "bytes" }, { - "internalType": "bool", - "name": "heartbeatFailed", - "type": "bool" + "internalType": "uint8[]", + "name": "misbehavedMembersIndices", + "type": "uint8[]" }, { "internalType": "bytes", @@ -14346,49 +15090,76 @@ "internalType": "uint256[]", "name": "signingMembersIndices", "type": "uint256[]" + }, + { + "internalType": "uint32[]", + "name": "members", + "type": "uint32[]" + }, + { + "internalType": "bytes32", + "name": "membersHash", + "type": "bytes32" } ], - "internalType": "struct EcdsaInactivity.Claim", - "name": "claim", + "internalType": "struct EcdsaDkg.Result", + "name": "dkgResult", "type": "tuple" - }, - { - "internalType": "uint256", - "name": "nonce", - "type": "uint256" - }, - { - "internalType": "uint32[]", - "name": "groupMembers", - "type": "uint32[]" } ], - "name": "notifyOperatorInactivity", + "name": "challengeDkgResult", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "notifySeedTimeout", + "inputs": [ + { + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" + } + ], + "name": "closeWallet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "operatorToStakingProvider", + "inputs": [], + "name": "dkgParameters", "outputs": [ { - "internalType": "address", + "components": [ + { + "internalType": "uint256", + "name": "seedTimeout", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "resultChallengePeriodLength", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "resultChallengeExtraGas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "resultSubmissionTimeout", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "submitterPrecedencePeriodLength", + "type": "uint256" + } + ], + "internalType": "struct EcdsaDkg.Parameters", "name": "", - "type": "address" + "type": "tuple" } ], "stateMutability": "view", @@ -14402,7 +15173,7 @@ "type": "address" } ], - "name": "pendingAuthorizationDecrease", + "name": "eligibleStake", "outputs": [ { "internalType": "uint96", @@ -14415,38 +15186,32 @@ }, { "inputs": [], - "name": "randomBeacon", + "name": "gasParameters", "outputs": [ { - "internalType": "contract IRandomBeacon", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "dkgResultSubmissionGas", + "type": "uint256" + }, { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "registerOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "reimbursementPool", - "outputs": [ + "internalType": "uint256", + "name": "dkgResultApprovalGasOffset", + "type": "uint256" + }, { - "internalType": "contract ReimbursementPool", - "name": "", - "type": "address" + "internalType": "uint256", + "name": "notifyOperatorInactivityGasOffset", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "notifySeedTimeoutGasOffset", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "notifyDkgTimeoutNegativeGasOffset", + "type": "uint256" } ], "stateMutability": "view", @@ -14455,17 +15220,34 @@ { "inputs": [ { - "internalType": "address", - "name": "stakingProvider", - "type": "address" + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" } ], - "name": "remainingAuthorizationDecreaseDelay", + "name": "getWallet", "outputs": [ { - "internalType": "uint64", + "components": [ + { + "internalType": "bytes32", + "name": "membersIdsHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "publicKeyX", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "publicKeyY", + "type": "bytes32" + } + ], + "internalType": "struct Wallets.Wallet", "name": "", - "type": "uint64" + "type": "tuple" } ], "stateMutability": "view", @@ -14473,24 +15255,12 @@ }, { "inputs": [], - "name": "requestNewWallet", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rewardParameters", + "name": "getWalletCreationState", "outputs": [ { - "internalType": "uint256", - "name": "maliciousDkgResultNotificationRewardMultiplier", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sortitionPoolRewardsBanDuration", - "type": "uint256" + "internalType": "enum EcdsaDkg.State", + "name": "", + "type": "uint8" } ], "stateMutability": "view", @@ -14498,45 +15268,31 @@ }, { "inputs": [ - { - "internalType": "uint96", - "name": "amount", - "type": "uint96" - }, - { - "internalType": "uint256", - "name": "rewardMultiplier", - "type": "uint256" - }, - { - "internalType": "address", - "name": "notifier", - "type": "address" - }, { "internalType": "bytes32", "name": "walletID", "type": "bytes32" - }, + } + ], + "name": "getWalletPublicKey", + "outputs": [ { - "internalType": "uint32[]", - "name": "walletMembersIDs", - "type": "uint32[]" + "internalType": "bytes", + "name": "", + "type": "bytes" } ], - "name": "seize", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [], - "name": "selectGroup", + "name": "governance", "outputs": [ { - "internalType": "uint32[]", + "internalType": "address", "name": "", - "type": "uint32[]" + "type": "address" } ], "stateMutability": "view", @@ -14544,12 +15300,12 @@ }, { "inputs": [], - "name": "slashingParameters", + "name": "hasDkgTimedOut", "outputs": [ { - "internalType": "uint96", - "name": "maliciousDkgResultSlashingAmount", - "type": "uint96" + "internalType": "bool", + "name": "", + "type": "bool" } ], "stateMutability": "view", @@ -14557,25 +15313,31 @@ }, { "inputs": [], - "name": "sortitionPool", + "name": "hasSeedTimedOut", "outputs": [ { - "internalType": "contract SortitionPool", + "internalType": "bool", "name": "", - "type": "address" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "staking", + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "inactivityClaimNonce", "outputs": [ { - "internalType": "contract IStaking", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "stateMutability": "view", @@ -14584,20 +15346,47 @@ { "inputs": [ { - "internalType": "address", - "name": "stakingProvider", + "internalType": "contract EcdsaDkgValidator", + "name": "_ecdsaDkgValidator", + "type": "address" + }, + { + "internalType": "contract IRandomBeacon", + "name": "_randomBeacon", + "type": "address" + }, + { + "internalType": "contract ReimbursementPool", + "name": "_reimbursementPool", "type": "address" } ], - "name": "stakingProviderToOperator", - "outputs": [ + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { "internalType": "address", - "name": "", + "name": "stakingProvider", "type": "address" + }, + { + "internalType": "uint96", + "name": "fromAmount", + "type": "uint96" + }, + { + "internalType": "uint96", + "name": "toAmount", + "type": "uint96" } ], - "stateMutability": "view", + "name": "involuntaryAuthorizationDecrease", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { @@ -14641,139 +15430,140 @@ } ], "internalType": "struct EcdsaDkg.Result", - "name": "dkgResult", + "name": "result", "type": "tuple" } ], - "name": "submitDkgResult", - "outputs": [], - "stateMutability": "nonpayable", + "name": "isDkgResultValid", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + }, + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "newGovernance", + "name": "operator", "type": "address" } ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", + "name": "isOperatorInPool", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint96", - "name": "_minimumAuthorization", - "type": "uint96" - }, - { - "internalType": "uint64", - "name": "_authorizationDecreaseDelay", - "type": "uint64" - }, + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isOperatorUpToDate", + "outputs": [ { - "internalType": "uint64", - "name": "_authorizationDecreaseChangePeriod", - "type": "uint64" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "updateAuthorizationParameters", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "_seedTimeout", - "type": "uint256" + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" }, { - "internalType": "uint256", - "name": "_resultChallengePeriodLength", - "type": "uint256" + "internalType": "uint32[]", + "name": "walletMembersIDs", + "type": "uint32[]" }, { - "internalType": "uint256", - "name": "_resultChallengeExtraGas", - "type": "uint256" + "internalType": "address", + "name": "operator", + "type": "address" }, { "internalType": "uint256", - "name": "_resultSubmissionTimeout", + "name": "walletMemberIndex", "type": "uint256" - }, + } + ], + "name": "isWalletMember", + "outputs": [ { - "internalType": "uint256", - "name": "_submitterPrecedencePeriodLength", - "type": "uint256" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "updateDkgParameters", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "dkgResultSubmissionGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "dkgResultApprovalGasOffset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "notifyOperatorInactivityGasOffset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "notifySeedTimeoutGasOffset", - "type": "uint256" - }, + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" + } + ], + "name": "isWalletRegistered", + "outputs": [ { - "internalType": "uint256", - "name": "notifyDkgTimeoutNegativeGasOffset", - "type": "uint256" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "updateGasParameters", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "updateOperatorStatus", + "inputs": [], + "name": "joinSortitionPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "minimumAuthorization", + "outputs": [ { - "internalType": "contract ReimbursementPool", - "name": "_reimbursementPool", - "type": "address" + "internalType": "uint96", + "name": "", + "type": "uint96" } ], - "name": "updateReimbursementPool", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "notifyDkgTimeout", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -14781,30 +15571,56 @@ { "inputs": [ { - "internalType": "uint256", - "name": "maliciousDkgResultNotificationRewardMultiplier", - "type": "uint256" + "components": [ + { + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "inactiveMembersIndices", + "type": "uint256[]" + }, + { + "internalType": "bool", + "name": "heartbeatFailed", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "signatures", + "type": "bytes" + }, + { + "internalType": "uint256[]", + "name": "signingMembersIndices", + "type": "uint256[]" + } + ], + "internalType": "struct EcdsaInactivity.Claim", + "name": "claim", + "type": "tuple" }, { "internalType": "uint256", - "name": "sortitionPoolRewardsBanDuration", + "name": "nonce", "type": "uint256" + }, + { + "internalType": "uint32[]", + "name": "groupMembers", + "type": "uint32[]" } ], - "name": "updateRewardParameters", + "name": "notifyOperatorInactivity", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "uint96", - "name": "maliciousDkgResultSlashingAmount", - "type": "uint96" - } - ], - "name": "updateSlashingParameters", + "inputs": [], + "name": "notifySeedTimeout", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -14812,35 +15628,47 @@ { "inputs": [ { - "internalType": "contract IWalletOwner", - "name": "_walletOwner", + "internalType": "address", + "name": "operator", "type": "address" } ], - "name": "updateWalletOwner", - "outputs": [], - "stateMutability": "nonpayable", + "name": "operatorToStakingProvider", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "contract IRandomBeacon", - "name": "_randomBeacon", + "internalType": "address", + "name": "stakingProvider", "type": "address" } ], - "name": "upgradeRandomBeacon", - "outputs": [], - "stateMutability": "nonpayable", + "name": "pendingAuthorizationDecrease", + "outputs": [ + { + "internalType": "uint96", + "name": "", + "type": "uint96" + } + ], + "stateMutability": "view", "type": "function" }, { "inputs": [], - "name": "walletOwner", + "name": "randomBeacon", "outputs": [ { - "internalType": "contract IWalletOwner", + "internalType": "contract IRandomBeacon", "name": "", "type": "address" } @@ -14852,52 +15680,42 @@ "inputs": [ { "internalType": "address", - "name": "recipient", + "name": "operator", "type": "address" } ], - "name": "withdrawIneligibleRewards", + "name": "registerOperator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "reimbursementPool", + "outputs": [ { - "internalType": "address", - "name": "stakingProvider", + "internalType": "contract ReimbursementPool", + "name": "", "type": "address" } ], - "name": "withdrawRewards", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" - } - ] - }, - "WalletProposalValidator": { - "address": "0x30019D85a86ABD3cDA1167F4C052690c32FBDEc2", - "abi": [ + }, { "inputs": [ { - "internalType": "contract Bridge", - "name": "_bridge", + "internalType": "address", + "name": "stakingProvider", "type": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "DEPOSIT_MIN_AGE", + "name": "remainingAuthorizationDecreaseDelay", "outputs": [ { - "internalType": "uint32", + "internalType": "uint64", "name": "", - "type": "uint32" + "type": "uint64" } ], "stateMutability": "view", @@ -14905,25 +15723,70 @@ }, { "inputs": [], - "name": "DEPOSIT_REFUND_SAFETY_MARGIN", + "name": "requestNewWallet", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "rewardParameters", "outputs": [ { - "internalType": "uint32", - "name": "", - "type": "uint32" + "internalType": "uint256", + "name": "maliciousDkgResultNotificationRewardMultiplier", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sortitionPoolRewardsBanDuration", + "type": "uint256" } ], "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint96", + "name": "amount", + "type": "uint96" + }, + { + "internalType": "uint256", + "name": "rewardMultiplier", + "type": "uint256" + }, + { + "internalType": "address", + "name": "notifier", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "walletID", + "type": "bytes32" + }, + { + "internalType": "uint32[]", + "name": "walletMembersIDs", + "type": "uint32[]" + } + ], + "name": "seize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [], - "name": "DEPOSIT_SWEEP_MAX_SIZE", + "name": "selectGroup", "outputs": [ { - "internalType": "uint16", + "internalType": "uint32[]", "name": "", - "type": "uint16" + "type": "uint32[]" } ], "stateMutability": "view", @@ -14931,12 +15794,12 @@ }, { "inputs": [], - "name": "REDEMPTION_MAX_SIZE", + "name": "slashingParameters", "outputs": [ { - "internalType": "uint16", - "name": "", - "type": "uint16" + "internalType": "uint96", + "name": "maliciousDkgResultSlashingAmount", + "type": "uint96" } ], "stateMutability": "view", @@ -14944,12 +15807,12 @@ }, { "inputs": [], - "name": "REDEMPTION_REQUEST_MIN_AGE", + "name": "sortitionPool", "outputs": [ { - "internalType": "uint32", + "internalType": "contract SortitionPool", "name": "", - "type": "uint32" + "type": "address" } ], "stateMutability": "view", @@ -14957,23 +15820,29 @@ }, { "inputs": [], - "name": "REDEMPTION_REQUEST_TIMEOUT_SAFETY_MARGIN", + "name": "staking", "outputs": [ { - "internalType": "uint32", + "internalType": "contract IStaking", "name": "", - "type": "uint32" + "type": "address" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "bridge", + "inputs": [ + { + "internalType": "address", + "name": "stakingProvider", + "type": "address" + } + ], + "name": "stakingProviderToOperator", "outputs": [ { - "internalType": "contract Bridge", + "internalType": "address", "name": "", "type": "address" } @@ -14985,234 +15854,245 @@ "inputs": [ { "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "components": [ - { - "internalType": "bytes32", - "name": "fundingTxHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "fundingOutputIndex", - "type": "uint32" - } - ], - "internalType": "struct WalletProposalValidator.DepositKey[]", - "name": "depositsKeys", - "type": "tuple[]" - }, { "internalType": "uint256", - "name": "sweepTxFee", + "name": "submitterMemberIndex", "type": "uint256" }, { - "internalType": "uint256[]", - "name": "depositsRevealBlocks", - "type": "uint256[]" - } - ], - "internalType": "struct WalletProposalValidator.DepositSweepProposal", - "name": "proposal", - "type": "tuple" - }, - { - "components": [ + "internalType": "bytes", + "name": "groupPubKey", + "type": "bytes" + }, { - "components": [ - { - "internalType": "bytes4", - "name": "version", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "inputVector", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "outputVector", - "type": "bytes" - }, - { - "internalType": "bytes4", - "name": "locktime", - "type": "bytes4" - } - ], - "internalType": "struct BitcoinTx.Info", - "name": "fundingTx", - "type": "tuple" + "internalType": "uint8[]", + "name": "misbehavedMembersIndices", + "type": "uint8[]" }, { - "internalType": "bytes8", - "name": "blindingFactor", - "type": "bytes8" + "internalType": "bytes", + "name": "signatures", + "type": "bytes" }, { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" + "internalType": "uint256[]", + "name": "signingMembersIndices", + "type": "uint256[]" }, { - "internalType": "bytes20", - "name": "refundPubKeyHash", - "type": "bytes20" + "internalType": "uint32[]", + "name": "members", + "type": "uint32[]" }, { - "internalType": "bytes4", - "name": "refundLocktime", - "type": "bytes4" + "internalType": "bytes32", + "name": "membersHash", + "type": "bytes32" } ], - "internalType": "struct WalletProposalValidator.DepositExtraInfo[]", - "name": "depositsExtraInfo", - "type": "tuple[]" + "internalType": "struct EcdsaDkg.Result", + "name": "dkgResult", + "type": "tuple" + } + ], + "name": "submitDkgResult", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newGovernance", + "type": "address" + } + ], + "name": "transferGovernance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint96", + "name": "_minimumAuthorization", + "type": "uint96" + }, + { + "internalType": "uint64", + "name": "_authorizationDecreaseDelay", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "_authorizationDecreaseChangePeriod", + "type": "uint64" + } + ], + "name": "updateAuthorizationParameters", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_seedTimeout", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_resultChallengePeriodLength", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_resultChallengeExtraGas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_resultSubmissionTimeout", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_submitterPrecedencePeriodLength", + "type": "uint256" } ], - "name": "validateDepositSweepProposal", - "outputs": [ + "name": "updateDkgParameters", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "internalType": "uint256", + "name": "dkgResultSubmissionGas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "dkgResultApprovalGasOffset", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "notifyOperatorInactivityGasOffset", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "notifySeedTimeoutGasOffset", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "notifyDkgTimeoutNegativeGasOffset", + "type": "uint256" } ], - "stateMutability": "view", + "name": "updateGasParameters", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes", - "name": "message", - "type": "bytes" - } - ], - "internalType": "struct WalletProposalValidator.HeartbeatProposal", - "name": "proposal", - "type": "tuple" + "internalType": "address", + "name": "operator", + "type": "address" } ], - "name": "validateHeartbeatProposal", - "outputs": [ + "name": "updateOperatorStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "internalType": "contract ReimbursementPool", + "name": "_reimbursementPool", + "type": "address" } ], - "stateMutability": "view", + "name": "updateReimbursementPool", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes32", - "name": "movingFundsTxHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "movingFundsTxOutputIndex", - "type": "uint32" - }, - { - "internalType": "uint256", - "name": "movedFundsSweepTxFee", - "type": "uint256" - } - ], - "internalType": "struct WalletProposalValidator.MovedFundsSweepProposal", - "name": "proposal", - "type": "tuple" + "internalType": "uint256", + "name": "maliciousDkgResultNotificationRewardMultiplier", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sortitionPoolRewardsBanDuration", + "type": "uint256" } ], - "name": "validateMovedFundsSweepProposal", - "outputs": [ + "name": "updateRewardParameters", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "internalType": "uint96", + "name": "maliciousDkgResultSlashingAmount", + "type": "uint96" } ], - "stateMutability": "view", + "name": "updateSlashingParameters", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes20[]", - "name": "targetWallets", - "type": "bytes20[]" - }, - { - "internalType": "uint256", - "name": "movingFundsTxFee", - "type": "uint256" - } - ], - "internalType": "struct WalletProposalValidator.MovingFundsProposal", - "name": "proposal", - "type": "tuple" - }, + "internalType": "contract IWalletOwner", + "name": "_walletOwner", + "type": "address" + } + ], + "name": "updateWalletOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "components": [ - { - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "txOutputIndex", - "type": "uint32" - }, - { - "internalType": "uint64", - "name": "txOutputValue", - "type": "uint64" - } - ], - "internalType": "struct BitcoinTx.UTXO", - "name": "walletMainUtxo", - "type": "tuple" + "internalType": "contract IRandomBeacon", + "name": "_randomBeacon", + "type": "address" } ], - "name": "validateMovingFundsProposal", + "name": "upgradeRandomBeacon", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "walletOwner", "outputs": [ { - "internalType": "bool", + "internalType": "contract IWalletOwner", "name": "", - "type": "bool" + "type": "address" } ], "stateMutability": "view", @@ -15221,37 +16101,27 @@ { "inputs": [ { - "components": [ - { - "internalType": "bytes20", - "name": "walletPubKeyHash", - "type": "bytes20" - }, - { - "internalType": "bytes[]", - "name": "redeemersOutputScripts", - "type": "bytes[]" - }, - { - "internalType": "uint256", - "name": "redemptionTxFee", - "type": "uint256" - } - ], - "internalType": "struct WalletProposalValidator.RedemptionProposal", - "name": "proposal", - "type": "tuple" + "internalType": "address", + "name": "recipient", + "type": "address" } ], - "name": "validateRedemptionProposal", - "outputs": [ + "name": "withdrawIneligibleRewards", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "internalType": "address", + "name": "stakingProvider", + "type": "address" } ], - "stateMutability": "view", + "name": "withdrawRewards", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" } ] diff --git a/solidity/package.json b/solidity/package.json index a13c51bb5..781cd2806 100644 --- a/solidity/package.json +++ b/solidity/package.json @@ -1,6 +1,6 @@ { "name": "@keep-network/tbtc-v2", - "version": "1.7.0-dev", + "version": "1.8.0-dev", "license": "GPL-3.0-only", "files": [ "artifacts/",