@keep-network/tbtc-v2 0.1.1-dev.53 → 0.1.1-dev.56
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 +626 -254
- package/artifacts/Deposit.json +7 -7
- package/artifacts/DepositSweep.json +76 -0
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/Fraud.json +8 -8
- 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 +44 -13
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeaconStub.json +1 -1
- package/artifacts/Redemption.json +11 -11
- 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 +7 -7
- package/artifacts/solcInputs/{fa22a04615b4037761340d27e55c86ee.json → 5dd2a7c685770548b7ea9ce25e179326.json} +11 -11
- 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 +328 -128
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/BridgeState.sol/BridgeState.json +29 -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/{Sweep.sol/Sweep.json → DepositSweep.sol/DepositSweep.json} +4 -4
- 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 +176 -55
- package/contracts/bridge/BridgeState.sol +107 -44
- package/contracts/bridge/{Sweep.sol → DepositSweep.sol} +30 -18
- package/contracts/bridge/Fraud.sol +1 -1
- package/contracts/bridge/MovingFunds.sol +485 -79
- package/contracts/bridge/Redemption.sol +4 -4
- package/deploy/05_deploy_bridge.ts +5 -2
- package/export.json +375 -94
- package/package.json +1 -1
- package/artifacts/Sweep.json +0 -76
- package/build/contracts/bridge/Sweep.sol/Sweep.dbg.json +0 -4
|
@@ -771,10 +771,10 @@ library Redemption {
|
|
|
771
771
|
/// - the tokens taken from the redeemer on redemption request will
|
|
772
772
|
/// be returned to the redeemer,
|
|
773
773
|
/// - the request will be moved from pending redemptions to
|
|
774
|
-
/// timed-out redemptions
|
|
774
|
+
/// timed-out redemptions,
|
|
775
775
|
/// - if the state of the wallet is `Live` or `MovingFunds`, the
|
|
776
776
|
/// wallet operators will be slashed and the notifier will be
|
|
777
|
-
/// rewarded
|
|
777
|
+
/// rewarded,
|
|
778
778
|
/// - if the state of wallet is `Live`, the wallet will be closed or
|
|
779
779
|
/// marked as `MovingFunds` (depending on the presence or absence
|
|
780
780
|
/// of the wallet's main UTXO) and the wallet will no longer be
|
|
@@ -792,10 +792,10 @@ library Redemption {
|
|
|
792
792
|
/// for the given `walletID`. Those IDs are not directly stored
|
|
793
793
|
/// in the contract for gas efficiency purposes but they can be
|
|
794
794
|
/// read from appropriate `DkgResultSubmitted` and `DkgResultApproved`
|
|
795
|
-
/// events
|
|
795
|
+
/// events of the `WalletRegistry` contract
|
|
796
796
|
/// - The amount of time defined by `redemptionTimeout` must have
|
|
797
797
|
/// passed since the redemption was requested (the request must be
|
|
798
|
-
/// timed-out)
|
|
798
|
+
/// timed-out)
|
|
799
799
|
function notifyRedemptionTimeout(
|
|
800
800
|
BridgeState.Storage storage self,
|
|
801
801
|
bytes20 walletPubKeyHash,
|
|
@@ -19,7 +19,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
19
19
|
deployments.getNetworkName() === "hardhat" ? 1 : 6
|
|
20
20
|
|
|
21
21
|
const Deposit = await deploy("Deposit", { from: deployer, log: true })
|
|
22
|
-
const
|
|
22
|
+
const DepositSweep = await deploy("DepositSweep", {
|
|
23
|
+
from: deployer,
|
|
24
|
+
log: true,
|
|
25
|
+
})
|
|
23
26
|
const Redemption = await deploy("Redemption", { from: deployer, log: true })
|
|
24
27
|
const Wallets = await deploy("Wallets", { from: deployer, log: true })
|
|
25
28
|
const Fraud = await deploy("Fraud", { from: deployer, log: true })
|
|
@@ -41,7 +44,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
41
44
|
],
|
|
42
45
|
libraries: {
|
|
43
46
|
Deposit: Deposit.address,
|
|
44
|
-
|
|
47
|
+
DepositSweep: DepositSweep.address,
|
|
45
48
|
Redemption: Redemption.address,
|
|
46
49
|
Wallets: Wallets.address,
|
|
47
50
|
Fraud: Fraud.address,
|