Skip to content

Commit

Permalink
Improve scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SigismundSchlomo committed Oct 11, 2024
1 parent d52044b commit 2bf675e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions scripts/ecosystem/token_staking/deploy_hbr.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ethers } from "hardhat";
import { ContractNames } from "../../../src";
import { deploy } from "@airdao/deployments/deploying";
import { deploy, loadDeployment } from "@airdao/deployments/deploying";
import { HBRToken__factory } from "../../../typechain-types";
import { deployMultisig } from "../../utils/deployMultisig";

async function main() {
const {chainId} = await ethers.provider.getNetwork();
Expand All @@ -21,7 +20,7 @@ async function main() {
});

console.log("Transfering ownership of HBR token to multisig...");
const multisig = await deployMultisig(ContractNames.Ecosystem_LimitedTokenPoolsManagerMultisig, deployer);
const multisig = loadDeployment(ContractNames.Ecosystem_LimitedTokenPoolsManagerMultisig, chainId, deployer);
await token.transferOwnership(multisig.address);
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/ecosystem/token_staking/deploy_multisig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { deployMultisig } from "../../utils/deployMultisig";
async function main() {
const [deployer] = await ethers.getSigners();

const multisig = await deployMultisig(ContractNames.Ecosystem_LimitedTokenPoolsManagerMultisig, deployer, "eco");
await deployMultisig(ContractNames.Ecosystem_LimitedTokenPoolsManagerMultisig, deployer, "eco");

}

Expand Down
2 changes: 1 addition & 1 deletion scripts/ecosystem/token_staking/deploy_token_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function main() {
wrapProviderToError(deployer.provider!);

const validatorSet = loadDeployment(ContractNames.ValidatorSet, chainId, deployer);
const multisig = await deployMultisig(ContractNames.Ecosystem_TokenPoolsManagerMultisig, deployer, "eco");
const multisig = loadDeployment(ContractNames.Ecosystem_LimitedTokenPoolsManagerMultisig, chainId, deployer);

const rewardsBank = await deploy<RewardsBank__factory>({
contractName: ContractNames.Ecosystem_TokenPoolsManagerRewardsBank,
Expand Down

0 comments on commit 2bf675e

Please sign in to comment.