Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make env var examples consistent casing
Browse files Browse the repository at this point in the history
Simplify env files, add filler env var for GRPC_AUTH_TOKEN
xbtmatt committed Jan 28, 2025
1 parent d4e3347 commit bf55832
Showing 3 changed files with 8 additions and 32 deletions.
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"

0 comments on commit bf55832

Please sign in to comment.