@keep-network/tbtc-v2 0.1.1-dev.116 → 0.1.1-dev.117

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 (116) hide show
  1. package/README.adoc +2 -0
  2. package/artifacts/BLS.json +1 -1
  3. package/artifacts/Bank.json +3 -3
  4. package/artifacts/BeaconAuthorization.json +1 -1
  5. package/artifacts/BeaconDkg.json +1 -1
  6. package/artifacts/BeaconDkgValidator.json +1 -1
  7. package/artifacts/BeaconInactivity.json +1 -1
  8. package/artifacts/BeaconSortitionPool.json +3 -3
  9. package/artifacts/Bridge.json +5 -5
  10. package/artifacts/BridgeGovernance.json +9 -9
  11. package/artifacts/BridgeGovernanceParameters.json +2 -2
  12. package/artifacts/Deposit.json +7 -7
  13. package/artifacts/DepositSweep.json +7 -7
  14. package/artifacts/EcdsaDkgValidator.json +1 -1
  15. package/artifacts/EcdsaInactivity.json +1 -1
  16. package/artifacts/EcdsaSortitionPool.json +3 -3
  17. package/artifacts/Fraud.json +9 -9
  18. package/artifacts/KeepRegistry.json +1 -1
  19. package/artifacts/KeepStake.json +2 -2
  20. package/artifacts/KeepToken.json +2 -2
  21. package/artifacts/KeepTokenStaking.json +1 -1
  22. package/artifacts/LightRelay.json +18 -18
  23. package/artifacts/MaintainerProxy.json +27 -27
  24. package/artifacts/MovingFunds.json +7 -7
  25. package/artifacts/NuCypherStakingEscrow.json +1 -1
  26. package/artifacts/NuCypherToken.json +2 -2
  27. package/artifacts/RandomBeacon.json +2 -2
  28. package/artifacts/RandomBeaconGovernance.json +2 -2
  29. package/artifacts/Redemption.json +7 -7
  30. package/artifacts/ReimbursementPool.json +2 -2
  31. package/artifacts/T.json +2 -2
  32. package/artifacts/TBTC.json +3 -3
  33. package/artifacts/TBTCToken.json +3 -3
  34. package/artifacts/TBTCVault.json +9 -9
  35. package/artifacts/TokenStaking.json +1 -1
  36. package/artifacts/TokenholderGovernor.json +9 -9
  37. package/artifacts/TokenholderTimelock.json +8 -8
  38. package/artifacts/VendingMachine.json +10 -10
  39. package/artifacts/VendingMachineKeep.json +1 -1
  40. package/artifacts/VendingMachineNuCypher.json +1 -1
  41. package/artifacts/WalletRegistry.json +5 -5
  42. package/artifacts/WalletRegistryGovernance.json +2 -2
  43. package/artifacts/Wallets.json +7 -7
  44. package/artifacts/solcInputs/{f7ff7ddc42064d2c40854232bbcd5f1b.json → 4a21395909809a22013f000fefe93743.json} +2 -2
  45. package/artifacts/solcInputs/{1e4e6f55e5e99c9d7cfbefc01a506a21.json → 9218fe35b2e73ed11dd7662e700e5add.json} +2 -2
  46. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  47. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  48. package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
  49. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  50. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +2 -2
  51. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  52. package/build/contracts/bridge/Bridge.sol/Bridge.json +2 -2
  53. package/build/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.dbg.json +1 -1
  54. package/build/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.json +2 -2
  55. package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
  56. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  57. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +2 -2
  58. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  59. package/build/contracts/bridge/Deposit.sol/Deposit.json +2 -2
  60. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
  61. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +2 -2
  62. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  63. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  64. package/build/contracts/bridge/Fraud.sol/Fraud.json +2 -2
  65. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
  66. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  67. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  68. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +2 -2
  69. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  70. package/build/contracts/bridge/Redemption.sol/OutboundTx.json +2 -2
  71. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  72. package/build/contracts/bridge/Redemption.sol/Redemption.json +2 -2
  73. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  74. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  75. package/build/contracts/bridge/Wallets.sol/Wallets.json +2 -2
  76. package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
  77. package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2 -2
  78. package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
  79. package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
  80. package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
  81. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  82. package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
  83. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  84. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  85. package/contracts/bridge/Bridge.sol +5 -2
  86. package/contracts/bridge/BridgeState.sol +2 -12
  87. package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +1282 -1744
  88. package/export/artifacts/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.json +5 -5
  89. package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +67 -67
  90. package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +93 -93
  91. package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +57 -57
  92. package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +2 -2
  93. package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +1333 -1795
  94. package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +4 -4
  95. package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +59 -59
  96. package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +7 -7
  97. package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +6 -6
  98. package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +8 -8
  99. package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +4 -4
  100. package/export/artifacts/contracts/test/TestRelay.sol/TestRelay.json +19 -19
  101. package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2 -2
  102. package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +11 -11
  103. package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +54 -54
  104. package/export/typechain/factories/BridgeGovernance__factory.js +1 -1
  105. package/export/typechain/factories/BridgeState__factory.js +1 -1
  106. package/export/typechain/factories/BridgeStub__factory.js +1 -1
  107. package/export/typechain/factories/Bridge__factory.js +1 -1
  108. package/export/typechain/factories/DepositSweep__factory.js +1 -1
  109. package/export/typechain/factories/Deposit__factory.js +1 -1
  110. package/export/typechain/factories/Fraud__factory.js +1 -1
  111. package/export/typechain/factories/MaintainerProxy__factory.js +1 -1
  112. package/export/typechain/factories/MovingFunds__factory.js +1 -1
  113. package/export/typechain/factories/Redemption__factory.js +1 -1
  114. package/export/typechain/factories/TestRelay__factory.js +1 -1
  115. package/export/typechain/factories/Wallets__factory.js +1 -1
  116. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f8c925357ac5ac294cb98489cc005025.json"
3
+ "buildInfo": "../../../build-info/29bf0584d473b505001700119a70d71a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f8c925357ac5ac294cb98489cc005025.json"
3
+ "buildInfo": "../../../build-info/29bf0584d473b505001700119a70d71a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f8c925357ac5ac294cb98489cc005025.json"
3
+ "buildInfo": "../../../build-info/29bf0584d473b505001700119a70d71a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f8c925357ac5ac294cb98489cc005025.json"
3
+ "buildInfo": "../../../build-info/29bf0584d473b505001700119a70d71a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f8c925357ac5ac294cb98489cc005025.json"
3
+ "buildInfo": "../../../build-info/29bf0584d473b505001700119a70d71a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f8c925357ac5ac294cb98489cc005025.json"
3
+ "buildInfo": "../../../build-info/29bf0584d473b505001700119a70d71a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f8c925357ac5ac294cb98489cc005025.json"
3
+ "buildInfo": "../../../build-info/29bf0584d473b505001700119a70d71a.json"
4
4
  }
@@ -1240,7 +1240,7 @@ contract Bridge is
1240
1240
  /// deposit refund locktime.
1241
1241
  /// @dev Requirements:
1242
1242
  /// - Deposit dust threshold must be greater than zero,
1243
- /// - Deposit treasury fee divisor must be greater than zero,
1243
+ /// - Deposit dust threshold must be greater than deposit TX max fee,
1244
1244
  /// - Deposit transaction max fee must be greater than zero.
1245
1245
  function updateDepositParameters(
1246
1246
  uint64 depositDustThreshold,
@@ -1302,8 +1302,11 @@ contract Bridge is
1302
1302
  /// @dev Requirements:
1303
1303
  /// - Redemption dust threshold must be greater than moving funds dust
1304
1304
  /// threshold,
1305
- /// - Redemption treasury fee divisor must be greater than zero,
1305
+ /// - Redemption dust threshold must be greater than the redemption TX
1306
+ /// max fee,
1306
1307
  /// - Redemption transaction max fee must be greater than zero,
1308
+ /// - Redemption transaction max total fee must be greater than or
1309
+ /// equal to the redemption transaction per-request max fee,
1307
1310
  /// - Redemption timeout must be greater than zero,
1308
1311
  /// - Redemption timeout notifier reward multiplier must be in the
1309
1312
  /// range [0, 100].
@@ -399,7 +399,6 @@ library BridgeState {
399
399
  /// @dev Requirements:
400
400
  /// - Deposit dust threshold must be greater than zero,
401
401
  /// - Deposit dust threshold must be greater than deposit TX max fee,
402
- /// - Deposit treasury fee divisor must be greater than zero,
403
402
  /// - Deposit transaction max fee must be greater than zero.
404
403
  function updateDepositParameters(
405
404
  Storage storage self,
@@ -418,11 +417,6 @@ library BridgeState {
418
417
  "Deposit dust threshold must be greater than deposit TX max fee"
419
418
  );
420
419
 
421
- require(
422
- _depositTreasuryFeeDivisor > 0,
423
- "Deposit treasury fee divisor must be greater than zero"
424
- );
425
-
426
420
  require(
427
421
  _depositTxMaxFee > 0,
428
422
  "Deposit transaction max fee must be greater than zero"
@@ -489,8 +483,9 @@ library BridgeState {
489
483
  /// threshold,
490
484
  /// - Redemption dust threshold must be greater than the redemption TX
491
485
  /// max fee,
492
- /// - Redemption treasury fee divisor must be greater than zero,
493
486
  /// - Redemption transaction max fee must be greater than zero,
487
+ /// - Redemption transaction max total fee must be greater than or
488
+ /// equal to the redemption transaction per-request max fee,
494
489
  /// - Redemption timeout must be greater than zero,
495
490
  /// - Redemption timeout notifier reward multiplier must be in the
496
491
  /// range [0, 100].
@@ -514,11 +509,6 @@ library BridgeState {
514
509
  "Redemption dust threshold must be greater than redemption TX max fee"
515
510
  );
516
511
 
517
- require(
518
- _redemptionTreasuryFeeDivisor > 0,
519
- "Redemption treasury fee divisor must be greater than zero"
520
- );
521
-
522
512
  require(
523
513
  _redemptionTxMaxFee > 0,
524
514
  "Redemption transaction max fee must be greater than zero"