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

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 (56) hide show
  1. package/artifacts/Bank.json +34 -24
  2. package/artifacts/Bridge.json +402 -153
  3. package/artifacts/Deposit.json +4 -4
  4. package/artifacts/EcdsaDkgValidator.json +1 -1
  5. package/artifacts/EcdsaInactivity.json +1 -1
  6. package/artifacts/Fraud.json +4 -4
  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 +4 -4
  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 +4 -4
  16. package/artifacts/ReimbursementPool.json +2 -2
  17. package/artifacts/Relay.json +11 -11
  18. package/artifacts/SortitionPool.json +2 -2
  19. package/artifacts/Sweep.json +4 -4
  20. package/artifacts/T.json +2 -2
  21. package/artifacts/TBTC.json +6 -6
  22. package/artifacts/TBTCToken.json +6 -6
  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 +13 -13
  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 +4 -4
  32. package/artifacts/solcInputs/{f49989846c3f5df5088d1ac309787c24.json → 8c8e22c3576c135e48bf2abb6045923d.json} +1 -1
  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/Bridge.sol/Bridge.dbg.json +1 -1
  37. package/build/contracts/bridge/Bridge.sol/Bridge.json +37 -32
  38. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  39. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  40. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  41. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  42. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  43. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  44. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  45. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  46. package/build/contracts/bridge/Sweep.sol/Sweep.dbg.json +1 -1
  47. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  48. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  49. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  50. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  51. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  52. package/contracts/bridge/Bridge.sol +7 -1
  53. package/deploy/04_deploy_bank.ts +2 -0
  54. package/deploy/05_deploy_bridge.ts +5 -1
  55. package/export.json +270 -6
  56. 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
  {
@@ -13986,7 +13999,7 @@
13986
13999
  },
13987
14000
  {
13988
14001
  "internalType": "address",
13989
- "name": "_ecdsaWalletRegistry",
14002
+ "name": "_walletRegistry",
13990
14003
  "type": "address"
13991
14004
  },
13992
14005
  {
@@ -14651,6 +14664,11 @@
14651
14664
  "internalType": "contract IRelay",
14652
14665
  "name": "relay",
14653
14666
  "type": "address"
14667
+ },
14668
+ {
14669
+ "internalType": "contract IWalletRegistry",
14670
+ "name": "ecdsaWalletRegistry",
14671
+ "type": "address"
14654
14672
  }
14655
14673
  ],
14656
14674
  "stateMutability": "view",
@@ -15208,6 +15226,144 @@
15208
15226
  "stateMutability": "nonpayable",
15209
15227
  "type": "function"
15210
15228
  },
15229
+ {
15230
+ "inputs": [
15231
+ {
15232
+ "internalType": "bytes20",
15233
+ "name": "activeWalletPubKeyHash",
15234
+ "type": "bytes20"
15235
+ }
15236
+ ],
15237
+ "name": "setActiveWallet",
15238
+ "outputs": [],
15239
+ "stateMutability": "nonpayable",
15240
+ "type": "function"
15241
+ },
15242
+ {
15243
+ "inputs": [
15244
+ {
15245
+ "internalType": "uint64",
15246
+ "name": "_depositDustThreshold",
15247
+ "type": "uint64"
15248
+ }
15249
+ ],
15250
+ "name": "setDepositDustThreshold",
15251
+ "outputs": [],
15252
+ "stateMutability": "nonpayable",
15253
+ "type": "function"
15254
+ },
15255
+ {
15256
+ "inputs": [
15257
+ {
15258
+ "internalType": "uint64",
15259
+ "name": "_depositTxMaxFee",
15260
+ "type": "uint64"
15261
+ }
15262
+ ],
15263
+ "name": "setDepositTxMaxFee",
15264
+ "outputs": [],
15265
+ "stateMutability": "nonpayable",
15266
+ "type": "function"
15267
+ },
15268
+ {
15269
+ "inputs": [
15270
+ {
15271
+ "internalType": "uint64",
15272
+ "name": "_movingFundsTxMaxTotalFee",
15273
+ "type": "uint64"
15274
+ }
15275
+ ],
15276
+ "name": "setMovingFundsTxMaxTotalFee",
15277
+ "outputs": [],
15278
+ "stateMutability": "nonpayable",
15279
+ "type": "function"
15280
+ },
15281
+ {
15282
+ "inputs": [
15283
+ {
15284
+ "internalType": "uint64",
15285
+ "name": "_redemptionDustThreshold",
15286
+ "type": "uint64"
15287
+ }
15288
+ ],
15289
+ "name": "setRedemptionDustThreshold",
15290
+ "outputs": [],
15291
+ "stateMutability": "nonpayable",
15292
+ "type": "function"
15293
+ },
15294
+ {
15295
+ "inputs": [
15296
+ {
15297
+ "internalType": "uint64",
15298
+ "name": "_redemptionTreasuryFeeDivisor",
15299
+ "type": "uint64"
15300
+ }
15301
+ ],
15302
+ "name": "setRedemptionTreasuryFeeDivisor",
15303
+ "outputs": [],
15304
+ "stateMutability": "nonpayable",
15305
+ "type": "function"
15306
+ },
15307
+ {
15308
+ "inputs": [
15309
+ {
15310
+ "components": [
15311
+ {
15312
+ "internalType": "bytes32",
15313
+ "name": "txHash",
15314
+ "type": "bytes32"
15315
+ },
15316
+ {
15317
+ "internalType": "uint32",
15318
+ "name": "txOutputIndex",
15319
+ "type": "uint32"
15320
+ },
15321
+ {
15322
+ "internalType": "uint64",
15323
+ "name": "txOutputValue",
15324
+ "type": "uint64"
15325
+ }
15326
+ ],
15327
+ "internalType": "struct BitcoinTx.UTXO[]",
15328
+ "name": "utxos",
15329
+ "type": "tuple[]"
15330
+ }
15331
+ ],
15332
+ "name": "setSpentMainUtxos",
15333
+ "outputs": [],
15334
+ "stateMutability": "nonpayable",
15335
+ "type": "function"
15336
+ },
15337
+ {
15338
+ "inputs": [
15339
+ {
15340
+ "components": [
15341
+ {
15342
+ "internalType": "bytes32",
15343
+ "name": "txHash",
15344
+ "type": "bytes32"
15345
+ },
15346
+ {
15347
+ "internalType": "uint32",
15348
+ "name": "txOutputIndex",
15349
+ "type": "uint32"
15350
+ },
15351
+ {
15352
+ "internalType": "uint64",
15353
+ "name": "txOutputValue",
15354
+ "type": "uint64"
15355
+ }
15356
+ ],
15357
+ "internalType": "struct BitcoinTx.UTXO[]",
15358
+ "name": "utxos",
15359
+ "type": "tuple[]"
15360
+ }
15361
+ ],
15362
+ "name": "setSweptDeposits",
15363
+ "outputs": [],
15364
+ "stateMutability": "nonpayable",
15365
+ "type": "function"
15366
+ },
15211
15367
  {
15212
15368
  "inputs": [
15213
15369
  {
@@ -15226,6 +15382,101 @@
15226
15382
  "stateMutability": "nonpayable",
15227
15383
  "type": "function"
15228
15384
  },
15385
+ {
15386
+ "inputs": [
15387
+ {
15388
+ "internalType": "bytes20",
15389
+ "name": "walletPubKeyHash",
15390
+ "type": "bytes20"
15391
+ },
15392
+ {
15393
+ "components": [
15394
+ {
15395
+ "internalType": "bytes32",
15396
+ "name": "ecdsaWalletID",
15397
+ "type": "bytes32"
15398
+ },
15399
+ {
15400
+ "internalType": "bytes32",
15401
+ "name": "mainUtxoHash",
15402
+ "type": "bytes32"
15403
+ },
15404
+ {
15405
+ "internalType": "uint64",
15406
+ "name": "pendingRedemptionsValue",
15407
+ "type": "uint64"
15408
+ },
15409
+ {
15410
+ "internalType": "uint32",
15411
+ "name": "createdAt",
15412
+ "type": "uint32"
15413
+ },
15414
+ {
15415
+ "internalType": "uint32",
15416
+ "name": "movingFundsRequestedAt",
15417
+ "type": "uint32"
15418
+ },
15419
+ {
15420
+ "internalType": "uint32",
15421
+ "name": "closingStartedAt",
15422
+ "type": "uint32"
15423
+ },
15424
+ {
15425
+ "internalType": "enum Wallets.WalletState",
15426
+ "name": "state",
15427
+ "type": "uint8"
15428
+ },
15429
+ {
15430
+ "internalType": "bytes32",
15431
+ "name": "movingFundsTargetWalletsCommitmentHash",
15432
+ "type": "bytes32"
15433
+ }
15434
+ ],
15435
+ "internalType": "struct Wallets.Wallet",
15436
+ "name": "wallet",
15437
+ "type": "tuple"
15438
+ }
15439
+ ],
15440
+ "name": "setWallet",
15441
+ "outputs": [],
15442
+ "stateMutability": "nonpayable",
15443
+ "type": "function"
15444
+ },
15445
+ {
15446
+ "inputs": [
15447
+ {
15448
+ "internalType": "bytes20",
15449
+ "name": "walletPubKeyHash",
15450
+ "type": "bytes20"
15451
+ },
15452
+ {
15453
+ "components": [
15454
+ {
15455
+ "internalType": "bytes32",
15456
+ "name": "txHash",
15457
+ "type": "bytes32"
15458
+ },
15459
+ {
15460
+ "internalType": "uint32",
15461
+ "name": "txOutputIndex",
15462
+ "type": "uint32"
15463
+ },
15464
+ {
15465
+ "internalType": "uint64",
15466
+ "name": "txOutputValue",
15467
+ "type": "uint64"
15468
+ }
15469
+ ],
15470
+ "internalType": "struct BitcoinTx.UTXO",
15471
+ "name": "utxo",
15472
+ "type": "tuple"
15473
+ }
15474
+ ],
15475
+ "name": "setWalletMainUtxo",
15476
+ "outputs": [],
15477
+ "stateMutability": "nonpayable",
15478
+ "type": "function"
15479
+ },
15229
15480
  {
15230
15481
  "inputs": [
15231
15482
  {
@@ -15667,6 +15918,19 @@
15667
15918
  "stateMutability": "view",
15668
15919
  "type": "function"
15669
15920
  },
15921
+ {
15922
+ "inputs": [
15923
+ {
15924
+ "internalType": "bytes20",
15925
+ "name": "walletPubKeyHash",
15926
+ "type": "bytes20"
15927
+ }
15928
+ ],
15929
+ "name": "unsetWalletMainUtxo",
15930
+ "outputs": [],
15931
+ "stateMutability": "nonpayable",
15932
+ "type": "function"
15933
+ },
15670
15934
  {
15671
15935
  "inputs": [
15672
15936
  {
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.49+main.73325e5cb7b966d3daf56e2d40a75b30f0e6ce91",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "artifacts/",