@keep-network/tbtc-v2 0.1.1-dev.95 → 0.1.1-dev.98

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 (74) hide show
  1. package/artifacts/Bank.json +8 -8
  2. package/artifacts/Bridge.json +57 -57
  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 +9 -9
  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 +9 -9
  33. package/artifacts/solcInputs/{b1eed895af5ae97fee0102eb17dac6e6.json → becdd5668a2170e95004d124119e4fcb.json} +10 -10
  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 +103 -103
  41. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  42. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +2 -2
  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 +72 -39
  66. package/contracts/bridge/Bridge.sol +14 -14
  67. package/contracts/bridge/BridgeState.sol +83 -75
  68. package/contracts/bridge/DepositSweep.sol +3 -0
  69. package/contracts/bridge/Fraud.sol +7 -32
  70. package/contracts/bridge/MovingFunds.sol +41 -53
  71. package/contracts/bridge/Redemption.sol +143 -108
  72. package/contracts/bridge/Wallets.sol +309 -143
  73. package/export.json +44 -44
  74. package/package.json +2 -2
package/export.json CHANGED
@@ -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
  ],
@@ -15267,38 +15267,6 @@
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": "uint64",
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": "uint64",
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
  ],
@@ -16252,7 +16252,7 @@
16252
16252
  "name": "movedFundsSweepTimeoutSlashingAmount"
16253
16253
  },
16254
16254
  {
16255
- "type": "uint256",
16255
+ "type": "uint64",
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": "uint64",
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": "uint64",
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.95+main.00440add2a00f642060730db489fce654a71e3f6",
3
+ "version": "0.1.1-dev.98+main.f6402ddc3a00709426dc87405c889b433f8aef6b",
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",