Skip to content
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

feat: refactor migration scripts #4

Merged
merged 38 commits into from
Dec 11, 2023
Merged

Conversation

TuDo1403
Copy link
Collaborator

@TuDo1403 TuDo1403 commented Dec 11, 2023

Description

This PR adapt many utilities function for developing migration scripts.

Breaking Changes

  • Fixed Wrong Onchain Tracing Issue: Turn on Gas Metering by default to solve invalid onchain tracing issue.
  • Typed Contract Definition: Added support for typed Contract definition within the parent repository.
  • Typed Network Definition: Introduced support for typed Network definition within the parent repository.
  • Flexible Artifact Naming: Enables different contract artifacts to share the same underlying logic.
  • Trezor Wallet Support: Added support for Trezor Wallet integration.
  • External Parameter Provision: Now supports providing external parameters for enhanced flexibility.

Migration Writing Usage:

For a comprehensive guide on writing migrations, refer to the foundry-deployment-kit example.

Script Running Usage:

Execute the migration script using the following shell command:

./run.sh <PATH_TO_SCRIPT>  -f <network>

Checklist

  • [] I have clearly commented on all the main functions following the NatSpec Format
  • The box that allows repo maintainers to update this PR is checked
  • I tested locally to make sure this feature/fix works

@TuDo1403 TuDo1403 changed the title Feature/migration script feat: refactor migration scripts Dec 11, 2023
@TuDo1403 TuDo1403 merged commit cc92d20 into release/v0.1.0 Dec 11, 2023
2 checks passed
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.

1 participant