@keep-network/tbtc-v2 1.0.1-dev.0 → 1.0.1-dev.1
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 +2 -2
- 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 +1 -1
- package/artifacts/Deposit.json +1 -1
- package/artifacts/DepositSweep.json +1 -1
- package/artifacts/DonationVault.json +1 -1
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/EcdsaSortitionPool.json +3 -3
- package/artifacts/Fraud.json +1 -1
- package/artifacts/KeepRegistry.json +1 -1
- package/artifacts/KeepStake.json +2 -2
- package/artifacts/KeepToken.json +2 -2
- package/artifacts/KeepTokenStaking.json +1 -1
- package/artifacts/LightRelay.json +2 -2
- package/artifacts/MaintainerProxy.json +2 -2
- package/artifacts/MovingFunds.json +1 -1
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- 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 +1 -1
- package/artifacts/ReimbursementPool.json +2 -2
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +2 -2
- package/artifacts/TBTCToken.json +2 -2
- package/artifacts/TBTCVault.json +2 -2
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +2 -2
- package/artifacts/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/WalletRegistry.json +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +1 -1
- package/deploy/80_upgrade_bridge_v2.ts +85 -0
- package/export/deploy/80_upgrade_bridge_v2.js +169 -0
- package/export/hardhat.config.js +8 -8
- package/package.json +4 -4
|
@@ -1269,7 +1269,7 @@
|
|
|
1269
1269
|
"transactionIndex": 0,
|
|
1270
1270
|
"gasUsed": "3456607",
|
|
1271
1271
|
"logsBloom": "0x00002004000000000102000000001000000040000000000000000000000008000000000020000000000000000000000000000000000000000000000400400000000000000000000000000000000000000000000000000000000010000000000010000800020000000002000000000800000000000000000000000000000000001000002000000000200002000040000000000000000008000000000000000202000000001040000000000000000000000000000004000000001000000000000000000000000000000000000040000000000000001000000100080000800020000000000000000000000000000000000001000000000000000000000000002000",
|
|
1272
|
-
"blockHash": "
|
|
1272
|
+
"blockHash": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d",
|
|
1273
1273
|
"transactionHash": "0xcb02a40eb220a8d0cb30392196f3c3bf58a283a200727b0b3c79983870bddab5",
|
|
1274
1274
|
"logs": [
|
|
1275
1275
|
{
|
|
@@ -1282,7 +1282,7 @@
|
|
|
1282
1282
|
],
|
|
1283
1283
|
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096",
|
|
1284
1284
|
"logIndex": 0,
|
|
1285
|
-
"blockHash": "
|
|
1285
|
+
"blockHash": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d"
|
|
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": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d"
|
|
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": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d"
|
|
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": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d"
|
|
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": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d"
|
|
1334
1334
|
},
|
|
1335
1335
|
{
|
|
1336
1336
|
"transactionIndex": 0,
|
|
@@ -1342,7 +1342,7 @@
|
|
|
1342
1342
|
],
|
|
1343
1343
|
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c7c905b505f0cf40ab6600d05e677f717916f6b",
|
|
1344
1344
|
"logIndex": 5,
|
|
1345
|
-
"blockHash": "
|
|
1345
|
+
"blockHash": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d"
|
|
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": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d"
|
|
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": "0xde8a79af6da6c064e325490b6342be0f9bf1edf86afe472d782ddbbf8c7af30d"
|
|
1376
1376
|
}
|
|
1377
1377
|
],
|
|
1378
1378
|
"blockNumber": 19,
|
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
"transactionIndex": 0,
|
|
751
751
|
"gasUsed": "1617384",
|
|
752
752
|
"logsBloom": "0x000000040000000008020000000000000a0000000000000080000000000000000000000000000000000000000001000000000000000000000200000010600000000000000000000000000000000000000010000000000000000000000001000000000800020000400000000000000800000000000000000000020000000000000000000000000000000000000000000000000000000008080000000000000000000000000020000000000000000000000000000004000000001000000000000000000000000000004000000000000000000200000000000100000000000020000000000000001000000000000000000001400000000000000000000000000000",
|
|
753
|
-
"blockHash": "
|
|
753
|
+
"blockHash": "0x4110e4520a0d199ef6fded57ad99f7a1285e4ccfe83ce843839706dea1fd3ef9",
|
|
754
754
|
"transactionHash": "0xebcda2c70b5e49631d4a83bd96710fd1541e6dcd4236db8bb70b69e3fee9addc",
|
|
755
755
|
"logs": [
|
|
756
756
|
{
|
|
@@ -766,7 +766,7 @@
|
|
|
766
766
|
],
|
|
767
767
|
"data": "0x",
|
|
768
768
|
"logIndex": 0,
|
|
769
|
-
"blockHash": "
|
|
769
|
+
"blockHash": "0x4110e4520a0d199ef6fded57ad99f7a1285e4ccfe83ce843839706dea1fd3ef9"
|
|
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": "0x4110e4520a0d199ef6fded57ad99f7a1285e4ccfe83ce843839706dea1fd3ef9"
|
|
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": "0x4110e4520a0d199ef6fded57ad99f7a1285e4ccfe83ce843839706dea1fd3ef9"
|
|
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": "0x4110e4520a0d199ef6fded57ad99f7a1285e4ccfe83ce843839706dea1fd3ef9"
|
|
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": "0x4110e4520a0d199ef6fded57ad99f7a1285e4ccfe83ce843839706dea1fd3ef9"
|
|
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": "0x4110e4520a0d199ef6fded57ad99f7a1285e4ccfe83ce843839706dea1fd3ef9"
|
|
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": "0x4110e4520a0d199ef6fded57ad99f7a1285e4ccfe83ce843839706dea1fd3ef9"
|
|
857
857
|
}
|
|
858
858
|
],
|
|
859
859
|
"blockNumber": 18,
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
"transactionIndex": 0,
|
|
518
518
|
"gasUsed": "1456351",
|
|
519
519
|
"logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000000000400080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002010000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000001000000000000000000000000000000",
|
|
520
|
-
"blockHash": "
|
|
520
|
+
"blockHash": "0xa7cfca36711c145f045328b6750f1a6b812396d71642fd4960c6d5210d15fe82",
|
|
521
521
|
"transactionHash": "0x29bb982ec127fc62fca6d1244b0ba6e91ee96b738babbc439bf41fcf8810330d",
|
|
522
522
|
"logs": [
|
|
523
523
|
{
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
],
|
|
533
533
|
"data": "0x",
|
|
534
534
|
"logIndex": 0,
|
|
535
|
-
"blockHash": "
|
|
535
|
+
"blockHash": "0xa7cfca36711c145f045328b6750f1a6b812396d71642fd4960c6d5210d15fe82"
|
|
536
536
|
}
|
|
537
537
|
],
|
|
538
538
|
"blockNumber": 57,
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"transactionIndex": 0,
|
|
273
273
|
"gasUsed": "804148",
|
|
274
274
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
275
|
-
"blockHash": "
|
|
275
|
+
"blockHash": "0x9189dfc12f7e9a19bdd7ccb3d0c31cf443b9919a1c47bbece174d279f87a7957",
|
|
276
276
|
"transactionHash": "0x1fa2edd54ffe85f0c76ff2a5c2242c208fe52f4144b5a916cf7be8efa5dc44d4",
|
|
277
277
|
"logs": [],
|
|
278
278
|
"blockNumber": 10,
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"transactionIndex": 0,
|
|
273
273
|
"gasUsed": "804160",
|
|
274
274
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
275
|
-
"blockHash": "
|
|
275
|
+
"blockHash": "0xf814a9001a374a339576247a594c78d963fdc18c06e7bcf54b72dff2e1446dcb",
|
|
276
276
|
"transactionHash": "0xdc9a0b9fe0ff91fb7ccf6bc9f4d48430e56764f684f2d527e5ba8e327ade9260",
|
|
277
277
|
"logs": [],
|
|
278
278
|
"blockNumber": 11,
|
|
@@ -1891,7 +1891,7 @@
|
|
|
1891
1891
|
"transactionIndex": 0,
|
|
1892
1892
|
"gasUsed": "1047233",
|
|
1893
1893
|
"logsBloom": "0x00000000000000000000000000000000400000004040000000000000000000200040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000800000000000000000000000000000000000000000000000000000000800000000008000008000000000000000000000000000000000000000000000000000080000000000000800000000000000000000000000000000400000000000000000000000000000000000000000020000000020000000000040000000000000400000000000000000000000000000000000000000800000000000000000000000000000000000000000000",
|
|
1894
|
-
"blockHash": "
|
|
1894
|
+
"blockHash": "0x6353bfd4f51ed8a6c26b6784e80910015dd1dbb66a34d3c072231e12b308df01",
|
|
1895
1895
|
"transactionHash": "0xd3807c6b6cb8d9004608d9d265db4ac1e40471b222356e454cb20ddc93230319",
|
|
1896
1896
|
"logs": [
|
|
1897
1897
|
{
|
|
@@ -1905,7 +1905,7 @@
|
|
|
1905
1905
|
],
|
|
1906
1906
|
"data": "0x",
|
|
1907
1907
|
"logIndex": 0,
|
|
1908
|
-
"blockHash": "
|
|
1908
|
+
"blockHash": "0x6353bfd4f51ed8a6c26b6784e80910015dd1dbb66a34d3c072231e12b308df01"
|
|
1909
1909
|
},
|
|
1910
1910
|
{
|
|
1911
1911
|
"transactionIndex": 0,
|
|
@@ -1917,7 +1917,7 @@
|
|
|
1917
1917
|
],
|
|
1918
1918
|
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070997970c51812dc3a010c7d01b50e0d17dc79c8",
|
|
1919
1919
|
"logIndex": 1,
|
|
1920
|
-
"blockHash": "
|
|
1920
|
+
"blockHash": "0x6353bfd4f51ed8a6c26b6784e80910015dd1dbb66a34d3c072231e12b308df01"
|
|
1921
1921
|
},
|
|
1922
1922
|
{
|
|
1923
1923
|
"transactionIndex": 0,
|
|
@@ -1929,7 +1929,7 @@
|
|
|
1929
1929
|
],
|
|
1930
1930
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
1931
1931
|
"logIndex": 2,
|
|
1932
|
-
"blockHash": "
|
|
1932
|
+
"blockHash": "0x6353bfd4f51ed8a6c26b6784e80910015dd1dbb66a34d3c072231e12b308df01"
|
|
1933
1933
|
},
|
|
1934
1934
|
{
|
|
1935
1935
|
"transactionIndex": 0,
|
|
@@ -1941,7 +1941,7 @@
|
|
|
1941
1941
|
],
|
|
1942
1942
|
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000afdacd509e73115ea1654b1a770f1a807e7c9c0",
|
|
1943
1943
|
"logIndex": 3,
|
|
1944
|
-
"blockHash": "
|
|
1944
|
+
"blockHash": "0x6353bfd4f51ed8a6c26b6784e80910015dd1dbb66a34d3c072231e12b308df01"
|
|
1945
1945
|
}
|
|
1946
1946
|
],
|
|
1947
1947
|
"blockNumber": 44,
|
|
@@ -1963,7 +1963,7 @@
|
|
|
1963
1963
|
"transactionIndex": 0,
|
|
1964
1964
|
"gasUsed": "3938527",
|
|
1965
1965
|
"logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000002000800020000000000000000000800000000000000000000000000000000400000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000001000002000000000000000000000000",
|
|
1966
|
-
"blockHash": "
|
|
1966
|
+
"blockHash": "0x789ceb57bbc5022a2c919af2f55b907329989eb7bfb6bf2640be653272c4f85b",
|
|
1967
1967
|
"transactionHash": "0xd74f80e4f5e2effb2c65d08d07dd067de2196118911bc5019a89b375ffeac7c7",
|
|
1968
1968
|
"logs": [
|
|
1969
1969
|
{
|
|
@@ -1978,7 +1978,7 @@
|
|
|
1978
1978
|
],
|
|
1979
1979
|
"data": "0x",
|
|
1980
1980
|
"logIndex": 0,
|
|
1981
|
-
"blockHash": "
|
|
1981
|
+
"blockHash": "0x789ceb57bbc5022a2c919af2f55b907329989eb7bfb6bf2640be653272c4f85b"
|
|
1982
1982
|
}
|
|
1983
1983
|
],
|
|
1984
1984
|
"blockNumber": 48,
|
package/artifacts/Wallets.json
CHANGED
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"transactionIndex": 0,
|
|
112
112
|
"gasUsed": "911756",
|
|
113
113
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
114
|
-
"blockHash": "
|
|
114
|
+
"blockHash": "0x6cb8035f15c9981ec4c03dccaefaa61b21b0d09ebb9dae2711aaa161bd3f6ae6",
|
|
115
115
|
"transactionHash": "0x91eefa42384be6bb7c89615046eaf4ee22a40e4a2fe8252374af9febe43ea332",
|
|
116
116
|
"logs": [],
|
|
117
117
|
"blockNumber": 63,
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { HardhatRuntimeEnvironment } from "hardhat/types"
|
|
2
|
+
import { DeployFunction } from "hardhat-deploy/types"
|
|
3
|
+
|
|
4
|
+
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
5
|
+
const { ethers, helpers, deployments, getNamedAccounts } = hre
|
|
6
|
+
const { get } = deployments
|
|
7
|
+
const { deployer, treasury } = await getNamedAccounts()
|
|
8
|
+
|
|
9
|
+
const Bank = await deployments.get("Bank")
|
|
10
|
+
const LightRelay = await deployments.get("LightRelay")
|
|
11
|
+
const WalletRegistry = await deployments.get("WalletRegistry")
|
|
12
|
+
const ReimbursementPool = await deployments.get("ReimbursementPool")
|
|
13
|
+
|
|
14
|
+
const txProofDifficultyFactor = 6
|
|
15
|
+
|
|
16
|
+
// WARNING: This script expects no changes in the external libraries and uses
|
|
17
|
+
// `get` function to load the ones that were already published before.
|
|
18
|
+
// If there are any changes in the external libraries make sure to deploy fresh
|
|
19
|
+
// versions of the libraries and link them to the implementation.
|
|
20
|
+
const Deposit = await get("Deposit")
|
|
21
|
+
const DepositSweep = await get("DepositSweep")
|
|
22
|
+
const Redemption = await get("Redemption")
|
|
23
|
+
const Wallets = await get("Wallets")
|
|
24
|
+
const Fraud = await get("Fraud")
|
|
25
|
+
const MovingFunds = await get("MovingFunds")
|
|
26
|
+
|
|
27
|
+
const [bridge, proxyDeployment] = await helpers.upgrades.upgradeProxy(
|
|
28
|
+
"Bridge",
|
|
29
|
+
"Bridge",
|
|
30
|
+
{
|
|
31
|
+
contractName: "Bridge",
|
|
32
|
+
initializerArgs: [
|
|
33
|
+
Bank.address,
|
|
34
|
+
LightRelay.address,
|
|
35
|
+
treasury,
|
|
36
|
+
WalletRegistry.address,
|
|
37
|
+
ReimbursementPool.address,
|
|
38
|
+
txProofDifficultyFactor,
|
|
39
|
+
],
|
|
40
|
+
factoryOpts: {
|
|
41
|
+
signer: await ethers.getSigner(deployer),
|
|
42
|
+
libraries: {
|
|
43
|
+
Deposit: Deposit.address,
|
|
44
|
+
DepositSweep: DepositSweep.address,
|
|
45
|
+
Redemption: Redemption.address,
|
|
46
|
+
Wallets: Wallets.address,
|
|
47
|
+
Fraud: Fraud.address,
|
|
48
|
+
MovingFunds: MovingFunds.address,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
proxyOpts: {
|
|
52
|
+
kind: "transparent",
|
|
53
|
+
// Allow external libraries linking. We need to ensure manually that the
|
|
54
|
+
// external libraries we link are upgrade safe, as the OpenZeppelin plugin
|
|
55
|
+
// doesn't perform such a validation yet.
|
|
56
|
+
// See: https://docs.openzeppelin.com/upgrades-plugins/1.x/faq#why-cant-i-use-external-libraries
|
|
57
|
+
unsafeAllow: ["external-library-linking"],
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
if (hre.network.tags.etherscan) {
|
|
63
|
+
// We use `verify` instead of `verify:verify` as the `verify` task is defined
|
|
64
|
+
// in "@openzeppelin/hardhat-upgrades" to perform Etherscan verification
|
|
65
|
+
// of Proxy and Implementation contracts.
|
|
66
|
+
await hre.run("verify", {
|
|
67
|
+
address: proxyDeployment.address,
|
|
68
|
+
constructorArgsParams: proxyDeployment.args,
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (hre.network.tags.tenderly) {
|
|
73
|
+
await hre.tenderly.verify({
|
|
74
|
+
name: "Bridge",
|
|
75
|
+
address: bridge.address,
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export default func
|
|
81
|
+
|
|
82
|
+
func.tags = ["UpgradeBridge"]
|
|
83
|
+
// When running an upgrade uncomment the skip below and run the command:
|
|
84
|
+
// yarn deploy --tags UpgradeBridge --network <NETWORK>
|
|
85
|
+
func.skip = async () => true
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
39
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
40
|
+
if (!m) return o;
|
|
41
|
+
var i = m.call(o), r, ar = [], e;
|
|
42
|
+
try {
|
|
43
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
44
|
+
}
|
|
45
|
+
catch (error) { e = { error: error }; }
|
|
46
|
+
finally {
|
|
47
|
+
try {
|
|
48
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
49
|
+
}
|
|
50
|
+
finally { if (e) throw e.error; }
|
|
51
|
+
}
|
|
52
|
+
return ar;
|
|
53
|
+
};
|
|
54
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
+
var func = function (hre) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
57
|
+
var ethers, helpers, deployments, getNamedAccounts, get, _a, deployer, treasury, Bank, LightRelay, WalletRegistry, ReimbursementPool, txProofDifficultyFactor, Deposit, DepositSweep, Redemption, Wallets, Fraud, MovingFunds, _b, bridge, proxyDeployment, _c, _d, _e;
|
|
58
|
+
var _f, _g;
|
|
59
|
+
return __generator(this, function (_h) {
|
|
60
|
+
switch (_h.label) {
|
|
61
|
+
case 0:
|
|
62
|
+
ethers = hre.ethers, helpers = hre.helpers, deployments = hre.deployments, getNamedAccounts = hre.getNamedAccounts;
|
|
63
|
+
get = deployments.get;
|
|
64
|
+
return [4 /*yield*/, getNamedAccounts()];
|
|
65
|
+
case 1:
|
|
66
|
+
_a = _h.sent(), deployer = _a.deployer, treasury = _a.treasury;
|
|
67
|
+
return [4 /*yield*/, deployments.get("Bank")];
|
|
68
|
+
case 2:
|
|
69
|
+
Bank = _h.sent();
|
|
70
|
+
return [4 /*yield*/, deployments.get("LightRelay")];
|
|
71
|
+
case 3:
|
|
72
|
+
LightRelay = _h.sent();
|
|
73
|
+
return [4 /*yield*/, deployments.get("WalletRegistry")];
|
|
74
|
+
case 4:
|
|
75
|
+
WalletRegistry = _h.sent();
|
|
76
|
+
return [4 /*yield*/, deployments.get("ReimbursementPool")];
|
|
77
|
+
case 5:
|
|
78
|
+
ReimbursementPool = _h.sent();
|
|
79
|
+
txProofDifficultyFactor = 6;
|
|
80
|
+
return [4 /*yield*/, get("Deposit")];
|
|
81
|
+
case 6:
|
|
82
|
+
Deposit = _h.sent();
|
|
83
|
+
return [4 /*yield*/, get("DepositSweep")];
|
|
84
|
+
case 7:
|
|
85
|
+
DepositSweep = _h.sent();
|
|
86
|
+
return [4 /*yield*/, get("Redemption")];
|
|
87
|
+
case 8:
|
|
88
|
+
Redemption = _h.sent();
|
|
89
|
+
return [4 /*yield*/, get("Wallets")];
|
|
90
|
+
case 9:
|
|
91
|
+
Wallets = _h.sent();
|
|
92
|
+
return [4 /*yield*/, get("Fraud")];
|
|
93
|
+
case 10:
|
|
94
|
+
Fraud = _h.sent();
|
|
95
|
+
return [4 /*yield*/, get("MovingFunds")];
|
|
96
|
+
case 11:
|
|
97
|
+
MovingFunds = _h.sent();
|
|
98
|
+
_d = (_c = helpers.upgrades).upgradeProxy;
|
|
99
|
+
_e = ["Bridge",
|
|
100
|
+
"Bridge"];
|
|
101
|
+
_f = {
|
|
102
|
+
contractName: "Bridge",
|
|
103
|
+
initializerArgs: [
|
|
104
|
+
Bank.address,
|
|
105
|
+
LightRelay.address,
|
|
106
|
+
treasury,
|
|
107
|
+
WalletRegistry.address,
|
|
108
|
+
ReimbursementPool.address,
|
|
109
|
+
txProofDifficultyFactor,
|
|
110
|
+
]
|
|
111
|
+
};
|
|
112
|
+
_g = {};
|
|
113
|
+
return [4 /*yield*/, ethers.getSigner(deployer)];
|
|
114
|
+
case 12: return [4 /*yield*/, _d.apply(_c, _e.concat([(_f.factoryOpts = (_g.signer = _h.sent(),
|
|
115
|
+
_g.libraries = {
|
|
116
|
+
Deposit: Deposit.address,
|
|
117
|
+
DepositSweep: DepositSweep.address,
|
|
118
|
+
Redemption: Redemption.address,
|
|
119
|
+
Wallets: Wallets.address,
|
|
120
|
+
Fraud: Fraud.address,
|
|
121
|
+
MovingFunds: MovingFunds.address,
|
|
122
|
+
},
|
|
123
|
+
_g),
|
|
124
|
+
_f.proxyOpts = {
|
|
125
|
+
kind: "transparent",
|
|
126
|
+
// Allow external libraries linking. We need to ensure manually that the
|
|
127
|
+
// external libraries we link are upgrade safe, as the OpenZeppelin plugin
|
|
128
|
+
// doesn't perform such a validation yet.
|
|
129
|
+
// See: https://docs.openzeppelin.com/upgrades-plugins/1.x/faq#why-cant-i-use-external-libraries
|
|
130
|
+
unsafeAllow: ["external-library-linking"],
|
|
131
|
+
},
|
|
132
|
+
_f)]))];
|
|
133
|
+
case 13:
|
|
134
|
+
_b = __read.apply(void 0, [_h.sent(), 2]), bridge = _b[0], proxyDeployment = _b[1];
|
|
135
|
+
if (!hre.network.tags.etherscan) return [3 /*break*/, 15];
|
|
136
|
+
// We use `verify` instead of `verify:verify` as the `verify` task is defined
|
|
137
|
+
// in "@openzeppelin/hardhat-upgrades" to perform Etherscan verification
|
|
138
|
+
// of Proxy and Implementation contracts.
|
|
139
|
+
return [4 /*yield*/, hre.run("verify", {
|
|
140
|
+
address: proxyDeployment.address,
|
|
141
|
+
constructorArgsParams: proxyDeployment.args,
|
|
142
|
+
})];
|
|
143
|
+
case 14:
|
|
144
|
+
// We use `verify` instead of `verify:verify` as the `verify` task is defined
|
|
145
|
+
// in "@openzeppelin/hardhat-upgrades" to perform Etherscan verification
|
|
146
|
+
// of Proxy and Implementation contracts.
|
|
147
|
+
_h.sent();
|
|
148
|
+
_h.label = 15;
|
|
149
|
+
case 15:
|
|
150
|
+
if (!hre.network.tags.tenderly) return [3 /*break*/, 17];
|
|
151
|
+
return [4 /*yield*/, hre.tenderly.verify({
|
|
152
|
+
name: "Bridge",
|
|
153
|
+
address: bridge.address,
|
|
154
|
+
})];
|
|
155
|
+
case 16:
|
|
156
|
+
_h.sent();
|
|
157
|
+
_h.label = 17;
|
|
158
|
+
case 17: return [2 /*return*/];
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
exports.default = func;
|
|
164
|
+
func.tags = ["UpgradeBridge"];
|
|
165
|
+
// When running an upgrade uncomment the skip below and run the command:
|
|
166
|
+
// yarn deploy --tags UpgradeBridge --network <NETWORK>
|
|
167
|
+
func.skip = function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
168
|
+
return [2 /*return*/, true];
|
|
169
|
+
}); }); };
|
package/export/hardhat.config.js
CHANGED
|
@@ -104,7 +104,7 @@ var config = {
|
|
|
104
104
|
accounts: process.env.ACCOUNTS_PRIVATE_KEYS
|
|
105
105
|
? process.env.ACCOUNTS_PRIVATE_KEYS.split(",")
|
|
106
106
|
: undefined,
|
|
107
|
-
tags: ["
|
|
107
|
+
tags: ["tenderly"],
|
|
108
108
|
},
|
|
109
109
|
mainnet: {
|
|
110
110
|
url: process.env.CHAIN_API_URL || "",
|
|
@@ -164,39 +164,39 @@ var config = {
|
|
|
164
164
|
},
|
|
165
165
|
governance: {
|
|
166
166
|
default: 2,
|
|
167
|
-
goerli:
|
|
167
|
+
goerli: 0,
|
|
168
168
|
mainnet: "0x9f6e831c8f8939dc0c830c6e492e7cef4f9c2f5f", // Threshold Council
|
|
169
169
|
},
|
|
170
170
|
chaosnetOwner: {
|
|
171
171
|
default: 3,
|
|
172
|
-
goerli:
|
|
172
|
+
goerli: 0,
|
|
173
173
|
// Not used for mainnet deployment scripts of `@keepn-network/tbtc-v2`.
|
|
174
174
|
// Used by `@keep-network/random-beacon` and `@keep-network/ecdsa`
|
|
175
175
|
// when deploying `SortitionPool`s.
|
|
176
176
|
},
|
|
177
177
|
esdm: {
|
|
178
178
|
default: 4,
|
|
179
|
-
goerli:
|
|
179
|
+
goerli: 0,
|
|
180
180
|
mainnet: "0x9f6e831c8f8939dc0c830c6e492e7cef4f9c2f5f", // Threshold Council
|
|
181
181
|
},
|
|
182
182
|
keepTechnicalWalletTeam: {
|
|
183
183
|
default: 5,
|
|
184
|
-
goerli:
|
|
184
|
+
goerli: 0,
|
|
185
185
|
mainnet: "0xB3726E69Da808A689F2607939a2D9E958724FC2A",
|
|
186
186
|
},
|
|
187
187
|
keepCommunityMultiSig: {
|
|
188
188
|
default: 6,
|
|
189
|
-
goerli:
|
|
189
|
+
goerli: 0,
|
|
190
190
|
mainnet: "0x19FcB32347ff4656E4E6746b4584192D185d640d",
|
|
191
191
|
},
|
|
192
192
|
treasury: {
|
|
193
193
|
default: 7,
|
|
194
|
-
goerli:
|
|
194
|
+
goerli: 0,
|
|
195
195
|
mainnet: "0x87F005317692D05BAA4193AB0c961c69e175f45f", // Token Holder DAO
|
|
196
196
|
},
|
|
197
197
|
spvMaintainer: {
|
|
198
198
|
default: 8,
|
|
199
|
-
goerli:
|
|
199
|
+
goerli: 0,
|
|
200
200
|
// We are not setting SPV maintainer for mainnet in deployment scripts.
|
|
201
201
|
},
|
|
202
202
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keep-network/tbtc-v2",
|
|
3
|
-
"version": "1.0.1-dev.
|
|
3
|
+
"version": "1.0.1-dev.1+main.0c72e3d097a114b6ae4919139eb2ac054385da4f",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"files": [
|
|
6
6
|
"artifacts/",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@keep-network/bitcoin-spv-sol": "3.4.0-solc-0.8",
|
|
35
|
-
"@keep-network/ecdsa": "2.1.0-dev.
|
|
35
|
+
"@keep-network/ecdsa": "2.1.0-dev.6",
|
|
36
36
|
"@keep-network/random-beacon": "2.1.0-dev.5",
|
|
37
37
|
"@keep-network/tbtc": "1.1.2-dev.1",
|
|
38
38
|
"@openzeppelin/contracts": "^4.6.0",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@defi-wonderland/smock": "^2.3.4",
|
|
44
|
-
"@keep-network/hardhat-helpers": "
|
|
44
|
+
"@keep-network/hardhat-helpers": "0.6.0-pre.18",
|
|
45
45
|
"@keep-network/hardhat-local-networks-config": "^0.1.0-pre.4",
|
|
46
46
|
"@nomiclabs/hardhat-ethers": "^2.0.6",
|
|
47
47
|
"@nomiclabs/hardhat-etherscan": "^3.1.0",
|
|
48
48
|
"@nomiclabs/hardhat-waffle": "^2.0.2",
|
|
49
|
-
"@openzeppelin/hardhat-upgrades": "
|
|
49
|
+
"@openzeppelin/hardhat-upgrades": "1.22.0",
|
|
50
50
|
"@tenderly/hardhat-tenderly": ">=1.0.12 <1.2.0",
|
|
51
51
|
"@thesis-co/eslint-config": "github:thesis/eslint-config",
|
|
52
52
|
"@typechain/ethers-v5": "^8.0.5",
|