@keep-network/tbtc-v2 0.1.1-dev.48 → 0.1.1-dev.50

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 (67) hide show
  1. package/artifacts/Bank.json +34 -24
  2. package/artifacts/Bridge.json +490 -165
  3. package/artifacts/Deposit.json +9 -9
  4. package/artifacts/EcdsaDkgValidator.json +1 -1
  5. package/artifacts/EcdsaInactivity.json +1 -1
  6. package/artifacts/Fraud.json +7 -7
  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 +32 -9
  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 +9 -9
  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 +9 -9
  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/{f49989846c3f5df5088d1ac309787c24.json → b0c3ed0992bd570aaaee717425c37538.json} +3 -3
  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 +109 -32
  39. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  40. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +8 -2
  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 +15 -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 +54 -5
  62. package/contracts/bridge/BridgeState.sol +25 -3
  63. package/contracts/bridge/MovingFunds.sol +45 -0
  64. package/deploy/04_deploy_bank.ts +2 -0
  65. package/deploy/05_deploy_bridge.ts +5 -1
  66. package/export.json +347 -6
  67. package/package.json +1 -1
package/export.json CHANGED
@@ -13012,11 +13012,6 @@
13012
13012
  "Bank": {
13013
13013
  "address": "0xAd5d57aD9bB17d34Debb88566ab2F5dB879Cc46F",
13014
13014
  "abi": [
13015
- {
13016
- "inputs": [],
13017
- "stateMutability": "nonpayable",
13018
- "type": "constructor"
13019
- },
13020
13015
  {
13021
13016
  "anonymous": false,
13022
13017
  "inputs": [
@@ -13471,6 +13466,24 @@
13471
13466
  "stateMutability": "nonpayable",
13472
13467
  "type": "function"
13473
13468
  },
13469
+ {
13470
+ "inputs": [
13471
+ {
13472
+ "internalType": "address",
13473
+ "name": "addr",
13474
+ "type": "address"
13475
+ },
13476
+ {
13477
+ "internalType": "uint256",
13478
+ "name": "amount",
13479
+ "type": "uint256"
13480
+ }
13481
+ ],
13482
+ "name": "setBalance",
13483
+ "outputs": [],
13484
+ "stateMutability": "nonpayable",
13485
+ "type": "function"
13486
+ },
13474
13487
  {
13475
13488
  "inputs": [
13476
13489
  {
@@ -13905,6 +13918,19 @@
13905
13918
  "MovingFunds": {
13906
13919
  "address": "0x1a6a3e7Bb246158dF31d8f924B84D961669Ba4e5",
13907
13920
  "abi": [
13921
+ {
13922
+ "anonymous": false,
13923
+ "inputs": [
13924
+ {
13925
+ "indexed": false,
13926
+ "internalType": "bytes20",
13927
+ "name": "walletPubKeyHash",
13928
+ "type": "bytes20"
13929
+ }
13930
+ ],
13931
+ "name": "MovingFundsBelowDustReported",
13932
+ "type": "event"
13933
+ },
13908
13934
  {
13909
13935
  "anonymous": false,
13910
13936
  "inputs": [
@@ -13986,7 +14012,7 @@
13986
14012
  },
13987
14013
  {
13988
14014
  "internalType": "address",
13989
- "name": "_ecdsaWalletRegistry",
14015
+ "name": "_walletRegistry",
13990
14016
  "type": "address"
13991
14017
  },
13992
14018
  {
@@ -14228,6 +14254,19 @@
14228
14254
  "name": "GovernanceTransferred",
14229
14255
  "type": "event"
14230
14256
  },
14257
+ {
14258
+ "anonymous": false,
14259
+ "inputs": [
14260
+ {
14261
+ "indexed": false,
14262
+ "internalType": "bytes20",
14263
+ "name": "walletPubKeyHash",
14264
+ "type": "bytes20"
14265
+ }
14266
+ ],
14267
+ "name": "MovingFundsBelowDustReported",
14268
+ "type": "event"
14269
+ },
14231
14270
  {
14232
14271
  "anonymous": false,
14233
14272
  "inputs": [
@@ -14286,6 +14325,12 @@
14286
14325
  "internalType": "uint32",
14287
14326
  "name": "movingFundsTimeout",
14288
14327
  "type": "uint32"
14328
+ },
14329
+ {
14330
+ "indexed": false,
14331
+ "internalType": "uint64",
14332
+ "name": "movingFundsDustThreshold",
14333
+ "type": "uint64"
14289
14334
  }
14290
14335
  ],
14291
14336
  "name": "MovingFundsParametersUpdated",
@@ -14651,6 +14696,11 @@
14651
14696
  "internalType": "contract IRelay",
14652
14697
  "name": "relay",
14653
14698
  "type": "address"
14699
+ },
14700
+ {
14701
+ "internalType": "contract IWalletRegistry",
14702
+ "name": "ecdsaWalletRegistry",
14703
+ "type": "address"
14654
14704
  }
14655
14705
  ],
14656
14706
  "stateMutability": "view",
@@ -14880,6 +14930,11 @@
14880
14930
  "internalType": "uint32",
14881
14931
  "name": "movingFundsTimeout",
14882
14932
  "type": "uint32"
14933
+ },
14934
+ {
14935
+ "internalType": "uint64",
14936
+ "name": "movingFundsDustThreshold",
14937
+ "type": "uint64"
14883
14938
  }
14884
14939
  ],
14885
14940
  "stateMutability": "view",
@@ -14938,6 +14993,41 @@
14938
14993
  "stateMutability": "nonpayable",
14939
14994
  "type": "function"
14940
14995
  },
14996
+ {
14997
+ "inputs": [
14998
+ {
14999
+ "internalType": "bytes20",
15000
+ "name": "walletPubKeyHash",
15001
+ "type": "bytes20"
15002
+ },
15003
+ {
15004
+ "components": [
15005
+ {
15006
+ "internalType": "bytes32",
15007
+ "name": "txHash",
15008
+ "type": "bytes32"
15009
+ },
15010
+ {
15011
+ "internalType": "uint32",
15012
+ "name": "txOutputIndex",
15013
+ "type": "uint32"
15014
+ },
15015
+ {
15016
+ "internalType": "uint64",
15017
+ "name": "txOutputValue",
15018
+ "type": "uint64"
15019
+ }
15020
+ ],
15021
+ "internalType": "struct BitcoinTx.UTXO",
15022
+ "name": "mainUtxo",
15023
+ "type": "tuple"
15024
+ }
15025
+ ],
15026
+ "name": "notifyMovingFundsBelowDust",
15027
+ "outputs": [],
15028
+ "stateMutability": "nonpayable",
15029
+ "type": "function"
15030
+ },
14941
15031
  {
14942
15032
  "inputs": [
14943
15033
  {
@@ -15208,6 +15298,144 @@
15208
15298
  "stateMutability": "nonpayable",
15209
15299
  "type": "function"
15210
15300
  },
15301
+ {
15302
+ "inputs": [
15303
+ {
15304
+ "internalType": "bytes20",
15305
+ "name": "activeWalletPubKeyHash",
15306
+ "type": "bytes20"
15307
+ }
15308
+ ],
15309
+ "name": "setActiveWallet",
15310
+ "outputs": [],
15311
+ "stateMutability": "nonpayable",
15312
+ "type": "function"
15313
+ },
15314
+ {
15315
+ "inputs": [
15316
+ {
15317
+ "internalType": "uint64",
15318
+ "name": "_depositDustThreshold",
15319
+ "type": "uint64"
15320
+ }
15321
+ ],
15322
+ "name": "setDepositDustThreshold",
15323
+ "outputs": [],
15324
+ "stateMutability": "nonpayable",
15325
+ "type": "function"
15326
+ },
15327
+ {
15328
+ "inputs": [
15329
+ {
15330
+ "internalType": "uint64",
15331
+ "name": "_depositTxMaxFee",
15332
+ "type": "uint64"
15333
+ }
15334
+ ],
15335
+ "name": "setDepositTxMaxFee",
15336
+ "outputs": [],
15337
+ "stateMutability": "nonpayable",
15338
+ "type": "function"
15339
+ },
15340
+ {
15341
+ "inputs": [
15342
+ {
15343
+ "internalType": "uint64",
15344
+ "name": "_movingFundsTxMaxTotalFee",
15345
+ "type": "uint64"
15346
+ }
15347
+ ],
15348
+ "name": "setMovingFundsTxMaxTotalFee",
15349
+ "outputs": [],
15350
+ "stateMutability": "nonpayable",
15351
+ "type": "function"
15352
+ },
15353
+ {
15354
+ "inputs": [
15355
+ {
15356
+ "internalType": "uint64",
15357
+ "name": "_redemptionDustThreshold",
15358
+ "type": "uint64"
15359
+ }
15360
+ ],
15361
+ "name": "setRedemptionDustThreshold",
15362
+ "outputs": [],
15363
+ "stateMutability": "nonpayable",
15364
+ "type": "function"
15365
+ },
15366
+ {
15367
+ "inputs": [
15368
+ {
15369
+ "internalType": "uint64",
15370
+ "name": "_redemptionTreasuryFeeDivisor",
15371
+ "type": "uint64"
15372
+ }
15373
+ ],
15374
+ "name": "setRedemptionTreasuryFeeDivisor",
15375
+ "outputs": [],
15376
+ "stateMutability": "nonpayable",
15377
+ "type": "function"
15378
+ },
15379
+ {
15380
+ "inputs": [
15381
+ {
15382
+ "components": [
15383
+ {
15384
+ "internalType": "bytes32",
15385
+ "name": "txHash",
15386
+ "type": "bytes32"
15387
+ },
15388
+ {
15389
+ "internalType": "uint32",
15390
+ "name": "txOutputIndex",
15391
+ "type": "uint32"
15392
+ },
15393
+ {
15394
+ "internalType": "uint64",
15395
+ "name": "txOutputValue",
15396
+ "type": "uint64"
15397
+ }
15398
+ ],
15399
+ "internalType": "struct BitcoinTx.UTXO[]",
15400
+ "name": "utxos",
15401
+ "type": "tuple[]"
15402
+ }
15403
+ ],
15404
+ "name": "setSpentMainUtxos",
15405
+ "outputs": [],
15406
+ "stateMutability": "nonpayable",
15407
+ "type": "function"
15408
+ },
15409
+ {
15410
+ "inputs": [
15411
+ {
15412
+ "components": [
15413
+ {
15414
+ "internalType": "bytes32",
15415
+ "name": "txHash",
15416
+ "type": "bytes32"
15417
+ },
15418
+ {
15419
+ "internalType": "uint32",
15420
+ "name": "txOutputIndex",
15421
+ "type": "uint32"
15422
+ },
15423
+ {
15424
+ "internalType": "uint64",
15425
+ "name": "txOutputValue",
15426
+ "type": "uint64"
15427
+ }
15428
+ ],
15429
+ "internalType": "struct BitcoinTx.UTXO[]",
15430
+ "name": "utxos",
15431
+ "type": "tuple[]"
15432
+ }
15433
+ ],
15434
+ "name": "setSweptDeposits",
15435
+ "outputs": [],
15436
+ "stateMutability": "nonpayable",
15437
+ "type": "function"
15438
+ },
15211
15439
  {
15212
15440
  "inputs": [
15213
15441
  {
@@ -15226,6 +15454,101 @@
15226
15454
  "stateMutability": "nonpayable",
15227
15455
  "type": "function"
15228
15456
  },
15457
+ {
15458
+ "inputs": [
15459
+ {
15460
+ "internalType": "bytes20",
15461
+ "name": "walletPubKeyHash",
15462
+ "type": "bytes20"
15463
+ },
15464
+ {
15465
+ "components": [
15466
+ {
15467
+ "internalType": "bytes32",
15468
+ "name": "ecdsaWalletID",
15469
+ "type": "bytes32"
15470
+ },
15471
+ {
15472
+ "internalType": "bytes32",
15473
+ "name": "mainUtxoHash",
15474
+ "type": "bytes32"
15475
+ },
15476
+ {
15477
+ "internalType": "uint64",
15478
+ "name": "pendingRedemptionsValue",
15479
+ "type": "uint64"
15480
+ },
15481
+ {
15482
+ "internalType": "uint32",
15483
+ "name": "createdAt",
15484
+ "type": "uint32"
15485
+ },
15486
+ {
15487
+ "internalType": "uint32",
15488
+ "name": "movingFundsRequestedAt",
15489
+ "type": "uint32"
15490
+ },
15491
+ {
15492
+ "internalType": "uint32",
15493
+ "name": "closingStartedAt",
15494
+ "type": "uint32"
15495
+ },
15496
+ {
15497
+ "internalType": "enum Wallets.WalletState",
15498
+ "name": "state",
15499
+ "type": "uint8"
15500
+ },
15501
+ {
15502
+ "internalType": "bytes32",
15503
+ "name": "movingFundsTargetWalletsCommitmentHash",
15504
+ "type": "bytes32"
15505
+ }
15506
+ ],
15507
+ "internalType": "struct Wallets.Wallet",
15508
+ "name": "wallet",
15509
+ "type": "tuple"
15510
+ }
15511
+ ],
15512
+ "name": "setWallet",
15513
+ "outputs": [],
15514
+ "stateMutability": "nonpayable",
15515
+ "type": "function"
15516
+ },
15517
+ {
15518
+ "inputs": [
15519
+ {
15520
+ "internalType": "bytes20",
15521
+ "name": "walletPubKeyHash",
15522
+ "type": "bytes20"
15523
+ },
15524
+ {
15525
+ "components": [
15526
+ {
15527
+ "internalType": "bytes32",
15528
+ "name": "txHash",
15529
+ "type": "bytes32"
15530
+ },
15531
+ {
15532
+ "internalType": "uint32",
15533
+ "name": "txOutputIndex",
15534
+ "type": "uint32"
15535
+ },
15536
+ {
15537
+ "internalType": "uint64",
15538
+ "name": "txOutputValue",
15539
+ "type": "uint64"
15540
+ }
15541
+ ],
15542
+ "internalType": "struct BitcoinTx.UTXO",
15543
+ "name": "utxo",
15544
+ "type": "tuple"
15545
+ }
15546
+ ],
15547
+ "name": "setWalletMainUtxo",
15548
+ "outputs": [],
15549
+ "stateMutability": "nonpayable",
15550
+ "type": "function"
15551
+ },
15229
15552
  {
15230
15553
  "inputs": [
15231
15554
  {
@@ -15667,6 +15990,19 @@
15667
15990
  "stateMutability": "view",
15668
15991
  "type": "function"
15669
15992
  },
15993
+ {
15994
+ "inputs": [
15995
+ {
15996
+ "internalType": "bytes20",
15997
+ "name": "walletPubKeyHash",
15998
+ "type": "bytes20"
15999
+ }
16000
+ ],
16001
+ "name": "unsetWalletMainUtxo",
16002
+ "outputs": [],
16003
+ "stateMutability": "nonpayable",
16004
+ "type": "function"
16005
+ },
15670
16006
  {
15671
16007
  "inputs": [
15672
16008
  {
@@ -15729,6 +16065,11 @@
15729
16065
  "internalType": "uint32",
15730
16066
  "name": "movingFundsTimeout",
15731
16067
  "type": "uint32"
16068
+ },
16069
+ {
16070
+ "internalType": "uint64",
16071
+ "name": "movingFundsDustThreshold",
16072
+ "type": "uint64"
15732
16073
  }
15733
16074
  ],
15734
16075
  "name": "updateMovingFundsParameters",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keep-network/tbtc-v2",
3
- "version": "0.1.1-dev.48+main.bb15e798df28cd67fe9df8837506dbd870e03217",
3
+ "version": "0.1.1-dev.50+main.be1a82c36de1dec44892320529fb7fd152294f33",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "artifacts/",