@keep-network/tbtc-v2 0.1.1-dev.54 → 0.1.1-dev.57
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.
- package/artifacts/Bank.json +3 -3
- package/artifacts/Bridge.json +581 -234
- package/artifacts/Deposit.json +9 -9
- package/artifacts/DepositSweep.json +76 -0
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/Fraud.json +9 -9
- package/artifacts/KeepRegistry.json +1 -1
- package/artifacts/KeepStake.json +2 -2
- package/artifacts/KeepToken.json +2 -2
- package/artifacts/KeepTokenStaking.json +1 -1
- package/artifacts/MovingFunds.json +41 -11
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeaconStub.json +1 -1
- package/artifacts/Redemption.json +9 -9
- package/artifacts/ReimbursementPool.json +2 -2
- package/artifacts/Relay.json +9 -9
- package/artifacts/SortitionPool.json +2 -2
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +3 -3
- package/artifacts/TBTCToken.json +3 -3
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +10 -10
- package/artifacts/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/WalletRegistry.json +2 -2
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +9 -9
- package/artifacts/solcInputs/{799c7b289d9b6d9cfc600d2fc23c7b64.json → d1140ac40baa1ba6f0d558afe0fa6d54.json} +10 -10
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +2 -2
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/Bridge.sol/Bridge.json +296 -128
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/BridgeState.sol/BridgeState.json +17 -11
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
- package/build/contracts/bridge/Deposit.sol/Deposit.json +2 -2
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +4 -0
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +30 -0
- package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
- package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
- package/build/contracts/bridge/Fraud.sol/Fraud.json +2 -2
- package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +21 -2
- package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/OutboundTx.json +2 -2
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.json +2 -2
- package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.json +2 -2
- package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
- package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
- package/contracts/bridge/BitcoinTx.sol +69 -0
- package/contracts/bridge/Bridge.sol +132 -49
- package/contracts/bridge/BridgeState.sol +77 -46
- package/contracts/bridge/{Sweep.sol → DepositSweep.sol} +30 -18
- package/contracts/bridge/MovingFunds.sol +480 -76
- package/contracts/bridge/Wallets.sol +2 -0
- package/deploy/05_deploy_bridge.ts +5 -2
- package/export.json +348 -81
- package/package.json +1 -1
- package/artifacts/Sweep.json +0 -76
- package/build/contracts/bridge/Sweep.sol/Sweep.dbg.json +0 -4
- package/build/contracts/bridge/Sweep.sol/Sweep.json +0 -30
package/export.json
CHANGED
|
@@ -13619,7 +13619,7 @@
|
|
|
13619
13619
|
}
|
|
13620
13620
|
]
|
|
13621
13621
|
},
|
|
13622
|
-
"
|
|
13622
|
+
"DepositSweep": {
|
|
13623
13623
|
"address": "0x55cb3b67D9E65F0Cf4eABCAC84564a1bE6E3b06A",
|
|
13624
13624
|
"abi": [
|
|
13625
13625
|
{
|
|
@@ -13918,6 +13918,25 @@
|
|
|
13918
13918
|
"MovingFunds": {
|
|
13919
13919
|
"address": "0x1a6a3e7Bb246158dF31d8f924B84D961669Ba4e5",
|
|
13920
13920
|
"abi": [
|
|
13921
|
+
{
|
|
13922
|
+
"anonymous": false,
|
|
13923
|
+
"inputs": [
|
|
13924
|
+
{
|
|
13925
|
+
"indexed": false,
|
|
13926
|
+
"internalType": "bytes20",
|
|
13927
|
+
"name": "walletPubKeyHash",
|
|
13928
|
+
"type": "bytes20"
|
|
13929
|
+
},
|
|
13930
|
+
{
|
|
13931
|
+
"indexed": false,
|
|
13932
|
+
"internalType": "bytes32",
|
|
13933
|
+
"name": "sweepTxHash",
|
|
13934
|
+
"type": "bytes32"
|
|
13935
|
+
}
|
|
13936
|
+
],
|
|
13937
|
+
"name": "MovedFundsSwept",
|
|
13938
|
+
"type": "event"
|
|
13939
|
+
},
|
|
13921
13940
|
{
|
|
13922
13941
|
"anonymous": false,
|
|
13923
13942
|
"inputs": [
|
|
@@ -14207,16 +14226,10 @@
|
|
|
14207
14226
|
{
|
|
14208
14227
|
"anonymous": false,
|
|
14209
14228
|
"inputs": [
|
|
14210
|
-
{
|
|
14211
|
-
"indexed": false,
|
|
14212
|
-
"internalType": "uint96",
|
|
14213
|
-
"name": "fraudSlashingAmount",
|
|
14214
|
-
"type": "uint96"
|
|
14215
|
-
},
|
|
14216
14229
|
{
|
|
14217
14230
|
"indexed": false,
|
|
14218
14231
|
"internalType": "uint256",
|
|
14219
|
-
"name": "
|
|
14232
|
+
"name": "fraudChallengeDepositAmount",
|
|
14220
14233
|
"type": "uint256"
|
|
14221
14234
|
},
|
|
14222
14235
|
{
|
|
@@ -14225,10 +14238,16 @@
|
|
|
14225
14238
|
"name": "fraudChallengeDefeatTimeout",
|
|
14226
14239
|
"type": "uint256"
|
|
14227
14240
|
},
|
|
14241
|
+
{
|
|
14242
|
+
"indexed": false,
|
|
14243
|
+
"internalType": "uint96",
|
|
14244
|
+
"name": "fraudSlashingAmount",
|
|
14245
|
+
"type": "uint96"
|
|
14246
|
+
},
|
|
14228
14247
|
{
|
|
14229
14248
|
"indexed": false,
|
|
14230
14249
|
"internalType": "uint256",
|
|
14231
|
-
"name": "
|
|
14250
|
+
"name": "fraudNotifierRewardMultiplier",
|
|
14232
14251
|
"type": "uint256"
|
|
14233
14252
|
}
|
|
14234
14253
|
],
|
|
@@ -14254,6 +14273,25 @@
|
|
|
14254
14273
|
"name": "GovernanceTransferred",
|
|
14255
14274
|
"type": "event"
|
|
14256
14275
|
},
|
|
14276
|
+
{
|
|
14277
|
+
"anonymous": false,
|
|
14278
|
+
"inputs": [
|
|
14279
|
+
{
|
|
14280
|
+
"indexed": false,
|
|
14281
|
+
"internalType": "bytes20",
|
|
14282
|
+
"name": "walletPubKeyHash",
|
|
14283
|
+
"type": "bytes20"
|
|
14284
|
+
},
|
|
14285
|
+
{
|
|
14286
|
+
"indexed": false,
|
|
14287
|
+
"internalType": "bytes32",
|
|
14288
|
+
"name": "sweepTxHash",
|
|
14289
|
+
"type": "bytes32"
|
|
14290
|
+
}
|
|
14291
|
+
],
|
|
14292
|
+
"name": "MovedFundsSwept",
|
|
14293
|
+
"type": "event"
|
|
14294
|
+
},
|
|
14257
14295
|
{
|
|
14258
14296
|
"anonymous": false,
|
|
14259
14297
|
"inputs": [
|
|
@@ -14320,6 +14358,12 @@
|
|
|
14320
14358
|
"name": "movingFundsTxMaxTotalFee",
|
|
14321
14359
|
"type": "uint64"
|
|
14322
14360
|
},
|
|
14361
|
+
{
|
|
14362
|
+
"indexed": false,
|
|
14363
|
+
"internalType": "uint64",
|
|
14364
|
+
"name": "movingFundsDustThreshold",
|
|
14365
|
+
"type": "uint64"
|
|
14366
|
+
},
|
|
14323
14367
|
{
|
|
14324
14368
|
"indexed": false,
|
|
14325
14369
|
"internalType": "uint32",
|
|
@@ -14341,7 +14385,7 @@
|
|
|
14341
14385
|
{
|
|
14342
14386
|
"indexed": false,
|
|
14343
14387
|
"internalType": "uint64",
|
|
14344
|
-
"name": "
|
|
14388
|
+
"name": "movedFundsSweepTxMaxTotalFee",
|
|
14345
14389
|
"type": "uint64"
|
|
14346
14390
|
}
|
|
14347
14391
|
],
|
|
@@ -14878,14 +14922,9 @@
|
|
|
14878
14922
|
"inputs": [],
|
|
14879
14923
|
"name": "fraudParameters",
|
|
14880
14924
|
"outputs": [
|
|
14881
|
-
{
|
|
14882
|
-
"internalType": "uint96",
|
|
14883
|
-
"name": "fraudSlashingAmount",
|
|
14884
|
-
"type": "uint96"
|
|
14885
|
-
},
|
|
14886
14925
|
{
|
|
14887
14926
|
"internalType": "uint256",
|
|
14888
|
-
"name": "
|
|
14927
|
+
"name": "fraudChallengeDepositAmount",
|
|
14889
14928
|
"type": "uint256"
|
|
14890
14929
|
},
|
|
14891
14930
|
{
|
|
@@ -14893,9 +14932,14 @@
|
|
|
14893
14932
|
"name": "fraudChallengeDefeatTimeout",
|
|
14894
14933
|
"type": "uint256"
|
|
14895
14934
|
},
|
|
14935
|
+
{
|
|
14936
|
+
"internalType": "uint96",
|
|
14937
|
+
"name": "fraudSlashingAmount",
|
|
14938
|
+
"type": "uint96"
|
|
14939
|
+
},
|
|
14896
14940
|
{
|
|
14897
14941
|
"internalType": "uint256",
|
|
14898
|
-
"name": "
|
|
14942
|
+
"name": "fraudNotifierRewardMultiplier",
|
|
14899
14943
|
"type": "uint256"
|
|
14900
14944
|
}
|
|
14901
14945
|
],
|
|
@@ -14947,6 +14991,47 @@
|
|
|
14947
14991
|
"stateMutability": "view",
|
|
14948
14992
|
"type": "function"
|
|
14949
14993
|
},
|
|
14994
|
+
{
|
|
14995
|
+
"inputs": [
|
|
14996
|
+
{
|
|
14997
|
+
"internalType": "uint256",
|
|
14998
|
+
"name": "requestKey",
|
|
14999
|
+
"type": "uint256"
|
|
15000
|
+
}
|
|
15001
|
+
],
|
|
15002
|
+
"name": "movedFundsSweepRequests",
|
|
15003
|
+
"outputs": [
|
|
15004
|
+
{
|
|
15005
|
+
"components": [
|
|
15006
|
+
{
|
|
15007
|
+
"internalType": "bytes20",
|
|
15008
|
+
"name": "walletPubKeyHash",
|
|
15009
|
+
"type": "bytes20"
|
|
15010
|
+
},
|
|
15011
|
+
{
|
|
15012
|
+
"internalType": "uint64",
|
|
15013
|
+
"name": "value",
|
|
15014
|
+
"type": "uint64"
|
|
15015
|
+
},
|
|
15016
|
+
{
|
|
15017
|
+
"internalType": "uint32",
|
|
15018
|
+
"name": "createdAt",
|
|
15019
|
+
"type": "uint32"
|
|
15020
|
+
},
|
|
15021
|
+
{
|
|
15022
|
+
"internalType": "uint32",
|
|
15023
|
+
"name": "sweptAt",
|
|
15024
|
+
"type": "uint32"
|
|
15025
|
+
}
|
|
15026
|
+
],
|
|
15027
|
+
"internalType": "struct MovingFunds.MovedFundsSweepRequest",
|
|
15028
|
+
"name": "",
|
|
15029
|
+
"type": "tuple"
|
|
15030
|
+
}
|
|
15031
|
+
],
|
|
15032
|
+
"stateMutability": "view",
|
|
15033
|
+
"type": "function"
|
|
15034
|
+
},
|
|
14950
15035
|
{
|
|
14951
15036
|
"inputs": [],
|
|
14952
15037
|
"name": "movingFundsParameters",
|
|
@@ -14956,6 +15041,11 @@
|
|
|
14956
15041
|
"name": "movingFundsTxMaxTotalFee",
|
|
14957
15042
|
"type": "uint64"
|
|
14958
15043
|
},
|
|
15044
|
+
{
|
|
15045
|
+
"internalType": "uint64",
|
|
15046
|
+
"name": "movingFundsDustThreshold",
|
|
15047
|
+
"type": "uint64"
|
|
15048
|
+
},
|
|
14959
15049
|
{
|
|
14960
15050
|
"internalType": "uint32",
|
|
14961
15051
|
"name": "movingFundsTimeout",
|
|
@@ -14973,7 +15063,7 @@
|
|
|
14973
15063
|
},
|
|
14974
15064
|
{
|
|
14975
15065
|
"internalType": "uint64",
|
|
14976
|
-
"name": "
|
|
15066
|
+
"name": "movedFundsSweepTxMaxTotalFee",
|
|
14977
15067
|
"type": "uint64"
|
|
14978
15068
|
}
|
|
14979
15069
|
],
|
|
@@ -15173,6 +15263,41 @@
|
|
|
15173
15263
|
"stateMutability": "view",
|
|
15174
15264
|
"type": "function"
|
|
15175
15265
|
},
|
|
15266
|
+
{
|
|
15267
|
+
"inputs": [
|
|
15268
|
+
{
|
|
15269
|
+
"internalType": "bytes20",
|
|
15270
|
+
"name": "walletPubKeyHash",
|
|
15271
|
+
"type": "bytes20"
|
|
15272
|
+
},
|
|
15273
|
+
{
|
|
15274
|
+
"components": [
|
|
15275
|
+
{
|
|
15276
|
+
"internalType": "bytes32",
|
|
15277
|
+
"name": "txHash",
|
|
15278
|
+
"type": "bytes32"
|
|
15279
|
+
},
|
|
15280
|
+
{
|
|
15281
|
+
"internalType": "uint32",
|
|
15282
|
+
"name": "txOutputIndex",
|
|
15283
|
+
"type": "uint32"
|
|
15284
|
+
},
|
|
15285
|
+
{
|
|
15286
|
+
"internalType": "uint64",
|
|
15287
|
+
"name": "txOutputValue",
|
|
15288
|
+
"type": "uint64"
|
|
15289
|
+
}
|
|
15290
|
+
],
|
|
15291
|
+
"internalType": "struct BitcoinTx.UTXO",
|
|
15292
|
+
"name": "utxo",
|
|
15293
|
+
"type": "tuple"
|
|
15294
|
+
}
|
|
15295
|
+
],
|
|
15296
|
+
"name": "processPendingMovedFundsSweepRequest",
|
|
15297
|
+
"outputs": [],
|
|
15298
|
+
"stateMutability": "nonpayable",
|
|
15299
|
+
"type": "function"
|
|
15300
|
+
},
|
|
15176
15301
|
{
|
|
15177
15302
|
"inputs": [],
|
|
15178
15303
|
"name": "redemptionParameters",
|
|
@@ -15402,6 +15527,19 @@
|
|
|
15402
15527
|
"stateMutability": "nonpayable",
|
|
15403
15528
|
"type": "function"
|
|
15404
15529
|
},
|
|
15530
|
+
{
|
|
15531
|
+
"inputs": [
|
|
15532
|
+
{
|
|
15533
|
+
"internalType": "uint64",
|
|
15534
|
+
"name": "_movedFundsSweepTxMaxTotalFee",
|
|
15535
|
+
"type": "uint64"
|
|
15536
|
+
}
|
|
15537
|
+
],
|
|
15538
|
+
"name": "setMovedFundsSweepTxMaxTotalFee",
|
|
15539
|
+
"outputs": [],
|
|
15540
|
+
"stateMutability": "nonpayable",
|
|
15541
|
+
"type": "function"
|
|
15542
|
+
},
|
|
15405
15543
|
{
|
|
15406
15544
|
"inputs": [
|
|
15407
15545
|
{
|
|
@@ -15415,6 +15553,41 @@
|
|
|
15415
15553
|
"stateMutability": "nonpayable",
|
|
15416
15554
|
"type": "function"
|
|
15417
15555
|
},
|
|
15556
|
+
{
|
|
15557
|
+
"inputs": [
|
|
15558
|
+
{
|
|
15559
|
+
"internalType": "bytes20",
|
|
15560
|
+
"name": "walletPubKeyHash",
|
|
15561
|
+
"type": "bytes20"
|
|
15562
|
+
},
|
|
15563
|
+
{
|
|
15564
|
+
"components": [
|
|
15565
|
+
{
|
|
15566
|
+
"internalType": "bytes32",
|
|
15567
|
+
"name": "txHash",
|
|
15568
|
+
"type": "bytes32"
|
|
15569
|
+
},
|
|
15570
|
+
{
|
|
15571
|
+
"internalType": "uint32",
|
|
15572
|
+
"name": "txOutputIndex",
|
|
15573
|
+
"type": "uint32"
|
|
15574
|
+
},
|
|
15575
|
+
{
|
|
15576
|
+
"internalType": "uint64",
|
|
15577
|
+
"name": "txOutputValue",
|
|
15578
|
+
"type": "uint64"
|
|
15579
|
+
}
|
|
15580
|
+
],
|
|
15581
|
+
"internalType": "struct BitcoinTx.UTXO",
|
|
15582
|
+
"name": "utxo",
|
|
15583
|
+
"type": "tuple"
|
|
15584
|
+
}
|
|
15585
|
+
],
|
|
15586
|
+
"name": "setPendingMovedFundsSweepRequest",
|
|
15587
|
+
"outputs": [],
|
|
15588
|
+
"stateMutability": "nonpayable",
|
|
15589
|
+
"type": "function"
|
|
15590
|
+
},
|
|
15418
15591
|
{
|
|
15419
15592
|
"inputs": [
|
|
15420
15593
|
{
|
|
@@ -15558,6 +15731,11 @@
|
|
|
15558
15731
|
"name": "closingStartedAt",
|
|
15559
15732
|
"type": "uint32"
|
|
15560
15733
|
},
|
|
15734
|
+
{
|
|
15735
|
+
"internalType": "uint32",
|
|
15736
|
+
"name": "pendingMovedFundsSweepRequestsCount",
|
|
15737
|
+
"type": "uint32"
|
|
15738
|
+
},
|
|
15561
15739
|
{
|
|
15562
15740
|
"internalType": "enum Wallets.WalletState",
|
|
15563
15741
|
"name": "state",
|
|
@@ -15636,49 +15814,53 @@
|
|
|
15636
15814
|
{
|
|
15637
15815
|
"inputs": [
|
|
15638
15816
|
{
|
|
15639
|
-
"
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
|
|
15646
|
-
|
|
15817
|
+
"components": [
|
|
15818
|
+
{
|
|
15819
|
+
"internalType": "bytes4",
|
|
15820
|
+
"name": "version",
|
|
15821
|
+
"type": "bytes4"
|
|
15822
|
+
},
|
|
15823
|
+
{
|
|
15824
|
+
"internalType": "bytes",
|
|
15825
|
+
"name": "inputVector",
|
|
15826
|
+
"type": "bytes"
|
|
15827
|
+
},
|
|
15828
|
+
{
|
|
15829
|
+
"internalType": "bytes",
|
|
15830
|
+
"name": "outputVector",
|
|
15831
|
+
"type": "bytes"
|
|
15832
|
+
},
|
|
15833
|
+
{
|
|
15834
|
+
"internalType": "bytes4",
|
|
15835
|
+
"name": "locktime",
|
|
15836
|
+
"type": "bytes4"
|
|
15837
|
+
}
|
|
15838
|
+
],
|
|
15839
|
+
"internalType": "struct BitcoinTx.Info",
|
|
15840
|
+
"name": "sweepTx",
|
|
15841
|
+
"type": "tuple"
|
|
15647
15842
|
},
|
|
15648
15843
|
{
|
|
15649
15844
|
"components": [
|
|
15650
15845
|
{
|
|
15651
|
-
"internalType": "
|
|
15652
|
-
"name": "
|
|
15653
|
-
"type": "
|
|
15846
|
+
"internalType": "bytes",
|
|
15847
|
+
"name": "merkleProof",
|
|
15848
|
+
"type": "bytes"
|
|
15654
15849
|
},
|
|
15655
15850
|
{
|
|
15656
|
-
"internalType": "
|
|
15657
|
-
"name": "
|
|
15658
|
-
"type": "
|
|
15851
|
+
"internalType": "uint256",
|
|
15852
|
+
"name": "txIndexInBlock",
|
|
15853
|
+
"type": "uint256"
|
|
15659
15854
|
},
|
|
15660
15855
|
{
|
|
15661
|
-
"internalType": "
|
|
15662
|
-
"name": "
|
|
15663
|
-
"type": "
|
|
15856
|
+
"internalType": "bytes",
|
|
15857
|
+
"name": "bitcoinHeaders",
|
|
15858
|
+
"type": "bytes"
|
|
15664
15859
|
}
|
|
15665
15860
|
],
|
|
15666
|
-
"internalType": "struct BitcoinTx.
|
|
15667
|
-
"name": "
|
|
15861
|
+
"internalType": "struct BitcoinTx.Proof",
|
|
15862
|
+
"name": "sweepProof",
|
|
15668
15863
|
"type": "tuple"
|
|
15669
|
-
}
|
|
15670
|
-
],
|
|
15671
|
-
"name": "submitFraudChallenge",
|
|
15672
|
-
"outputs": [],
|
|
15673
|
-
"stateMutability": "payable",
|
|
15674
|
-
"type": "function"
|
|
15675
|
-
},
|
|
15676
|
-
{
|
|
15677
|
-
"inputs": [
|
|
15678
|
-
{
|
|
15679
|
-
"internalType": "bytes20",
|
|
15680
|
-
"name": "walletPubKeyHash",
|
|
15681
|
-
"type": "bytes20"
|
|
15682
15864
|
},
|
|
15683
15865
|
{
|
|
15684
15866
|
"components": [
|
|
@@ -15699,28 +15881,53 @@
|
|
|
15699
15881
|
}
|
|
15700
15882
|
],
|
|
15701
15883
|
"internalType": "struct BitcoinTx.UTXO",
|
|
15702
|
-
"name": "
|
|
15884
|
+
"name": "mainUtxo",
|
|
15703
15885
|
"type": "tuple"
|
|
15704
|
-
}
|
|
15886
|
+
}
|
|
15887
|
+
],
|
|
15888
|
+
"name": "submitDepositSweepProof",
|
|
15889
|
+
"outputs": [],
|
|
15890
|
+
"stateMutability": "nonpayable",
|
|
15891
|
+
"type": "function"
|
|
15892
|
+
},
|
|
15893
|
+
{
|
|
15894
|
+
"inputs": [
|
|
15705
15895
|
{
|
|
15706
|
-
"internalType": "
|
|
15707
|
-
"name": "
|
|
15708
|
-
"type": "
|
|
15896
|
+
"internalType": "bytes",
|
|
15897
|
+
"name": "walletPublicKey",
|
|
15898
|
+
"type": "bytes"
|
|
15709
15899
|
},
|
|
15710
15900
|
{
|
|
15711
|
-
"internalType": "
|
|
15712
|
-
"name": "
|
|
15713
|
-
"type": "
|
|
15901
|
+
"internalType": "bytes32",
|
|
15902
|
+
"name": "sighash",
|
|
15903
|
+
"type": "bytes32"
|
|
15714
15904
|
},
|
|
15715
15905
|
{
|
|
15716
|
-
"
|
|
15717
|
-
|
|
15718
|
-
|
|
15906
|
+
"components": [
|
|
15907
|
+
{
|
|
15908
|
+
"internalType": "bytes32",
|
|
15909
|
+
"name": "r",
|
|
15910
|
+
"type": "bytes32"
|
|
15911
|
+
},
|
|
15912
|
+
{
|
|
15913
|
+
"internalType": "bytes32",
|
|
15914
|
+
"name": "s",
|
|
15915
|
+
"type": "bytes32"
|
|
15916
|
+
},
|
|
15917
|
+
{
|
|
15918
|
+
"internalType": "uint8",
|
|
15919
|
+
"name": "v",
|
|
15920
|
+
"type": "uint8"
|
|
15921
|
+
}
|
|
15922
|
+
],
|
|
15923
|
+
"internalType": "struct BitcoinTx.RSVSignature",
|
|
15924
|
+
"name": "signature",
|
|
15925
|
+
"type": "tuple"
|
|
15719
15926
|
}
|
|
15720
15927
|
],
|
|
15721
|
-
"name": "
|
|
15928
|
+
"name": "submitFraudChallenge",
|
|
15722
15929
|
"outputs": [],
|
|
15723
|
-
"stateMutability": "
|
|
15930
|
+
"stateMutability": "payable",
|
|
15724
15931
|
"type": "function"
|
|
15725
15932
|
},
|
|
15726
15933
|
{
|
|
@@ -15749,7 +15956,7 @@
|
|
|
15749
15956
|
}
|
|
15750
15957
|
],
|
|
15751
15958
|
"internalType": "struct BitcoinTx.Info",
|
|
15752
|
-
"name": "
|
|
15959
|
+
"name": "sweepTx",
|
|
15753
15960
|
"type": "tuple"
|
|
15754
15961
|
},
|
|
15755
15962
|
{
|
|
@@ -15771,7 +15978,7 @@
|
|
|
15771
15978
|
}
|
|
15772
15979
|
],
|
|
15773
15980
|
"internalType": "struct BitcoinTx.Proof",
|
|
15774
|
-
"name": "
|
|
15981
|
+
"name": "sweepProof",
|
|
15775
15982
|
"type": "tuple"
|
|
15776
15983
|
},
|
|
15777
15984
|
{
|
|
@@ -15795,14 +16002,59 @@
|
|
|
15795
16002
|
"internalType": "struct BitcoinTx.UTXO",
|
|
15796
16003
|
"name": "mainUtxo",
|
|
15797
16004
|
"type": "tuple"
|
|
15798
|
-
}
|
|
16005
|
+
}
|
|
16006
|
+
],
|
|
16007
|
+
"name": "submitMovedFundsSweepProof",
|
|
16008
|
+
"outputs": [],
|
|
16009
|
+
"stateMutability": "nonpayable",
|
|
16010
|
+
"type": "function"
|
|
16011
|
+
},
|
|
16012
|
+
{
|
|
16013
|
+
"inputs": [
|
|
15799
16014
|
{
|
|
15800
16015
|
"internalType": "bytes20",
|
|
15801
16016
|
"name": "walletPubKeyHash",
|
|
15802
16017
|
"type": "bytes20"
|
|
16018
|
+
},
|
|
16019
|
+
{
|
|
16020
|
+
"components": [
|
|
16021
|
+
{
|
|
16022
|
+
"internalType": "bytes32",
|
|
16023
|
+
"name": "txHash",
|
|
16024
|
+
"type": "bytes32"
|
|
16025
|
+
},
|
|
16026
|
+
{
|
|
16027
|
+
"internalType": "uint32",
|
|
16028
|
+
"name": "txOutputIndex",
|
|
16029
|
+
"type": "uint32"
|
|
16030
|
+
},
|
|
16031
|
+
{
|
|
16032
|
+
"internalType": "uint64",
|
|
16033
|
+
"name": "txOutputValue",
|
|
16034
|
+
"type": "uint64"
|
|
16035
|
+
}
|
|
16036
|
+
],
|
|
16037
|
+
"internalType": "struct BitcoinTx.UTXO",
|
|
16038
|
+
"name": "walletMainUtxo",
|
|
16039
|
+
"type": "tuple"
|
|
16040
|
+
},
|
|
16041
|
+
{
|
|
16042
|
+
"internalType": "uint32[]",
|
|
16043
|
+
"name": "walletMembersIDs",
|
|
16044
|
+
"type": "uint32[]"
|
|
16045
|
+
},
|
|
16046
|
+
{
|
|
16047
|
+
"internalType": "uint256",
|
|
16048
|
+
"name": "walletMemberIndex",
|
|
16049
|
+
"type": "uint256"
|
|
16050
|
+
},
|
|
16051
|
+
{
|
|
16052
|
+
"internalType": "bytes20[]",
|
|
16053
|
+
"name": "targetWallets",
|
|
16054
|
+
"type": "bytes20[]"
|
|
15803
16055
|
}
|
|
15804
16056
|
],
|
|
15805
|
-
"name": "
|
|
16057
|
+
"name": "submitMovingFundsCommitment",
|
|
15806
16058
|
"outputs": [],
|
|
15807
16059
|
"stateMutability": "nonpayable",
|
|
15808
16060
|
"type": "function"
|
|
@@ -15833,7 +16085,7 @@
|
|
|
15833
16085
|
}
|
|
15834
16086
|
],
|
|
15835
16087
|
"internalType": "struct BitcoinTx.Info",
|
|
15836
|
-
"name": "
|
|
16088
|
+
"name": "movingFundsTx",
|
|
15837
16089
|
"type": "tuple"
|
|
15838
16090
|
},
|
|
15839
16091
|
{
|
|
@@ -15855,7 +16107,7 @@
|
|
|
15855
16107
|
}
|
|
15856
16108
|
],
|
|
15857
16109
|
"internalType": "struct BitcoinTx.Proof",
|
|
15858
|
-
"name": "
|
|
16110
|
+
"name": "movingFundsProof",
|
|
15859
16111
|
"type": "tuple"
|
|
15860
16112
|
},
|
|
15861
16113
|
{
|
|
@@ -15886,7 +16138,7 @@
|
|
|
15886
16138
|
"type": "bytes20"
|
|
15887
16139
|
}
|
|
15888
16140
|
],
|
|
15889
|
-
"name": "
|
|
16141
|
+
"name": "submitMovingFundsProof",
|
|
15890
16142
|
"outputs": [],
|
|
15891
16143
|
"stateMutability": "nonpayable",
|
|
15892
16144
|
"type": "function"
|
|
@@ -15917,7 +16169,7 @@
|
|
|
15917
16169
|
}
|
|
15918
16170
|
],
|
|
15919
16171
|
"internalType": "struct BitcoinTx.Info",
|
|
15920
|
-
"name": "
|
|
16172
|
+
"name": "redemptionTx",
|
|
15921
16173
|
"type": "tuple"
|
|
15922
16174
|
},
|
|
15923
16175
|
{
|
|
@@ -15939,7 +16191,7 @@
|
|
|
15939
16191
|
}
|
|
15940
16192
|
],
|
|
15941
16193
|
"internalType": "struct BitcoinTx.Proof",
|
|
15942
|
-
"name": "
|
|
16194
|
+
"name": "redemptionProof",
|
|
15943
16195
|
"type": "tuple"
|
|
15944
16196
|
},
|
|
15945
16197
|
{
|
|
@@ -15963,9 +16215,14 @@
|
|
|
15963
16215
|
"internalType": "struct BitcoinTx.UTXO",
|
|
15964
16216
|
"name": "mainUtxo",
|
|
15965
16217
|
"type": "tuple"
|
|
16218
|
+
},
|
|
16219
|
+
{
|
|
16220
|
+
"internalType": "bytes20",
|
|
16221
|
+
"name": "walletPubKeyHash",
|
|
16222
|
+
"type": "bytes20"
|
|
15966
16223
|
}
|
|
15967
16224
|
],
|
|
15968
|
-
"name": "
|
|
16225
|
+
"name": "submitRedemptionProof",
|
|
15969
16226
|
"outputs": [],
|
|
15970
16227
|
"stateMutability": "nonpayable",
|
|
15971
16228
|
"type": "function"
|
|
@@ -16080,14 +16337,9 @@
|
|
|
16080
16337
|
},
|
|
16081
16338
|
{
|
|
16082
16339
|
"inputs": [
|
|
16083
|
-
{
|
|
16084
|
-
"internalType": "uint96",
|
|
16085
|
-
"name": "fraudSlashingAmount",
|
|
16086
|
-
"type": "uint96"
|
|
16087
|
-
},
|
|
16088
16340
|
{
|
|
16089
16341
|
"internalType": "uint256",
|
|
16090
|
-
"name": "
|
|
16342
|
+
"name": "fraudChallengeDepositAmount",
|
|
16091
16343
|
"type": "uint256"
|
|
16092
16344
|
},
|
|
16093
16345
|
{
|
|
@@ -16095,9 +16347,14 @@
|
|
|
16095
16347
|
"name": "fraudChallengeDefeatTimeout",
|
|
16096
16348
|
"type": "uint256"
|
|
16097
16349
|
},
|
|
16350
|
+
{
|
|
16351
|
+
"internalType": "uint96",
|
|
16352
|
+
"name": "fraudSlashingAmount",
|
|
16353
|
+
"type": "uint96"
|
|
16354
|
+
},
|
|
16098
16355
|
{
|
|
16099
16356
|
"internalType": "uint256",
|
|
16100
|
-
"name": "
|
|
16357
|
+
"name": "fraudNotifierRewardMultiplier",
|
|
16101
16358
|
"type": "uint256"
|
|
16102
16359
|
}
|
|
16103
16360
|
],
|
|
@@ -16113,6 +16370,11 @@
|
|
|
16113
16370
|
"name": "movingFundsTxMaxTotalFee",
|
|
16114
16371
|
"type": "uint64"
|
|
16115
16372
|
},
|
|
16373
|
+
{
|
|
16374
|
+
"internalType": "uint64",
|
|
16375
|
+
"name": "movingFundsDustThreshold",
|
|
16376
|
+
"type": "uint64"
|
|
16377
|
+
},
|
|
16116
16378
|
{
|
|
16117
16379
|
"internalType": "uint32",
|
|
16118
16380
|
"name": "movingFundsTimeout",
|
|
@@ -16130,7 +16392,7 @@
|
|
|
16130
16392
|
},
|
|
16131
16393
|
{
|
|
16132
16394
|
"internalType": "uint64",
|
|
16133
|
-
"name": "
|
|
16395
|
+
"name": "movedFundsSweepTxMaxTotalFee",
|
|
16134
16396
|
"type": "uint64"
|
|
16135
16397
|
}
|
|
16136
16398
|
],
|
|
@@ -16305,6 +16567,11 @@
|
|
|
16305
16567
|
"name": "closingStartedAt",
|
|
16306
16568
|
"type": "uint32"
|
|
16307
16569
|
},
|
|
16570
|
+
{
|
|
16571
|
+
"internalType": "uint32",
|
|
16572
|
+
"name": "pendingMovedFundsSweepRequestsCount",
|
|
16573
|
+
"type": "uint32"
|
|
16574
|
+
},
|
|
16308
16575
|
{
|
|
16309
16576
|
"internalType": "enum Wallets.WalletState",
|
|
16310
16577
|
"name": "state",
|