@keep-network/tbtc-v2 0.1.1-dev.96 → 0.1.1-dev.99

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 (73) hide show
  1. package/artifacts/Bank.json +8 -8
  2. package/artifacts/Bridge.json +67 -67
  3. package/artifacts/Deposit.json +9 -9
  4. package/artifacts/DepositSweep.json +9 -9
  5. package/artifacts/EcdsaDkgValidator.json +1 -1
  6. package/artifacts/EcdsaInactivity.json +1 -1
  7. package/artifacts/EcdsaSortitionPool.json +2 -2
  8. package/artifacts/Fraud.json +9 -9
  9. package/artifacts/KeepRegistry.json +1 -1
  10. package/artifacts/KeepStake.json +2 -2
  11. package/artifacts/KeepToken.json +2 -2
  12. package/artifacts/KeepTokenStaking.json +1 -1
  13. package/artifacts/MovingFunds.json +9 -9
  14. package/artifacts/NuCypherStakingEscrow.json +1 -1
  15. package/artifacts/NuCypherToken.json +2 -2
  16. package/artifacts/RandomBeaconStub.json +1 -1
  17. package/artifacts/Redemption.json +10 -10
  18. package/artifacts/ReimbursementPool.json +2 -2
  19. package/artifacts/Relay.json +9 -9
  20. package/artifacts/T.json +2 -2
  21. package/artifacts/TBTC.json +10 -10
  22. package/artifacts/TBTCToken.json +10 -10
  23. package/artifacts/TBTCVault.json +15 -15
  24. package/artifacts/TokenStaking.json +1 -1
  25. package/artifacts/TokenholderGovernor.json +9 -9
  26. package/artifacts/TokenholderTimelock.json +8 -8
  27. package/artifacts/VendingMachine.json +11 -11
  28. package/artifacts/VendingMachineKeep.json +1 -1
  29. package/artifacts/VendingMachineNuCypher.json +1 -1
  30. package/artifacts/WalletRegistry.json +5 -5
  31. package/artifacts/WalletRegistryGovernance.json +2 -2
  32. package/artifacts/Wallets.json +11 -11
  33. package/artifacts/solcInputs/{3cf46a7694ce157f71d9dbf4db692b09.json → 5334fac3c976c2a5cd9bc3d6190e35c4.json} +9 -9
  34. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  35. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  36. package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
  37. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  38. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +2 -2
  39. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  40. package/build/contracts/bridge/Bridge.sol/Bridge.json +123 -123
  41. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  42. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +16 -16
  43. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  44. package/build/contracts/bridge/Deposit.sol/Deposit.json +2 -2
  45. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
  46. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +2 -2
  47. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  48. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  49. package/build/contracts/bridge/Fraud.sol/Fraud.json +2 -2
  50. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
  51. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  52. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  53. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +2 -2
  54. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  55. package/build/contracts/bridge/Redemption.sol/OutboundTx.json +2 -2
  56. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  57. package/build/contracts/bridge/Redemption.sol/Redemption.json +2 -2
  58. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  59. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  60. package/build/contracts/bridge/Wallets.sol/Wallets.json +2 -2
  61. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  62. package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
  63. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  64. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  65. package/contracts/bridge/BitcoinTx.sol +74 -39
  66. package/contracts/bridge/Bridge.sol +31 -31
  67. package/contracts/bridge/BridgeState.sol +100 -84
  68. package/contracts/bridge/Fraud.sol +7 -32
  69. package/contracts/bridge/MovingFunds.sol +18 -51
  70. package/contracts/bridge/Redemption.sol +95 -76
  71. package/contracts/bridge/Wallets.sol +309 -143
  72. package/export.json +54 -54
  73. package/package.json +2 -2
package/export.json CHANGED
@@ -14371,12 +14371,12 @@
14371
14371
  "name": "FraudParametersUpdated",
14372
14372
  "inputs": [
14373
14373
  {
14374
- "type": "uint256",
14374
+ "type": "uint96",
14375
14375
  "name": "fraudChallengeDepositAmount",
14376
14376
  "indexed": false
14377
14377
  },
14378
14378
  {
14379
- "type": "uint256",
14379
+ "type": "uint32",
14380
14380
  "name": "fraudChallengeDefeatTimeout",
14381
14381
  "indexed": false
14382
14382
  },
@@ -14386,7 +14386,7 @@
14386
14386
  "indexed": false
14387
14387
  },
14388
14388
  {
14389
- "type": "uint256",
14389
+ "type": "uint32",
14390
14390
  "name": "fraudNotifierRewardMultiplier",
14391
14391
  "indexed": false
14392
14392
  }
@@ -14542,7 +14542,7 @@
14542
14542
  "indexed": false
14543
14543
  },
14544
14544
  {
14545
- "type": "uint256",
14545
+ "type": "uint32",
14546
14546
  "name": "movingFundsTimeoutNotifierRewardMultiplier",
14547
14547
  "indexed": false
14548
14548
  },
@@ -14562,7 +14562,7 @@
14562
14562
  "indexed": false
14563
14563
  },
14564
14564
  {
14565
- "type": "uint256",
14565
+ "type": "uint32",
14566
14566
  "name": "movedFundsSweepTimeoutNotifierRewardMultiplier",
14567
14567
  "indexed": false
14568
14568
  }
@@ -14636,7 +14636,7 @@
14636
14636
  "indexed": false
14637
14637
  },
14638
14638
  {
14639
- "type": "uint256",
14639
+ "type": "uint32",
14640
14640
  "name": "redemptionTimeout",
14641
14641
  "indexed": false
14642
14642
  },
@@ -14646,7 +14646,7 @@
14646
14646
  "indexed": false
14647
14647
  },
14648
14648
  {
14649
- "type": "uint256",
14649
+ "type": "uint32",
14650
14650
  "name": "redemptionTimeoutNotifierRewardMultiplier",
14651
14651
  "indexed": false
14652
14652
  }
@@ -15085,11 +15085,11 @@
15085
15085
  "inputs": [],
15086
15086
  "outputs": [
15087
15087
  {
15088
- "type": "uint256",
15088
+ "type": "uint96",
15089
15089
  "name": "fraudChallengeDepositAmount"
15090
15090
  },
15091
15091
  {
15092
- "type": "uint256",
15092
+ "type": "uint32",
15093
15093
  "name": "fraudChallengeDefeatTimeout"
15094
15094
  },
15095
15095
  {
@@ -15097,7 +15097,7 @@
15097
15097
  "name": "fraudSlashingAmount"
15098
15098
  },
15099
15099
  {
15100
- "type": "uint256",
15100
+ "type": "uint32",
15101
15101
  "name": "fraudNotifierRewardMultiplier"
15102
15102
  }
15103
15103
  ]
@@ -15140,7 +15140,7 @@
15140
15140
  "name": "_ecdsaWalletRegistry"
15141
15141
  },
15142
15142
  {
15143
- "type": "uint256",
15143
+ "type": "uint96",
15144
15144
  "name": "_txProofDifficultyFactor"
15145
15145
  }
15146
15146
  ],
@@ -15246,7 +15246,7 @@
15246
15246
  "name": "movingFundsTimeoutSlashingAmount"
15247
15247
  },
15248
15248
  {
15249
- "type": "uint256",
15249
+ "type": "uint32",
15250
15250
  "name": "movingFundsTimeoutNotifierRewardMultiplier"
15251
15251
  },
15252
15252
  {
@@ -15262,43 +15262,11 @@
15262
15262
  "name": "movedFundsSweepTimeoutSlashingAmount"
15263
15263
  },
15264
15264
  {
15265
- "type": "uint256",
15265
+ "type": "uint32",
15266
15266
  "name": "movedFundsSweepTimeoutNotifierRewardMultiplier"
15267
15267
  }
15268
15268
  ]
15269
15269
  },
15270
- {
15271
- "type": "function",
15272
- "name": "notifyCloseableWallet",
15273
- "constant": false,
15274
- "payable": false,
15275
- "gas": 29000000,
15276
- "inputs": [
15277
- {
15278
- "type": "bytes20",
15279
- "name": "walletPubKeyHash"
15280
- },
15281
- {
15282
- "type": "tuple",
15283
- "name": "walletMainUtxo",
15284
- "components": [
15285
- {
15286
- "type": "bytes32",
15287
- "name": "txHash"
15288
- },
15289
- {
15290
- "type": "uint32",
15291
- "name": "txOutputIndex"
15292
- },
15293
- {
15294
- "type": "uint64",
15295
- "name": "txOutputValue"
15296
- }
15297
- ]
15298
- }
15299
- ],
15300
- "outputs": []
15301
- },
15302
15270
  {
15303
15271
  "type": "function",
15304
15272
  "name": "notifyFraudChallengeDefeatTimeout",
@@ -15415,6 +15383,38 @@
15415
15383
  ],
15416
15384
  "outputs": []
15417
15385
  },
15386
+ {
15387
+ "type": "function",
15388
+ "name": "notifyWalletCloseable",
15389
+ "constant": false,
15390
+ "payable": false,
15391
+ "gas": 29000000,
15392
+ "inputs": [
15393
+ {
15394
+ "type": "bytes20",
15395
+ "name": "walletPubKeyHash"
15396
+ },
15397
+ {
15398
+ "type": "tuple",
15399
+ "name": "walletMainUtxo",
15400
+ "components": [
15401
+ {
15402
+ "type": "bytes32",
15403
+ "name": "txHash"
15404
+ },
15405
+ {
15406
+ "type": "uint32",
15407
+ "name": "txOutputIndex"
15408
+ },
15409
+ {
15410
+ "type": "uint64",
15411
+ "name": "txOutputValue"
15412
+ }
15413
+ ]
15414
+ }
15415
+ ],
15416
+ "outputs": []
15417
+ },
15418
15418
  {
15419
15419
  "type": "function",
15420
15420
  "name": "notifyWalletClosingPeriodElapsed",
@@ -15514,7 +15514,7 @@
15514
15514
  "name": "redemptionTxMaxFee"
15515
15515
  },
15516
15516
  {
15517
- "type": "uint256",
15517
+ "type": "uint32",
15518
15518
  "name": "redemptionTimeout"
15519
15519
  },
15520
15520
  {
@@ -15522,7 +15522,7 @@
15522
15522
  "name": "redemptionTimeoutSlashingAmount"
15523
15523
  },
15524
15524
  {
15525
- "type": "uint256",
15525
+ "type": "uint32",
15526
15526
  "name": "redemptionTimeoutNotifierRewardMultiplier"
15527
15527
  }
15528
15528
  ]
@@ -16190,11 +16190,11 @@
16190
16190
  "gas": 29000000,
16191
16191
  "inputs": [
16192
16192
  {
16193
- "type": "uint256",
16193
+ "type": "uint96",
16194
16194
  "name": "fraudChallengeDepositAmount"
16195
16195
  },
16196
16196
  {
16197
- "type": "uint256",
16197
+ "type": "uint32",
16198
16198
  "name": "fraudChallengeDefeatTimeout"
16199
16199
  },
16200
16200
  {
@@ -16202,7 +16202,7 @@
16202
16202
  "name": "fraudSlashingAmount"
16203
16203
  },
16204
16204
  {
16205
- "type": "uint256",
16205
+ "type": "uint32",
16206
16206
  "name": "fraudNotifierRewardMultiplier"
16207
16207
  }
16208
16208
  ],
@@ -16236,7 +16236,7 @@
16236
16236
  "name": "movingFundsTimeoutSlashingAmount"
16237
16237
  },
16238
16238
  {
16239
- "type": "uint256",
16239
+ "type": "uint32",
16240
16240
  "name": "movingFundsTimeoutNotifierRewardMultiplier"
16241
16241
  },
16242
16242
  {
@@ -16252,7 +16252,7 @@
16252
16252
  "name": "movedFundsSweepTimeoutSlashingAmount"
16253
16253
  },
16254
16254
  {
16255
- "type": "uint256",
16255
+ "type": "uint32",
16256
16256
  "name": "movedFundsSweepTimeoutNotifierRewardMultiplier"
16257
16257
  }
16258
16258
  ],
@@ -16278,7 +16278,7 @@
16278
16278
  "name": "redemptionTxMaxFee"
16279
16279
  },
16280
16280
  {
16281
- "type": "uint256",
16281
+ "type": "uint32",
16282
16282
  "name": "redemptionTimeout"
16283
16283
  },
16284
16284
  {
@@ -16286,7 +16286,7 @@
16286
16286
  "name": "redemptionTimeoutSlashingAmount"
16287
16287
  },
16288
16288
  {
16289
- "type": "uint256",
16289
+ "type": "uint32",
16290
16290
  "name": "redemptionTimeoutNotifierRewardMultiplier"
16291
16291
  }
16292
16292
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keep-network/tbtc-v2",
3
- "version": "0.1.1-dev.96+main.5131d26731c4fd456a3943a2d889d7356624a67d",
3
+ "version": "0.1.1-dev.99+main.c478e89661909b419e54eb84d05ecfb7689112d8",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "artifacts/",
@@ -27,7 +27,7 @@
27
27
  "prepublishOnly": "./scripts/prepare-artifacts.sh --network $npm_config_network"
28
28
  },
29
29
  "dependencies": {
30
- "@keep-network/bitcoin-spv-sol": "3.3.0-solc-0.8",
30
+ "@keep-network/bitcoin-spv-sol": "3.4.0-solc-0.8",
31
31
  "@keep-network/ecdsa": "development",
32
32
  "@keep-network/random-beacon": "development",
33
33
  "@keep-network/tbtc": ">1.1.2-dev <1.1.2-pre",