@keep-network/tbtc-v2 0.1.1-dev.7 → 0.1.1-dev.70

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 (110) hide show
  1. package/README.adoc +12 -0
  2. package/artifacts/Bank.json +752 -0
  3. package/artifacts/Bridge.json +2556 -0
  4. package/artifacts/DefaultProxyAdmin.json +259 -0
  5. package/artifacts/Deposit.json +117 -0
  6. package/artifacts/DepositSweep.json +77 -0
  7. package/artifacts/EcdsaDkgValidator.json +533 -0
  8. package/artifacts/EcdsaInactivity.json +156 -0
  9. package/artifacts/Fraud.json +164 -0
  10. package/artifacts/KeepRegistry.json +99 -0
  11. package/artifacts/KeepStake.json +286 -0
  12. package/artifacts/KeepToken.json +711 -0
  13. package/artifacts/KeepTokenStaking.json +483 -0
  14. package/artifacts/MovingFunds.json +249 -0
  15. package/artifacts/NuCypherStakingEscrow.json +256 -0
  16. package/artifacts/NuCypherToken.json +711 -0
  17. package/artifacts/RandomBeaconStub.json +141 -0
  18. package/artifacts/Redemption.json +162 -0
  19. package/artifacts/ReimbursementPool.json +509 -0
  20. package/artifacts/Relay.json +123 -0
  21. package/artifacts/SortitionPool.json +1005 -0
  22. package/artifacts/T.json +1148 -0
  23. package/artifacts/TBTC.json +27 -26
  24. package/artifacts/TBTCToken.json +27 -26
  25. package/artifacts/TokenStaking.json +2288 -0
  26. package/artifacts/TokenholderGovernor.json +1795 -0
  27. package/artifacts/TokenholderTimelock.json +1058 -0
  28. package/artifacts/VendingMachine.json +30 -29
  29. package/artifacts/VendingMachineKeep.json +400 -0
  30. package/artifacts/VendingMachineNuCypher.json +400 -0
  31. package/artifacts/WalletRegistry.json +2117 -0
  32. package/artifacts/WalletRegistry_Implementation.json +2824 -0
  33. package/artifacts/WalletRegistry_Proxy.json +259 -0
  34. package/artifacts/Wallets.json +186 -0
  35. package/artifacts/solcInputs/1635d55d57a0a2552952c0d22586ed23.json +56 -0
  36. package/artifacts/solcInputs/922f95457ca7980d018c851fb3308a7e.json +269 -0
  37. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  38. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.json +2 -2
  39. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  40. package/build/contracts/bank/Bank.sol/Bank.json +20 -2
  41. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  42. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +2 -2
  43. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  44. package/build/contracts/bridge/Bridge.sol/Bridge.json +2546 -128
  45. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +4 -0
  46. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +220 -0
  47. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +4 -0
  48. package/build/contracts/bridge/Deposit.sol/Deposit.json +72 -0
  49. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +4 -0
  50. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +30 -0
  51. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +4 -0
  52. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.json +10 -0
  53. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +4 -0
  54. package/build/contracts/bridge/Fraud.sol/Fraud.json +86 -0
  55. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +4 -0
  56. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.json +10 -0
  57. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +4 -0
  58. package/build/contracts/bridge/IRelay.sol/IRelay.json +37 -0
  59. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +4 -0
  60. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +138 -0
  61. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +4 -0
  62. package/build/contracts/bridge/Redemption.sol/OutboundTx.json +10 -0
  63. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +4 -0
  64. package/build/contracts/bridge/Redemption.sol/Redemption.json +92 -0
  65. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  66. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.json +2 -2
  67. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +4 -0
  68. package/build/contracts/bridge/Wallets.sol/Wallets.json +112 -0
  69. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  70. package/build/contracts/token/TBTC.sol/TBTC.json +2 -2
  71. package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +4 -0
  72. package/build/contracts/vault/DonationVault.sol/DonationVault.json +103 -0
  73. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  74. package/build/contracts/vault/IVault.sol/IVault.json +19 -1
  75. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  76. package/build/contracts/vault/TBTCVault.sol/TBTCVault.json +36 -18
  77. package/contracts/GovernanceUtils.sol +1 -1
  78. package/contracts/bank/Bank.sol +34 -18
  79. package/contracts/bridge/BitcoinTx.sol +231 -9
  80. package/contracts/bridge/Bridge.sol +1592 -211
  81. package/contracts/bridge/BridgeState.sol +714 -0
  82. package/contracts/bridge/Deposit.sol +271 -0
  83. package/contracts/bridge/DepositSweep.sol +571 -0
  84. package/contracts/bridge/EcdsaLib.sol +45 -0
  85. package/contracts/bridge/Fraud.sol +604 -0
  86. package/contracts/bridge/Heartbeat.sol +112 -0
  87. package/contracts/bridge/IRelay.sol +28 -0
  88. package/contracts/bridge/MovingFunds.sol +1080 -0
  89. package/contracts/bridge/Redemption.sol +874 -0
  90. package/contracts/bridge/VendingMachine.sol +1 -1
  91. package/contracts/bridge/Wallets.sol +553 -0
  92. package/contracts/hardhat-dependency-compiler/.hardhat-dependency-compiler +1 -0
  93. package/contracts/hardhat-dependency-compiler/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol +3 -0
  94. package/contracts/hardhat-dependency-compiler/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol +3 -0
  95. package/contracts/token/TBTC.sol +1 -1
  96. package/contracts/vault/DonationVault.sol +125 -0
  97. package/contracts/vault/IVault.sol +32 -10
  98. package/contracts/vault/TBTCVault.sol +20 -2
  99. package/deploy/00_resolve_relay.ts +28 -0
  100. package/deploy/00_resolve_wallet_registry.ts +83 -0
  101. package/deploy/04_deploy_bank.ts +27 -0
  102. package/deploy/05_deploy_bridge.ts +76 -0
  103. package/deploy/06_bank_update_bridge.ts +19 -0
  104. package/deploy/07_transfer_ownership.ts +15 -0
  105. package/deploy/08_transfer_governance.ts +20 -0
  106. package/deploy/09_transfer_proxy_admin_ownership.ts +23 -0
  107. package/deploy/10_deploy_proxy_admin_with_deputy.ts +33 -0
  108. package/export.json +16243 -475
  109. package/package.json +31 -24
  110. package/artifacts/solcInputs/25bea07ad744b8c97e466495ad2abf97.json +0 -128
@@ -0,0 +1,2556 @@
1
+ {
2
+ "address": "0xc63d2a04762529edB649d7a4cC3E57A0085e8544",
3
+ "abi": [
4
+ {
5
+ "type": "event",
6
+ "anonymous": false,
7
+ "name": "DepositParametersUpdated",
8
+ "inputs": [
9
+ {
10
+ "type": "uint64",
11
+ "name": "depositDustThreshold",
12
+ "indexed": false
13
+ },
14
+ {
15
+ "type": "uint64",
16
+ "name": "depositTreasuryFeeDivisor",
17
+ "indexed": false
18
+ },
19
+ {
20
+ "type": "uint64",
21
+ "name": "depositTxMaxFee",
22
+ "indexed": false
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "type": "event",
28
+ "anonymous": false,
29
+ "name": "DepositRevealed",
30
+ "inputs": [
31
+ {
32
+ "type": "bytes32",
33
+ "name": "fundingTxHash",
34
+ "indexed": false
35
+ },
36
+ {
37
+ "type": "uint32",
38
+ "name": "fundingOutputIndex",
39
+ "indexed": false
40
+ },
41
+ {
42
+ "type": "address",
43
+ "name": "depositor",
44
+ "indexed": true
45
+ },
46
+ {
47
+ "type": "uint64",
48
+ "name": "amount",
49
+ "indexed": false
50
+ },
51
+ {
52
+ "type": "bytes8",
53
+ "name": "blindingFactor",
54
+ "indexed": false
55
+ },
56
+ {
57
+ "type": "bytes20",
58
+ "name": "walletPubKeyHash",
59
+ "indexed": true
60
+ },
61
+ {
62
+ "type": "bytes20",
63
+ "name": "refundPubKeyHash",
64
+ "indexed": false
65
+ },
66
+ {
67
+ "type": "bytes4",
68
+ "name": "refundLocktime",
69
+ "indexed": false
70
+ },
71
+ {
72
+ "type": "address",
73
+ "name": "vault",
74
+ "indexed": false
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "type": "event",
80
+ "anonymous": false,
81
+ "name": "DepositsSwept",
82
+ "inputs": [
83
+ {
84
+ "type": "bytes20",
85
+ "name": "walletPubKeyHash",
86
+ "indexed": false
87
+ },
88
+ {
89
+ "type": "bytes32",
90
+ "name": "sweepTxHash",
91
+ "indexed": false
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "type": "event",
97
+ "anonymous": false,
98
+ "name": "FraudChallengeDefeatTimedOut",
99
+ "inputs": [
100
+ {
101
+ "type": "bytes20",
102
+ "name": "walletPubKeyHash",
103
+ "indexed": true
104
+ },
105
+ {
106
+ "type": "bytes32",
107
+ "name": "sighash",
108
+ "indexed": false
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "type": "event",
114
+ "anonymous": false,
115
+ "name": "FraudChallengeDefeated",
116
+ "inputs": [
117
+ {
118
+ "type": "bytes20",
119
+ "name": "walletPubKeyHash",
120
+ "indexed": true
121
+ },
122
+ {
123
+ "type": "bytes32",
124
+ "name": "sighash",
125
+ "indexed": false
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "type": "event",
131
+ "anonymous": false,
132
+ "name": "FraudChallengeSubmitted",
133
+ "inputs": [
134
+ {
135
+ "type": "bytes20",
136
+ "name": "walletPubKeyHash",
137
+ "indexed": true
138
+ },
139
+ {
140
+ "type": "bytes32",
141
+ "name": "sighash",
142
+ "indexed": false
143
+ },
144
+ {
145
+ "type": "uint8",
146
+ "name": "v",
147
+ "indexed": false
148
+ },
149
+ {
150
+ "type": "bytes32",
151
+ "name": "r",
152
+ "indexed": false
153
+ },
154
+ {
155
+ "type": "bytes32",
156
+ "name": "s",
157
+ "indexed": false
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "type": "event",
163
+ "anonymous": false,
164
+ "name": "FraudParametersUpdated",
165
+ "inputs": [
166
+ {
167
+ "type": "uint256",
168
+ "name": "fraudChallengeDepositAmount",
169
+ "indexed": false
170
+ },
171
+ {
172
+ "type": "uint256",
173
+ "name": "fraudChallengeDefeatTimeout",
174
+ "indexed": false
175
+ },
176
+ {
177
+ "type": "uint96",
178
+ "name": "fraudSlashingAmount",
179
+ "indexed": false
180
+ },
181
+ {
182
+ "type": "uint256",
183
+ "name": "fraudNotifierRewardMultiplier",
184
+ "indexed": false
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "type": "event",
190
+ "anonymous": false,
191
+ "name": "GovernanceTransferred",
192
+ "inputs": [
193
+ {
194
+ "type": "address",
195
+ "name": "oldGovernance",
196
+ "indexed": false
197
+ },
198
+ {
199
+ "type": "address",
200
+ "name": "newGovernance",
201
+ "indexed": false
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "type": "event",
207
+ "anonymous": false,
208
+ "name": "Initialized",
209
+ "inputs": [
210
+ {
211
+ "type": "uint8",
212
+ "name": "version",
213
+ "indexed": false
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ "type": "event",
219
+ "anonymous": false,
220
+ "name": "MovedFundsSweepTimedOut",
221
+ "inputs": [
222
+ {
223
+ "type": "bytes20",
224
+ "name": "walletPubKeyHash",
225
+ "indexed": true
226
+ },
227
+ {
228
+ "type": "bytes32",
229
+ "name": "movingFundsTxHash",
230
+ "indexed": false
231
+ },
232
+ {
233
+ "type": "uint32",
234
+ "name": "movingFundsTxOutputIndex",
235
+ "indexed": false
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "type": "event",
241
+ "anonymous": false,
242
+ "name": "MovedFundsSwept",
243
+ "inputs": [
244
+ {
245
+ "type": "bytes20",
246
+ "name": "walletPubKeyHash",
247
+ "indexed": true
248
+ },
249
+ {
250
+ "type": "bytes32",
251
+ "name": "sweepTxHash",
252
+ "indexed": false
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "type": "event",
258
+ "anonymous": false,
259
+ "name": "MovingFundsBelowDustReported",
260
+ "inputs": [
261
+ {
262
+ "type": "bytes20",
263
+ "name": "walletPubKeyHash",
264
+ "indexed": true
265
+ }
266
+ ]
267
+ },
268
+ {
269
+ "type": "event",
270
+ "anonymous": false,
271
+ "name": "MovingFundsCommitmentSubmitted",
272
+ "inputs": [
273
+ {
274
+ "type": "bytes20",
275
+ "name": "walletPubKeyHash",
276
+ "indexed": true
277
+ },
278
+ {
279
+ "type": "bytes20[]",
280
+ "name": "targetWallets",
281
+ "indexed": false
282
+ },
283
+ {
284
+ "type": "address",
285
+ "name": "submitter",
286
+ "indexed": false
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "type": "event",
292
+ "anonymous": false,
293
+ "name": "MovingFundsCompleted",
294
+ "inputs": [
295
+ {
296
+ "type": "bytes20",
297
+ "name": "walletPubKeyHash",
298
+ "indexed": true
299
+ },
300
+ {
301
+ "type": "bytes32",
302
+ "name": "movingFundsTxHash",
303
+ "indexed": false
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "type": "event",
309
+ "anonymous": false,
310
+ "name": "MovingFundsParametersUpdated",
311
+ "inputs": [
312
+ {
313
+ "type": "uint64",
314
+ "name": "movingFundsTxMaxTotalFee",
315
+ "indexed": false
316
+ },
317
+ {
318
+ "type": "uint64",
319
+ "name": "movingFundsDustThreshold",
320
+ "indexed": false
321
+ },
322
+ {
323
+ "type": "uint32",
324
+ "name": "movingFundsTimeout",
325
+ "indexed": false
326
+ },
327
+ {
328
+ "type": "uint96",
329
+ "name": "movingFundsTimeoutSlashingAmount",
330
+ "indexed": false
331
+ },
332
+ {
333
+ "type": "uint256",
334
+ "name": "movingFundsTimeoutNotifierRewardMultiplier",
335
+ "indexed": false
336
+ },
337
+ {
338
+ "type": "uint64",
339
+ "name": "movedFundsSweepTxMaxTotalFee",
340
+ "indexed": false
341
+ },
342
+ {
343
+ "type": "uint32",
344
+ "name": "movedFundsSweepTimeout",
345
+ "indexed": false
346
+ },
347
+ {
348
+ "type": "uint96",
349
+ "name": "movedFundsSweepTimeoutSlashingAmount",
350
+ "indexed": false
351
+ },
352
+ {
353
+ "type": "uint256",
354
+ "name": "movedFundsSweepTimeoutNotifierRewardMultiplier",
355
+ "indexed": false
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "type": "event",
361
+ "anonymous": false,
362
+ "name": "MovingFundsTimedOut",
363
+ "inputs": [
364
+ {
365
+ "type": "bytes20",
366
+ "name": "walletPubKeyHash",
367
+ "indexed": true
368
+ }
369
+ ]
370
+ },
371
+ {
372
+ "type": "event",
373
+ "anonymous": false,
374
+ "name": "MovingFundsTimeoutReset",
375
+ "inputs": [
376
+ {
377
+ "type": "bytes20",
378
+ "name": "walletPubKeyHash",
379
+ "indexed": true
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "type": "event",
385
+ "anonymous": false,
386
+ "name": "NewWalletRegistered",
387
+ "inputs": [
388
+ {
389
+ "type": "bytes32",
390
+ "name": "ecdsaWalletID",
391
+ "indexed": true
392
+ },
393
+ {
394
+ "type": "bytes20",
395
+ "name": "walletPubKeyHash",
396
+ "indexed": true
397
+ }
398
+ ]
399
+ },
400
+ {
401
+ "type": "event",
402
+ "anonymous": false,
403
+ "name": "NewWalletRequested",
404
+ "inputs": []
405
+ },
406
+ {
407
+ "type": "event",
408
+ "anonymous": false,
409
+ "name": "RedemptionParametersUpdated",
410
+ "inputs": [
411
+ {
412
+ "type": "uint64",
413
+ "name": "redemptionDustThreshold",
414
+ "indexed": false
415
+ },
416
+ {
417
+ "type": "uint64",
418
+ "name": "redemptionTreasuryFeeDivisor",
419
+ "indexed": false
420
+ },
421
+ {
422
+ "type": "uint64",
423
+ "name": "redemptionTxMaxFee",
424
+ "indexed": false
425
+ },
426
+ {
427
+ "type": "uint256",
428
+ "name": "redemptionTimeout",
429
+ "indexed": false
430
+ },
431
+ {
432
+ "type": "uint96",
433
+ "name": "redemptionTimeoutSlashingAmount",
434
+ "indexed": false
435
+ },
436
+ {
437
+ "type": "uint256",
438
+ "name": "redemptionTimeoutNotifierRewardMultiplier",
439
+ "indexed": false
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "type": "event",
445
+ "anonymous": false,
446
+ "name": "RedemptionRequested",
447
+ "inputs": [
448
+ {
449
+ "type": "bytes20",
450
+ "name": "walletPubKeyHash",
451
+ "indexed": true
452
+ },
453
+ {
454
+ "type": "bytes",
455
+ "name": "redeemerOutputScript",
456
+ "indexed": false
457
+ },
458
+ {
459
+ "type": "address",
460
+ "name": "redeemer",
461
+ "indexed": true
462
+ },
463
+ {
464
+ "type": "uint64",
465
+ "name": "requestedAmount",
466
+ "indexed": false
467
+ },
468
+ {
469
+ "type": "uint64",
470
+ "name": "treasuryFee",
471
+ "indexed": false
472
+ },
473
+ {
474
+ "type": "uint64",
475
+ "name": "txMaxFee",
476
+ "indexed": false
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "type": "event",
482
+ "anonymous": false,
483
+ "name": "RedemptionTimedOut",
484
+ "inputs": [
485
+ {
486
+ "type": "bytes20",
487
+ "name": "walletPubKeyHash",
488
+ "indexed": true
489
+ },
490
+ {
491
+ "type": "bytes",
492
+ "name": "redeemerOutputScript",
493
+ "indexed": false
494
+ }
495
+ ]
496
+ },
497
+ {
498
+ "type": "event",
499
+ "anonymous": false,
500
+ "name": "RedemptionsCompleted",
501
+ "inputs": [
502
+ {
503
+ "type": "bytes20",
504
+ "name": "walletPubKeyHash",
505
+ "indexed": true
506
+ },
507
+ {
508
+ "type": "bytes32",
509
+ "name": "redemptionTxHash",
510
+ "indexed": false
511
+ }
512
+ ]
513
+ },
514
+ {
515
+ "type": "event",
516
+ "anonymous": false,
517
+ "name": "VaultStatusUpdated",
518
+ "inputs": [
519
+ {
520
+ "type": "address",
521
+ "name": "vault",
522
+ "indexed": true
523
+ },
524
+ {
525
+ "type": "bool",
526
+ "name": "isTrusted",
527
+ "indexed": false
528
+ }
529
+ ]
530
+ },
531
+ {
532
+ "type": "event",
533
+ "anonymous": false,
534
+ "name": "WalletClosed",
535
+ "inputs": [
536
+ {
537
+ "type": "bytes32",
538
+ "name": "ecdsaWalletID",
539
+ "indexed": true
540
+ },
541
+ {
542
+ "type": "bytes20",
543
+ "name": "walletPubKeyHash",
544
+ "indexed": true
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "type": "event",
550
+ "anonymous": false,
551
+ "name": "WalletClosing",
552
+ "inputs": [
553
+ {
554
+ "type": "bytes32",
555
+ "name": "ecdsaWalletID",
556
+ "indexed": true
557
+ },
558
+ {
559
+ "type": "bytes20",
560
+ "name": "walletPubKeyHash",
561
+ "indexed": true
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "type": "event",
567
+ "anonymous": false,
568
+ "name": "WalletMovingFunds",
569
+ "inputs": [
570
+ {
571
+ "type": "bytes32",
572
+ "name": "ecdsaWalletID",
573
+ "indexed": true
574
+ },
575
+ {
576
+ "type": "bytes20",
577
+ "name": "walletPubKeyHash",
578
+ "indexed": true
579
+ }
580
+ ]
581
+ },
582
+ {
583
+ "type": "event",
584
+ "anonymous": false,
585
+ "name": "WalletParametersUpdated",
586
+ "inputs": [
587
+ {
588
+ "type": "uint32",
589
+ "name": "walletCreationPeriod",
590
+ "indexed": false
591
+ },
592
+ {
593
+ "type": "uint64",
594
+ "name": "walletCreationMinBtcBalance",
595
+ "indexed": false
596
+ },
597
+ {
598
+ "type": "uint64",
599
+ "name": "walletCreationMaxBtcBalance",
600
+ "indexed": false
601
+ },
602
+ {
603
+ "type": "uint64",
604
+ "name": "walletClosureMinBtcBalance",
605
+ "indexed": false
606
+ },
607
+ {
608
+ "type": "uint32",
609
+ "name": "walletMaxAge",
610
+ "indexed": false
611
+ },
612
+ {
613
+ "type": "uint64",
614
+ "name": "walletMaxBtcTransfer",
615
+ "indexed": false
616
+ },
617
+ {
618
+ "type": "uint32",
619
+ "name": "walletClosingPeriod",
620
+ "indexed": false
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "type": "event",
626
+ "anonymous": false,
627
+ "name": "WalletTerminated",
628
+ "inputs": [
629
+ {
630
+ "type": "bytes32",
631
+ "name": "ecdsaWalletID",
632
+ "indexed": true
633
+ },
634
+ {
635
+ "type": "bytes20",
636
+ "name": "walletPubKeyHash",
637
+ "indexed": true
638
+ }
639
+ ]
640
+ },
641
+ {
642
+ "type": "function",
643
+ "name": "__ecdsaWalletCreatedCallback",
644
+ "constant": false,
645
+ "payable": false,
646
+ "gas": 29000000,
647
+ "inputs": [
648
+ {
649
+ "type": "bytes32",
650
+ "name": "ecdsaWalletID"
651
+ },
652
+ {
653
+ "type": "bytes32",
654
+ "name": "publicKeyX"
655
+ },
656
+ {
657
+ "type": "bytes32",
658
+ "name": "publicKeyY"
659
+ }
660
+ ],
661
+ "outputs": []
662
+ },
663
+ {
664
+ "type": "function",
665
+ "name": "__ecdsaWalletHeartbeatFailedCallback",
666
+ "constant": false,
667
+ "payable": false,
668
+ "gas": 29000000,
669
+ "inputs": [
670
+ {
671
+ "type": "bytes32"
672
+ },
673
+ {
674
+ "type": "bytes32",
675
+ "name": "publicKeyX"
676
+ },
677
+ {
678
+ "type": "bytes32",
679
+ "name": "publicKeyY"
680
+ }
681
+ ],
682
+ "outputs": []
683
+ },
684
+ {
685
+ "type": "function",
686
+ "name": "activeWalletPubKeyHash",
687
+ "constant": true,
688
+ "stateMutability": "view",
689
+ "payable": false,
690
+ "gas": 29000000,
691
+ "inputs": [],
692
+ "outputs": [
693
+ {
694
+ "type": "bytes20"
695
+ }
696
+ ]
697
+ },
698
+ {
699
+ "type": "function",
700
+ "name": "contractReferences",
701
+ "constant": true,
702
+ "stateMutability": "view",
703
+ "payable": false,
704
+ "gas": 29000000,
705
+ "inputs": [],
706
+ "outputs": [
707
+ {
708
+ "type": "address",
709
+ "name": "bank"
710
+ },
711
+ {
712
+ "type": "address",
713
+ "name": "relay"
714
+ },
715
+ {
716
+ "type": "address",
717
+ "name": "ecdsaWalletRegistry"
718
+ }
719
+ ]
720
+ },
721
+ {
722
+ "type": "function",
723
+ "name": "defeatFraudChallenge",
724
+ "constant": false,
725
+ "payable": false,
726
+ "gas": 29000000,
727
+ "inputs": [
728
+ {
729
+ "type": "bytes",
730
+ "name": "walletPublicKey"
731
+ },
732
+ {
733
+ "type": "bytes",
734
+ "name": "preimage"
735
+ },
736
+ {
737
+ "type": "bool",
738
+ "name": "witness"
739
+ }
740
+ ],
741
+ "outputs": []
742
+ },
743
+ {
744
+ "type": "function",
745
+ "name": "defeatFraudChallengeWithHeartbeat",
746
+ "constant": false,
747
+ "payable": false,
748
+ "gas": 29000000,
749
+ "inputs": [
750
+ {
751
+ "type": "bytes",
752
+ "name": "walletPublicKey"
753
+ },
754
+ {
755
+ "type": "bytes",
756
+ "name": "heartbeatMessage"
757
+ }
758
+ ],
759
+ "outputs": []
760
+ },
761
+ {
762
+ "type": "function",
763
+ "name": "depositParameters",
764
+ "constant": true,
765
+ "stateMutability": "view",
766
+ "payable": false,
767
+ "gas": 29000000,
768
+ "inputs": [],
769
+ "outputs": [
770
+ {
771
+ "type": "uint64",
772
+ "name": "depositDustThreshold"
773
+ },
774
+ {
775
+ "type": "uint64",
776
+ "name": "depositTreasuryFeeDivisor"
777
+ },
778
+ {
779
+ "type": "uint64",
780
+ "name": "depositTxMaxFee"
781
+ }
782
+ ]
783
+ },
784
+ {
785
+ "type": "function",
786
+ "name": "deposits",
787
+ "constant": true,
788
+ "stateMutability": "view",
789
+ "payable": false,
790
+ "gas": 29000000,
791
+ "inputs": [
792
+ {
793
+ "type": "uint256",
794
+ "name": "depositKey"
795
+ }
796
+ ],
797
+ "outputs": [
798
+ {
799
+ "type": "tuple",
800
+ "components": [
801
+ {
802
+ "type": "address",
803
+ "name": "depositor"
804
+ },
805
+ {
806
+ "type": "uint64",
807
+ "name": "amount"
808
+ },
809
+ {
810
+ "type": "uint32",
811
+ "name": "revealedAt"
812
+ },
813
+ {
814
+ "type": "address",
815
+ "name": "vault"
816
+ },
817
+ {
818
+ "type": "uint64",
819
+ "name": "treasuryFee"
820
+ },
821
+ {
822
+ "type": "uint32",
823
+ "name": "sweptAt"
824
+ }
825
+ ]
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ "type": "function",
831
+ "name": "fraudChallenges",
832
+ "constant": true,
833
+ "stateMutability": "view",
834
+ "payable": false,
835
+ "gas": 29000000,
836
+ "inputs": [
837
+ {
838
+ "type": "uint256",
839
+ "name": "challengeKey"
840
+ }
841
+ ],
842
+ "outputs": [
843
+ {
844
+ "type": "tuple",
845
+ "components": [
846
+ {
847
+ "type": "address",
848
+ "name": "challenger"
849
+ },
850
+ {
851
+ "type": "uint256",
852
+ "name": "depositAmount"
853
+ },
854
+ {
855
+ "type": "uint32",
856
+ "name": "reportedAt"
857
+ },
858
+ {
859
+ "type": "bool",
860
+ "name": "resolved"
861
+ }
862
+ ]
863
+ }
864
+ ]
865
+ },
866
+ {
867
+ "type": "function",
868
+ "name": "fraudParameters",
869
+ "constant": true,
870
+ "stateMutability": "view",
871
+ "payable": false,
872
+ "gas": 29000000,
873
+ "inputs": [],
874
+ "outputs": [
875
+ {
876
+ "type": "uint256",
877
+ "name": "fraudChallengeDepositAmount"
878
+ },
879
+ {
880
+ "type": "uint256",
881
+ "name": "fraudChallengeDefeatTimeout"
882
+ },
883
+ {
884
+ "type": "uint96",
885
+ "name": "fraudSlashingAmount"
886
+ },
887
+ {
888
+ "type": "uint256",
889
+ "name": "fraudNotifierRewardMultiplier"
890
+ }
891
+ ]
892
+ },
893
+ {
894
+ "type": "function",
895
+ "name": "governance",
896
+ "constant": true,
897
+ "stateMutability": "view",
898
+ "payable": false,
899
+ "gas": 29000000,
900
+ "inputs": [],
901
+ "outputs": [
902
+ {
903
+ "type": "address"
904
+ }
905
+ ]
906
+ },
907
+ {
908
+ "type": "function",
909
+ "name": "initialize",
910
+ "constant": false,
911
+ "payable": false,
912
+ "gas": 29000000,
913
+ "inputs": [
914
+ {
915
+ "type": "address",
916
+ "name": "_bank"
917
+ },
918
+ {
919
+ "type": "address",
920
+ "name": "_relay"
921
+ },
922
+ {
923
+ "type": "address",
924
+ "name": "_treasury"
925
+ },
926
+ {
927
+ "type": "address",
928
+ "name": "_ecdsaWalletRegistry"
929
+ },
930
+ {
931
+ "type": "uint256",
932
+ "name": "_txProofDifficultyFactor"
933
+ }
934
+ ],
935
+ "outputs": []
936
+ },
937
+ {
938
+ "type": "function",
939
+ "name": "isVaultTrusted",
940
+ "constant": true,
941
+ "stateMutability": "view",
942
+ "payable": false,
943
+ "gas": 29000000,
944
+ "inputs": [
945
+ {
946
+ "type": "address",
947
+ "name": "vault"
948
+ }
949
+ ],
950
+ "outputs": [
951
+ {
952
+ "type": "bool"
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ "type": "function",
958
+ "name": "liveWalletsCount",
959
+ "constant": true,
960
+ "stateMutability": "view",
961
+ "payable": false,
962
+ "gas": 29000000,
963
+ "inputs": [],
964
+ "outputs": [
965
+ {
966
+ "type": "uint32"
967
+ }
968
+ ]
969
+ },
970
+ {
971
+ "type": "function",
972
+ "name": "movedFundsSweepRequests",
973
+ "constant": true,
974
+ "stateMutability": "view",
975
+ "payable": false,
976
+ "gas": 29000000,
977
+ "inputs": [
978
+ {
979
+ "type": "uint256",
980
+ "name": "requestKey"
981
+ }
982
+ ],
983
+ "outputs": [
984
+ {
985
+ "type": "tuple",
986
+ "components": [
987
+ {
988
+ "type": "bytes20",
989
+ "name": "walletPubKeyHash"
990
+ },
991
+ {
992
+ "type": "uint64",
993
+ "name": "value"
994
+ },
995
+ {
996
+ "type": "uint32",
997
+ "name": "createdAt"
998
+ },
999
+ {
1000
+ "type": "uint8",
1001
+ "name": "state"
1002
+ }
1003
+ ]
1004
+ }
1005
+ ]
1006
+ },
1007
+ {
1008
+ "type": "function",
1009
+ "name": "movingFundsParameters",
1010
+ "constant": true,
1011
+ "stateMutability": "view",
1012
+ "payable": false,
1013
+ "gas": 29000000,
1014
+ "inputs": [],
1015
+ "outputs": [
1016
+ {
1017
+ "type": "uint64",
1018
+ "name": "movingFundsTxMaxTotalFee"
1019
+ },
1020
+ {
1021
+ "type": "uint64",
1022
+ "name": "movingFundsDustThreshold"
1023
+ },
1024
+ {
1025
+ "type": "uint32",
1026
+ "name": "movingFundsTimeout"
1027
+ },
1028
+ {
1029
+ "type": "uint96",
1030
+ "name": "movingFundsTimeoutSlashingAmount"
1031
+ },
1032
+ {
1033
+ "type": "uint256",
1034
+ "name": "movingFundsTimeoutNotifierRewardMultiplier"
1035
+ },
1036
+ {
1037
+ "type": "uint64",
1038
+ "name": "movedFundsSweepTxMaxTotalFee"
1039
+ },
1040
+ {
1041
+ "type": "uint32",
1042
+ "name": "movedFundsSweepTimeout"
1043
+ },
1044
+ {
1045
+ "type": "uint96",
1046
+ "name": "movedFundsSweepTimeoutSlashingAmount"
1047
+ },
1048
+ {
1049
+ "type": "uint256",
1050
+ "name": "movedFundsSweepTimeoutNotifierRewardMultiplier"
1051
+ }
1052
+ ]
1053
+ },
1054
+ {
1055
+ "type": "function",
1056
+ "name": "notifyCloseableWallet",
1057
+ "constant": false,
1058
+ "payable": false,
1059
+ "gas": 29000000,
1060
+ "inputs": [
1061
+ {
1062
+ "type": "bytes20",
1063
+ "name": "walletPubKeyHash"
1064
+ },
1065
+ {
1066
+ "type": "tuple",
1067
+ "name": "walletMainUtxo",
1068
+ "components": [
1069
+ {
1070
+ "type": "bytes32",
1071
+ "name": "txHash"
1072
+ },
1073
+ {
1074
+ "type": "uint32",
1075
+ "name": "txOutputIndex"
1076
+ },
1077
+ {
1078
+ "type": "uint64",
1079
+ "name": "txOutputValue"
1080
+ }
1081
+ ]
1082
+ }
1083
+ ],
1084
+ "outputs": []
1085
+ },
1086
+ {
1087
+ "type": "function",
1088
+ "name": "notifyFraudChallengeDefeatTimeout",
1089
+ "constant": false,
1090
+ "payable": false,
1091
+ "gas": 29000000,
1092
+ "inputs": [
1093
+ {
1094
+ "type": "bytes",
1095
+ "name": "walletPublicKey"
1096
+ },
1097
+ {
1098
+ "type": "uint32[]",
1099
+ "name": "walletMembersIDs"
1100
+ },
1101
+ {
1102
+ "type": "bytes",
1103
+ "name": "preimageSha256"
1104
+ }
1105
+ ],
1106
+ "outputs": []
1107
+ },
1108
+ {
1109
+ "type": "function",
1110
+ "name": "notifyMovedFundsSweepTimeout",
1111
+ "constant": false,
1112
+ "payable": false,
1113
+ "gas": 29000000,
1114
+ "inputs": [
1115
+ {
1116
+ "type": "bytes32",
1117
+ "name": "movingFundsTxHash"
1118
+ },
1119
+ {
1120
+ "type": "uint32",
1121
+ "name": "movingFundsTxOutputIndex"
1122
+ },
1123
+ {
1124
+ "type": "uint32[]",
1125
+ "name": "walletMembersIDs"
1126
+ }
1127
+ ],
1128
+ "outputs": []
1129
+ },
1130
+ {
1131
+ "type": "function",
1132
+ "name": "notifyMovingFundsBelowDust",
1133
+ "constant": false,
1134
+ "payable": false,
1135
+ "gas": 29000000,
1136
+ "inputs": [
1137
+ {
1138
+ "type": "bytes20",
1139
+ "name": "walletPubKeyHash"
1140
+ },
1141
+ {
1142
+ "type": "tuple",
1143
+ "name": "mainUtxo",
1144
+ "components": [
1145
+ {
1146
+ "type": "bytes32",
1147
+ "name": "txHash"
1148
+ },
1149
+ {
1150
+ "type": "uint32",
1151
+ "name": "txOutputIndex"
1152
+ },
1153
+ {
1154
+ "type": "uint64",
1155
+ "name": "txOutputValue"
1156
+ }
1157
+ ]
1158
+ }
1159
+ ],
1160
+ "outputs": []
1161
+ },
1162
+ {
1163
+ "type": "function",
1164
+ "name": "notifyMovingFundsTimeout",
1165
+ "constant": false,
1166
+ "payable": false,
1167
+ "gas": 29000000,
1168
+ "inputs": [
1169
+ {
1170
+ "type": "bytes20",
1171
+ "name": "walletPubKeyHash"
1172
+ },
1173
+ {
1174
+ "type": "uint32[]",
1175
+ "name": "walletMembersIDs"
1176
+ }
1177
+ ],
1178
+ "outputs": []
1179
+ },
1180
+ {
1181
+ "type": "function",
1182
+ "name": "notifyRedemptionTimeout",
1183
+ "constant": false,
1184
+ "payable": false,
1185
+ "gas": 29000000,
1186
+ "inputs": [
1187
+ {
1188
+ "type": "bytes20",
1189
+ "name": "walletPubKeyHash"
1190
+ },
1191
+ {
1192
+ "type": "uint32[]",
1193
+ "name": "walletMembersIDs"
1194
+ },
1195
+ {
1196
+ "type": "bytes",
1197
+ "name": "redeemerOutputScript"
1198
+ }
1199
+ ],
1200
+ "outputs": []
1201
+ },
1202
+ {
1203
+ "type": "function",
1204
+ "name": "notifyWalletClosingPeriodElapsed",
1205
+ "constant": false,
1206
+ "payable": false,
1207
+ "gas": 29000000,
1208
+ "inputs": [
1209
+ {
1210
+ "type": "bytes20",
1211
+ "name": "walletPubKeyHash"
1212
+ }
1213
+ ],
1214
+ "outputs": []
1215
+ },
1216
+ {
1217
+ "type": "function",
1218
+ "name": "pendingRedemptions",
1219
+ "constant": true,
1220
+ "stateMutability": "view",
1221
+ "payable": false,
1222
+ "gas": 29000000,
1223
+ "inputs": [
1224
+ {
1225
+ "type": "uint256",
1226
+ "name": "redemptionKey"
1227
+ }
1228
+ ],
1229
+ "outputs": [
1230
+ {
1231
+ "type": "tuple",
1232
+ "components": [
1233
+ {
1234
+ "type": "address",
1235
+ "name": "redeemer"
1236
+ },
1237
+ {
1238
+ "type": "uint64",
1239
+ "name": "requestedAmount"
1240
+ },
1241
+ {
1242
+ "type": "uint64",
1243
+ "name": "treasuryFee"
1244
+ },
1245
+ {
1246
+ "type": "uint64",
1247
+ "name": "txMaxFee"
1248
+ },
1249
+ {
1250
+ "type": "uint32",
1251
+ "name": "requestedAt"
1252
+ }
1253
+ ]
1254
+ }
1255
+ ]
1256
+ },
1257
+ {
1258
+ "type": "function",
1259
+ "name": "processPendingMovedFundsSweepRequest",
1260
+ "constant": false,
1261
+ "payable": false,
1262
+ "gas": 29000000,
1263
+ "inputs": [
1264
+ {
1265
+ "type": "bytes20",
1266
+ "name": "walletPubKeyHash"
1267
+ },
1268
+ {
1269
+ "type": "tuple",
1270
+ "name": "utxo",
1271
+ "components": [
1272
+ {
1273
+ "type": "bytes32",
1274
+ "name": "txHash"
1275
+ },
1276
+ {
1277
+ "type": "uint32",
1278
+ "name": "txOutputIndex"
1279
+ },
1280
+ {
1281
+ "type": "uint64",
1282
+ "name": "txOutputValue"
1283
+ }
1284
+ ]
1285
+ }
1286
+ ],
1287
+ "outputs": []
1288
+ },
1289
+ {
1290
+ "type": "function",
1291
+ "name": "redemptionParameters",
1292
+ "constant": true,
1293
+ "stateMutability": "view",
1294
+ "payable": false,
1295
+ "gas": 29000000,
1296
+ "inputs": [],
1297
+ "outputs": [
1298
+ {
1299
+ "type": "uint64",
1300
+ "name": "redemptionDustThreshold"
1301
+ },
1302
+ {
1303
+ "type": "uint64",
1304
+ "name": "redemptionTreasuryFeeDivisor"
1305
+ },
1306
+ {
1307
+ "type": "uint64",
1308
+ "name": "redemptionTxMaxFee"
1309
+ },
1310
+ {
1311
+ "type": "uint256",
1312
+ "name": "redemptionTimeout"
1313
+ },
1314
+ {
1315
+ "type": "uint96",
1316
+ "name": "redemptionTimeoutSlashingAmount"
1317
+ },
1318
+ {
1319
+ "type": "uint256",
1320
+ "name": "redemptionTimeoutNotifierRewardMultiplier"
1321
+ }
1322
+ ]
1323
+ },
1324
+ {
1325
+ "type": "function",
1326
+ "name": "requestNewWallet",
1327
+ "constant": false,
1328
+ "payable": false,
1329
+ "gas": 29000000,
1330
+ "inputs": [
1331
+ {
1332
+ "type": "tuple",
1333
+ "name": "activeWalletMainUtxo",
1334
+ "components": [
1335
+ {
1336
+ "type": "bytes32",
1337
+ "name": "txHash"
1338
+ },
1339
+ {
1340
+ "type": "uint32",
1341
+ "name": "txOutputIndex"
1342
+ },
1343
+ {
1344
+ "type": "uint64",
1345
+ "name": "txOutputValue"
1346
+ }
1347
+ ]
1348
+ }
1349
+ ],
1350
+ "outputs": []
1351
+ },
1352
+ {
1353
+ "type": "function",
1354
+ "name": "requestRedemption",
1355
+ "constant": false,
1356
+ "payable": false,
1357
+ "gas": 29000000,
1358
+ "inputs": [
1359
+ {
1360
+ "type": "bytes20",
1361
+ "name": "walletPubKeyHash"
1362
+ },
1363
+ {
1364
+ "type": "tuple",
1365
+ "name": "mainUtxo",
1366
+ "components": [
1367
+ {
1368
+ "type": "bytes32",
1369
+ "name": "txHash"
1370
+ },
1371
+ {
1372
+ "type": "uint32",
1373
+ "name": "txOutputIndex"
1374
+ },
1375
+ {
1376
+ "type": "uint64",
1377
+ "name": "txOutputValue"
1378
+ }
1379
+ ]
1380
+ },
1381
+ {
1382
+ "type": "bytes",
1383
+ "name": "redeemerOutputScript"
1384
+ },
1385
+ {
1386
+ "type": "uint64",
1387
+ "name": "amount"
1388
+ }
1389
+ ],
1390
+ "outputs": []
1391
+ },
1392
+ {
1393
+ "type": "function",
1394
+ "name": "resetMovingFundsTimeout",
1395
+ "constant": false,
1396
+ "payable": false,
1397
+ "gas": 29000000,
1398
+ "inputs": [
1399
+ {
1400
+ "type": "bytes20",
1401
+ "name": "walletPubKeyHash"
1402
+ }
1403
+ ],
1404
+ "outputs": []
1405
+ },
1406
+ {
1407
+ "type": "function",
1408
+ "name": "revealDeposit",
1409
+ "constant": false,
1410
+ "payable": false,
1411
+ "gas": 29000000,
1412
+ "inputs": [
1413
+ {
1414
+ "type": "tuple",
1415
+ "name": "fundingTx",
1416
+ "components": [
1417
+ {
1418
+ "type": "bytes4",
1419
+ "name": "version"
1420
+ },
1421
+ {
1422
+ "type": "bytes",
1423
+ "name": "inputVector"
1424
+ },
1425
+ {
1426
+ "type": "bytes",
1427
+ "name": "outputVector"
1428
+ },
1429
+ {
1430
+ "type": "bytes4",
1431
+ "name": "locktime"
1432
+ }
1433
+ ]
1434
+ },
1435
+ {
1436
+ "type": "tuple",
1437
+ "name": "reveal",
1438
+ "components": [
1439
+ {
1440
+ "type": "uint32",
1441
+ "name": "fundingOutputIndex"
1442
+ },
1443
+ {
1444
+ "type": "address",
1445
+ "name": "depositor"
1446
+ },
1447
+ {
1448
+ "type": "bytes8",
1449
+ "name": "blindingFactor"
1450
+ },
1451
+ {
1452
+ "type": "bytes20",
1453
+ "name": "walletPubKeyHash"
1454
+ },
1455
+ {
1456
+ "type": "bytes20",
1457
+ "name": "refundPubKeyHash"
1458
+ },
1459
+ {
1460
+ "type": "bytes4",
1461
+ "name": "refundLocktime"
1462
+ },
1463
+ {
1464
+ "type": "address",
1465
+ "name": "vault"
1466
+ }
1467
+ ]
1468
+ }
1469
+ ],
1470
+ "outputs": []
1471
+ },
1472
+ {
1473
+ "type": "function",
1474
+ "name": "setActiveWallet",
1475
+ "constant": false,
1476
+ "payable": false,
1477
+ "gas": 29000000,
1478
+ "inputs": [
1479
+ {
1480
+ "type": "bytes20",
1481
+ "name": "activeWalletPubKeyHash"
1482
+ }
1483
+ ],
1484
+ "outputs": []
1485
+ },
1486
+ {
1487
+ "type": "function",
1488
+ "name": "setDepositDustThreshold",
1489
+ "constant": false,
1490
+ "payable": false,
1491
+ "gas": 29000000,
1492
+ "inputs": [
1493
+ {
1494
+ "type": "uint64",
1495
+ "name": "_depositDustThreshold"
1496
+ }
1497
+ ],
1498
+ "outputs": []
1499
+ },
1500
+ {
1501
+ "type": "function",
1502
+ "name": "setDepositTxMaxFee",
1503
+ "constant": false,
1504
+ "payable": false,
1505
+ "gas": 29000000,
1506
+ "inputs": [
1507
+ {
1508
+ "type": "uint64",
1509
+ "name": "_depositTxMaxFee"
1510
+ }
1511
+ ],
1512
+ "outputs": []
1513
+ },
1514
+ {
1515
+ "type": "function",
1516
+ "name": "setMovedFundsSweepTxMaxTotalFee",
1517
+ "constant": false,
1518
+ "payable": false,
1519
+ "gas": 29000000,
1520
+ "inputs": [
1521
+ {
1522
+ "type": "uint64",
1523
+ "name": "_movedFundsSweepTxMaxTotalFee"
1524
+ }
1525
+ ],
1526
+ "outputs": []
1527
+ },
1528
+ {
1529
+ "type": "function",
1530
+ "name": "setMovingFundsTxMaxTotalFee",
1531
+ "constant": false,
1532
+ "payable": false,
1533
+ "gas": 29000000,
1534
+ "inputs": [
1535
+ {
1536
+ "type": "uint64",
1537
+ "name": "_movingFundsTxMaxTotalFee"
1538
+ }
1539
+ ],
1540
+ "outputs": []
1541
+ },
1542
+ {
1543
+ "type": "function",
1544
+ "name": "setPendingMovedFundsSweepRequest",
1545
+ "constant": false,
1546
+ "payable": false,
1547
+ "gas": 29000000,
1548
+ "inputs": [
1549
+ {
1550
+ "type": "bytes20",
1551
+ "name": "walletPubKeyHash"
1552
+ },
1553
+ {
1554
+ "type": "tuple",
1555
+ "name": "utxo",
1556
+ "components": [
1557
+ {
1558
+ "type": "bytes32",
1559
+ "name": "txHash"
1560
+ },
1561
+ {
1562
+ "type": "uint32",
1563
+ "name": "txOutputIndex"
1564
+ },
1565
+ {
1566
+ "type": "uint64",
1567
+ "name": "txOutputValue"
1568
+ }
1569
+ ]
1570
+ }
1571
+ ],
1572
+ "outputs": []
1573
+ },
1574
+ {
1575
+ "type": "function",
1576
+ "name": "setProcessedMovedFundsSweepRequests",
1577
+ "constant": false,
1578
+ "payable": false,
1579
+ "gas": 29000000,
1580
+ "inputs": [
1581
+ {
1582
+ "type": "tuple[]",
1583
+ "name": "utxos",
1584
+ "components": [
1585
+ {
1586
+ "type": "bytes32",
1587
+ "name": "txHash"
1588
+ },
1589
+ {
1590
+ "type": "uint32",
1591
+ "name": "txOutputIndex"
1592
+ },
1593
+ {
1594
+ "type": "uint64",
1595
+ "name": "txOutputValue"
1596
+ }
1597
+ ]
1598
+ }
1599
+ ],
1600
+ "outputs": []
1601
+ },
1602
+ {
1603
+ "type": "function",
1604
+ "name": "setRedemptionDustThreshold",
1605
+ "constant": false,
1606
+ "payable": false,
1607
+ "gas": 29000000,
1608
+ "inputs": [
1609
+ {
1610
+ "type": "uint64",
1611
+ "name": "_redemptionDustThreshold"
1612
+ }
1613
+ ],
1614
+ "outputs": []
1615
+ },
1616
+ {
1617
+ "type": "function",
1618
+ "name": "setRedemptionTreasuryFeeDivisor",
1619
+ "constant": false,
1620
+ "payable": false,
1621
+ "gas": 29000000,
1622
+ "inputs": [
1623
+ {
1624
+ "type": "uint64",
1625
+ "name": "_redemptionTreasuryFeeDivisor"
1626
+ }
1627
+ ],
1628
+ "outputs": []
1629
+ },
1630
+ {
1631
+ "type": "function",
1632
+ "name": "setSpentMainUtxos",
1633
+ "constant": false,
1634
+ "payable": false,
1635
+ "gas": 29000000,
1636
+ "inputs": [
1637
+ {
1638
+ "type": "tuple[]",
1639
+ "name": "utxos",
1640
+ "components": [
1641
+ {
1642
+ "type": "bytes32",
1643
+ "name": "txHash"
1644
+ },
1645
+ {
1646
+ "type": "uint32",
1647
+ "name": "txOutputIndex"
1648
+ },
1649
+ {
1650
+ "type": "uint64",
1651
+ "name": "txOutputValue"
1652
+ }
1653
+ ]
1654
+ }
1655
+ ],
1656
+ "outputs": []
1657
+ },
1658
+ {
1659
+ "type": "function",
1660
+ "name": "setSweptDeposits",
1661
+ "constant": false,
1662
+ "payable": false,
1663
+ "gas": 29000000,
1664
+ "inputs": [
1665
+ {
1666
+ "type": "tuple[]",
1667
+ "name": "utxos",
1668
+ "components": [
1669
+ {
1670
+ "type": "bytes32",
1671
+ "name": "txHash"
1672
+ },
1673
+ {
1674
+ "type": "uint32",
1675
+ "name": "txOutputIndex"
1676
+ },
1677
+ {
1678
+ "type": "uint64",
1679
+ "name": "txOutputValue"
1680
+ }
1681
+ ]
1682
+ }
1683
+ ],
1684
+ "outputs": []
1685
+ },
1686
+ {
1687
+ "type": "function",
1688
+ "name": "setVaultStatus",
1689
+ "constant": false,
1690
+ "payable": false,
1691
+ "gas": 29000000,
1692
+ "inputs": [
1693
+ {
1694
+ "type": "address",
1695
+ "name": "vault"
1696
+ },
1697
+ {
1698
+ "type": "bool",
1699
+ "name": "isTrusted"
1700
+ }
1701
+ ],
1702
+ "outputs": []
1703
+ },
1704
+ {
1705
+ "type": "function",
1706
+ "name": "setWallet",
1707
+ "constant": false,
1708
+ "payable": false,
1709
+ "gas": 29000000,
1710
+ "inputs": [
1711
+ {
1712
+ "type": "bytes20",
1713
+ "name": "walletPubKeyHash"
1714
+ },
1715
+ {
1716
+ "type": "tuple",
1717
+ "name": "wallet",
1718
+ "components": [
1719
+ {
1720
+ "type": "bytes32",
1721
+ "name": "ecdsaWalletID"
1722
+ },
1723
+ {
1724
+ "type": "bytes32",
1725
+ "name": "mainUtxoHash"
1726
+ },
1727
+ {
1728
+ "type": "uint64",
1729
+ "name": "pendingRedemptionsValue"
1730
+ },
1731
+ {
1732
+ "type": "uint32",
1733
+ "name": "createdAt"
1734
+ },
1735
+ {
1736
+ "type": "uint32",
1737
+ "name": "movingFundsRequestedAt"
1738
+ },
1739
+ {
1740
+ "type": "uint32",
1741
+ "name": "closingStartedAt"
1742
+ },
1743
+ {
1744
+ "type": "uint32",
1745
+ "name": "pendingMovedFundsSweepRequestsCount"
1746
+ },
1747
+ {
1748
+ "type": "uint8",
1749
+ "name": "state"
1750
+ },
1751
+ {
1752
+ "type": "bytes32",
1753
+ "name": "movingFundsTargetWalletsCommitmentHash"
1754
+ }
1755
+ ]
1756
+ }
1757
+ ],
1758
+ "outputs": []
1759
+ },
1760
+ {
1761
+ "type": "function",
1762
+ "name": "setWalletMainUtxo",
1763
+ "constant": false,
1764
+ "payable": false,
1765
+ "gas": 29000000,
1766
+ "inputs": [
1767
+ {
1768
+ "type": "bytes20",
1769
+ "name": "walletPubKeyHash"
1770
+ },
1771
+ {
1772
+ "type": "tuple",
1773
+ "name": "utxo",
1774
+ "components": [
1775
+ {
1776
+ "type": "bytes32",
1777
+ "name": "txHash"
1778
+ },
1779
+ {
1780
+ "type": "uint32",
1781
+ "name": "txOutputIndex"
1782
+ },
1783
+ {
1784
+ "type": "uint64",
1785
+ "name": "txOutputValue"
1786
+ }
1787
+ ]
1788
+ }
1789
+ ],
1790
+ "outputs": []
1791
+ },
1792
+ {
1793
+ "type": "function",
1794
+ "name": "spentMainUTXOs",
1795
+ "constant": true,
1796
+ "stateMutability": "view",
1797
+ "payable": false,
1798
+ "gas": 29000000,
1799
+ "inputs": [
1800
+ {
1801
+ "type": "uint256",
1802
+ "name": "utxoKey"
1803
+ }
1804
+ ],
1805
+ "outputs": [
1806
+ {
1807
+ "type": "bool"
1808
+ }
1809
+ ]
1810
+ },
1811
+ {
1812
+ "type": "function",
1813
+ "name": "submitDepositSweepProof",
1814
+ "constant": false,
1815
+ "payable": false,
1816
+ "gas": 29000000,
1817
+ "inputs": [
1818
+ {
1819
+ "type": "tuple",
1820
+ "name": "sweepTx",
1821
+ "components": [
1822
+ {
1823
+ "type": "bytes4",
1824
+ "name": "version"
1825
+ },
1826
+ {
1827
+ "type": "bytes",
1828
+ "name": "inputVector"
1829
+ },
1830
+ {
1831
+ "type": "bytes",
1832
+ "name": "outputVector"
1833
+ },
1834
+ {
1835
+ "type": "bytes4",
1836
+ "name": "locktime"
1837
+ }
1838
+ ]
1839
+ },
1840
+ {
1841
+ "type": "tuple",
1842
+ "name": "sweepProof",
1843
+ "components": [
1844
+ {
1845
+ "type": "bytes",
1846
+ "name": "merkleProof"
1847
+ },
1848
+ {
1849
+ "type": "uint256",
1850
+ "name": "txIndexInBlock"
1851
+ },
1852
+ {
1853
+ "type": "bytes",
1854
+ "name": "bitcoinHeaders"
1855
+ }
1856
+ ]
1857
+ },
1858
+ {
1859
+ "type": "tuple",
1860
+ "name": "mainUtxo",
1861
+ "components": [
1862
+ {
1863
+ "type": "bytes32",
1864
+ "name": "txHash"
1865
+ },
1866
+ {
1867
+ "type": "uint32",
1868
+ "name": "txOutputIndex"
1869
+ },
1870
+ {
1871
+ "type": "uint64",
1872
+ "name": "txOutputValue"
1873
+ }
1874
+ ]
1875
+ },
1876
+ {
1877
+ "type": "address",
1878
+ "name": "vault"
1879
+ }
1880
+ ],
1881
+ "outputs": []
1882
+ },
1883
+ {
1884
+ "type": "function",
1885
+ "name": "submitFraudChallenge",
1886
+ "constant": false,
1887
+ "stateMutability": "payable",
1888
+ "payable": true,
1889
+ "gas": 29000000,
1890
+ "inputs": [
1891
+ {
1892
+ "type": "bytes",
1893
+ "name": "walletPublicKey"
1894
+ },
1895
+ {
1896
+ "type": "bytes",
1897
+ "name": "preimageSha256"
1898
+ },
1899
+ {
1900
+ "type": "tuple",
1901
+ "name": "signature",
1902
+ "components": [
1903
+ {
1904
+ "type": "bytes32",
1905
+ "name": "r"
1906
+ },
1907
+ {
1908
+ "type": "bytes32",
1909
+ "name": "s"
1910
+ },
1911
+ {
1912
+ "type": "uint8",
1913
+ "name": "v"
1914
+ }
1915
+ ]
1916
+ }
1917
+ ],
1918
+ "outputs": []
1919
+ },
1920
+ {
1921
+ "type": "function",
1922
+ "name": "submitMovedFundsSweepProof",
1923
+ "constant": false,
1924
+ "payable": false,
1925
+ "gas": 29000000,
1926
+ "inputs": [
1927
+ {
1928
+ "type": "tuple",
1929
+ "name": "sweepTx",
1930
+ "components": [
1931
+ {
1932
+ "type": "bytes4",
1933
+ "name": "version"
1934
+ },
1935
+ {
1936
+ "type": "bytes",
1937
+ "name": "inputVector"
1938
+ },
1939
+ {
1940
+ "type": "bytes",
1941
+ "name": "outputVector"
1942
+ },
1943
+ {
1944
+ "type": "bytes4",
1945
+ "name": "locktime"
1946
+ }
1947
+ ]
1948
+ },
1949
+ {
1950
+ "type": "tuple",
1951
+ "name": "sweepProof",
1952
+ "components": [
1953
+ {
1954
+ "type": "bytes",
1955
+ "name": "merkleProof"
1956
+ },
1957
+ {
1958
+ "type": "uint256",
1959
+ "name": "txIndexInBlock"
1960
+ },
1961
+ {
1962
+ "type": "bytes",
1963
+ "name": "bitcoinHeaders"
1964
+ }
1965
+ ]
1966
+ },
1967
+ {
1968
+ "type": "tuple",
1969
+ "name": "mainUtxo",
1970
+ "components": [
1971
+ {
1972
+ "type": "bytes32",
1973
+ "name": "txHash"
1974
+ },
1975
+ {
1976
+ "type": "uint32",
1977
+ "name": "txOutputIndex"
1978
+ },
1979
+ {
1980
+ "type": "uint64",
1981
+ "name": "txOutputValue"
1982
+ }
1983
+ ]
1984
+ }
1985
+ ],
1986
+ "outputs": []
1987
+ },
1988
+ {
1989
+ "type": "function",
1990
+ "name": "submitMovingFundsCommitment",
1991
+ "constant": false,
1992
+ "payable": false,
1993
+ "gas": 29000000,
1994
+ "inputs": [
1995
+ {
1996
+ "type": "bytes20",
1997
+ "name": "walletPubKeyHash"
1998
+ },
1999
+ {
2000
+ "type": "tuple",
2001
+ "name": "walletMainUtxo",
2002
+ "components": [
2003
+ {
2004
+ "type": "bytes32",
2005
+ "name": "txHash"
2006
+ },
2007
+ {
2008
+ "type": "uint32",
2009
+ "name": "txOutputIndex"
2010
+ },
2011
+ {
2012
+ "type": "uint64",
2013
+ "name": "txOutputValue"
2014
+ }
2015
+ ]
2016
+ },
2017
+ {
2018
+ "type": "uint32[]",
2019
+ "name": "walletMembersIDs"
2020
+ },
2021
+ {
2022
+ "type": "uint256",
2023
+ "name": "walletMemberIndex"
2024
+ },
2025
+ {
2026
+ "type": "bytes20[]",
2027
+ "name": "targetWallets"
2028
+ }
2029
+ ],
2030
+ "outputs": []
2031
+ },
2032
+ {
2033
+ "type": "function",
2034
+ "name": "submitMovingFundsProof",
2035
+ "constant": false,
2036
+ "payable": false,
2037
+ "gas": 29000000,
2038
+ "inputs": [
2039
+ {
2040
+ "type": "tuple",
2041
+ "name": "movingFundsTx",
2042
+ "components": [
2043
+ {
2044
+ "type": "bytes4",
2045
+ "name": "version"
2046
+ },
2047
+ {
2048
+ "type": "bytes",
2049
+ "name": "inputVector"
2050
+ },
2051
+ {
2052
+ "type": "bytes",
2053
+ "name": "outputVector"
2054
+ },
2055
+ {
2056
+ "type": "bytes4",
2057
+ "name": "locktime"
2058
+ }
2059
+ ]
2060
+ },
2061
+ {
2062
+ "type": "tuple",
2063
+ "name": "movingFundsProof",
2064
+ "components": [
2065
+ {
2066
+ "type": "bytes",
2067
+ "name": "merkleProof"
2068
+ },
2069
+ {
2070
+ "type": "uint256",
2071
+ "name": "txIndexInBlock"
2072
+ },
2073
+ {
2074
+ "type": "bytes",
2075
+ "name": "bitcoinHeaders"
2076
+ }
2077
+ ]
2078
+ },
2079
+ {
2080
+ "type": "tuple",
2081
+ "name": "mainUtxo",
2082
+ "components": [
2083
+ {
2084
+ "type": "bytes32",
2085
+ "name": "txHash"
2086
+ },
2087
+ {
2088
+ "type": "uint32",
2089
+ "name": "txOutputIndex"
2090
+ },
2091
+ {
2092
+ "type": "uint64",
2093
+ "name": "txOutputValue"
2094
+ }
2095
+ ]
2096
+ },
2097
+ {
2098
+ "type": "bytes20",
2099
+ "name": "walletPubKeyHash"
2100
+ }
2101
+ ],
2102
+ "outputs": []
2103
+ },
2104
+ {
2105
+ "type": "function",
2106
+ "name": "submitRedemptionProof",
2107
+ "constant": false,
2108
+ "payable": false,
2109
+ "gas": 29000000,
2110
+ "inputs": [
2111
+ {
2112
+ "type": "tuple",
2113
+ "name": "redemptionTx",
2114
+ "components": [
2115
+ {
2116
+ "type": "bytes4",
2117
+ "name": "version"
2118
+ },
2119
+ {
2120
+ "type": "bytes",
2121
+ "name": "inputVector"
2122
+ },
2123
+ {
2124
+ "type": "bytes",
2125
+ "name": "outputVector"
2126
+ },
2127
+ {
2128
+ "type": "bytes4",
2129
+ "name": "locktime"
2130
+ }
2131
+ ]
2132
+ },
2133
+ {
2134
+ "type": "tuple",
2135
+ "name": "redemptionProof",
2136
+ "components": [
2137
+ {
2138
+ "type": "bytes",
2139
+ "name": "merkleProof"
2140
+ },
2141
+ {
2142
+ "type": "uint256",
2143
+ "name": "txIndexInBlock"
2144
+ },
2145
+ {
2146
+ "type": "bytes",
2147
+ "name": "bitcoinHeaders"
2148
+ }
2149
+ ]
2150
+ },
2151
+ {
2152
+ "type": "tuple",
2153
+ "name": "mainUtxo",
2154
+ "components": [
2155
+ {
2156
+ "type": "bytes32",
2157
+ "name": "txHash"
2158
+ },
2159
+ {
2160
+ "type": "uint32",
2161
+ "name": "txOutputIndex"
2162
+ },
2163
+ {
2164
+ "type": "uint64",
2165
+ "name": "txOutputValue"
2166
+ }
2167
+ ]
2168
+ },
2169
+ {
2170
+ "type": "bytes20",
2171
+ "name": "walletPubKeyHash"
2172
+ }
2173
+ ],
2174
+ "outputs": []
2175
+ },
2176
+ {
2177
+ "type": "function",
2178
+ "name": "timedOutRedemptions",
2179
+ "constant": true,
2180
+ "stateMutability": "view",
2181
+ "payable": false,
2182
+ "gas": 29000000,
2183
+ "inputs": [
2184
+ {
2185
+ "type": "uint256",
2186
+ "name": "redemptionKey"
2187
+ }
2188
+ ],
2189
+ "outputs": [
2190
+ {
2191
+ "type": "tuple",
2192
+ "components": [
2193
+ {
2194
+ "type": "address",
2195
+ "name": "redeemer"
2196
+ },
2197
+ {
2198
+ "type": "uint64",
2199
+ "name": "requestedAmount"
2200
+ },
2201
+ {
2202
+ "type": "uint64",
2203
+ "name": "treasuryFee"
2204
+ },
2205
+ {
2206
+ "type": "uint64",
2207
+ "name": "txMaxFee"
2208
+ },
2209
+ {
2210
+ "type": "uint32",
2211
+ "name": "requestedAt"
2212
+ }
2213
+ ]
2214
+ }
2215
+ ]
2216
+ },
2217
+ {
2218
+ "type": "function",
2219
+ "name": "timeoutPendingMovedFundsSweepRequest",
2220
+ "constant": false,
2221
+ "payable": false,
2222
+ "gas": 29000000,
2223
+ "inputs": [
2224
+ {
2225
+ "type": "bytes20",
2226
+ "name": "walletPubKeyHash"
2227
+ },
2228
+ {
2229
+ "type": "tuple",
2230
+ "name": "utxo",
2231
+ "components": [
2232
+ {
2233
+ "type": "bytes32",
2234
+ "name": "txHash"
2235
+ },
2236
+ {
2237
+ "type": "uint32",
2238
+ "name": "txOutputIndex"
2239
+ },
2240
+ {
2241
+ "type": "uint64",
2242
+ "name": "txOutputValue"
2243
+ }
2244
+ ]
2245
+ }
2246
+ ],
2247
+ "outputs": []
2248
+ },
2249
+ {
2250
+ "type": "function",
2251
+ "name": "transferGovernance",
2252
+ "constant": false,
2253
+ "payable": false,
2254
+ "gas": 29000000,
2255
+ "inputs": [
2256
+ {
2257
+ "type": "address",
2258
+ "name": "newGovernance"
2259
+ }
2260
+ ],
2261
+ "outputs": []
2262
+ },
2263
+ {
2264
+ "type": "function",
2265
+ "name": "treasury",
2266
+ "constant": true,
2267
+ "stateMutability": "view",
2268
+ "payable": false,
2269
+ "gas": 29000000,
2270
+ "inputs": [],
2271
+ "outputs": [
2272
+ {
2273
+ "type": "address"
2274
+ }
2275
+ ]
2276
+ },
2277
+ {
2278
+ "type": "function",
2279
+ "name": "txProofDifficultyFactor",
2280
+ "constant": true,
2281
+ "stateMutability": "view",
2282
+ "payable": false,
2283
+ "gas": 29000000,
2284
+ "inputs": [],
2285
+ "outputs": [
2286
+ {
2287
+ "type": "uint256"
2288
+ }
2289
+ ]
2290
+ },
2291
+ {
2292
+ "type": "function",
2293
+ "name": "updateDepositParameters",
2294
+ "constant": false,
2295
+ "payable": false,
2296
+ "gas": 29000000,
2297
+ "inputs": [
2298
+ {
2299
+ "type": "uint64",
2300
+ "name": "depositDustThreshold"
2301
+ },
2302
+ {
2303
+ "type": "uint64",
2304
+ "name": "depositTreasuryFeeDivisor"
2305
+ },
2306
+ {
2307
+ "type": "uint64",
2308
+ "name": "depositTxMaxFee"
2309
+ }
2310
+ ],
2311
+ "outputs": []
2312
+ },
2313
+ {
2314
+ "type": "function",
2315
+ "name": "updateFraudParameters",
2316
+ "constant": false,
2317
+ "payable": false,
2318
+ "gas": 29000000,
2319
+ "inputs": [
2320
+ {
2321
+ "type": "uint256",
2322
+ "name": "fraudChallengeDepositAmount"
2323
+ },
2324
+ {
2325
+ "type": "uint256",
2326
+ "name": "fraudChallengeDefeatTimeout"
2327
+ },
2328
+ {
2329
+ "type": "uint96",
2330
+ "name": "fraudSlashingAmount"
2331
+ },
2332
+ {
2333
+ "type": "uint256",
2334
+ "name": "fraudNotifierRewardMultiplier"
2335
+ }
2336
+ ],
2337
+ "outputs": []
2338
+ },
2339
+ {
2340
+ "type": "function",
2341
+ "name": "updateMovingFundsParameters",
2342
+ "constant": false,
2343
+ "payable": false,
2344
+ "gas": 29000000,
2345
+ "inputs": [
2346
+ {
2347
+ "type": "uint64",
2348
+ "name": "movingFundsTxMaxTotalFee"
2349
+ },
2350
+ {
2351
+ "type": "uint64",
2352
+ "name": "movingFundsDustThreshold"
2353
+ },
2354
+ {
2355
+ "type": "uint32",
2356
+ "name": "movingFundsTimeout"
2357
+ },
2358
+ {
2359
+ "type": "uint96",
2360
+ "name": "movingFundsTimeoutSlashingAmount"
2361
+ },
2362
+ {
2363
+ "type": "uint256",
2364
+ "name": "movingFundsTimeoutNotifierRewardMultiplier"
2365
+ },
2366
+ {
2367
+ "type": "uint64",
2368
+ "name": "movedFundsSweepTxMaxTotalFee"
2369
+ },
2370
+ {
2371
+ "type": "uint32",
2372
+ "name": "movedFundsSweepTimeout"
2373
+ },
2374
+ {
2375
+ "type": "uint96",
2376
+ "name": "movedFundsSweepTimeoutSlashingAmount"
2377
+ },
2378
+ {
2379
+ "type": "uint256",
2380
+ "name": "movedFundsSweepTimeoutNotifierRewardMultiplier"
2381
+ }
2382
+ ],
2383
+ "outputs": []
2384
+ },
2385
+ {
2386
+ "type": "function",
2387
+ "name": "updateRedemptionParameters",
2388
+ "constant": false,
2389
+ "payable": false,
2390
+ "gas": 29000000,
2391
+ "inputs": [
2392
+ {
2393
+ "type": "uint64",
2394
+ "name": "redemptionDustThreshold"
2395
+ },
2396
+ {
2397
+ "type": "uint64",
2398
+ "name": "redemptionTreasuryFeeDivisor"
2399
+ },
2400
+ {
2401
+ "type": "uint64",
2402
+ "name": "redemptionTxMaxFee"
2403
+ },
2404
+ {
2405
+ "type": "uint256",
2406
+ "name": "redemptionTimeout"
2407
+ },
2408
+ {
2409
+ "type": "uint96",
2410
+ "name": "redemptionTimeoutSlashingAmount"
2411
+ },
2412
+ {
2413
+ "type": "uint256",
2414
+ "name": "redemptionTimeoutNotifierRewardMultiplier"
2415
+ }
2416
+ ],
2417
+ "outputs": []
2418
+ },
2419
+ {
2420
+ "type": "function",
2421
+ "name": "updateWalletParameters",
2422
+ "constant": false,
2423
+ "payable": false,
2424
+ "gas": 29000000,
2425
+ "inputs": [
2426
+ {
2427
+ "type": "uint32",
2428
+ "name": "walletCreationPeriod"
2429
+ },
2430
+ {
2431
+ "type": "uint64",
2432
+ "name": "walletCreationMinBtcBalance"
2433
+ },
2434
+ {
2435
+ "type": "uint64",
2436
+ "name": "walletCreationMaxBtcBalance"
2437
+ },
2438
+ {
2439
+ "type": "uint64",
2440
+ "name": "walletClosureMinBtcBalance"
2441
+ },
2442
+ {
2443
+ "type": "uint32",
2444
+ "name": "walletMaxAge"
2445
+ },
2446
+ {
2447
+ "type": "uint64",
2448
+ "name": "walletMaxBtcTransfer"
2449
+ },
2450
+ {
2451
+ "type": "uint32",
2452
+ "name": "walletClosingPeriod"
2453
+ }
2454
+ ],
2455
+ "outputs": []
2456
+ },
2457
+ {
2458
+ "type": "function",
2459
+ "name": "walletParameters",
2460
+ "constant": true,
2461
+ "stateMutability": "view",
2462
+ "payable": false,
2463
+ "gas": 29000000,
2464
+ "inputs": [],
2465
+ "outputs": [
2466
+ {
2467
+ "type": "uint32",
2468
+ "name": "walletCreationPeriod"
2469
+ },
2470
+ {
2471
+ "type": "uint64",
2472
+ "name": "walletCreationMinBtcBalance"
2473
+ },
2474
+ {
2475
+ "type": "uint64",
2476
+ "name": "walletCreationMaxBtcBalance"
2477
+ },
2478
+ {
2479
+ "type": "uint64",
2480
+ "name": "walletClosureMinBtcBalance"
2481
+ },
2482
+ {
2483
+ "type": "uint32",
2484
+ "name": "walletMaxAge"
2485
+ },
2486
+ {
2487
+ "type": "uint64",
2488
+ "name": "walletMaxBtcTransfer"
2489
+ },
2490
+ {
2491
+ "type": "uint32",
2492
+ "name": "walletClosingPeriod"
2493
+ }
2494
+ ]
2495
+ },
2496
+ {
2497
+ "type": "function",
2498
+ "name": "wallets",
2499
+ "constant": true,
2500
+ "stateMutability": "view",
2501
+ "payable": false,
2502
+ "gas": 29000000,
2503
+ "inputs": [
2504
+ {
2505
+ "type": "bytes20",
2506
+ "name": "walletPubKeyHash"
2507
+ }
2508
+ ],
2509
+ "outputs": [
2510
+ {
2511
+ "type": "tuple",
2512
+ "components": [
2513
+ {
2514
+ "type": "bytes32",
2515
+ "name": "ecdsaWalletID"
2516
+ },
2517
+ {
2518
+ "type": "bytes32",
2519
+ "name": "mainUtxoHash"
2520
+ },
2521
+ {
2522
+ "type": "uint64",
2523
+ "name": "pendingRedemptionsValue"
2524
+ },
2525
+ {
2526
+ "type": "uint32",
2527
+ "name": "createdAt"
2528
+ },
2529
+ {
2530
+ "type": "uint32",
2531
+ "name": "movingFundsRequestedAt"
2532
+ },
2533
+ {
2534
+ "type": "uint32",
2535
+ "name": "closingStartedAt"
2536
+ },
2537
+ {
2538
+ "type": "uint32",
2539
+ "name": "pendingMovedFundsSweepRequestsCount"
2540
+ },
2541
+ {
2542
+ "type": "uint8",
2543
+ "name": "state"
2544
+ },
2545
+ {
2546
+ "type": "bytes32",
2547
+ "name": "movingFundsTargetWalletsCommitmentHash"
2548
+ }
2549
+ ]
2550
+ }
2551
+ ]
2552
+ }
2553
+ ],
2554
+ "transactionHash": "0x97f36e440ec6e7792075a4e3d7d88c87ebb13c872b8bc4259c4cf835ef58cd71",
2555
+ "numDeployments": 1
2556
+ }