Skip to content

Cleaning the scripts we use to manage the contracts owned by the multisig #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 9, 2020

Conversation

juniset
Copy link
Member

@juniset juniset commented Oct 8, 2020

No description provided.

@juniset juniset self-assigned this Oct 8, 2020
# rm -rf build
# npm run compile:lib
# npm run compile
# npm run compile:legacy
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm for this change considering how long compilation takes currently however the obvious risk is that we execute scripts without compiling to latest version of the contracts. As a prevention, can we add some warning text in the comments header of scripts using execute_script to say COMPILE CONTRACTS BEFORE RUNNING or something similar?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed. Actually I've added a --no-compile flag in #156 (https://github.com/argentlabs/argent-contracts/pull/156/files#diff-0aa9ab67bc9291891ca0b035f24dce95R12) to address that. We can either wait for #156 to be merged or I can include that change in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't mind either way.

// ./execute_script.sh update_compound_registry.js <network> --remove --token <token address>
//
// where:
// - network = [test, staging, prod]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the network not be ganache as well for local testing?

// ./execute_script.sh update_wallet_in_factory.js <network>
//
// where:
// - network = [test, staging, prod]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove defaultNetwork = "test" in this script to mandate passing the network property

@juniset juniset force-pushed the maintenance/clean_scripts branch from 6efde03 to ab61485 Compare October 9, 2020 11:39
@juniset juniset force-pushed the maintenance/clean_scripts branch from 230878d to a86bd3d Compare October 9, 2020 13:02
@elenadimitrova elenadimitrova merged commit f08c325 into develop Oct 9, 2020
@elenadimitrova elenadimitrova deleted the maintenance/clean_scripts branch October 9, 2020 13:41
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.

2 participants