Skip to content

Add Timelock and STW Deploy Scripts#242

Merged
ElliotFriedman merged 7 commits intodevelopfrom
feat/stw-timelock-deploy-scripts
Oct 13, 2021
Merged

Add Timelock and STW Deploy Scripts#242
ElliotFriedman merged 7 commits intodevelopfrom
feat/stw-timelock-deploy-scripts

Conversation

@ElliotFriedman
Copy link
Contributor

No description provided.

@@ -0,0 +1,25 @@
import { ethers } from 'hardhat';
import { DeployUpgradeFunc } from '../../types/types';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the @custom-types shorthand here

}

if (!tribalChief) {
throw new Error('TribalChief environment variable contract address is not set');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tribalchief isn't an env.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how the scripts I modeled this one from behaved.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but this comment says that tribalchief is an env. It's not - it's an imported var.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -0,0 +1,28 @@
import { DeployUpgradeFunc } from '../../types/types';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use @custom-types shorthand here.

throw new Error('ADMIN_ADDRESS environment variable contract address is not set');
}

if (!tribalChiefOptimisticMultisig || !core) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tribalChiefOptimisticMultisig isn't an env.

@xklob
Copy link
Contributor

xklob commented Oct 12, 2021

the one failing e2e test is fixed in pr #235

Copy link
Contributor

@Joeysantoro Joeysantoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the scripts to package.json for ease of use

export const deploy: DeployUpgradeFunc = async (deployAddress, addresses, logging = false) => {
const { tribalChief } = addresses;

const BENEFICIARY = process.env.BENEFICIARY;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case lets make the env names specific to the contract so theres no collision. STAKED_TOKEN_BENEFICIARY or something

const deploy: DeployUpgradeFunc = async (deployAddress, addresses, logging = false) => {
const { core } = addresses;

const adminAddress = process.env.ADMIN_ADDRESS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case lets make the env names specific to the contract so theres no collision. TIMELOCK_ADMIN_ADDRESS or something

@ElliotFriedman ElliotFriedman merged commit 928727c into develop Oct 13, 2021
@Joeysantoro Joeysantoro deleted the feat/stw-timelock-deploy-scripts branch October 13, 2021 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments