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

[ECO-2700] Clean up environment variables, fix documentation, remove unused frontend container in Docker #522

Merged
merged 9 commits into from
Jan 29, 2025
Prev Previous commit
Next Next commit
Make env var examples consistent casing
Simplify env files, add filler env var for GRPC_AUTH_TOKEN
xbtmatt committed Jan 28, 2025
commit bf558324ab4cff088773c5ba3c3be437bc09f760
14 changes: 3 additions & 11 deletions src/docker/example.local.env
Original file line number Diff line number Diff line change
@@ -20,20 +20,12 @@ MINIMUM_STARTING_VERSION="0"
# ---------------------------------------------------------------------------- #
# GRPC endpoint & authentication token
#
# The GRPC endpoint from which the indexer receives event data. Aptos Labs
# runs several public endpoints, listed below.
#
# If you're not running a localnet (local network), you must provide a valid
# GRPC_AUTH_TOKEN. You can get one from https://developers.aptoslabs.com/.
#
# mainnet: https://grpc.mainnet.aptoslabs.com:443
# testnet: https://grpc.testnet.aptoslabs.com:443
# devnet: https://grpc.devnet.aptoslabs.com:443
# local: http://host.docker.internal:50051 (if running a localnet)
# The GRPC endpoint from which the indexer receives event data.
#
# You do not need to provide a valid GRPC_AUTH_TOKEN for a local network.
# ---------------------------------------------------------------------------- #
GRPC_DATA_SERVICE_URL="http://host.docker.internal:50051"
GRPC_AUTH_TOKEN="token_not_necessary_locally"
GRPC_AUTH_TOKEN="_" # Not used locally, but must at least be one character.

# ---------------------------------------------------------------------------- #
# Miscellaneous indexer processor configurations
14 changes: 3 additions & 11 deletions src/docker/example.mainnet.env
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
# See: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md
# ---------------------------------------------------------------------------- #
EMOJICOIN_MODULE_ADDRESS="0xface729284ae5729100b3a9ad7f7cc025ea09739cd6e7252aff0beb53619cafe"
EMOJICOIN_ARENA_MODULE_ADDRESS="___not_on_mainnet_yet___"
EMOJICOIN_ARENA_MODULE_ADDRESS="NOT_ON_MAINNET_YET"

# The transaction version to start indexing at. Most often this should just be
# the transaction version where the `emojicoin_dot_fun` module is published.
@@ -20,17 +20,9 @@ MINIMUM_STARTING_VERSION="1943970510"
# ---------------------------------------------------------------------------- #
# GRPC endpoint & authentication token
#
# The GRPC endpoint from which the indexer receives event data. Aptos Labs
# runs several public endpoints, listed below.
#
# If you're not running a localnet (local network), you must provide a valid
# GRPC_AUTH_TOKEN. You can get one from https://developers.aptoslabs.com/.
#
# mainnet: https://grpc.mainnet.aptoslabs.com:443
# testnet: https://grpc.testnet.aptoslabs.com:443
# devnet: https://grpc.devnet.aptoslabs.com:443
# local: http://host.docker.internal:50051 (if running a localnet)
# The GRPC endpoint from which the indexer receives event data.
#
# You must provide a valid GRPC_AUTH_TOKEN. See https://developers.aptoslabs.com
# ---------------------------------------------------------------------------- #
GRPC_DATA_SERVICE_URL="https://grpc.mainnet.aptoslabs.com:443"
GRPC_AUTH_TOKEN="MUST_PROVIDE_TOKEN_HERE"
12 changes: 2 additions & 10 deletions src/docker/example.testnet.env
Original file line number Diff line number Diff line change
@@ -20,17 +20,9 @@ MINIMUM_STARTING_VERSION="5675600000"
# ---------------------------------------------------------------------------- #
# GRPC endpoint & authentication token
#
# The GRPC endpoint from which the indexer receives event data. Aptos Labs
# runs several public endpoints, listed below.
#
# If you're not running a localnet (local network), you must provide a valid
# GRPC_AUTH_TOKEN. You can get one from https://developers.aptoslabs.com/.
#
# mainnet: https://grpc.mainnet.aptoslabs.com:443
# testnet: https://grpc.testnet.aptoslabs.com:443
# devnet: https://grpc.devnet.aptoslabs.com:443
# local: http://host.docker.internal:50051 (if running a localnet)
# The GRPC endpoint from which the indexer receives event data.
#
# You must provide a valid GRPC_AUTH_TOKEN. See https://developers.aptoslabs.com
# ---------------------------------------------------------------------------- #
GRPC_DATA_SERVICE_URL="https://grpc.testnet.aptoslabs.com:443"
GRPC_AUTH_TOKEN="MUST_PROVIDE_TOKEN_HERE"