Skip to content

Conversation

@rachel-bousfield
Copy link
Contributor

Adds two new helper scripts, export.js and import.js, for exporting and importing the verified contract state.

The scripts are idempotent

@rachel-bousfield rachel-bousfield changed the base branch from master to accurate-transaction-counts September 14, 2022 03:37
LEFT JOIN decompiled_smart_contracts USING(address_hash);`
);
for (const contract of contracts) {
write('contracts/' + contract.name, contract);
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use a cursor here to avoid having to store all this in memory: https://node-postgres.com/apis/cursor

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