contracts: fetch batches hardhat task#1807
Merged
Conversation
🦋 Changeset detectedLatest commit: 4106fd5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
da2c49c to
369479a
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1807 +/- ##
===========================================
- Coverage 74.57% 74.32% -0.26%
===========================================
Files 86 86
Lines 2962 2972 +10
Branches 511 512 +1
===========================================
Hits 2209 2209
- Misses 753 763 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Adds a hardhat task to fetch batches. Logs are written to stderr so that the stdout can be written to a file or passed to `jq`. ```bash export CONTRACTS_TARGET_NETWORK=... export CONTRACTS_DEPLOYER_KEY=... export CONTRACTS_RPC_URL=... npx hardhat fetch-batches --network main --start 14311261 ```
Allows for easy serialization and display in frontends or for data collection
369479a to
5a6f539
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a hardhat task to fetch batches. Logs are written
to stderr so that the stdout can be written to a file
or passed to
jq.Note that this was not possible with the older batch serialization logic because it was string based,
hardhat would oom after a few batches