@keep-network/tbtc-v2 0.1.1-dev.91 → 0.1.1-dev.94
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 +11 -11
- package/artifacts/Deposit.json +9 -9
- package/artifacts/DepositSweep.json +7 -7
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/EcdsaSortitionPool.json +2 -2
- 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 +9 -9
- 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 +7 -7
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +3 -3
- package/artifacts/TBTCToken.json +3 -3
- package/artifacts/TBTCVault.json +6 -6
- 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 +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +9 -9
- package/artifacts/solcInputs/{6e28b66ed60b6dd7b2b25b3a1c4fe89b.json → b1eed895af5ae97fee0102eb17dac6e6.json} +5 -5
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
- package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.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 +2 -2
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/BridgeState.sol/BridgeState.json +2 -2
- 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 +1 -1
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +2 -2
- 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/Heartbeat.sol/Heartbeat.dbg.json +1 -1
- 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 +2 -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/VendingMachine.sol/VendingMachine.json +2 -2
- 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/DonationVault.sol/DonationVault.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/Fraud.sol +2 -2
- package/contracts/bridge/MovingFunds.sol +8 -8
- package/contracts/bridge/Redemption.sol +6 -6
- package/contracts/bridge/VendingMachine.sol +1 -1
- package/contracts/bridge/Wallets.sol +5 -5
- package/package.json +1 -1
|
@@ -280,7 +280,7 @@ library MovingFunds {
|
|
|
280
280
|
|
|
281
281
|
require(
|
|
282
282
|
wallet.state == Wallets.WalletState.MovingFunds,
|
|
283
|
-
"
|
|
283
|
+
"Wallet must be in MovingFunds state"
|
|
284
284
|
);
|
|
285
285
|
|
|
286
286
|
// If the moving funds wallet already submitted their target wallets
|
|
@@ -554,7 +554,7 @@ library MovingFunds {
|
|
|
554
554
|
|
|
555
555
|
require(
|
|
556
556
|
wallet.state == Wallets.WalletState.MovingFunds,
|
|
557
|
-
"
|
|
557
|
+
"Wallet must be in MovingFunds state"
|
|
558
558
|
);
|
|
559
559
|
|
|
560
560
|
require(
|
|
@@ -564,8 +564,6 @@ library MovingFunds {
|
|
|
564
564
|
"Moving funds has not timed out yet"
|
|
565
565
|
);
|
|
566
566
|
|
|
567
|
-
self.terminateWallet(walletPubKeyHash);
|
|
568
|
-
|
|
569
567
|
self.ecdsaWalletRegistry.seize(
|
|
570
568
|
self.movingFundsTimeoutSlashingAmount,
|
|
571
569
|
self.movingFundsTimeoutNotifierRewardMultiplier,
|
|
@@ -574,6 +572,8 @@ library MovingFunds {
|
|
|
574
572
|
walletMembersIDs
|
|
575
573
|
);
|
|
576
574
|
|
|
575
|
+
self.terminateWallet(walletPubKeyHash);
|
|
576
|
+
|
|
577
577
|
// slither-disable-next-line reentrancy-events
|
|
578
578
|
emit MovingFundsTimedOut(walletPubKeyHash);
|
|
579
579
|
}
|
|
@@ -602,7 +602,7 @@ library MovingFunds {
|
|
|
602
602
|
|
|
603
603
|
require(
|
|
604
604
|
wallet.state == Wallets.WalletState.MovingFunds,
|
|
605
|
-
"
|
|
605
|
+
"Wallet must be in MovingFunds state"
|
|
606
606
|
);
|
|
607
607
|
|
|
608
608
|
uint64 walletBtcBalance = self.getWalletBtcBalance(
|
|
@@ -1058,7 +1058,7 @@ library MovingFunds {
|
|
|
1058
1058
|
walletState == Wallets.WalletState.Live ||
|
|
1059
1059
|
walletState == Wallets.WalletState.MovingFunds ||
|
|
1060
1060
|
walletState == Wallets.WalletState.Terminated,
|
|
1061
|
-
"
|
|
1061
|
+
"Wallet must be in Live or MovingFunds or Terminated state"
|
|
1062
1062
|
);
|
|
1063
1063
|
|
|
1064
1064
|
sweepRequest.state = MovedFundsSweepRequestState.TimedOut;
|
|
@@ -1068,8 +1068,6 @@ library MovingFunds {
|
|
|
1068
1068
|
walletState == Wallets.WalletState.Live ||
|
|
1069
1069
|
walletState == Wallets.WalletState.MovingFunds
|
|
1070
1070
|
) {
|
|
1071
|
-
self.terminateWallet(walletPubKeyHash);
|
|
1072
|
-
|
|
1073
1071
|
self.ecdsaWalletRegistry.seize(
|
|
1074
1072
|
self.movedFundsSweepTimeoutSlashingAmount,
|
|
1075
1073
|
self.movedFundsSweepTimeoutNotifierRewardMultiplier,
|
|
@@ -1077,6 +1075,8 @@ library MovingFunds {
|
|
|
1077
1075
|
wallet.ecdsaWalletID,
|
|
1078
1076
|
walletMembersIDs
|
|
1079
1077
|
);
|
|
1078
|
+
|
|
1079
|
+
self.terminateWallet(walletPubKeyHash);
|
|
1080
1080
|
}
|
|
1081
1081
|
|
|
1082
1082
|
// slither-disable-next-line reentrancy-events
|
|
@@ -384,10 +384,10 @@ library Redemption {
|
|
|
384
384
|
/// @param redeemer The Ethereum address of the redeemer who will be able to
|
|
385
385
|
/// claim Bank balance if anything goes wrong during the redemption.
|
|
386
386
|
/// In the most basic case, when someone redeems their Bitcoin
|
|
387
|
-
/// balance from the Bank, `balanceOwner` is the same as `
|
|
387
|
+
/// balance from the Bank, `balanceOwner` is the same as `redeemer`.
|
|
388
388
|
/// However, when a Vault is redeeming part of its balance for some
|
|
389
389
|
/// redeemer address (for example, someone who has earlier deposited
|
|
390
|
-
/// into that Vault), `balanceOwner` is the Vault, and `
|
|
390
|
+
/// into that Vault), `balanceOwner` is the Vault, and `redeemer` is
|
|
391
391
|
/// the address for which the vault is redeeming its balance to.
|
|
392
392
|
/// @param redeemerOutputScript The redeemer's length-prefixed output
|
|
393
393
|
/// script (P2PKH, P2WPKH, P2SH or P2WSH) that will be used to lock
|
|
@@ -982,7 +982,7 @@ library Redemption {
|
|
|
982
982
|
wallet.state == Wallets.WalletState.Live ||
|
|
983
983
|
wallet.state == Wallets.WalletState.MovingFunds ||
|
|
984
984
|
wallet.state == Wallets.WalletState.Terminated,
|
|
985
|
-
"
|
|
985
|
+
"Wallet must be in Live, MovingFunds or Terminated state"
|
|
986
986
|
);
|
|
987
987
|
|
|
988
988
|
// It is worth noting that there is no need to check if
|
|
@@ -999,9 +999,6 @@ library Redemption {
|
|
|
999
999
|
wallet.state == Wallets.WalletState.Live ||
|
|
1000
1000
|
wallet.state == Wallets.WalletState.MovingFunds
|
|
1001
1001
|
) {
|
|
1002
|
-
// Propagate timeout consequences to the wallet
|
|
1003
|
-
self.notifyWalletTimedOutRedemption(walletPubKeyHash);
|
|
1004
|
-
|
|
1005
1002
|
// Slash the wallet operators and reward the notifier
|
|
1006
1003
|
self.ecdsaWalletRegistry.seize(
|
|
1007
1004
|
self.redemptionTimeoutSlashingAmount,
|
|
@@ -1010,6 +1007,9 @@ library Redemption {
|
|
|
1010
1007
|
wallet.ecdsaWalletID,
|
|
1011
1008
|
walletMembersIDs
|
|
1012
1009
|
);
|
|
1010
|
+
|
|
1011
|
+
// Propagate timeout consequences to the wallet
|
|
1012
|
+
self.notifyWalletTimedOutRedemption(walletPubKeyHash);
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
// slither-disable-next-line reentrancy-events
|
|
@@ -261,7 +261,7 @@ contract VendingMachine is Ownable, IReceiveApproval {
|
|
|
261
261
|
/// @notice Transfers vending machine upgrade initiator role to another
|
|
262
262
|
/// address. Can be called only by the current vending machine
|
|
263
263
|
/// upgrade initiator.
|
|
264
|
-
/// @param newInitiator The new vending machine upgrade
|
|
264
|
+
/// @param newInitiator The new vending machine upgrade initiator
|
|
265
265
|
function transferVendingMachineUpgradeInitiatorRole(address newInitiator)
|
|
266
266
|
external
|
|
267
267
|
only(vendingMachineUpgradeInitiator)
|
|
@@ -287,7 +287,7 @@ library Wallets {
|
|
|
287
287
|
|
|
288
288
|
require(
|
|
289
289
|
self.registeredWallets[walletPubKeyHash].state == WalletState.Live,
|
|
290
|
-
"
|
|
290
|
+
"Wallet must be in Live state"
|
|
291
291
|
);
|
|
292
292
|
|
|
293
293
|
moveFunds(self, walletPubKeyHash);
|
|
@@ -312,7 +312,7 @@ library Wallets {
|
|
|
312
312
|
require(
|
|
313
313
|
walletState == WalletState.Live ||
|
|
314
314
|
walletState == WalletState.MovingFunds,
|
|
315
|
-
"
|
|
315
|
+
"Wallet must be in Live or MovingFunds state"
|
|
316
316
|
);
|
|
317
317
|
|
|
318
318
|
if (walletState == WalletState.Live) {
|
|
@@ -348,7 +348,7 @@ library Wallets {
|
|
|
348
348
|
Wallet storage wallet = self.registeredWallets[walletPubKeyHash];
|
|
349
349
|
require(
|
|
350
350
|
wallet.state == WalletState.Live,
|
|
351
|
-
"
|
|
351
|
+
"Wallet must be in Live state"
|
|
352
352
|
);
|
|
353
353
|
|
|
354
354
|
/* solhint-disable-next-line not-rely-on-time */
|
|
@@ -435,7 +435,7 @@ library Wallets {
|
|
|
435
435
|
|
|
436
436
|
require(
|
|
437
437
|
wallet.state == WalletState.Closing,
|
|
438
|
-
"
|
|
438
|
+
"Wallet must be in Closing state"
|
|
439
439
|
);
|
|
440
440
|
|
|
441
441
|
require(
|
|
@@ -527,7 +527,7 @@ library Wallets {
|
|
|
527
527
|
// not reported yet.
|
|
528
528
|
require(
|
|
529
529
|
wallet.state == WalletState.MovingFunds,
|
|
530
|
-
"
|
|
530
|
+
"Wallet must be in MovingFunds state"
|
|
531
531
|
);
|
|
532
532
|
|
|
533
533
|
bytes32 targetWalletsCommitmentHash = wallet
|