@keep-network/tbtc-v2 0.1.1-dev.52 → 0.1.1-dev.55

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 (68) hide show
  1. package/artifacts/Bank.json +3 -3
  2. package/artifacts/Bridge.json +293 -187
  3. package/artifacts/Deposit.json +7 -7
  4. package/artifacts/EcdsaDkgValidator.json +1 -1
  5. package/artifacts/EcdsaInactivity.json +1 -1
  6. package/artifacts/Fraud.json +10 -10
  7. package/artifacts/KeepRegistry.json +1 -1
  8. package/artifacts/KeepStake.json +2 -2
  9. package/artifacts/KeepToken.json +2 -2
  10. package/artifacts/KeepTokenStaking.json +1 -1
  11. package/artifacts/MovingFunds.json +13 -12
  12. package/artifacts/NuCypherStakingEscrow.json +1 -1
  13. package/artifacts/NuCypherToken.json +2 -2
  14. package/artifacts/RandomBeaconStub.json +1 -1
  15. package/artifacts/Redemption.json +14 -13
  16. package/artifacts/ReimbursementPool.json +2 -2
  17. package/artifacts/Relay.json +9 -9
  18. package/artifacts/SortitionPool.json +2 -2
  19. package/artifacts/Sweep.json +7 -7
  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 +9 -9
  32. package/artifacts/solcInputs/{dcf2fc19e497270603c798faeb0a9ba9.json → 6d69fc514efd874ebb1cb86b04981772.json} +7 -7
  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 +139 -65
  39. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  40. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +37 -13
  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/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  44. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  45. package/build/contracts/bridge/Fraud.sol/Fraud.json +2 -2
  46. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  47. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  48. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +2 -2
  49. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  50. package/build/contracts/bridge/Redemption.sol/OutboundTx.json +2 -2
  51. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  52. package/build/contracts/bridge/Redemption.sol/Redemption.json +2 -2
  53. package/build/contracts/bridge/Sweep.sol/Sweep.dbg.json +1 -1
  54. package/build/contracts/bridge/Sweep.sol/Sweep.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/Bridge.sol +147 -64
  62. package/contracts/bridge/BridgeState.sol +110 -47
  63. package/contracts/bridge/Fraud.sol +1 -1
  64. package/contracts/bridge/MovingFunds.sol +16 -3
  65. package/contracts/bridge/Redemption.sol +34 -12
  66. package/contracts/bridge/Wallets.sol +5 -9
  67. package/export.json +105 -44
  68. package/package.json +1 -1
package/export.json CHANGED
@@ -14207,16 +14207,10 @@
14207
14207
  {
14208
14208
  "anonymous": false,
14209
14209
  "inputs": [
14210
- {
14211
- "indexed": false,
14212
- "internalType": "uint96",
14213
- "name": "fraudSlashingAmount",
14214
- "type": "uint96"
14215
- },
14216
14210
  {
14217
14211
  "indexed": false,
14218
14212
  "internalType": "uint256",
14219
- "name": "fraudNotifierRewardMultiplier",
14213
+ "name": "fraudChallengeDepositAmount",
14220
14214
  "type": "uint256"
14221
14215
  },
14222
14216
  {
@@ -14225,10 +14219,16 @@
14225
14219
  "name": "fraudChallengeDefeatTimeout",
14226
14220
  "type": "uint256"
14227
14221
  },
14222
+ {
14223
+ "indexed": false,
14224
+ "internalType": "uint96",
14225
+ "name": "fraudSlashingAmount",
14226
+ "type": "uint96"
14227
+ },
14228
14228
  {
14229
14229
  "indexed": false,
14230
14230
  "internalType": "uint256",
14231
- "name": "fraudChallengeDepositAmount",
14231
+ "name": "fraudNotifierRewardMultiplier",
14232
14232
  "type": "uint256"
14233
14233
  }
14234
14234
  ],
@@ -14320,6 +14320,12 @@
14320
14320
  "name": "movingFundsTxMaxTotalFee",
14321
14321
  "type": "uint64"
14322
14322
  },
14323
+ {
14324
+ "indexed": false,
14325
+ "internalType": "uint64",
14326
+ "name": "movingFundsDustThreshold",
14327
+ "type": "uint64"
14328
+ },
14323
14329
  {
14324
14330
  "indexed": false,
14325
14331
  "internalType": "uint32",
@@ -14328,9 +14334,15 @@
14328
14334
  },
14329
14335
  {
14330
14336
  "indexed": false,
14331
- "internalType": "uint64",
14332
- "name": "movingFundsDustThreshold",
14333
- "type": "uint64"
14337
+ "internalType": "uint96",
14338
+ "name": "movingFundsTimeoutSlashingAmount",
14339
+ "type": "uint96"
14340
+ },
14341
+ {
14342
+ "indexed": false,
14343
+ "internalType": "uint256",
14344
+ "name": "movingFundsTimeoutNotifierRewardMultiplier",
14345
+ "type": "uint256"
14334
14346
  }
14335
14347
  ],
14336
14348
  "name": "MovingFundsParametersUpdated",
@@ -14400,6 +14412,18 @@
14400
14412
  "internalType": "uint256",
14401
14413
  "name": "redemptionTimeout",
14402
14414
  "type": "uint256"
14415
+ },
14416
+ {
14417
+ "indexed": false,
14418
+ "internalType": "uint96",
14419
+ "name": "redemptionTimeoutSlashingAmount",
14420
+ "type": "uint96"
14421
+ },
14422
+ {
14423
+ "indexed": false,
14424
+ "internalType": "uint256",
14425
+ "name": "redemptionTimeoutNotifierRewardMultiplier",
14426
+ "type": "uint256"
14403
14427
  }
14404
14428
  ],
14405
14429
  "name": "RedemptionParametersUpdated",
@@ -14854,14 +14878,9 @@
14854
14878
  "inputs": [],
14855
14879
  "name": "fraudParameters",
14856
14880
  "outputs": [
14857
- {
14858
- "internalType": "uint96",
14859
- "name": "fraudSlashingAmount",
14860
- "type": "uint96"
14861
- },
14862
14881
  {
14863
14882
  "internalType": "uint256",
14864
- "name": "fraudNotifierRewardMultiplier",
14883
+ "name": "fraudChallengeDepositAmount",
14865
14884
  "type": "uint256"
14866
14885
  },
14867
14886
  {
@@ -14869,9 +14888,14 @@
14869
14888
  "name": "fraudChallengeDefeatTimeout",
14870
14889
  "type": "uint256"
14871
14890
  },
14891
+ {
14892
+ "internalType": "uint96",
14893
+ "name": "fraudSlashingAmount",
14894
+ "type": "uint96"
14895
+ },
14872
14896
  {
14873
14897
  "internalType": "uint256",
14874
- "name": "fraudChallengeDepositAmount",
14898
+ "name": "fraudNotifierRewardMultiplier",
14875
14899
  "type": "uint256"
14876
14900
  }
14877
14901
  ],
@@ -14932,15 +14956,25 @@
14932
14956
  "name": "movingFundsTxMaxTotalFee",
14933
14957
  "type": "uint64"
14934
14958
  },
14959
+ {
14960
+ "internalType": "uint64",
14961
+ "name": "movingFundsDustThreshold",
14962
+ "type": "uint64"
14963
+ },
14935
14964
  {
14936
14965
  "internalType": "uint32",
14937
14966
  "name": "movingFundsTimeout",
14938
14967
  "type": "uint32"
14939
14968
  },
14940
14969
  {
14941
- "internalType": "uint64",
14942
- "name": "movingFundsDustThreshold",
14943
- "type": "uint64"
14970
+ "internalType": "uint96",
14971
+ "name": "movingFundsTimeoutSlashingAmount",
14972
+ "type": "uint96"
14973
+ },
14974
+ {
14975
+ "internalType": "uint256",
14976
+ "name": "movingFundsTimeoutNotifierRewardMultiplier",
14977
+ "type": "uint256"
14944
14978
  }
14945
14979
  ],
14946
14980
  "stateMutability": "view",
@@ -15045,6 +15079,11 @@
15045
15079
  "internalType": "bytes20",
15046
15080
  "name": "walletPubKeyHash",
15047
15081
  "type": "bytes20"
15082
+ },
15083
+ {
15084
+ "internalType": "uint32[]",
15085
+ "name": "walletMembersIDs",
15086
+ "type": "uint32[]"
15048
15087
  }
15049
15088
  ],
15050
15089
  "name": "notifyMovingFundsTimeout",
@@ -15059,6 +15098,11 @@
15059
15098
  "name": "walletPubKeyHash",
15060
15099
  "type": "bytes20"
15061
15100
  },
15101
+ {
15102
+ "internalType": "uint32[]",
15103
+ "name": "walletMembersIDs",
15104
+ "type": "uint32[]"
15105
+ },
15062
15106
  {
15063
15107
  "internalType": "bytes",
15064
15108
  "name": "redeemerOutputScript",
@@ -15152,6 +15196,16 @@
15152
15196
  "internalType": "uint256",
15153
15197
  "name": "redemptionTimeout",
15154
15198
  "type": "uint256"
15199
+ },
15200
+ {
15201
+ "internalType": "uint96",
15202
+ "name": "redemptionTimeoutSlashingAmount",
15203
+ "type": "uint96"
15204
+ },
15205
+ {
15206
+ "internalType": "uint256",
15207
+ "name": "redemptionTimeoutNotifierRewardMultiplier",
15208
+ "type": "uint256"
15155
15209
  }
15156
15210
  ],
15157
15211
  "stateMutability": "view",
@@ -16001,19 +16055,6 @@
16001
16055
  "stateMutability": "view",
16002
16056
  "type": "function"
16003
16057
  },
16004
- {
16005
- "inputs": [
16006
- {
16007
- "internalType": "bytes20",
16008
- "name": "walletPubKeyHash",
16009
- "type": "bytes20"
16010
- }
16011
- ],
16012
- "name": "unsetWalletMainUtxo",
16013
- "outputs": [],
16014
- "stateMutability": "nonpayable",
16015
- "type": "function"
16016
- },
16017
16058
  {
16018
16059
  "inputs": [
16019
16060
  {
@@ -16039,14 +16080,9 @@
16039
16080
  },
16040
16081
  {
16041
16082
  "inputs": [
16042
- {
16043
- "internalType": "uint96",
16044
- "name": "fraudSlashingAmount",
16045
- "type": "uint96"
16046
- },
16047
16083
  {
16048
16084
  "internalType": "uint256",
16049
- "name": "fraudNotifierRewardMultiplier",
16085
+ "name": "fraudChallengeDepositAmount",
16050
16086
  "type": "uint256"
16051
16087
  },
16052
16088
  {
@@ -16054,9 +16090,14 @@
16054
16090
  "name": "fraudChallengeDefeatTimeout",
16055
16091
  "type": "uint256"
16056
16092
  },
16093
+ {
16094
+ "internalType": "uint96",
16095
+ "name": "fraudSlashingAmount",
16096
+ "type": "uint96"
16097
+ },
16057
16098
  {
16058
16099
  "internalType": "uint256",
16059
- "name": "fraudChallengeDepositAmount",
16100
+ "name": "fraudNotifierRewardMultiplier",
16060
16101
  "type": "uint256"
16061
16102
  }
16062
16103
  ],
@@ -16072,15 +16113,25 @@
16072
16113
  "name": "movingFundsTxMaxTotalFee",
16073
16114
  "type": "uint64"
16074
16115
  },
16116
+ {
16117
+ "internalType": "uint64",
16118
+ "name": "movingFundsDustThreshold",
16119
+ "type": "uint64"
16120
+ },
16075
16121
  {
16076
16122
  "internalType": "uint32",
16077
16123
  "name": "movingFundsTimeout",
16078
16124
  "type": "uint32"
16079
16125
  },
16080
16126
  {
16081
- "internalType": "uint64",
16082
- "name": "movingFundsDustThreshold",
16083
- "type": "uint64"
16127
+ "internalType": "uint96",
16128
+ "name": "movingFundsTimeoutSlashingAmount",
16129
+ "type": "uint96"
16130
+ },
16131
+ {
16132
+ "internalType": "uint256",
16133
+ "name": "movingFundsTimeoutNotifierRewardMultiplier",
16134
+ "type": "uint256"
16084
16135
  }
16085
16136
  ],
16086
16137
  "name": "updateMovingFundsParameters",
@@ -16109,6 +16160,16 @@
16109
16160
  "internalType": "uint256",
16110
16161
  "name": "redemptionTimeout",
16111
16162
  "type": "uint256"
16163
+ },
16164
+ {
16165
+ "internalType": "uint96",
16166
+ "name": "redemptionTimeoutSlashingAmount",
16167
+ "type": "uint96"
16168
+ },
16169
+ {
16170
+ "internalType": "uint256",
16171
+ "name": "redemptionTimeoutNotifierRewardMultiplier",
16172
+ "type": "uint256"
16112
16173
  }
16113
16174
  ],
16114
16175
  "name": "updateRedemptionParameters",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keep-network/tbtc-v2",
3
- "version": "0.1.1-dev.52+main.e8e6fbac6b44cd97e21045dcf78ff9c682e14ca6",
3
+ "version": "0.1.1-dev.55+main.5583abebb8c63bbc57e523d90b6072ec4ffb5d3b",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "artifacts/",