forked from Vabble/VABDAO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_ownablee.js
42 lines (34 loc) · 1.22 KB
/
deploy_ownablee.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = async function ({ getNamedAccounts, deployments }) {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const { getConfig } = require('../scripts/utils');
const network = await ethers.provider.getNetwork();
const chainId = network.chainId;
const { vabToken, usdcAdress, walletAddress, GnosisSafeL2 } = getConfig(chainId);
let GnosisSafeAddress = GnosisSafeL2;
if (GnosisSafeAddress == "") {
this.GnosisSafe = await deployments.get('GnosisSafeL2');
GnosisSafeAddress = this.GnosisSafe.address;
}
console.log("------------- Ownablee Deployment -----------------");
console.log({ vabToken, usdcAdress, walletAddress, GnosisSafeL2 });
await deploy('Ownablee', {
from: deployer,
args: [
walletAddress,
vabToken,
usdcAdress,
GnosisSafeAddress,
// "0xe0536a4D730a78DB8B4c4605D73e107201d9543e"
// "0x3E5e853d1784cDB519DB1eB175B374FB53FE285C"
],
log: true,
deterministicDeployment: false,
skipIfAlreadyDeployed: false,
});
this.Ownablee = await deployments.get('Ownablee');
};
module.exports.id = 'deploy_ownablee'
module.exports.tags = ['Ownablee', 'Deploy'];
// module.exports.dependencies = ['MultiSigWallet'];
module.exports.dependencies = ['GnosisSafeL2'];