@keep-network/tbtc-v2 0.1.1-dev.53 → 0.1.1-dev.56

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 (72) hide show
  1. package/artifacts/Bank.json +3 -3
  2. package/artifacts/Bridge.json +626 -254
  3. package/artifacts/Deposit.json +7 -7
  4. package/artifacts/DepositSweep.json +76 -0
  5. package/artifacts/EcdsaDkgValidator.json +1 -1
  6. package/artifacts/EcdsaInactivity.json +1 -1
  7. package/artifacts/Fraud.json +8 -8
  8. package/artifacts/KeepRegistry.json +1 -1
  9. package/artifacts/KeepStake.json +2 -2
  10. package/artifacts/KeepToken.json +2 -2
  11. package/artifacts/KeepTokenStaking.json +1 -1
  12. package/artifacts/MovingFunds.json +44 -13
  13. package/artifacts/NuCypherStakingEscrow.json +1 -1
  14. package/artifacts/NuCypherToken.json +2 -2
  15. package/artifacts/RandomBeaconStub.json +1 -1
  16. package/artifacts/Redemption.json +11 -11
  17. package/artifacts/ReimbursementPool.json +2 -2
  18. package/artifacts/Relay.json +9 -9
  19. package/artifacts/SortitionPool.json +2 -2
  20. package/artifacts/T.json +2 -2
  21. package/artifacts/TBTC.json +3 -3
  22. package/artifacts/TBTCToken.json +3 -3
  23. package/artifacts/TokenStaking.json +1 -1
  24. package/artifacts/TokenholderGovernor.json +9 -9
  25. package/artifacts/TokenholderTimelock.json +8 -8
  26. package/artifacts/VendingMachine.json +10 -10
  27. package/artifacts/VendingMachineKeep.json +1 -1
  28. package/artifacts/VendingMachineNuCypher.json +1 -1
  29. package/artifacts/WalletRegistry.json +2 -2
  30. package/artifacts/WalletRegistryGovernance.json +2 -2
  31. package/artifacts/Wallets.json +7 -7
  32. package/artifacts/solcInputs/{fa22a04615b4037761340d27e55c86ee.json → 5dd2a7c685770548b7ea9ce25e179326.json} +11 -11
  33. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  34. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  35. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  36. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +2 -2
  37. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  38. package/build/contracts/bridge/Bridge.sol/Bridge.json +328 -128
  39. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  40. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +29 -11
  41. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  42. package/build/contracts/bridge/Deposit.sol/Deposit.json +2 -2
  43. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +4 -0
  44. package/build/contracts/bridge/{Sweep.sol/Sweep.json → DepositSweep.sol/DepositSweep.json} +4 -4
  45. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  46. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  47. package/build/contracts/bridge/Fraud.sol/Fraud.json +2 -2
  48. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  49. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  50. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +21 -2
  51. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  52. package/build/contracts/bridge/Redemption.sol/OutboundTx.json +2 -2
  53. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  54. package/build/contracts/bridge/Redemption.sol/Redemption.json +2 -2
  55. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  56. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  57. package/build/contracts/bridge/Wallets.sol/Wallets.json +2 -2
  58. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  59. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  60. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  61. package/contracts/bridge/BitcoinTx.sol +69 -0
  62. package/contracts/bridge/Bridge.sol +176 -55
  63. package/contracts/bridge/BridgeState.sol +107 -44
  64. package/contracts/bridge/{Sweep.sol → DepositSweep.sol} +30 -18
  65. package/contracts/bridge/Fraud.sol +1 -1
  66. package/contracts/bridge/MovingFunds.sol +485 -79
  67. package/contracts/bridge/Redemption.sol +4 -4
  68. package/deploy/05_deploy_bridge.ts +5 -2
  69. package/export.json +375 -94
  70. package/package.json +1 -1
  71. package/artifacts/Sweep.json +0 -76
  72. package/build/contracts/bridge/Sweep.sol/Sweep.dbg.json +0 -4
@@ -771,10 +771,10 @@ library Redemption {
771
771
  /// - the tokens taken from the redeemer on redemption request will
772
772
  /// be returned to the redeemer,
773
773
  /// - the request will be moved from pending redemptions to
774
- /// timed-out redemptions.
774
+ /// timed-out redemptions,
775
775
  /// - if the state of the wallet is `Live` or `MovingFunds`, the
776
776
  /// wallet operators will be slashed and the notifier will be
777
- /// rewarded
777
+ /// rewarded,
778
778
  /// - if the state of wallet is `Live`, the wallet will be closed or
779
779
  /// marked as `MovingFunds` (depending on the presence or absence
780
780
  /// of the wallet's main UTXO) and the wallet will no longer be
@@ -792,10 +792,10 @@ library Redemption {
792
792
  /// for the given `walletID`. Those IDs are not directly stored
793
793
  /// in the contract for gas efficiency purposes but they can be
794
794
  /// read from appropriate `DkgResultSubmitted` and `DkgResultApproved`
795
- /// events.
795
+ /// events of the `WalletRegistry` contract
796
796
  /// - The amount of time defined by `redemptionTimeout` must have
797
797
  /// passed since the redemption was requested (the request must be
798
- /// timed-out).
798
+ /// timed-out)
799
799
  function notifyRedemptionTimeout(
800
800
  BridgeState.Storage storage self,
801
801
  bytes20 walletPubKeyHash,
@@ -19,7 +19,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
19
19
  deployments.getNetworkName() === "hardhat" ? 1 : 6
20
20
 
21
21
  const Deposit = await deploy("Deposit", { from: deployer, log: true })
22
- const Sweep = await deploy("Sweep", { from: deployer, log: true })
22
+ const DepositSweep = await deploy("DepositSweep", {
23
+ from: deployer,
24
+ log: true,
25
+ })
23
26
  const Redemption = await deploy("Redemption", { from: deployer, log: true })
24
27
  const Wallets = await deploy("Wallets", { from: deployer, log: true })
25
28
  const Fraud = await deploy("Fraud", { from: deployer, log: true })
@@ -41,7 +44,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
41
44
  ],
42
45
  libraries: {
43
46
  Deposit: Deposit.address,
44
- Sweep: Sweep.address,
47
+ DepositSweep: DepositSweep.address,
45
48
  Redemption: Redemption.address,
46
49
  Wallets: Wallets.address,
47
50
  Fraud: Fraud.address,