update deploy script for cec distributor
This commit is contained in:
parent
d7c52b020f
commit
34781775cd
@ -2,6 +2,7 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
|
||||
import { DeployFunction } from "hardhat-deploy/types";
|
||||
import { updateArray } from "../scripts/utils"
|
||||
|
||||
const ONE_DAY = 3600 * 24
|
||||
|
||||
const deployCECDistributor: DeployFunction =
|
||||
async function (hre: HardhatRuntimeEnvironment) {
|
||||
@ -10,7 +11,9 @@ const deployCECDistributor: DeployFunction =
|
||||
const config = require(`../config/config_${hre.network.name}`);
|
||||
const { admin, proposers, executors } = config.admins
|
||||
const { cec } = config.staking
|
||||
const params: any[] = [ cec, ]
|
||||
// update distributor wallet
|
||||
const wallet = admin;
|
||||
const params: any[] = [ 'first', cec, wallet, ONE_DAY * 3, 10, 300000]
|
||||
const ret = await hre.deployments.deploy("CECDistributor", {
|
||||
from,
|
||||
args: params,
|
||||
|
676
deployments/bsc_test/CECDistributor.json
Normal file
676
deployments/bsc_test/CECDistributor.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -76,5 +76,11 @@
|
||||
"type": "erc20",
|
||||
"json": "assets/contracts/EsToken.json",
|
||||
"address": "0xfa1223747bae6d519580c53Cbb9C11a45b13c6b7"
|
||||
},
|
||||
{
|
||||
"name": "CECDistributor",
|
||||
"type": "logic",
|
||||
"json": "assets/contracts/CECDistributor.json",
|
||||
"address": "0xee15c5efFBB66Ca27ff979f03Ad0eddA84407b66"
|
||||
}
|
||||
]
|
@ -22,6 +22,7 @@
|
||||
"deploy:staking:cec": "hardhat deploy --tags StakingCEC --network bsc_test --reset",
|
||||
"deploy:staking:escec": "hardhat deploy --tags StakingEsCEC --network bsc_test --reset",
|
||||
"deploy:staking": "npm run deploy:staking:token && npm run deploy:staking:cec && npm run deploy:staking:escec",
|
||||
"deploy:cec:distributor": "hardhat deploy --tags CECDistributor --network bsc_test --reset",
|
||||
"solhint": "solhint --config ./.solhint.json",
|
||||
"show_verify_list": "npx hardhat verify --list-networks",
|
||||
"convert-abi": "npx hardhat run scripts/convert-abi.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user