@keep-network/tbtc-v2 1.6.0-dev.8 → 1.6.0-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/BLS.json +1 -1
- package/artifacts/Bank.json +3 -3
- package/artifacts/BeaconAuthorization.json +1 -1
- package/artifacts/BeaconDkg.json +1 -1
- package/artifacts/BeaconDkgValidator.json +1 -1
- package/artifacts/BeaconInactivity.json +1 -1
- package/artifacts/BeaconSortitionPool.json +3 -3
- package/artifacts/Bridge.json +5 -5
- package/artifacts/BridgeGovernance.json +2 -2
- package/artifacts/BridgeGovernanceParameters.json +2 -2
- package/artifacts/Deposit.json +2 -2
- package/artifacts/DepositSweep.json +2 -2
- package/artifacts/DonationVault.json +3 -3
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/EcdsaSortitionPool.json +3 -3
- package/artifacts/Fraud.json +2 -2
- package/artifacts/LightRelay.json +18 -18
- package/artifacts/LightRelayMaintainerProxy.json +8 -8
- package/artifacts/MaintainerProxy.json +19 -19
- package/artifacts/MovingFunds.json +2 -2
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeacon.json +2 -2
- package/artifacts/RandomBeaconChaosnet.json +2 -2
- package/artifacts/RandomBeaconGovernance.json +2 -2
- package/artifacts/Redemption.json +2 -2
- package/artifacts/ReimbursementPool.json +2 -2
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +3 -3
- package/artifacts/TBTCToken.json +3 -3
- package/artifacts/TBTCVault.json +23 -23
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +3 -3
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/VendingMachineV2.json +3 -3
- package/artifacts/VendingMachineV3.json +3 -3
- package/artifacts/WalletProposalValidator.json +62 -9
- package/artifacts/WalletRegistry.json +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +2 -2
- package/artifacts/solcInputs/{e2337fbc33ddf79d3229147ce15c40b6.json → 3090118554664301f434ca00232869b0.json} +1 -1
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
- package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
- package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
- package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
- package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
- package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.dbg.json +1 -1
- package/build/contracts/bridge/WalletProposalValidator.sol/WalletProposalValidator.dbg.json +1 -1
- package/build/contracts/bridge/WalletProposalValidator.sol/WalletProposalValidator.json +43 -2
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
- package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
- package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
- package/build/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.dbg.json +1 -1
- package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
- package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
- package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
- package/contracts/bridge/WalletProposalValidator.sol +89 -0
- package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +22 -22
- package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +6 -6
- package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +6 -6
- package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +6 -6
- package/export/artifacts/contracts/bridge/WalletProposalValidator.sol/WalletProposalValidator.json +6643 -4798
- package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +40 -40
- package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +47 -47
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +88 -88
- package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +57 -57
- package/export/artifacts/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.json +31 -31
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +2 -2
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +58 -58
- package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +59 -59
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +2 -2
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +59 -59
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +7 -7
- package/export/artifacts/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.json +59 -59
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +14 -14
- package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +6 -6
- package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +8 -8
- package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +2 -2
- package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +37 -37
- package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2 -2
- package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +11 -11
- package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +135 -135
- package/export/typechain/factories/WalletProposalValidator__factory.js +42 -1
- package/package.json +1 -1
|
@@ -1459,7 +1459,7 @@
|
|
|
1459
1459
|
"transactionIndex": 0,
|
|
1460
1460
|
"gasUsed": "4180225",
|
|
1461
1461
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
1462
|
-
"blockHash": "
|
|
1462
|
+
"blockHash": "0xeb7ec7adb890969dee9204f2ae820442c36a5f7684941db6912c9fbd2ffc5644",
|
|
1463
1463
|
"transactionHash": "0xcaaba9d2b2881a43c4d315b0e746d1dcd9d230802e638bc22e4d2013c3f2633f",
|
|
1464
1464
|
"logs": [],
|
|
1465
1465
|
"blockNumber": 7,
|
|
@@ -1269,7 +1269,7 @@
|
|
|
1269
1269
|
"transactionIndex": 0,
|
|
1270
1270
|
"gasUsed": "3456607",
|
|
1271
1271
|
"logsBloom": "0x00002004000002000102000000001000000041000000000000000000000008000000000020000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000010000000000000000800020000000002000000000800000010000000000000000000000000001000002000000000000002000000000000000000000000000000000000000202000000001040800000000000000000000000000000000000001000000000000000000000000400000000000040000000000000001000000100082000800020000000000000000000000000000000000001000000000000000000000000002000",
|
|
1272
|
-
"blockHash": "
|
|
1272
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3",
|
|
1273
1273
|
"transactionHash": "0x0aa27479f925e46396b9023e44766245ea146fbff6c270c0c56094c9f623fe6e",
|
|
1274
1274
|
"logs": [
|
|
1275
1275
|
{
|
|
@@ -1282,7 +1282,7 @@
|
|
|
1282
1282
|
],
|
|
1283
1283
|
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096",
|
|
1284
1284
|
"logIndex": 0,
|
|
1285
|
-
"blockHash": "
|
|
1285
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3"
|
|
1286
1286
|
},
|
|
1287
1287
|
{
|
|
1288
1288
|
"transactionIndex": 0,
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
],
|
|
1295
1295
|
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019",
|
|
1296
1296
|
"logIndex": 1,
|
|
1297
|
-
"blockHash": "
|
|
1297
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3"
|
|
1298
1298
|
},
|
|
1299
1299
|
{
|
|
1300
1300
|
"transactionIndex": 0,
|
|
@@ -1306,7 +1306,7 @@
|
|
|
1306
1306
|
],
|
|
1307
1307
|
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033ec",
|
|
1308
1308
|
"logIndex": 2,
|
|
1309
|
-
"blockHash": "
|
|
1309
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3"
|
|
1310
1310
|
},
|
|
1311
1311
|
{
|
|
1312
1312
|
"transactionIndex": 0,
|
|
@@ -1318,7 +1318,7 @@
|
|
|
1318
1318
|
],
|
|
1319
1319
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001039d",
|
|
1320
1320
|
"logIndex": 3,
|
|
1321
|
-
"blockHash": "
|
|
1321
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3"
|
|
1322
1322
|
},
|
|
1323
1323
|
{
|
|
1324
1324
|
"transactionIndex": 0,
|
|
@@ -1330,7 +1330,7 @@
|
|
|
1330
1330
|
],
|
|
1331
1331
|
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033ec",
|
|
1332
1332
|
"logIndex": 4,
|
|
1333
|
-
"blockHash": "
|
|
1333
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3"
|
|
1334
1334
|
},
|
|
1335
1335
|
{
|
|
1336
1336
|
"transactionIndex": 0,
|
|
@@ -1342,7 +1342,7 @@
|
|
|
1342
1342
|
],
|
|
1343
1343
|
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005aa229aec102f78ce0e852a812a388f076aa555",
|
|
1344
1344
|
"logIndex": 5,
|
|
1345
|
-
"blockHash": "
|
|
1345
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3"
|
|
1346
1346
|
},
|
|
1347
1347
|
{
|
|
1348
1348
|
"transactionIndex": 0,
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
],
|
|
1358
1358
|
"data": "0x",
|
|
1359
1359
|
"logIndex": 6,
|
|
1360
|
-
"blockHash": "
|
|
1360
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3"
|
|
1361
1361
|
},
|
|
1362
1362
|
{
|
|
1363
1363
|
"transactionIndex": 0,
|
|
@@ -1372,7 +1372,7 @@
|
|
|
1372
1372
|
],
|
|
1373
1373
|
"data": "0x",
|
|
1374
1374
|
"logIndex": 7,
|
|
1375
|
-
"blockHash": "
|
|
1375
|
+
"blockHash": "0xabd5af81baaa5007b2bbbe1a273a1d3dfb618ea5f978a7535e0e95c5018ffba3"
|
|
1376
1376
|
}
|
|
1377
1377
|
],
|
|
1378
1378
|
"blockNumber": 10,
|
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
"transactionIndex": 0,
|
|
751
751
|
"gasUsed": "1617384",
|
|
752
752
|
"logsBloom": "0x000000040000020008020100000000000a0000000000000000000000000000000000000000000000000000000001000000000000000000000200000010200000000000000000000000000000000000000000000000010000000000000001000000000800030000400000000000000800000000000000000000020000000000000000000000000000000000000000000000000000000000080000000000000000000000000020800000000000000000000000000000000000001000000000000000000000000000004000000000000000000200000000000100002000000020000000000000001000000000000000000001000000000000000000000000000000",
|
|
753
|
-
"blockHash": "
|
|
753
|
+
"blockHash": "0xbddfd5285d6ed0cbdb57e8ea7bcfa146a6f896e653d2a082fe19952585ad2d85",
|
|
754
754
|
"transactionHash": "0xeba13bba71df9b37fcf9df3326c420e7c6e9511bd448b05b8c764cf22cd1f9eb",
|
|
755
755
|
"logs": [
|
|
756
756
|
{
|
|
@@ -766,7 +766,7 @@
|
|
|
766
766
|
],
|
|
767
767
|
"data": "0x",
|
|
768
768
|
"logIndex": 0,
|
|
769
|
-
"blockHash": "
|
|
769
|
+
"blockHash": "0xbddfd5285d6ed0cbdb57e8ea7bcfa146a6f896e653d2a082fe19952585ad2d85"
|
|
770
770
|
},
|
|
771
771
|
{
|
|
772
772
|
"transactionIndex": 0,
|
|
@@ -781,7 +781,7 @@
|
|
|
781
781
|
],
|
|
782
782
|
"data": "0x",
|
|
783
783
|
"logIndex": 1,
|
|
784
|
-
"blockHash": "
|
|
784
|
+
"blockHash": "0xbddfd5285d6ed0cbdb57e8ea7bcfa146a6f896e653d2a082fe19952585ad2d85"
|
|
785
785
|
},
|
|
786
786
|
{
|
|
787
787
|
"transactionIndex": 0,
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
],
|
|
797
797
|
"data": "0x",
|
|
798
798
|
"logIndex": 2,
|
|
799
|
-
"blockHash": "
|
|
799
|
+
"blockHash": "0xbddfd5285d6ed0cbdb57e8ea7bcfa146a6f896e653d2a082fe19952585ad2d85"
|
|
800
800
|
},
|
|
801
801
|
{
|
|
802
802
|
"transactionIndex": 0,
|
|
@@ -811,7 +811,7 @@
|
|
|
811
811
|
],
|
|
812
812
|
"data": "0x",
|
|
813
813
|
"logIndex": 3,
|
|
814
|
-
"blockHash": "
|
|
814
|
+
"blockHash": "0xbddfd5285d6ed0cbdb57e8ea7bcfa146a6f896e653d2a082fe19952585ad2d85"
|
|
815
815
|
},
|
|
816
816
|
{
|
|
817
817
|
"transactionIndex": 0,
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
],
|
|
827
827
|
"data": "0x",
|
|
828
828
|
"logIndex": 4,
|
|
829
|
-
"blockHash": "
|
|
829
|
+
"blockHash": "0xbddfd5285d6ed0cbdb57e8ea7bcfa146a6f896e653d2a082fe19952585ad2d85"
|
|
830
830
|
},
|
|
831
831
|
{
|
|
832
832
|
"transactionIndex": 0,
|
|
@@ -841,7 +841,7 @@
|
|
|
841
841
|
],
|
|
842
842
|
"data": "0x",
|
|
843
843
|
"logIndex": 5,
|
|
844
|
-
"blockHash": "
|
|
844
|
+
"blockHash": "0xbddfd5285d6ed0cbdb57e8ea7bcfa146a6f896e653d2a082fe19952585ad2d85"
|
|
845
845
|
},
|
|
846
846
|
{
|
|
847
847
|
"transactionIndex": 0,
|
|
@@ -853,7 +853,7 @@
|
|
|
853
853
|
],
|
|
854
854
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a300",
|
|
855
855
|
"logIndex": 6,
|
|
856
|
-
"blockHash": "
|
|
856
|
+
"blockHash": "0xbddfd5285d6ed0cbdb57e8ea7bcfa146a6f896e653d2a082fe19952585ad2d85"
|
|
857
857
|
}
|
|
858
858
|
],
|
|
859
859
|
"blockNumber": 9,
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
"transactionIndex": 0,
|
|
518
518
|
"gasUsed": "1363281",
|
|
519
519
|
"logsBloom": "0x00000000000000000002000000000000000010000000000000800000000000000000000000000000000000000000000000000000000008000000000000000000000400000000000000000000000000000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000001000000000000000000000000000000",
|
|
520
|
-
"blockHash": "
|
|
520
|
+
"blockHash": "0x27b6fc692f1c25f45ca1ba3814674115a4fb9328adaa8efeee263c601fef1370",
|
|
521
521
|
"transactionHash": "0x2d6698395a64bb4ec3bdbd574cea7f3915dbe410637fec50e376093a2fe11207",
|
|
522
522
|
"logs": [
|
|
523
523
|
{
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
],
|
|
533
533
|
"data": "0x",
|
|
534
534
|
"logIndex": 0,
|
|
535
|
-
"blockHash": "
|
|
535
|
+
"blockHash": "0x27b6fc692f1c25f45ca1ba3814674115a4fb9328adaa8efeee263c601fef1370"
|
|
536
536
|
}
|
|
537
537
|
],
|
|
538
538
|
"blockNumber": 48,
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
0
|
|
547
547
|
],
|
|
548
548
|
"numDeployments": 1,
|
|
549
|
-
"solcInputHash": "
|
|
549
|
+
"solcInputHash": "3090118554664301f434ca00232869b0",
|
|
550
550
|
"metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"_tbtcV1\",\"type\":\"address\"},{\"internalType\":\"contract TBTC\",\"name\":\"_tbtcV2\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_unmintFee\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Minted\",\"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\":\"newUnmintFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"UnmintFeeUpdateInitiated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newUnmintFee\",\"type\":\"uint256\"}],\"name\":\"UnmintFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"Unminted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newVendingMachine\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"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\":\"\",\"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\",\"type\":\"uint256\"}],\"name\":\"initiateUnmintFeeUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newVendingMachine\",\"type\":\"address\"}],\"name\":\"initiateVendingMachineUpgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"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\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"receiveApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tbtcV1\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tbtcV2\",\"outputs\":[{\"internalType\":\"contract TBTC\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newInitiator\",\"type\":\"address\"}],\"name\":\"transferUnmintFeeUpdateInitiatorRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newInitiator\",\"type\":\"address\"}],\"name\":\"transferVendingMachineUpgradeInitiatorRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"unmint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unmintFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":[{\"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\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"initiateUnmintFeeUpdate(uint256)\":{\"params\":{\"_newUnmintFee\":\"The new unmint fee\"}},\"initiateVendingMachineUpgrade(address)\":{\"params\":{\"_newVendingMachine\":\"The new vending machine address\"}},\"mint(uint256)\":{\"params\":{\"amount\":\"The amount of TBTC v2 to mint from TBTC v1\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"receiveApproval(address,uint256,address,bytes)\":{\"details\":\"This function is a shortcut for approve + mint. Only TBTC v1 caller is allowed and only TBTC v1 is allowed as a token to transfer.\",\"params\":{\"amount\":\"The amount of TBTC v2 to mint from TBTC v1\",\"from\":\"TBTC v1 token holder minting TBTC v2 tokens\",\"token\":\"TBTC v1 token address\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"transferUnmintFeeUpdateInitiatorRole(address)\":{\"params\":{\"newInitiator\":\"The new unmint fee update initiator\"}},\"transferVendingMachineUpgradeInitiatorRole(address)\":{\"params\":{\"newInitiator\":\"The new vending machine upgrade initiator\"}},\"unmint(uint256)\":{\"params\":{\"amount\":\"The amount of TBTC v2 to unmint to TBTC v1\"}},\"withdrawFees(address,uint256)\":{\"params\":{\"amount\":\"The amount of fees in TBTC v2 to withdraw\",\"recipient\":\"The address receiving the fees\"}}},\"title\":\"TBTC v2 Vending Machine\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"FLOATING_POINT_DIVISOR()\":{\"notice\":\"Divisor for precision purposes. Used to represent fractions in parameter values.\"},\"GOVERNANCE_DELAY()\":{\"notice\":\"The time delay that needs to pass between initializing and finalizing update of any governable parameter in this contract.\"},\"finalizeUnmintFeeUpdate()\":{\"notice\":\"Allows the contract owner to finalize unmint fee update process. The update process needs to be first initiated with a call to `initiateUnmintFeeUpdate` and the `GOVERNANCE_DELAY` needs to pass.\"},\"finalizeVendingMachineUpgrade()\":{\"notice\":\"Allows the contract owner to finalize vending machine upgrade process. The upgrade process needs to be first initiated with a call to `initiateVendingMachineUpgrade` and the `GOVERNANCE_DELAY` needs to pass. Once the upgrade is finalized, the new vending machine will become an owner of TBTC v2 token and all TBTC v1 held by this contract will be transferred to the new vending machine.\"},\"getRemainingUnmintFeeUpdateTime()\":{\"notice\":\"Get the remaining time that needs to pass until unmint fee update can be finalized by the Governance. If the update has not been initiated, the function reverts.\"},\"getRemainingVendingMachineUpgradeTime()\":{\"notice\":\"Get the remaining time that needs to pass until vending machine upgrade can be finalized by the Governance. If the upgrade has not been initiated, the function reverts.\"},\"initiateUnmintFeeUpdate(uint256)\":{\"notice\":\"Initiates unmint fee update process. The update process needs to be finalized with a call to `finalizeUnmintFeeUpdate` function after the `GOVERNANCE_DELAY` passes. Only unmint fee update initiator role can initiate the update.\"},\"initiateVendingMachineUpgrade(address)\":{\"notice\":\"Initiates vending machine upgrade process. The upgrade process needs to be finalized with a call to `finalizeVendingMachineUpgrade` function after the `GOVERNANCE_DELAY` passes. Only vending machine upgrade initiator role can initiate the upgrade.\"},\"mint(uint256)\":{\"notice\":\"Mints TBTC v2 to the caller from TBTC v1 with 1:1 ratio. The caller needs to have at least `amount` of TBTC v1 balance approved for transfer to the `VendingMachine` before calling this function.\"},\"newVendingMachine()\":{\"notice\":\"The address of a new vending machine. Set only when the upgrade process is pending. Once the upgrade gets finalized, the new vending machine will become an owner of TBTC v2 token.\"},\"receiveApproval(address,uint256,address,bytes)\":{\"notice\":\"Mints TBTC v2 to `from` address from TBTC v1 with 1:1 ratio. `from` address needs to have at least `amount` of TBTC v1 balance approved for transfer to the `VendingMachine` before calling this function.\"},\"transferUnmintFeeUpdateInitiatorRole(address)\":{\"notice\":\"Transfers unmint fee update initiator role to another address. Can be called only by the current unmint fee update initiator.\"},\"transferVendingMachineUpgradeInitiatorRole(address)\":{\"notice\":\"Transfers vending machine upgrade initiator role to another address. Can be called only by the current vending machine upgrade initiator.\"},\"unmint(uint256)\":{\"notice\":\"Unmints TBTC v2 from the caller into TBTC v1. Depending on `unmintFee` value, may require paying an additional unmint fee in TBTC v2 in addition to the amount being unminted. To see what is the value of the fee, please call `unmintFeeFor(amount)` function. The caller needs to have at least `amount + unmintFeeFor(amount)` of TBTC v2 balance approved for transfer to the `VendingMachine` before calling this function.\"},\"unmintFee()\":{\"notice\":\"The fee for unminting TBTC v2 back into TBTC v1 represented as 1e18 precision fraction. The fee is proportional to the amount being unminted and added on the top of the amount being unminted. To calculate the fee value, the amount being unminted needs to be multiplied by `unmintFee` and divided by 1e18. For example, `unmintFee` set to 1000000000000000 means that 0.001 of the amount being unminted needs to be paid to the `VendingMachine` as an unminting fee on the top of the amount being unminted.\"},\"unmintFeeFor(uint256)\":{\"notice\":\"Calculates the fee that needs to be paid to the `VendingMachine` to unmint the given amount of TBTC v2 back into TBTC v1.\"},\"withdrawFees(address,uint256)\":{\"notice\":\"Allows the Governance to withdraw unmint fees accumulated by `VendingMachine`.\"}},\"notice\":\"The Vending Machine is the owner of TBTC v2 token and can mint TBTC v2 tokens in 1:1 ratio from TBTC v1 tokens with TBTC v1 deposited in the contract as collateral. TBTC v2 can be unminted back to TBTC v1 with or without a fee - fee parameter is controlled by the Governance. This implementation acts as a bridge between TBTC v1 and TBTC v2 token, allowing to mint TBTC v2 before the system is ready and fully operational without sacrificing any security guarantees and decentralization of the project. Vending Machine can be upgraded in a two-step, governance-controlled process. The new version of the Vending Machine will receive the ownership of TBTC v2 token and entire TBTC v1 balance stored as collateral. It is expected that this process will be executed before the v2 system launch. There is an optional unmint fee with a value that can be updated in a two-step, governance-controlled process. All governable parameters are controlled by two roles: update initiator and finalizer. There is a separate initiator role for unmint fee update and vending machine upgrade. The initiator proposes the change by initiating the update and the finalizer (contract owner) may approve it by finalizing the change after the governance delay passes.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridge/VendingMachine.sol\":\"VendingMachine\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n */\\ninterface IERC20Permit {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xf41ca991f30855bf80ffd11e9347856a517b977f0a6c2d52e6421a99b7840329\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/draft-IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n function safeTransfer(\\n IERC20 token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20 token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n }\\n\\n function safePermit(\\n IERC20Permit token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9b72f93be69ca894d8492c244259615c4a742afc8d63720dbc8bb81087d9b238\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC721 compliant contract.\\n */\\ninterface IERC721 is IERC165 {\\n /**\\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\\n\\n /**\\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\\n */\\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\\n\\n /**\\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\\n */\\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\\n\\n /**\\n * @dev Returns the number of tokens in ``owner``'s account.\\n */\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n /**\\n * @dev Returns the owner of the `tokenId` token.\\n *\\n * Requirements:\\n *\\n * - `tokenId` must exist.\\n */\\n function ownerOf(uint256 tokenId) external view returns (address owner);\\n\\n /**\\n * @dev Safely transfers `tokenId` token from `from` to `to`.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must exist and be owned by `from`.\\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\\n *\\n * Emits a {Transfer} event.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 tokenId,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must exist and be owned by `from`.\\n * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.\\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\\n *\\n * Emits a {Transfer} event.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 tokenId\\n ) external;\\n\\n /**\\n * @dev Transfers `tokenId` token from `from` to `to`.\\n *\\n * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721\\n * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\\n * understand this adds an external call which potentially creates a reentrancy vulnerability.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must be owned by `from`.\\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 tokenId\\n ) external;\\n\\n /**\\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\\n * The approval is cleared when the token is transferred.\\n *\\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\\n *\\n * Requirements:\\n *\\n * - The caller must own the token or be an approved operator.\\n * - `tokenId` must exist.\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address to, uint256 tokenId) external;\\n\\n /**\\n * @dev Approve or remove `operator` as an operator for the caller.\\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\\n *\\n * Requirements:\\n *\\n * - The `operator` cannot be the caller.\\n *\\n * Emits an {ApprovalForAll} event.\\n */\\n function setApprovalForAll(address operator, bool _approved) external;\\n\\n /**\\n * @dev Returns the account approved for `tokenId` token.\\n *\\n * Requirements:\\n *\\n * - `tokenId` must exist.\\n */\\n function getApproved(uint256 tokenId) external view returns (address operator);\\n\\n /**\\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\\n *\\n * See {setApprovalForAll}\\n */\\n function isApprovedForAll(address owner, address operator) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xab28a56179c1db258c9bf5235b382698cb650debecb51b23d12be9e241374b68\",\"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/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\"},\"@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.4;\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\n\\nimport \\\"./IERC20WithPermit.sol\\\";\\nimport \\\"./IReceiveApproval.sol\\\";\\n\\n/// @title ERC20WithPermit\\n/// @notice Burnable ERC20 token with EIP2612 permit functionality. User can\\n/// authorize a transfer of their token with a signature conforming\\n/// EIP712 standard instead of an on-chain transaction from their\\n/// address. Anyone can submit this signature on the user's behalf by\\n/// calling the permit function, as specified in EIP2612 standard,\\n/// paying gas fees, and possibly performing other actions in the same\\n/// transaction.\\ncontract ERC20WithPermit is IERC20WithPermit, Ownable {\\n /// @notice The amount of tokens owned by the given account.\\n mapping(address => uint256) public override balanceOf;\\n\\n /// @notice The remaining number of tokens that spender will be\\n /// allowed to spend on behalf of owner through `transferFrom` and\\n /// `burnFrom`. This is zero by default.\\n mapping(address => mapping(address => uint256)) public override allowance;\\n\\n /// @notice Returns the current nonce for EIP2612 permission for the\\n /// provided token owner for a replay protection. Used to construct\\n /// EIP2612 signature provided to `permit` function.\\n mapping(address => uint256) public override nonce;\\n\\n uint256 public immutable cachedChainId;\\n bytes32 public immutable cachedDomainSeparator;\\n\\n /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612\\n /// signature provided to `permit` function.\\n bytes32 public constant override PERMIT_TYPEHASH =\\n keccak256(\\n \\\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\\\"\\n );\\n\\n /// @notice The amount of tokens in existence.\\n uint256 public override totalSupply;\\n\\n /// @notice The name of the token.\\n string public override name;\\n\\n /// @notice The symbol of the token.\\n string public override symbol;\\n\\n /// @notice The decimals places of the token.\\n uint8 public constant override decimals = 18;\\n\\n constructor(string memory _name, string memory _symbol) {\\n name = _name;\\n symbol = _symbol;\\n\\n cachedChainId = block.chainid;\\n cachedDomainSeparator = buildDomainSeparator();\\n }\\n\\n /// @notice Moves `amount` tokens from the caller's account to `recipient`.\\n /// @return True if the operation succeeded, reverts otherwise.\\n /// @dev Requirements:\\n /// - `recipient` cannot be the zero address,\\n /// - the caller must have a balance of at least `amount`.\\n function transfer(address recipient, uint256 amount)\\n external\\n override\\n returns (bool)\\n {\\n _transfer(msg.sender, recipient, amount);\\n return true;\\n }\\n\\n /// @notice Moves `amount` tokens from `spender` to `recipient` using the\\n /// allowance mechanism. `amount` is then deducted from the caller's\\n /// allowance unless the allowance was made for `type(uint256).max`.\\n /// @return True if the operation succeeded, reverts otherwise.\\n /// @dev Requirements:\\n /// - `spender` and `recipient` cannot be the zero address,\\n /// - `spender` must have a balance of at least `amount`,\\n /// - the caller must have allowance for `spender`'s tokens of at least\\n /// `amount`.\\n function transferFrom(\\n address spender,\\n address recipient,\\n uint256 amount\\n ) external override returns (bool) {\\n uint256 currentAllowance = allowance[spender][msg.sender];\\n if (currentAllowance != type(uint256).max) {\\n require(\\n currentAllowance >= amount,\\n \\\"Transfer amount exceeds allowance\\\"\\n );\\n _approve(spender, msg.sender, currentAllowance - amount);\\n }\\n _transfer(spender, recipient, amount);\\n return true;\\n }\\n\\n /// @notice EIP2612 approval made with secp256k1 signature.\\n /// Users can authorize a transfer of their tokens with a signature\\n /// conforming EIP712 standard, rather than an on-chain transaction\\n /// from their address. Anyone can submit this signature on the\\n /// user's behalf by calling the permit function, paying gas fees,\\n /// and possibly performing other actions in the same transaction.\\n /// @dev The deadline argument can be set to `type(uint256).max to create\\n /// permits that effectively never expire. If the `amount` is set\\n /// to `type(uint256).max` then `transferFrom` and `burnFrom` will\\n /// not reduce an allowance.\\n function permit(\\n address owner,\\n address spender,\\n uint256 amount,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external override {\\n /* solhint-disable-next-line not-rely-on-time */\\n require(deadline >= block.timestamp, \\\"Permission expired\\\");\\n\\n // Validate `s` and `v` values for a malleability concern described in EIP2.\\n // Only signatures with `s` value in the lower half of the secp256k1\\n // curve's order and `v` value of 27 or 28 are considered valid.\\n require(\\n uint256(s) <=\\n 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,\\n \\\"Invalid signature 's' value\\\"\\n );\\n require(v == 27 || v == 28, \\\"Invalid signature 'v' value\\\");\\n\\n bytes32 digest = keccak256(\\n abi.encodePacked(\\n \\\"\\\\x19\\\\x01\\\",\\n DOMAIN_SEPARATOR(),\\n keccak256(\\n abi.encode(\\n PERMIT_TYPEHASH,\\n owner,\\n spender,\\n amount,\\n nonce[owner]++,\\n deadline\\n )\\n )\\n )\\n );\\n address recoveredAddress = ecrecover(digest, v, r, s);\\n require(\\n recoveredAddress != address(0) && recoveredAddress == owner,\\n \\\"Invalid signature\\\"\\n );\\n _approve(owner, spender, amount);\\n }\\n\\n /// @notice Creates `amount` tokens and assigns them to `account`,\\n /// increasing the total supply.\\n /// @dev Requirements:\\n /// - `recipient` cannot be the zero address.\\n function mint(address recipient, uint256 amount) external onlyOwner {\\n require(recipient != address(0), \\\"Mint to the zero address\\\");\\n\\n beforeTokenTransfer(address(0), recipient, amount);\\n\\n totalSupply += amount;\\n balanceOf[recipient] += amount;\\n emit Transfer(address(0), recipient, amount);\\n }\\n\\n /// @notice Destroys `amount` tokens from the caller.\\n /// @dev Requirements:\\n /// - the caller must have a balance of at least `amount`.\\n function burn(uint256 amount) external override {\\n _burn(msg.sender, amount);\\n }\\n\\n /// @notice Destroys `amount` of tokens from `account` using the allowance\\n /// mechanism. `amount` is then deducted from the caller's allowance\\n /// unless the allowance was made for `type(uint256).max`.\\n /// @dev Requirements:\\n /// - `account` must have a balance of at least `amount`,\\n /// - the caller must have allowance for `account`'s tokens of at least\\n /// `amount`.\\n function burnFrom(address account, uint256 amount) external override {\\n uint256 currentAllowance = allowance[account][msg.sender];\\n if (currentAllowance != type(uint256).max) {\\n require(\\n currentAllowance >= amount,\\n \\\"Burn amount exceeds allowance\\\"\\n );\\n _approve(account, msg.sender, currentAllowance - amount);\\n }\\n _burn(account, amount);\\n }\\n\\n /// @notice Calls `receiveApproval` function on spender previously approving\\n /// the spender to withdraw from the caller multiple times, up to\\n /// the `amount` amount. If this function is called again, it\\n /// overwrites the current allowance with `amount`. Reverts if the\\n /// approval reverted or if `receiveApproval` call on the spender\\n /// reverted.\\n /// @return True if both approval and `receiveApproval` calls succeeded.\\n /// @dev If the `amount` is set to `type(uint256).max` then\\n /// `transferFrom` and `burnFrom` will not reduce an allowance.\\n function approveAndCall(\\n address spender,\\n uint256 amount,\\n bytes memory extraData\\n ) external override returns (bool) {\\n if (approve(spender, amount)) {\\n IReceiveApproval(spender).receiveApproval(\\n msg.sender,\\n amount,\\n address(this),\\n extraData\\n );\\n return true;\\n }\\n return false;\\n }\\n\\n /// @notice Sets `amount` as the allowance of `spender` over the caller's\\n /// tokens.\\n /// @return True if the operation succeeded.\\n /// @dev If the `amount` is set to `type(uint256).max` then\\n /// `transferFrom` and `burnFrom` will not reduce an allowance.\\n /// Beware that changing an allowance with this method brings the risk\\n /// that someone may use both the old and the new allowance by\\n /// unfortunate transaction ordering. One possible solution to mitigate\\n /// this race condition is to first reduce the spender's allowance to 0\\n /// and set the desired value afterwards:\\n /// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n function approve(address spender, uint256 amount)\\n public\\n override\\n returns (bool)\\n {\\n _approve(msg.sender, spender, amount);\\n return true;\\n }\\n\\n /// @notice Returns hash of EIP712 Domain struct with the token name as\\n /// a signing domain and token contract as a verifying contract.\\n /// Used to construct EIP2612 signature provided to `permit`\\n /// function.\\n /* solhint-disable-next-line func-name-mixedcase */\\n function DOMAIN_SEPARATOR() public view override returns (bytes32) {\\n // As explained in EIP-2612, if the DOMAIN_SEPARATOR contains the\\n // chainId and is defined at contract deployment instead of\\n // reconstructed for every signature, there is a risk of possible replay\\n // attacks between chains in the event of a future chain split.\\n // To address this issue, we check the cached chain ID against the\\n // current one and in case they are different, we build domain separator\\n // from scratch.\\n if (block.chainid == cachedChainId) {\\n return cachedDomainSeparator;\\n } else {\\n return buildDomainSeparator();\\n }\\n }\\n\\n /// @dev Hook that is called before any transfer of tokens. This includes\\n /// minting and burning.\\n ///\\n /// Calling conditions:\\n /// - when `from` and `to` are both non-zero, `amount` of `from`'s tokens\\n /// will be to transferred to `to`.\\n /// - when `from` is zero, `amount` tokens will be minted for `to`.\\n /// - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n /// - `from` and `to` are never both zero.\\n // slither-disable-next-line dead-code\\n function beforeTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal virtual {}\\n\\n function _burn(address account, uint256 amount) internal {\\n uint256 currentBalance = balanceOf[account];\\n require(currentBalance >= amount, \\\"Burn amount exceeds balance\\\");\\n\\n beforeTokenTransfer(account, address(0), amount);\\n\\n balanceOf[account] = currentBalance - amount;\\n totalSupply -= amount;\\n emit Transfer(account, address(0), amount);\\n }\\n\\n function _transfer(\\n address spender,\\n address recipient,\\n uint256 amount\\n ) private {\\n require(spender != address(0), \\\"Transfer from the zero address\\\");\\n require(recipient != address(0), \\\"Transfer to the zero address\\\");\\n require(recipient != address(this), \\\"Transfer to the token address\\\");\\n\\n beforeTokenTransfer(spender, recipient, amount);\\n\\n uint256 spenderBalance = balanceOf[spender];\\n require(spenderBalance >= amount, \\\"Transfer amount exceeds balance\\\");\\n balanceOf[spender] = spenderBalance - amount;\\n balanceOf[recipient] += amount;\\n emit Transfer(spender, recipient, amount);\\n }\\n\\n function _approve(\\n address owner,\\n address spender,\\n uint256 amount\\n ) private {\\n require(owner != address(0), \\\"Approve from the zero address\\\");\\n require(spender != address(0), \\\"Approve to the zero address\\\");\\n allowance[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n function buildDomainSeparator() private view returns (bytes32) {\\n return\\n keccak256(\\n abi.encode(\\n keccak256(\\n \\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\"\\n ),\\n keccak256(bytes(name)),\\n keccak256(bytes(\\\"1\\\")),\\n block.chainid,\\n address(this)\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x1e1bf4ec5c9d6fe70f6f834316482aeff3f122ff4ffaa7178099e7ae71a0b16d\",\"license\":\"MIT\"},\"@thesis/solidity-contracts/contracts/token/IApproveAndCall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.4;\\n\\n/// @notice An interface that should be implemented by tokens supporting\\n/// `approveAndCall`/`receiveApproval` pattern.\\ninterface IApproveAndCall {\\n /// @notice Executes `receiveApproval` function on spender as specified in\\n /// `IReceiveApproval` interface. Approves spender to withdraw from\\n /// the caller multiple times, up to the `amount`. If this\\n /// function is called again, it overwrites the current allowance\\n /// with `amount`. Reverts if the approval reverted or if\\n /// `receiveApproval` call on the spender reverted.\\n function approveAndCall(\\n address spender,\\n uint256 amount,\\n bytes memory extraData\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x393d18ef81a57dcc96fff4c340cc2945deaebb37b9796c322cf2bc96872c3df8\",\"license\":\"MIT\"},\"@thesis/solidity-contracts/contracts/token/IERC20WithPermit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.4;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\\\";\\n\\nimport \\\"./IApproveAndCall.sol\\\";\\n\\n/// @title IERC20WithPermit\\n/// @notice Burnable ERC20 token with EIP2612 permit functionality. User can\\n/// authorize a transfer of their token with a signature conforming\\n/// EIP712 standard instead of an on-chain transaction from their\\n/// address. Anyone can submit this signature on the user's behalf by\\n/// calling the permit function, as specified in EIP2612 standard,\\n/// paying gas fees, and possibly performing other actions in the same\\n/// transaction.\\ninterface IERC20WithPermit is IERC20, IERC20Metadata, IApproveAndCall {\\n /// @notice EIP2612 approval made with secp256k1 signature.\\n /// Users can authorize a transfer of their tokens with a signature\\n /// conforming EIP712 standard, rather than an on-chain transaction\\n /// from their address. Anyone can submit this signature on the\\n /// user's behalf by calling the permit function, paying gas fees,\\n /// and possibly performing other actions in the same transaction.\\n /// @dev The deadline argument can be set to `type(uint256).max to create\\n /// permits that effectively never expire.\\n function permit(\\n address owner,\\n address spender,\\n uint256 amount,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /// @notice Destroys `amount` tokens from the caller.\\n function burn(uint256 amount) external;\\n\\n /// @notice Destroys `amount` of tokens from `account`, deducting the amount\\n /// from caller's allowance.\\n function burnFrom(address account, uint256 amount) external;\\n\\n /// @notice Returns hash of EIP712 Domain struct with the token name as\\n /// a signing domain and token contract as a verifying contract.\\n /// Used to construct EIP2612 signature provided to `permit`\\n /// function.\\n /* solhint-disable-next-line func-name-mixedcase */\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n\\n /// @notice Returns the current nonce for EIP2612 permission for the\\n /// provided token owner for a replay protection. Used to construct\\n /// EIP2612 signature provided to `permit` function.\\n function nonce(address owner) external view returns (uint256);\\n\\n /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612\\n /// signature provided to `permit` function.\\n /* solhint-disable-next-line func-name-mixedcase */\\n function PERMIT_TYPEHASH() external pure returns (bytes32);\\n}\\n\",\"keccak256\":\"0xdac9a5086c19a7128b505a7be1ab0ac1aa314f6989cb88d2417e9d7383f89fa9\",\"license\":\"MIT\"},\"@thesis/solidity-contracts/contracts/token/IReceiveApproval.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.4;\\n\\n/// @notice An interface that should be implemented by contracts supporting\\n/// `approveAndCall`/`receiveApproval` pattern.\\ninterface IReceiveApproval {\\n /// @notice Receives approval to spend tokens. Called as a result of\\n /// `approveAndCall` call on the token.\\n function receiveApproval(\\n address from,\\n uint256 amount,\\n address token,\\n bytes calldata extraData\\n ) external;\\n}\\n\",\"keccak256\":\"0x6a30d83ad230548b1e7839737affc8489a035314209de14b89dbef7fb0f66395\",\"license\":\"MIT\"},\"@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.4;\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC721/IERC721.sol\\\";\\n\\n/// @title MisfundRecovery\\n/// @notice Allows the owner of the token contract extending MisfundRecovery\\n/// to recover any ERC20 and ERC721 sent mistakenly to the token\\n/// contract address.\\ncontract MisfundRecovery is Ownable {\\n using SafeERC20 for IERC20;\\n\\n function recoverERC20(\\n IERC20 token,\\n address recipient,\\n uint256 amount\\n ) external onlyOwner {\\n token.safeTransfer(recipient, amount);\\n }\\n\\n function recoverERC721(\\n IERC721 token,\\n address recipient,\\n uint256 tokenId,\\n bytes calldata data\\n ) external onlyOwner {\\n token.safeTransferFrom(address(this), recipient, tokenId, data);\\n }\\n}\\n\",\"keccak256\":\"0xbbfea02bf20e2a6df5a497bbc05c7540a3b7c7dfb8b1feeaffef7f6b8ba65d65\",\"license\":\"MIT\"},\"contracts/GovernanceUtils.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.17;\\n\\nlibrary GovernanceUtils {\\n /// @notice Reverts if the governance delay has not passed since\\n /// the change initiated time or if the change has not been\\n /// initiated.\\n /// @param changeInitiatedTimestamp The timestamp at which the change has\\n /// been initiated.\\n /// @param delay Governance delay.\\n function onlyAfterGovernanceDelay(\\n uint256 changeInitiatedTimestamp,\\n uint256 delay\\n ) internal view {\\n require(changeInitiatedTimestamp > 0, \\\"Change not initiated\\\");\\n require(\\n /* solhint-disable-next-line not-rely-on-time */\\n block.timestamp - changeInitiatedTimestamp >= delay,\\n \\\"Governance delay has not elapsed\\\"\\n );\\n }\\n\\n /// @notice Gets the time remaining until the governable parameter update\\n /// can be committed.\\n /// @param changeInitiatedTimestamp Timestamp indicating the beginning of\\n /// the change.\\n /// @param delay Governance delay.\\n /// @return Remaining time in seconds.\\n function getRemainingGovernanceDelay(\\n uint256 changeInitiatedTimestamp,\\n uint256 delay\\n ) internal view returns (uint256) {\\n require(changeInitiatedTimestamp > 0, \\\"Change not initiated\\\");\\n /* solhint-disable-next-line not-rely-on-time */\\n uint256 elapsed = block.timestamp - changeInitiatedTimestamp;\\n if (elapsed >= delay) {\\n return 0;\\n } else {\\n return delay - elapsed;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9d16501e1b7c368ced397fd2eff0ab1bd1db8d26cc3700d0b7740942ee3c3c31\",\"license\":\"GPL-3.0-only\"},\"contracts/bridge/VendingMachine.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport \\\"@thesis/solidity-contracts/contracts/token/IReceiveApproval.sol\\\";\\n\\nimport \\\"../token/TBTC.sol\\\";\\nimport \\\"../GovernanceUtils.sol\\\";\\n\\n/// @title TBTC v2 Vending Machine\\n/// @notice The Vending Machine is the owner of TBTC v2 token and can mint\\n/// TBTC v2 tokens in 1:1 ratio from TBTC v1 tokens with TBTC v1\\n/// deposited in the contract as collateral. TBTC v2 can be\\n/// unminted back to TBTC v1 with or without a fee - fee parameter is\\n/// controlled by the Governance. This implementation acts as a bridge\\n/// between TBTC v1 and TBTC v2 token, allowing to mint TBTC v2 before\\n/// the system is ready and fully operational without sacrificing any\\n/// security guarantees and decentralization of the project.\\n/// Vending Machine can be upgraded in a two-step, governance-controlled\\n/// process. The new version of the Vending Machine will receive the\\n/// ownership of TBTC v2 token and entire TBTC v1 balance stored as\\n/// collateral. It is expected that this process will be executed before\\n/// the v2 system launch. There is an optional unmint fee with a value\\n/// that can be updated in a two-step, governance-controlled process.\\n/// All governable parameters are controlled by two roles: update\\n/// initiator and finalizer. There is a separate initiator role for\\n/// unmint fee update and vending machine upgrade. The initiator\\n/// proposes the change by initiating the update and the finalizer\\n/// (contract owner) may approve it by finalizing the change after the\\n/// governance delay passes.\\ncontract VendingMachine is Ownable, IReceiveApproval {\\n using SafeERC20 for IERC20;\\n using SafeERC20 for TBTC;\\n\\n /// @notice The time delay that needs to pass between initializing and\\n /// finalizing update of any governable parameter in this contract.\\n uint256 public constant GOVERNANCE_DELAY = 7 days;\\n\\n /// @notice Divisor for precision purposes. Used to represent fractions\\n /// in parameter values.\\n uint256 public constant FLOATING_POINT_DIVISOR = 1e18;\\n\\n IERC20 public immutable tbtcV1;\\n TBTC public immutable tbtcV2;\\n\\n /// @notice The fee for unminting TBTC v2 back into TBTC v1 represented as\\n /// 1e18 precision fraction. The fee is proportional to the amount\\n /// being unminted and added on the top of the amount being unminted.\\n /// To calculate the fee value, the amount being unminted needs\\n /// to be multiplied by `unmintFee` and divided by 1e18.\\n /// For example, `unmintFee` set to 1000000000000000\\n /// means that 0.001 of the amount being unminted needs to be paid\\n /// to the `VendingMachine` as an unminting fee on the top of the\\n /// amount being unminted.\\n uint256 public unmintFee;\\n uint256 public newUnmintFee;\\n uint256 public unmintFeeUpdateInitiatedTimestamp;\\n address public unmintFeeUpdateInitiator;\\n\\n /// @notice The address of a new vending machine. Set only when the upgrade\\n /// process is pending. Once the upgrade gets finalized, the new\\n /// vending machine will become an owner of TBTC v2 token.\\n address public newVendingMachine;\\n uint256 public vendingMachineUpgradeInitiatedTimestamp;\\n address public vendingMachineUpgradeInitiator;\\n\\n event UnmintFeeUpdateInitiated(uint256 newUnmintFee, uint256 timestamp);\\n event UnmintFeeUpdated(uint256 newUnmintFee);\\n\\n event VendingMachineUpgradeInitiated(\\n address newVendingMachine,\\n uint256 timestamp\\n );\\n event VendingMachineUpgraded(address newVendingMachine);\\n\\n event Minted(address indexed recipient, uint256 amount);\\n event Unminted(address indexed recipient, uint256 amount, uint256 fee);\\n\\n modifier only(address authorizedCaller) {\\n require(msg.sender == authorizedCaller, \\\"Caller is not authorized\\\");\\n _;\\n }\\n\\n modifier onlyAfterGovernanceDelay(uint256 changeInitiatedTimestamp) {\\n GovernanceUtils.onlyAfterGovernanceDelay(\\n changeInitiatedTimestamp,\\n GOVERNANCE_DELAY\\n );\\n _;\\n }\\n\\n constructor(\\n IERC20 _tbtcV1,\\n TBTC _tbtcV2,\\n uint256 _unmintFee\\n ) {\\n tbtcV1 = _tbtcV1;\\n tbtcV2 = _tbtcV2;\\n unmintFee = _unmintFee;\\n\\n unmintFeeUpdateInitiator = msg.sender;\\n vendingMachineUpgradeInitiator = msg.sender;\\n }\\n\\n /// @notice Mints TBTC v2 to the caller from TBTC v1 with 1:1 ratio.\\n /// The caller needs to have at least `amount` of TBTC v1 balance\\n /// approved for transfer to the `VendingMachine` before calling\\n /// this function.\\n /// @param amount The amount of TBTC v2 to mint from TBTC v1\\n function mint(uint256 amount) external {\\n _mint(msg.sender, amount);\\n }\\n\\n /// @notice Mints TBTC v2 to `from` address from TBTC v1 with 1:1 ratio.\\n /// `from` address needs to have at least `amount` of TBTC v1\\n /// balance approved for transfer to the `VendingMachine` before\\n /// calling this function.\\n /// @dev This function is a shortcut for approve + mint. Only TBTC v1\\n /// caller is allowed and only TBTC v1 is allowed as a token to\\n /// transfer.\\n /// @param from TBTC v1 token holder minting TBTC v2 tokens\\n /// @param amount The amount of TBTC v2 to mint from TBTC v1\\n /// @param token TBTC v1 token address\\n function receiveApproval(\\n address from,\\n uint256 amount,\\n address token,\\n bytes calldata\\n ) external override {\\n require(token == address(tbtcV1), \\\"Token is not TBTC v1\\\");\\n require(msg.sender == address(tbtcV1), \\\"Only TBTC v1 caller allowed\\\");\\n _mint(from, amount);\\n }\\n\\n /// @notice Unmints TBTC v2 from the caller into TBTC v1. Depending on\\n /// `unmintFee` value, may require paying an additional unmint fee\\n /// in TBTC v2 in addition to the amount being unminted. To see\\n /// what is the value of the fee, please call `unmintFeeFor(amount)`\\n /// function. The caller needs to have at least\\n /// `amount + unmintFeeFor(amount)` of TBTC v2 balance approved for\\n /// transfer to the `VendingMachine` before calling this function.\\n /// @param amount The amount of TBTC v2 to unmint to TBTC v1\\n function unmint(uint256 amount) external {\\n uint256 fee = unmintFeeFor(amount);\\n emit Unminted(msg.sender, amount, fee);\\n\\n require(\\n tbtcV2.balanceOf(msg.sender) >= amount + fee,\\n \\\"Amount + fee exceeds TBTC v2 balance\\\"\\n );\\n\\n tbtcV2.safeTransferFrom(msg.sender, address(this), fee);\\n tbtcV2.burnFrom(msg.sender, amount);\\n tbtcV1.safeTransfer(msg.sender, amount);\\n }\\n\\n /// @notice Allows the Governance to withdraw unmint fees accumulated by\\n /// `VendingMachine`.\\n /// @param recipient The address receiving the fees\\n /// @param amount The amount of fees in TBTC v2 to withdraw\\n function withdrawFees(address recipient, uint256 amount)\\n external\\n onlyOwner\\n {\\n tbtcV2.safeTransfer(recipient, amount);\\n }\\n\\n /// @notice Initiates unmint fee update process. The update process needs to\\n /// be finalized with a call to `finalizeUnmintFeeUpdate` function\\n /// after the `GOVERNANCE_DELAY` passes. Only unmint fee update\\n /// initiator role can initiate the update.\\n /// @param _newUnmintFee The new unmint fee\\n function initiateUnmintFeeUpdate(uint256 _newUnmintFee)\\n external\\n only(unmintFeeUpdateInitiator)\\n {\\n /* solhint-disable-next-line not-rely-on-time */\\n emit UnmintFeeUpdateInitiated(_newUnmintFee, block.timestamp);\\n newUnmintFee = _newUnmintFee;\\n /* solhint-disable-next-line not-rely-on-time */\\n unmintFeeUpdateInitiatedTimestamp = block.timestamp;\\n }\\n\\n /// @notice Allows the contract owner to finalize unmint fee update process.\\n /// The update process needs to be first initiated with a call to\\n /// `initiateUnmintFeeUpdate` and the `GOVERNANCE_DELAY` needs to\\n /// pass.\\n function finalizeUnmintFeeUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(unmintFeeUpdateInitiatedTimestamp)\\n {\\n emit UnmintFeeUpdated(newUnmintFee);\\n unmintFee = newUnmintFee;\\n newUnmintFee = 0;\\n unmintFeeUpdateInitiatedTimestamp = 0;\\n }\\n\\n /// @notice Initiates vending machine upgrade process. The upgrade process\\n /// needs to be finalized with a call to\\n /// `finalizeVendingMachineUpgrade` function after the\\n /// `GOVERNANCE_DELAY` passes. Only vending machine upgrade\\n /// initiator role can initiate the upgrade.\\n /// @param _newVendingMachine The new vending machine address\\n function initiateVendingMachineUpgrade(address _newVendingMachine)\\n external\\n only(vendingMachineUpgradeInitiator)\\n {\\n require(\\n _newVendingMachine != address(0),\\n \\\"New VendingMachine cannot be zero address\\\"\\n );\\n\\n emit VendingMachineUpgradeInitiated(\\n _newVendingMachine,\\n /* solhint-disable-next-line not-rely-on-time */\\n block.timestamp\\n );\\n newVendingMachine = _newVendingMachine;\\n /* solhint-disable-next-line not-rely-on-time */\\n vendingMachineUpgradeInitiatedTimestamp = block.timestamp;\\n }\\n\\n /// @notice Allows the contract owner to finalize vending machine upgrade\\n /// process. The upgrade process needs to be first initiated with a\\n /// call to `initiateVendingMachineUpgrade` and the `GOVERNANCE_DELAY`\\n /// needs to pass. Once the upgrade is finalized, the new vending\\n /// machine will become an owner of TBTC v2 token and all TBTC v1\\n /// held by this contract will be transferred to the new vending\\n /// machine.\\n function finalizeVendingMachineUpgrade()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(vendingMachineUpgradeInitiatedTimestamp)\\n {\\n emit VendingMachineUpgraded(newVendingMachine);\\n //slither-disable-next-line reentrancy-no-eth\\n tbtcV2.transferOwnership(newVendingMachine);\\n tbtcV1.safeTransfer(newVendingMachine, tbtcV1.balanceOf(address(this)));\\n newVendingMachine = address(0);\\n vendingMachineUpgradeInitiatedTimestamp = 0;\\n }\\n\\n /// @notice Transfers unmint fee update initiator role to another address.\\n /// Can be called only by the current unmint fee update initiator.\\n /// @param newInitiator The new unmint fee update initiator\\n function transferUnmintFeeUpdateInitiatorRole(address newInitiator)\\n external\\n only(unmintFeeUpdateInitiator)\\n {\\n require(\\n newInitiator != address(0),\\n \\\"New initiator must not be zero address\\\"\\n );\\n unmintFeeUpdateInitiator = newInitiator;\\n }\\n\\n /// @notice Transfers vending machine upgrade initiator role to another\\n /// address. Can be called only by the current vending machine\\n /// upgrade initiator.\\n /// @param newInitiator The new vending machine upgrade initiator\\n function transferVendingMachineUpgradeInitiatorRole(address newInitiator)\\n external\\n only(vendingMachineUpgradeInitiator)\\n {\\n require(\\n newInitiator != address(0),\\n \\\"New initiator must not be zero address\\\"\\n );\\n vendingMachineUpgradeInitiator = newInitiator;\\n }\\n\\n /// @notice Get the remaining time that needs to pass until unmint fee\\n /// update can be finalized by the Governance. If the update has\\n /// not been initiated, the function reverts.\\n function getRemainingUnmintFeeUpdateTime() external view returns (uint256) {\\n return\\n GovernanceUtils.getRemainingGovernanceDelay(\\n unmintFeeUpdateInitiatedTimestamp,\\n GOVERNANCE_DELAY\\n );\\n }\\n\\n /// @notice Get the remaining time that needs to pass until vending machine\\n /// upgrade can be finalized by the Governance. If the upgrade has\\n /// not been initiated, the function reverts.\\n function getRemainingVendingMachineUpgradeTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n GovernanceUtils.getRemainingGovernanceDelay(\\n vendingMachineUpgradeInitiatedTimestamp,\\n GOVERNANCE_DELAY\\n );\\n }\\n\\n /// @notice Calculates the fee that needs to be paid to the `VendingMachine`\\n /// to unmint the given amount of TBTC v2 back into TBTC v1.\\n function unmintFeeFor(uint256 amount) public view returns (uint256) {\\n return (amount * unmintFee) / FLOATING_POINT_DIVISOR;\\n }\\n\\n function _mint(address tokenOwner, uint256 amount) internal {\\n emit Minted(tokenOwner, amount);\\n tbtcV1.safeTransferFrom(tokenOwner, address(this), amount);\\n tbtcV2.mint(tokenOwner, amount);\\n }\\n}\\n\",\"keccak256\":\"0x649cc3340eb5ffbdcdd9df07bc6342f803b0efbde3af8d4e4f723b3576ea47c8\",\"license\":\"GPL-3.0-only\"},\"contracts/token/TBTC.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol\\\";\\nimport \\\"@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol\\\";\\n\\ncontract TBTC is ERC20WithPermit, MisfundRecovery {\\n constructor() ERC20WithPermit(\\\"tBTC v2\\\", \\\"tBTC\\\") {}\\n}\\n\",\"keccak256\":\"0x4542aaa48f7682005b815253768b6433c811daff5d2727db256d5f1879f5ccbf\",\"license\":\"GPL-3.0-only\"}},\"version\":1}",
|
|
551
551
|
"bytecode": "0x60c06040523480156200001157600080fd5b506040516200181b3803806200181b8339810160408190526200003491620000e6565b6200003f336200007d565b6001600160a01b03928316608052911660a05260015560048054336001600160a01b031991821681179092556007805490911690911790556200012e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000e357600080fd5b50565b600080600060608486031215620000fc57600080fd5b83516200010981620000cd565b60208501519093506200011c81620000cd565b80925050604084015190509250925092565b60805160a051611673620001a8600039600081816102dc0152818161074e015281816108410152818161089e01528181610a7c01528181610b5f01526111960152600081816102410152818161090f01528181610952015281816109dc01528181610be501528181610c5c015261112f01526116736000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80638da5cb5b116100f9578063b766bd8a11610097578063ea1a4e6811610071578063ea1a4e681461035a578063f257a1a01461036d578063f2fde38b14610380578063fe7294a81461039357600080fd5b8063b766bd8a14610337578063bb81268c1461034a578063c2b4aa751461035257600080fd5b8063a0712d68116100d3578063a0712d68146102fe578063ad3b1b4714610311578063b0b5489514610324578063b29b95ce1461032e57600080fd5b80638da5cb5b146102b35780638f4ffcb1146102c457806395de5a41146102d757600080fd5b80632d42067d116101665780635bf32f52116101405780635bf32f52146102725780636386d0b11461028557806364e779b114610298578063715018a6146102ab57600080fd5b80632d42067d146102295780633678252f1461023c57806351b83ebc1461026357600080fd5b80630c505b7a116101975780630c505b7a1461020d57806320ad25dc14610216578063240b57e81461022057600080fd5b806305e448fc146101be5780630bb037df146101da5780630c05ab39146101e2575b600080fd5b6101c760065481565b6040519081526020015b60405180910390f35b6101c76103a6565b6007546101f5906001600160a01b031681565b6040516001600160a01b0390911681526020016101d1565b6101c760015481565b61021e6103bc565b005b6101c760025481565b61021e61023736600461141a565b610422565b6101f57f000000000000000000000000000000000000000000000000000000000000000081565b6101c7670de0b6b3a764000081565b61021e61028036600461143c565b61050a565b61021e61029336600461141a565b6105a7565b61021e6102a636600461143c565b6106e6565b61021e61093c565b6000546001600160a01b03166101f5565b61021e6102d2366004611455565b610950565b6101f57f000000000000000000000000000000000000000000000000000000000000000081565b61021e61030c36600461143c565b610a5a565b61021e61031f3660046114f0565b610a67565b6101c762093a8081565b6101c760035481565b6101c761034536600461143c565b610aa3565b61021e610acc565b6101c7610c9b565b6004546101f5906001600160a01b031681565b61021e61037b36600461141a565b610cac565b61021e61038e36600461141a565b610d8f565b6005546101f5906001600160a01b031681565b60006103b760065462093a80610e05565b905090565b6103c4610e87565b6003546103d48162093a80610ee1565b7f3fd2a429fdc4324c186eb6c71dc1bf3accae43e10f21367f6d143635dd5ed33c60025460405161040791815260200190565b60405180910390a15060028054600155600090819055600355565b6004546001600160a01b03163381146104825760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a6564000000000000000060448201526064015b60405180910390fd5b6001600160a01b0382166104e75760405162461bcd60e51b815260206004820152602660248201527f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160448201526564647265737360d01b6064820152608401610479565b50600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163381146105655760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610479565b604080518381524260208201527f0ddb39c814329b5da82b52fcacf65e4db6a1f64a0db4755282bee877cb97991a910160405180910390a15060025542600355565b6007546001600160a01b03163381146106025760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610479565b6001600160a01b03821661067e5760405162461bcd60e51b815260206004820152602960248201527f4e65772056656e64696e674d616368696e652063616e6e6f74206265207a657260448201527f6f206164647265737300000000000000000000000000000000000000000000006064820152608401610479565b604080516001600160a01b03841681524260208201527f424e3c8894757dd6fd019d0d8065b19c7e49af137aeb89a275ed3d2435025a96910160405180910390a150600580546001600160a01b0319166001600160a01b039290921691909117905542600655565b60006106f182610aa3565b604080518481526020810183905291925033917fe8a2f49c528033a686bb566d35ac82ca6fd93449bdd9f5d5b36c2f1aa68214b3910160405180910390a26107398183611530565b6040516370a0823160e01b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561079d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c19190611543565b10156108345760405162461bcd60e51b8152602060048201526024808201527f416d6f756e74202b20666565206578636565647320544254432076322062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610479565b6108696001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610f8a565b6040517f79cc6790000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906379cc679090604401600060405180830381600087803b1580156108ea57600080fd5b505af11580156108fe573d6000803e3d6000fd5b506109389250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690503384611041565b5050565b610944610e87565b61094e600061108f565b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316146109d15760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f7420544254432076310000000000000000000000006044820152606401610479565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610a495760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920544254432076312063616c6c657220616c6c6f77656400000000006044820152606401610479565b610a5385856110df565b5050505050565b610a6433826110df565b50565b610a6f610e87565b6109386001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383611041565b6000670de0b6b3a764000060015483610abc919061155c565b610ac69190611573565b92915050565b610ad4610e87565b600654610ae48162093a80610ee1565b6005546040516001600160a01b0390911681527f99610bc40a14194a7a819ffeded94200b49e68ba00bc3a3ab89625c0972217ff9060200160405180910390a16005546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063f2fde38b90602401600060405180830381600087803b158015610ba557600080fd5b505af1158015610bb9573d6000803e3d6000fd5b50506005546040516370a0823160e01b8152306004820152610c8393506001600160a01b0391821692507f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c529190611543565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190611041565b50600580546001600160a01b03191690556000600655565b60006103b760035462093a80610e05565b6007546001600160a01b0316338114610d075760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610479565b6001600160a01b038216610d6c5760405162461bcd60e51b815260206004820152602660248201527f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160448201526564647265737360d01b6064820152608401610479565b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b610d97610e87565b6001600160a01b038116610dfc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610479565b610a648161108f565b6000808311610e565760405162461bcd60e51b815260206004820152601460248201527f4368616e6765206e6f7420696e697469617465640000000000000000000000006044820152606401610479565b6000610e628442611595565b9050828110610e75576000915050610ac6565b610e7f8184611595565b949350505050565b6000546001600160a01b0316331461094e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610479565b60008211610f315760405162461bcd60e51b815260206004820152601460248201527f4368616e6765206e6f7420696e697469617465640000000000000000000000006044820152606401610479565b80610f3c8342611595565b10156109385760405162461bcd60e51b815260206004820181905260248201527f476f7665726e616e63652064656c617920686173206e6f7420656c61707365646044820152606401610479565b6040516001600160a01b038085166024830152831660448201526064810182905261103b9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526111f6565b50505050565b6040516001600160a01b03831660248201526044810182905261108a9084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610fd7565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b03167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe8260405161111a91815260200190565b60405180910390a26111576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016833084610f8a565b6040517f40c10f190000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401600060405180830381600087803b1580156111da57600080fd5b505af11580156111ee573d6000803e3d6000fd5b505050505050565b600061124b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112db9092919063ffffffff16565b80519091501561108a578080602001905181019061126991906115a8565b61108a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610479565b6060610e7f848460008585600080866001600160a01b0316858760405161130291906115ee565b60006040518083038185875af1925050503d806000811461133f576040519150601f19603f3d011682016040523d82523d6000602084013e611344565b606091505b509150915061135587838387611360565b979650505050505050565b606083156113cf5782516000036113c8576001600160a01b0385163b6113c85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610479565b5081610e7f565b610e7f83838151156113e45781518083602001fd5b8060405162461bcd60e51b8152600401610479919061160a565b80356001600160a01b038116811461141557600080fd5b919050565b60006020828403121561142c57600080fd5b611435826113fe565b9392505050565b60006020828403121561144e57600080fd5b5035919050565b60008060008060006080868803121561146d57600080fd5b611476866113fe565b94506020860135935061148b604087016113fe565b9250606086013567ffffffffffffffff808211156114a857600080fd5b818801915088601f8301126114bc57600080fd5b8135818111156114cb57600080fd5b8960208285010111156114dd57600080fd5b9699959850939650602001949392505050565b6000806040838503121561150357600080fd5b61150c836113fe565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ac657610ac661151a565b60006020828403121561155557600080fd5b5051919050565b8082028115828204841417610ac657610ac661151a565b60008261159057634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610ac657610ac661151a565b6000602082840312156115ba57600080fd5b8151801515811461143557600080fd5b60005b838110156115e55781810151838201526020016115cd565b50506000910152565b600082516116008184602087016115ca565b9190910192915050565b60208152600082518060208401526116298160408501602087016115ca565b601f01601f1916919091016040019291505056fea26469706673582212206ea5168a64fb42022c8bd2fb625530ba29a75d9cd472237ae5fdde27da1365c764736f6c63430008110033",
|
|
552
552
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101b95760003560e01c80638da5cb5b116100f9578063b766bd8a11610097578063ea1a4e6811610071578063ea1a4e681461035a578063f257a1a01461036d578063f2fde38b14610380578063fe7294a81461039357600080fd5b8063b766bd8a14610337578063bb81268c1461034a578063c2b4aa751461035257600080fd5b8063a0712d68116100d3578063a0712d68146102fe578063ad3b1b4714610311578063b0b5489514610324578063b29b95ce1461032e57600080fd5b80638da5cb5b146102b35780638f4ffcb1146102c457806395de5a41146102d757600080fd5b80632d42067d116101665780635bf32f52116101405780635bf32f52146102725780636386d0b11461028557806364e779b114610298578063715018a6146102ab57600080fd5b80632d42067d146102295780633678252f1461023c57806351b83ebc1461026357600080fd5b80630c505b7a116101975780630c505b7a1461020d57806320ad25dc14610216578063240b57e81461022057600080fd5b806305e448fc146101be5780630bb037df146101da5780630c05ab39146101e2575b600080fd5b6101c760065481565b6040519081526020015b60405180910390f35b6101c76103a6565b6007546101f5906001600160a01b031681565b6040516001600160a01b0390911681526020016101d1565b6101c760015481565b61021e6103bc565b005b6101c760025481565b61021e61023736600461141a565b610422565b6101f57f000000000000000000000000000000000000000000000000000000000000000081565b6101c7670de0b6b3a764000081565b61021e61028036600461143c565b61050a565b61021e61029336600461141a565b6105a7565b61021e6102a636600461143c565b6106e6565b61021e61093c565b6000546001600160a01b03166101f5565b61021e6102d2366004611455565b610950565b6101f57f000000000000000000000000000000000000000000000000000000000000000081565b61021e61030c36600461143c565b610a5a565b61021e61031f3660046114f0565b610a67565b6101c762093a8081565b6101c760035481565b6101c761034536600461143c565b610aa3565b61021e610acc565b6101c7610c9b565b6004546101f5906001600160a01b031681565b61021e61037b36600461141a565b610cac565b61021e61038e36600461141a565b610d8f565b6005546101f5906001600160a01b031681565b60006103b760065462093a80610e05565b905090565b6103c4610e87565b6003546103d48162093a80610ee1565b7f3fd2a429fdc4324c186eb6c71dc1bf3accae43e10f21367f6d143635dd5ed33c60025460405161040791815260200190565b60405180910390a15060028054600155600090819055600355565b6004546001600160a01b03163381146104825760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a6564000000000000000060448201526064015b60405180910390fd5b6001600160a01b0382166104e75760405162461bcd60e51b815260206004820152602660248201527f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160448201526564647265737360d01b6064820152608401610479565b50600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163381146105655760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610479565b604080518381524260208201527f0ddb39c814329b5da82b52fcacf65e4db6a1f64a0db4755282bee877cb97991a910160405180910390a15060025542600355565b6007546001600160a01b03163381146106025760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610479565b6001600160a01b03821661067e5760405162461bcd60e51b815260206004820152602960248201527f4e65772056656e64696e674d616368696e652063616e6e6f74206265207a657260448201527f6f206164647265737300000000000000000000000000000000000000000000006064820152608401610479565b604080516001600160a01b03841681524260208201527f424e3c8894757dd6fd019d0d8065b19c7e49af137aeb89a275ed3d2435025a96910160405180910390a150600580546001600160a01b0319166001600160a01b039290921691909117905542600655565b60006106f182610aa3565b604080518481526020810183905291925033917fe8a2f49c528033a686bb566d35ac82ca6fd93449bdd9f5d5b36c2f1aa68214b3910160405180910390a26107398183611530565b6040516370a0823160e01b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561079d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c19190611543565b10156108345760405162461bcd60e51b8152602060048201526024808201527f416d6f756e74202b20666565206578636565647320544254432076322062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610479565b6108696001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610f8a565b6040517f79cc6790000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906379cc679090604401600060405180830381600087803b1580156108ea57600080fd5b505af11580156108fe573d6000803e3d6000fd5b506109389250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690503384611041565b5050565b610944610e87565b61094e600061108f565b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316146109d15760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f7420544254432076310000000000000000000000006044820152606401610479565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610a495760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920544254432076312063616c6c657220616c6c6f77656400000000006044820152606401610479565b610a5385856110df565b5050505050565b610a6433826110df565b50565b610a6f610e87565b6109386001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383611041565b6000670de0b6b3a764000060015483610abc919061155c565b610ac69190611573565b92915050565b610ad4610e87565b600654610ae48162093a80610ee1565b6005546040516001600160a01b0390911681527f99610bc40a14194a7a819ffeded94200b49e68ba00bc3a3ab89625c0972217ff9060200160405180910390a16005546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063f2fde38b90602401600060405180830381600087803b158015610ba557600080fd5b505af1158015610bb9573d6000803e3d6000fd5b50506005546040516370a0823160e01b8152306004820152610c8393506001600160a01b0391821692507f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c529190611543565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190611041565b50600580546001600160a01b03191690556000600655565b60006103b760035462093a80610e05565b6007546001600160a01b0316338114610d075760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610479565b6001600160a01b038216610d6c5760405162461bcd60e51b815260206004820152602660248201527f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160448201526564647265737360d01b6064820152608401610479565b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b610d97610e87565b6001600160a01b038116610dfc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610479565b610a648161108f565b6000808311610e565760405162461bcd60e51b815260206004820152601460248201527f4368616e6765206e6f7420696e697469617465640000000000000000000000006044820152606401610479565b6000610e628442611595565b9050828110610e75576000915050610ac6565b610e7f8184611595565b949350505050565b6000546001600160a01b0316331461094e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610479565b60008211610f315760405162461bcd60e51b815260206004820152601460248201527f4368616e6765206e6f7420696e697469617465640000000000000000000000006044820152606401610479565b80610f3c8342611595565b10156109385760405162461bcd60e51b815260206004820181905260248201527f476f7665726e616e63652064656c617920686173206e6f7420656c61707365646044820152606401610479565b6040516001600160a01b038085166024830152831660448201526064810182905261103b9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526111f6565b50505050565b6040516001600160a01b03831660248201526044810182905261108a9084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610fd7565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b03167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe8260405161111a91815260200190565b60405180910390a26111576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016833084610f8a565b6040517f40c10f190000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401600060405180830381600087803b1580156111da57600080fd5b505af11580156111ee573d6000803e3d6000fd5b505050505050565b600061124b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112db9092919063ffffffff16565b80519091501561108a578080602001905181019061126991906115a8565b61108a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610479565b6060610e7f848460008585600080866001600160a01b0316858760405161130291906115ee565b60006040518083038185875af1925050503d806000811461133f576040519150601f19603f3d011682016040523d82523d6000602084013e611344565b606091505b509150915061135587838387611360565b979650505050505050565b606083156113cf5782516000036113c8576001600160a01b0385163b6113c85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610479565b5081610e7f565b610e7f83838151156113e45781518083602001fd5b8060405162461bcd60e51b8152600401610479919061160a565b80356001600160a01b038116811461141557600080fd5b919050565b60006020828403121561142c57600080fd5b611435826113fe565b9392505050565b60006020828403121561144e57600080fd5b5035919050565b60008060008060006080868803121561146d57600080fd5b611476866113fe565b94506020860135935061148b604087016113fe565b9250606086013567ffffffffffffffff808211156114a857600080fd5b818801915088601f8301126114bc57600080fd5b8135818111156114cb57600080fd5b8960208285010111156114dd57600080fd5b9699959850939650602001949392505050565b6000806040838503121561150357600080fd5b61150c836113fe565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ac657610ac661151a565b60006020828403121561155557600080fd5b5051919050565b8082028115828204841417610ac657610ac661151a565b60008261159057634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610ac657610ac661151a565b6000602082840312156115ba57600080fd5b8151801515811461143557600080fd5b60005b838110156115e55781810151838201526020016115cd565b50506000910152565b600082516116008184602087016115ca565b9190910192915050565b60208152600082518060208401526116298160408501602087016115ca565b601f01601f1916919091016040019291505056fea26469706673582212206ea5168a64fb42022c8bd2fb625530ba29a75d9cd472237ae5fdde27da1365c764736f6c63430008110033",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"transactionIndex": 0,
|
|
273
273
|
"gasUsed": "804160",
|
|
274
274
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
275
|
-
"blockHash": "
|
|
275
|
+
"blockHash": "0x86ea83dd72450123e9afe1c025e5053da6a313241b4ab28798221024978869ac",
|
|
276
276
|
"transactionHash": "0x8a7bd1e78e9613a9be681bbe3dfb74f3c034114cf2991e7906b835bd5854e74f",
|
|
277
277
|
"logs": [],
|
|
278
278
|
"blockNumber": 5,
|