Repository navigation
Expand file tree
/
Copy pathtests.env.example
More file actions
39 lines (36 loc) · 2.22 KB
/
Copy pathtests.env.example
File metadata and controls
39 lines (36 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copy to tests.env and edit. (tests.env is gitignored via the *.env rule.)
#
# RPC URIs are resolved with precedence:
# 1. environment variable (e.g. TEST_ETHEREUM_ARCHIVE_NODE_HTTP_URI='...' pytest ...)
# 2. this file (tests.env)
# 3. built-in default (the public-node fallback shown below, see tests/conftest.py)
#
# A bare envvar override needs no file edit — useful for one-off runs, CI, or
# pointing at a local node from a non-devcontainer machine.
#
# ── These names are the test harness's, not operator configuration ──────────
#
# Every `TEST_*_ARCHIVE_*` / `TEST_*_FULL_*` name below belongs to the pytest/Ape harness
# (`tests/conftest.py::_rpc` owns the resolution above). They are deliberately
# NOT `DEGENBOT_RPC_{HTTP,WS}_CHAINID_<id>` operator names, and they are not
# candidates for the operator file's `[nodes]` tables: the suite needs two node
# tiers per chain (archive for historical state, full for the tip), while
# `[nodes]` holds one endpoint per transport per chain, so a second HTTP
# endpoint for the same chain has no table to fold into. Adding a
# `DEGENBOT_RPC_*` fallback inside `_rpc` is the ambiguity to avoid, not the fix.
# Out-of-process consumers share the names as an external contract rather than
# as configuration vocabulary: `executor/ape-config.yaml` reads
# `${TEST_ETHEREUM_FULL_NODE_HTTP_URI}`. User-facing documentation therefore shows
# a plain literal endpoint, never these names; the operator-side endpoint
# cascade belongs to the README's Configuration section.
TEST_ARBITRUM_FULL_NODE_HTTP_URI='https://arbitrum-one-rpc.publicnode.com'
TEST_ARBITRUM_FULL_NODE_WS_URI='wss://arbitrum-one-rpc.publicnode.com'
TEST_BASE_ARCHIVE_NODE_HTTP_URI='https://mainnet.base.org'
TEST_BASE_ARCHIVE_NODE_WS_URI='wss://mainnet.base.org'
TEST_BASE_FULL_NODE_HTTP_URI='https://mainnet.base.org'
TEST_BASE_FULL_NODE_WS_URI='wss://mainnet.base.org'
# Default points at a public node; override as needed
TEST_ETHEREUM_ARCHIVE_NODE_HTTP_URI='https://ethereum-rpc.publicnode.com'
TEST_ETHEREUM_ARCHIVE_NODE_WS_URI='wss://ethereum-rpc.publicnode.com'
TEST_ETHEREUM_FULL_NODE_HTTP_URI='https://ethereum-rpc.publicnode.com'
TEST_ETHEREUM_FULL_NODE_WS_URI='wss://ethereum-rpc.publicnode.com'