@keep-network/tbtc-v2 0.1.1-dev.76 → 0.1.1-dev.77
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 +17 -17
- package/artifacts/Bridge.json +34 -34
- package/artifacts/Deposit.json +7 -7
- package/artifacts/DepositSweep.json +7 -7
- package/artifacts/EcdsaDkgValidator.json +16 -17
- package/artifacts/EcdsaInactivity.json +6 -6
- package/artifacts/EcdsaSortitionPool.json +1004 -0
- package/artifacts/Fraud.json +7 -7
- 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 +7 -7
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeaconStub.json +6 -6
- package/artifacts/Redemption.json +7 -7
- package/artifacts/ReimbursementPool.json +24 -24
- package/artifacts/Relay.json +9 -9
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +19 -19
- package/artifacts/TBTCToken.json +19 -19
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +24 -24
- package/artifacts/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/WalletRegistry.json +893 -1167
- package/artifacts/WalletRegistryGovernance.json +2754 -0
- package/artifacts/Wallets.json +7 -7
- package/artifacts/solcInputs/{49c80d59bf0ae61f27a8bb5db19af68a.json → 490ffccc38e413544104a916bd6aa53c.json} +106 -70
- 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/Bridge.sol/Bridge.dbg.json +1 -1
- 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/hardhat-dependency-compiler/@keep-network/ecdsa/contracts/WalletRegistry.sol +3 -0
- package/deploy/05_deploy_bridge.ts +5 -1
- package/deploy/09_transfer_proxy_admin_ownership.ts +15 -8
- package/export.json +2583 -3127
- package/package.json +1 -1
- package/artifacts/DefaultProxyAdmin.json +0 -259
- package/artifacts/SortitionPool.json +0 -1005
- package/artifacts/WalletRegistry_Implementation.json +0 -2824
- package/artifacts/WalletRegistry_Proxy.json +0 -259
- package/artifacts/solcInputs/1635d55d57a0a2552952c0d22586ed23.json +0 -56
- package/deploy/00_resolve_wallet_registry.ts +0 -83
|
@@ -24,7 +24,11 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
24
24
|
log: true,
|
|
25
25
|
})
|
|
26
26
|
const Redemption = await deploy("Redemption", { from: deployer, log: true })
|
|
27
|
-
const Wallets = await deploy("Wallets", {
|
|
27
|
+
const Wallets = await deploy("Wallets", {
|
|
28
|
+
contract: "contracts/bridge/Wallets.sol:Wallets",
|
|
29
|
+
from: deployer,
|
|
30
|
+
log: true,
|
|
31
|
+
})
|
|
28
32
|
const Fraud = await deploy("Fraud", { from: deployer, log: true })
|
|
29
33
|
const MovingFunds = await deploy("MovingFunds", {
|
|
30
34
|
from: deployer,
|
|
@@ -2,19 +2,26 @@ import type { HardhatRuntimeEnvironment } from "hardhat/types"
|
|
|
2
2
|
import type { DeployFunction } from "hardhat-deploy/types"
|
|
3
3
|
|
|
4
4
|
const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
|
|
5
|
-
const {
|
|
6
|
-
const { esdm } = await
|
|
7
|
-
const {
|
|
5
|
+
const { helpers, upgrades, deployments } = hre
|
|
6
|
+
const { esdm, deployer } = await helpers.signers.getNamedSigners()
|
|
7
|
+
const { log } = deployments
|
|
8
8
|
|
|
9
9
|
// TODO: Once a DAO is established we want to switch to ProxyAdminWithDeputy and
|
|
10
10
|
// use the DAO as the proxy admin owner and ESDM as the deputy. Until then we
|
|
11
|
-
// use
|
|
12
|
-
const newProxyAdminOwner = esdm
|
|
13
|
-
|
|
14
|
-
deployments.log(`transferring ProxyAdmin ownership to ${newProxyAdminOwner}`)
|
|
11
|
+
// use ESDM as the owner of ProxyAdmin contract.
|
|
12
|
+
const newProxyAdminOwner = esdm.address
|
|
15
13
|
|
|
16
14
|
const proxyAdmin = await upgrades.admin.getInstance()
|
|
17
|
-
|
|
15
|
+
|
|
16
|
+
const currentOwner = await proxyAdmin.owner()
|
|
17
|
+
|
|
18
|
+
// The `@openzeppelin/hardhat-upgrades` plugin deploys a single ProxyAdmin
|
|
19
|
+
// per network. We don't want to transfer the ownership if the owner is already
|
|
20
|
+
// set to the desired address.
|
|
21
|
+
if (!helpers.address.equal(currentOwner, newProxyAdminOwner)) {
|
|
22
|
+
log(`transferring ownership of ProxyAdmin to ${newProxyAdminOwner}`)
|
|
23
|
+
await proxyAdmin.connect(deployer).transferOwnership(newProxyAdminOwner)
|
|
24
|
+
}
|
|
18
25
|
}
|
|
19
26
|
|
|
20
27
|
export default func
|