Skip to content

Commit

Permalink
feat: initialize default addresses as task
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbn committed May 30, 2021
1 parent 23551d8 commit 056d403
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion subtasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ subtask(
const { getArtifact }: DeploymentsExtension = deployments;
for (let contractName of Object.keys(stacktical.addresses)) {
const artifact = await getArtifact(contractName);
deployments.save(contractName, {
await deployments.save(contractName, {
address: stacktical.addresses[contractName],
abi: artifact.abi,
});
Expand Down
8 changes: 8 additions & 0 deletions tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ enum TASK_NAMES {
EXTERNAL_ADAPTER = 'stacktical:external-adapter',
FULFILL_ANALYTICS = 'stacktical:fulfill-analytics',
FULFILL_SLI = 'stacktical:fulfill-sli',
INITIALIZE_DEFAULT_ADDRESSES = 'stacktical:initialize-addresses',
}

task(
Expand Down Expand Up @@ -178,4 +179,11 @@ task(TASK_NAMES.FULFILL_SLI, 'Fulfill pendant contract sli')
await hre.run(SUB_TASK_NAMES.FULFILL_SLI, taskArgs);
});

task(
TASK_NAMES.INITIALIZE_DEFAULT_ADDRESSES,
'Initialize default addresses'
).setAction(async (_, hre: any) => {
await hre.run(SUB_TASK_NAMES.INITIALIZE_DEFAULT_ADDRESSES);
});

module.exports = {};

0 comments on commit 056d403

Please sign in to comment.