@keep-network/tbtc-v2 0.1.1-dev.8 → 0.1.1-dev.80

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