Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
update delpoy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
senamakel committed Mar 7, 2021
1 parent 4c539a7 commit 1e4d0ed
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
@defirick @summer-bcc
@senamkel
8 changes: 4 additions & 4 deletions scripts/args.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = [
'0x0e3cc2c4fb9252d17d07c67135e48536071735d9',
'0x44811eff0f4dd2d7cb093a6d33bb6202eb2edf06',
28800
'0x4A3201A61a998E8f43C942532a72B9c80708Aa58',
// 86400
];


// npx hardhat verify --constructor-args scripts/args.js 0x0daeC081773e4Df0731165198E3446C471542a19 --network mainnet
// npx hardhat verify --contract contracts/boardoom/v2/ArthArthBoardroomV2.sol:ArthArthBoardroomV2 --constructor-args scripts/args.js 0x0daeC081773e4Df0731165198E3446C471542a19 --network mainnet
// npx hardhat verify --constructor-args scripts/args.js 0x4A3201A61a998E8f43C942532a72B9c80708Aa58 --network mainnet
// npx hardhat verify --contract contracts/boardoom/v2/ArthArthMlpLiquidityBoardroomV2.sol:ArthArthMlpLiquidityBoardroomV2 --constructor-args scripts/args.js 0xc7B70b9a5D1BcBf3623e02E33c7C4A672DdCb995 --network mainnet
16 changes: 8 additions & 8 deletions scripts/deploy-boardroom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ async function main() {

// Fetch contract factories.

const boardroomName = 'ArthArthBoardroomV2'
const boardroomName = 'ArthArthMlpLiquidityBoardroomV2'

const rewardToken = '0x0e3cc2c4fb9252d17d07c67135e48536071735d9'
const vaultAddr = '0x44811eff0f4dd2d7cb093a6d33bb6202eb2edf06'
const vaultAddr = '0x4A3201A61a998E8f43C942532a72B9c80708Aa58'

const Vaults = await ethers.getContractFactory(boardroomName);
const Boardroom = await ethers.getContractFactory(boardroomName);

// Fetch existing contracts.
// Deploy new treasury.
Expand All @@ -28,13 +28,13 @@ async function main() {
const params = [
rewardToken,
vaultAddr,
hour * 8
// hour * 8
]
const vault = await Vaults.connect(operator).deploy(...params);
const boardroom = await Boardroom.connect(operator).deploy(...params);

console.log(`\n Vault details: `, boardroomName)
console.log(` - New boardroom at address(${vault.address})`)
console.log(` - New vault params: ${JSON.stringify(params)}`)
console.log(`\n Boardroom details: `, boardroomName)
console.log(` - New boardroom at address(${boardroom.address})`)
console.log(` - New boardroom params: ${JSON.stringify(params)}`)
}


Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-vaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function main() {

const vaultName = 'VaultArthMlp'
// const vaultToken = '0x0E3cC2c4FB9252d17d07C67135E48536071735D9'
const vaultToken = '0x1c36d9e60cac6893652b74e357f3829a0f5095e0'
const vaultToken = '0xe207492fad13324b3b80b1a4324a203b61fc11a6'

const Vaults = await ethers.getContractFactory(vaultName);

Expand Down
8 changes: 4 additions & 4 deletions scripts/migrate-boardroom-operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ async function main() {
const dest = '0x2806e2e25480856432edb151e2975b6a49a5e079'

const boardrooms = [
'0x3178fcCeA39C32983750C6C5b9B9E41BDB72F466',
'0xDd15E72441F3C28fb5528E62640DC233C5a0439D',
'0x6A7cd1CeF2D28512779ad81A53d2Ab74F08AcF6b',
// '0x40436065DFed8eb07F8ea26E2a47114a82B58d80',
// '0x5b0C55212b77617Bb50bd7F832Df2c72a0e46Bb7',
'0x4A3201A61a998E8f43C942532a72B9c80708Aa58',
]

await Bluebird.mapSeries(boardrooms, async b => {
const boardroom = await ethers.getContractAt('VestedVaultBoardroom', b);
const boardroom = await ethers.getContractAt('Operator', b);
await boardroom.transferOperator(dest);
console.log(` - operator for ${b} migrated to: ${dest}`);
});
Expand Down

0 comments on commit 1e4d0ed

Please sign in to comment.