Skip to content

Fix the --single-contract and --all-events flags for contract import from explorer - #514

Merged
DZakh merged 2 commits into
mainfrom
non-interactive-init-flow
May 1, 2025
Merged

Fix the --single-contract and --all-events flags for contract import from explorer#514
DZakh merged 2 commits into
mainfrom
non-interactive-init-flow

Conversation

@JasoonS

@JasoonS JasoonS commented Apr 29, 2025

Copy link
Copy Markdown
Contributor

These two flags are required to initialize a contract with a non-interactive shell.

There is still no way to initialize an indexer on multiple networks or with multiple contracts non-interactively though.

This functionality broke some time between version 1.2 and 1.3, ie pnpx envio@1.2.0 init contract-import explorer -n test5 -l typescript -d ./test654 -c 0x290d981b41B713437265Cd7846806D7500307106 --single-contract --all-events -b "ethereum-mainnet" this initializes an indexer non-interactively.

Test it locally: lenvio init contract-import explorer -n test5 -l typescript -d ./test654 -c 0x290d981b41B713437265Cd7846806D7500307106 --api-token "test-token" --single-contract --all-events -b "ethereum-mainnet"

…ort from explorer

These two flags are required to initialize a contract with a
non-interactive shell.

There is still no way to initialize an indexer on multiple networks or
with multiple contracts non-interactively though.
@JasoonS
JasoonS requested review from DZakh and JonoPrest and removed request for DZakh April 29, 2025 06:27
@JasoonS
JasoonS force-pushed the non-interactive-init-flow branch from 75116bf to 584f620 Compare April 29, 2025 06:28
@DZakh
DZakh merged commit 10abc7a into main May 1, 2025
@DZakh
DZakh deleted the non-interactive-init-flow branch May 1, 2025 09:18
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