@keep-network/tbtc-v2 1.0.0-dev.6 → 1.0.0

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.
Files changed (120) hide show
  1. package/artifacts/.chainId +1 -1
  2. package/artifacts/Bank.json +40 -50
  3. package/artifacts/Bridge.json +50 -431
  4. package/artifacts/BridgeGovernance.json +21 -21
  5. package/artifacts/BridgeGovernanceParameters.json +10 -10
  6. package/artifacts/Deposit.json +10 -10
  7. package/artifacts/DepositSweep.json +10 -10
  8. package/artifacts/DonationVault.json +14 -14
  9. package/artifacts/Fraud.json +10 -10
  10. package/artifacts/LightRelay.json +34 -34
  11. package/artifacts/MaintainerProxy.json +44 -44
  12. package/artifacts/MovingFunds.json +10 -10
  13. package/artifacts/Redemption.json +10 -10
  14. package/artifacts/TBTC.json +36 -37
  15. package/artifacts/TBTCVault.json +43 -43
  16. package/artifacts/VendingMachine.json +34 -35
  17. package/artifacts/Wallets.json +10 -10
  18. package/artifacts/solcInputs/7cc3eda3cb3ff2522d18b5e7b31ea228.json +102 -0
  19. package/artifacts/solcInputs/{79a96d1cf4af176d93e6844dc248dcff.json → 887fad6b16575ba42183543c324eeb0e.json} +1 -1
  20. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  21. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  22. package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
  23. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  24. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  25. package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
  26. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  27. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  28. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
  29. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  30. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  31. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
  32. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  33. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  34. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  35. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  36. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  37. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  38. package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
  39. package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
  40. package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
  41. package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
  42. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  43. package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
  44. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  45. package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
  46. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  47. package/deploy/06_deploy_bridge.ts +7 -0
  48. package/deploy/09_deploy_bridge_governance.ts +2 -0
  49. package/export/artifacts/@keep-network/ecdsa/contracts/EcdsaDkgValidator.sol/EcdsaDkgValidator.json +26 -26
  50. package/export/artifacts/@keep-network/ecdsa/contracts/WalletRegistry.sol/WalletRegistry.json +251 -251
  51. package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaDkg.sol/EcdsaDkg.json +2 -2
  52. package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaInactivity.sol/EcdsaInactivity.json +25 -25
  53. package/export/artifacts/@keep-network/random-beacon/contracts/ReimbursementPool.sol/ReimbursementPool.json +47 -47
  54. package/export/artifacts/@keep-network/sortition-pools/contracts/Chaosnet.sol/Chaosnet.json +21 -21
  55. package/export/artifacts/@keep-network/sortition-pools/contracts/Rewards.sol/Rewards.json +16 -16
  56. package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionPool.sol/SortitionPool.json +204 -204
  57. package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionTree.sol/SortitionTree.json +26 -26
  58. package/export/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json +42 -42
  59. package/export/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +34 -34
  60. package/export/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +74 -74
  61. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +62 -62
  62. package/export/artifacts/@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol/ERC20WithPermit.json +77 -77
  63. package/export/artifacts/@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol/MisfundRecovery.json +38 -38
  64. package/export/artifacts/contracts/bank/Bank.sol/Bank.json +75 -75
  65. package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +326 -326
  66. package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +104 -104
  67. package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +147 -147
  68. package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +74 -74
  69. package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +100 -100
  70. package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +19 -19
  71. package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +176 -176
  72. package/export/deploy/06_deploy_bridge.js +30 -8
  73. package/export/deploy/09_deploy_bridge_governance.js +11 -7
  74. package/export/hardhat.config.js +1 -0
  75. package/export/typechain/factories/WalletRegistry__factory.js +1 -1
  76. package/export.json +13069 -0
  77. package/package.json +6 -6
  78. package/artifacts/BLS.json +0 -223
  79. package/artifacts/BeaconAuthorization.json +0 -273
  80. package/artifacts/BeaconDkg.json +0 -241
  81. package/artifacts/BeaconDkgValidator.json +0 -501
  82. package/artifacts/BeaconInactivity.json +0 -151
  83. package/artifacts/BeaconSortitionPool.json +0 -1187
  84. package/artifacts/EcdsaDkgValidator.json +0 -517
  85. package/artifacts/EcdsaInactivity.json +0 -156
  86. package/artifacts/EcdsaSortitionPool.json +0 -1187
  87. package/artifacts/KeepRegistry.json +0 -99
  88. package/artifacts/KeepStake.json +0 -286
  89. package/artifacts/KeepToken.json +0 -711
  90. package/artifacts/KeepTokenStaking.json +0 -483
  91. package/artifacts/NuCypherStakingEscrow.json +0 -287
  92. package/artifacts/NuCypherToken.json +0 -711
  93. package/artifacts/RandomBeacon.json +0 -3271
  94. package/artifacts/RandomBeaconChaosnet.json +0 -252
  95. package/artifacts/RandomBeaconGovernance.json +0 -3499
  96. package/artifacts/ReimbursementPool.json +0 -509
  97. package/artifacts/T.json +0 -1148
  98. package/artifacts/TBTCToken.json +0 -738
  99. package/artifacts/TokenStaking.json +0 -2288
  100. package/artifacts/TokenholderGovernor.json +0 -1795
  101. package/artifacts/TokenholderTimelock.json +0 -1058
  102. package/artifacts/VendingMachineKeep.json +0 -400
  103. package/artifacts/VendingMachineNuCypher.json +0 -400
  104. package/artifacts/WalletRegistry.json +0 -1962
  105. package/artifacts/WalletRegistryGovernance.json +0 -2863
  106. package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +0 -11969
  107. package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +0 -51939
  108. package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +0 -11982
  109. package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +0 -822
  110. package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +0 -12723
  111. package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +0 -2160
  112. package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +0 -3407
  113. package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +0 -14257
  114. package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +0 -11816
  115. package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +0 -1160
  116. package/export/test/integration/data/bls.js +0 -12
  117. package/export/test/integration/data/integration.js +0 -133
  118. package/export/test/integration/utils/ecdsa-wallet-registry.js +0 -370
  119. package/export/test/integration/utils/random-beacon.js +0 -193
  120. package/export/test/integration/utils/staking.js +0 -83
@@ -647,33 +647,33 @@
647
647
  "evm": {
648
648
  "bytecode": {
649
649
  "functionDebugData": {
650
- "@_13267": {
650
+ "@_13269": {
651
651
  "entryPoint": null,
652
- "id": 13267,
652
+ "id": 13269,
653
653
  "parameterSlots": 0,
654
654
  "returnSlots": 0
655
655
  },
656
- "@_17974": {
656
+ "@_17976": {
657
657
  "entryPoint": null,
658
- "id": 17974,
658
+ "id": 17976,
659
659
  "parameterSlots": 0,
660
660
  "returnSlots": 0
661
661
  },
662
- "@_msgSender_15792": {
662
+ "@_msgSender_15794": {
663
663
  "entryPoint": null,
664
- "id": 15792,
664
+ "id": 15794,
665
665
  "parameterSlots": 0,
666
666
  "returnSlots": 1
667
667
  },
668
- "@_transferOwnership_13347": {
668
+ "@_transferOwnership_13349": {
669
669
  "entryPoint": 249,
670
- "id": 13347,
670
+ "id": 13349,
671
671
  "parameterSlots": 1,
672
672
  "returnSlots": 0
673
673
  },
674
- "@buildDomainSeparator_18608": {
674
+ "@buildDomainSeparator_18610": {
675
675
  "entryPoint": null,
676
- "id": 18608,
676
+ "id": 18610,
677
677
  "parameterSlots": 0,
678
678
  "returnSlots": 1
679
679
  },
@@ -1051,177 +1051,177 @@
1051
1051
  },
1052
1052
  "deployedBytecode": {
1053
1053
  "functionDebugData": {
1054
- "@DOMAIN_SEPARATOR_18448": {
1054
+ "@DOMAIN_SEPARATOR_18450": {
1055
1055
  "entryPoint": 1420,
1056
- "id": 18448,
1056
+ "id": 18450,
1057
1057
  "parameterSlots": 0,
1058
1058
  "returnSlots": 1
1059
1059
  },
1060
- "@PERMIT_TYPEHASH_17913": {
1060
+ "@PERMIT_TYPEHASH_17915": {
1061
1061
  "entryPoint": null,
1062
- "id": 17913,
1062
+ "id": 17915,
1063
1063
  "parameterSlots": 0,
1064
1064
  "returnSlots": 0
1065
1065
  },
1066
- "@_approveBalance_18575": {
1066
+ "@_approveBalance_18577": {
1067
1067
  "entryPoint": 4293,
1068
- "id": 18575,
1068
+ "id": 18577,
1069
1069
  "parameterSlots": 3,
1070
1070
  "returnSlots": 0
1071
1071
  },
1072
- "@_increaseBalance_18477": {
1072
+ "@_increaseBalance_18479": {
1073
1073
  "entryPoint": 4514,
1074
- "id": 18477,
1074
+ "id": 18479,
1075
1075
  "parameterSlots": 2,
1076
1076
  "returnSlots": 0
1077
1077
  },
1078
- "@_msgSender_15792": {
1078
+ "@_msgSender_15794": {
1079
1079
  "entryPoint": null,
1080
- "id": 15792,
1080
+ "id": 15794,
1081
1081
  "parameterSlots": 0,
1082
1082
  "returnSlots": 1
1083
1083
  },
1084
- "@_transferBalance_18541": {
1084
+ "@_transferBalance_18543": {
1085
1085
  "entryPoint": 4751,
1086
- "id": 18541,
1086
+ "id": 18543,
1087
1087
  "parameterSlots": 3,
1088
1088
  "returnSlots": 0
1089
1089
  },
1090
- "@_transferOwnership_13347": {
1090
+ "@_transferOwnership_13349": {
1091
1091
  "entryPoint": 5199,
1092
- "id": 13347,
1092
+ "id": 13349,
1093
1093
  "parameterSlots": 1,
1094
1094
  "returnSlots": 0
1095
1095
  },
1096
- "@allowance_17898": {
1096
+ "@allowance_17900": {
1097
1097
  "entryPoint": null,
1098
- "id": 17898,
1098
+ "id": 17900,
1099
1099
  "parameterSlots": 0,
1100
1100
  "returnSlots": 0
1101
1101
  },
1102
- "@approveBalanceAndCall_18077": {
1102
+ "@approveBalanceAndCall_18079": {
1103
1103
  "entryPoint": 2022,
1104
- "id": 18077,
1104
+ "id": 18079,
1105
1105
  "parameterSlots": 4,
1106
1106
  "returnSlots": 0
1107
1107
  },
1108
- "@approveBalance_18049": {
1108
+ "@approveBalance_18051": {
1109
1109
  "entryPoint": 1847,
1110
- "id": 18049,
1110
+ "id": 18051,
1111
1111
  "parameterSlots": 2,
1112
1112
  "returnSlots": 0
1113
1113
  },
1114
- "@balanceOf_17891": {
1114
+ "@balanceOf_17893": {
1115
1115
  "entryPoint": null,
1116
- "id": 17891,
1116
+ "id": 17893,
1117
1117
  "parameterSlots": 0,
1118
1118
  "returnSlots": 0
1119
1119
  },
1120
- "@bridge_17886": {
1120
+ "@bridge_17888": {
1121
1121
  "entryPoint": null,
1122
- "id": 17886,
1122
+ "id": 17888,
1123
1123
  "parameterSlots": 0,
1124
1124
  "returnSlots": 0
1125
1125
  },
1126
- "@buildDomainSeparator_18608": {
1126
+ "@buildDomainSeparator_18610": {
1127
1127
  "entryPoint": null,
1128
- "id": 18608,
1128
+ "id": 18610,
1129
1129
  "parameterSlots": 0,
1130
1130
  "returnSlots": 1
1131
1131
  },
1132
- "@cachedChainId_17905": {
1132
+ "@cachedChainId_17907": {
1133
1133
  "entryPoint": null,
1134
- "id": 17905,
1134
+ "id": 17907,
1135
1135
  "parameterSlots": 0,
1136
1136
  "returnSlots": 0
1137
1137
  },
1138
- "@cachedDomainSeparator_17907": {
1138
+ "@cachedDomainSeparator_17909": {
1139
1139
  "entryPoint": null,
1140
- "id": 17907,
1140
+ "id": 17909,
1141
1141
  "parameterSlots": 0,
1142
1142
  "returnSlots": 0
1143
1143
  },
1144
- "@decreaseBalanceAllowance_18135": {
1144
+ "@decreaseBalanceAllowance_18137": {
1145
1145
  "entryPoint": 966,
1146
- "id": 18135,
1146
+ "id": 18137,
1147
1147
  "parameterSlots": 2,
1148
1148
  "returnSlots": 0
1149
1149
  },
1150
- "@decreaseBalance_18429": {
1150
+ "@decreaseBalance_18431": {
1151
1151
  "entryPoint": 1755,
1152
- "id": 18429,
1152
+ "id": 18431,
1153
1153
  "parameterSlots": 1,
1154
1154
  "returnSlots": 0
1155
1155
  },
1156
- "@increaseBalanceAllowance_18100": {
1156
+ "@increaseBalanceAllowance_18102": {
1157
1157
  "entryPoint": 2275,
1158
- "id": 18100,
1158
+ "id": 18102,
1159
1159
  "parameterSlots": 2,
1160
1160
  "returnSlots": 0
1161
1161
  },
1162
- "@increaseBalanceAndCall_18409": {
1162
+ "@increaseBalanceAndCall_18411": {
1163
1163
  "entryPoint": 2902,
1164
- "id": 18409,
1164
+ "id": 18411,
1165
1165
  "parameterSlots": 5,
1166
1166
  "returnSlots": 0
1167
1167
  },
1168
- "@increaseBalance_18349": {
1168
+ "@increaseBalance_18351": {
1169
1169
  "entryPoint": 2175,
1170
- "id": 18349,
1170
+ "id": 18351,
1171
1171
  "parameterSlots": 2,
1172
1172
  "returnSlots": 0
1173
1173
  },
1174
- "@increaseBalances_18333": {
1174
+ "@increaseBalances_18335": {
1175
1175
  "entryPoint": 1143,
1176
- "id": 18333,
1176
+ "id": 18335,
1177
1177
  "parameterSlots": 4,
1178
1178
  "returnSlots": 0
1179
1179
  },
1180
- "@nonces_17903": {
1180
+ "@nonces_17905": {
1181
1181
  "entryPoint": null,
1182
- "id": 17903,
1182
+ "id": 17905,
1183
1183
  "parameterSlots": 0,
1184
1184
  "returnSlots": 0
1185
1185
  },
1186
- "@owner_13276": {
1186
+ "@owner_13278": {
1187
1187
  "entryPoint": null,
1188
- "id": 13276,
1188
+ "id": 13278,
1189
1189
  "parameterSlots": 0,
1190
1190
  "returnSlots": 1
1191
1191
  },
1192
- "@permit_18289": {
1192
+ "@permit_18291": {
1193
1193
  "entryPoint": 3283,
1194
- "id": 18289,
1194
+ "id": 18291,
1195
1195
  "parameterSlots": 7,
1196
1196
  "returnSlots": 0
1197
1197
  },
1198
- "@renounceOwnership_13304": {
1198
+ "@renounceOwnership_13306": {
1199
1199
  "entryPoint": 2607,
1200
- "id": 13304,
1200
+ "id": 13306,
1201
1201
  "parameterSlots": 0,
1202
1202
  "returnSlots": 0
1203
1203
  },
1204
- "@transferBalanceFrom_18187": {
1204
+ "@transferBalanceFrom_18189": {
1205
1205
  "entryPoint": 2709,
1206
- "id": 18187,
1206
+ "id": 18189,
1207
1207
  "parameterSlots": 3,
1208
1208
  "returnSlots": 0
1209
1209
  },
1210
- "@transferBalance_18017": {
1210
+ "@transferBalance_18019": {
1211
1211
  "entryPoint": 2164,
1212
- "id": 18017,
1212
+ "id": 18019,
1213
1213
  "parameterSlots": 2,
1214
1214
  "returnSlots": 0
1215
1215
  },
1216
- "@transferOwnership_13327": {
1216
+ "@transferOwnership_13329": {
1217
1217
  "entryPoint": 4067,
1218
- "id": 13327,
1218
+ "id": 13329,
1219
1219
  "parameterSlots": 1,
1220
1220
  "returnSlots": 0
1221
1221
  },
1222
- "@updateBridge_18001": {
1222
+ "@updateBridge_18003": {
1223
1223
  "entryPoint": 2334,
1224
- "id": 18001,
1224
+ "id": 18003,
1225
1225
  "parameterSlots": 1,
1226
1226
  "returnSlots": 0
1227
1227
  },
@@ -11736,7 +11736,7 @@
11736
11736
  }
11737
11737
  ],
11738
11738
  "immutableReferences": {
11739
- "17905": [
11739
+ "17907": [
11740
11740
  {
11741
11741
  "length": 32,
11742
11742
  "start": 686
@@ -11746,7 +11746,7 @@
11746
11746
  "start": 1424
11747
11747
  }
11748
11748
  ],
11749
- "17907": [
11749
+ "17909": [
11750
11750
  {
11751
11751
  "length": 32,
11752
11752
  "start": 813
@@ -11829,7 +11829,7 @@
11829
11829
  "storageLayout": {
11830
11830
  "storage": [
11831
11831
  {
11832
- "astId": 13251,
11832
+ "astId": 13253,
11833
11833
  "contract": "contracts/bank/Bank.sol:Bank",
11834
11834
  "label": "_owner",
11835
11835
  "offset": 0,
@@ -11837,7 +11837,7 @@
11837
11837
  "type": "t_address"
11838
11838
  },
11839
11839
  {
11840
- "astId": 17886,
11840
+ "astId": 17888,
11841
11841
  "contract": "contracts/bank/Bank.sol:Bank",
11842
11842
  "label": "bridge",
11843
11843
  "offset": 0,
@@ -11845,7 +11845,7 @@
11845
11845
  "type": "t_address"
11846
11846
  },
11847
11847
  {
11848
- "astId": 17891,
11848
+ "astId": 17893,
11849
11849
  "contract": "contracts/bank/Bank.sol:Bank",
11850
11850
  "label": "balanceOf",
11851
11851
  "offset": 0,
@@ -11853,7 +11853,7 @@
11853
11853
  "type": "t_mapping(t_address,t_uint256)"
11854
11854
  },
11855
11855
  {
11856
- "astId": 17898,
11856
+ "astId": 17900,
11857
11857
  "contract": "contracts/bank/Bank.sol:Bank",
11858
11858
  "label": "allowance",
11859
11859
  "offset": 0,
@@ -11861,7 +11861,7 @@
11861
11861
  "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))"
11862
11862
  },
11863
11863
  {
11864
- "astId": 17903,
11864
+ "astId": 17905,
11865
11865
  "contract": "contracts/bank/Bank.sol:Bank",
11866
11866
  "label": "nonces",
11867
11867
  "offset": 0,