@keep-network/tbtc-v2 0.1.1-dev.100 → 0.1.1-dev.101
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 +5 -5
- package/artifacts/BridgeGovernance.json +2931 -0
- package/artifacts/BridgeGovernanceParameters.json +1445 -0
- package/artifacts/Deposit.json +2 -2
- package/artifacts/DepositSweep.json +2 -2
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/EcdsaSortitionPool.json +2 -2
- package/artifacts/Fraud.json +2 -2
- 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 +2 -2
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeaconStub.json +1 -1
- package/artifacts/Redemption.json +2 -2
- package/artifacts/ReimbursementPool.json +2 -2
- package/artifacts/Relay.json +4 -4
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +3 -3
- package/artifacts/TBTCToken.json +3 -3
- package/artifacts/TBTCVault.json +9 -9
- 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 +2 -2
- package/artifacts/solcInputs/{8b65103759482b36742c6820fa66b63b.json → af641e0b3597cdfa29d6ad42d1cd8742.json} +6 -0
- 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/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.dbg.json +4 -0
- package/build/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.json +2246 -0
- package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +4 -0
- package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.json +971 -0
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
- 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/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/Redemption.sol/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
- 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/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/BridgeGovernance.sol +1533 -0
- package/contracts/bridge/BridgeGovernanceParameters.sol +1695 -0
- package/deploy/07_deploy_bridge_governance.ts +40 -0
- package/deploy/{07_bank_update_bridge.ts → 08_bank_update_bridge.ts} +0 -0
- package/deploy/{08_transfer_bank_ownership.ts → 09_transfer_bank_ownership.ts} +0 -0
- package/deploy/{09_transfer_tbtc_vault_ownership.ts → 10_transfer_tbtc_vault_ownership.ts} +0 -0
- package/deploy/11_transfer_bridge_governance_ownership.ts +19 -0
- package/deploy/{10_transfer_bridge_governance.ts → 12_transfer_bridge_governance.ts} +4 -2
- package/deploy/{11_initialize_wallet_owner.ts → 13_initialize_wallet_owner.ts} +0 -0
- package/deploy/{12_deploy_proxy_admin_with_deputy.ts → 14_deploy_proxy_admin_with_deputy.ts} +0 -0
- package/deploy/{11_transfer_proxy_admin_ownership.ts → 15_transfer_proxy_admin_ownership.ts} +0 -0
- package/export.json +2707 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { HardhatRuntimeEnvironment } from "hardhat/types"
|
|
2
|
+
import { DeployFunction } from "hardhat-deploy/types"
|
|
3
|
+
|
|
4
|
+
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
5
|
+
const { deployments, getNamedAccounts } = hre
|
|
6
|
+
const { deploy } = deployments
|
|
7
|
+
const { deployer } = await getNamedAccounts()
|
|
8
|
+
|
|
9
|
+
const Bridge = await deployments.get("Bridge")
|
|
10
|
+
|
|
11
|
+
const BridgeGovernanceParameters = await deployments.deploy(
|
|
12
|
+
"BridgeGovernanceParameters",
|
|
13
|
+
{
|
|
14
|
+
from: deployer,
|
|
15
|
+
log: true,
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
const GOVERNANCE_DELAY = 604800 // 1 week
|
|
20
|
+
|
|
21
|
+
const BridgeGovernance = await deploy("BridgeGovernance", {
|
|
22
|
+
from: deployer,
|
|
23
|
+
args: [Bridge.address, GOVERNANCE_DELAY],
|
|
24
|
+
log: true,
|
|
25
|
+
libraries: {
|
|
26
|
+
BridgeGovernanceParameters: BridgeGovernanceParameters.address,
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
if (hre.network.tags.tenderly) {
|
|
31
|
+
await hre.tenderly.verify({
|
|
32
|
+
name: "BridgeGovernance",
|
|
33
|
+
address: BridgeGovernance.address,
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default func
|
|
39
|
+
|
|
40
|
+
func.tags = ["BridgeGovernance"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HardhatRuntimeEnvironment } from "hardhat/types"
|
|
2
|
+
import { DeployFunction } from "hardhat-deploy/types"
|
|
3
|
+
|
|
4
|
+
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
5
|
+
const { getNamedAccounts, helpers } = hre
|
|
6
|
+
const { deployer, governance } = await getNamedAccounts()
|
|
7
|
+
|
|
8
|
+
await helpers.ownable.transferOwnership(
|
|
9
|
+
"BridgeGovernance",
|
|
10
|
+
governance,
|
|
11
|
+
deployer
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default func
|
|
16
|
+
|
|
17
|
+
func.tags = ["BridgeGovernanceOwnership"]
|
|
18
|
+
func.dependencies = ["BridgeGovernance"]
|
|
19
|
+
func.runAtTheEnd = true
|
|
@@ -3,13 +3,15 @@ import { DeployFunction } from "hardhat-deploy/types"
|
|
|
3
3
|
|
|
4
4
|
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
5
5
|
const { getNamedAccounts, deployments } = hre
|
|
6
|
-
const { deployer
|
|
6
|
+
const { deployer } = await getNamedAccounts()
|
|
7
|
+
|
|
8
|
+
const BridgeGovernance = await deployments.get("BridgeGovernance")
|
|
7
9
|
|
|
8
10
|
await deployments.execute(
|
|
9
11
|
"Bridge",
|
|
10
12
|
{ from: deployer },
|
|
11
13
|
"transferGovernance",
|
|
12
|
-
|
|
14
|
+
BridgeGovernance.address
|
|
13
15
|
)
|
|
14
16
|
}
|
|
15
17
|
|
|
File without changes
|
package/deploy/{12_deploy_proxy_admin_with_deputy.ts → 14_deploy_proxy_admin_with_deputy.ts}
RENAMED
|
File without changes
|
package/deploy/{11_transfer_proxy_admin_ownership.ts → 15_transfer_proxy_admin_ownership.ts}
RENAMED
|
File without changes
|