Skip to content

Commit bf4c280

Browse files
authored
Merge pull request #179 from PotLock/testnet
Testnet -> staging
2 parents 24a5dfd + fe97729 commit bf4c280

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

base/settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@
9090
else "https://rpc.web4.near.page"
9191
)
9292

93+
STELLAR_RPC_URL = (
94+
"https://soroban-testnet.stellar.org"
95+
if ENVIRONMENT == "testnet"
96+
else "https://stellar-soroban-public.nodies.app"
97+
)
98+
9399
BLOCK_SAVE_HEIGHT = os.environ.get("BLOCK_SAVE_HEIGHT")
94100

95101
COINGECKO_URL = (

indexer_app/tasks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,7 @@ def address_to_string(obj):
331331
@shared_task
332332
def stellar_event_indexer():
333333
server = stellar_sdk.SorobanServer(
334-
"https://soroban-testnet.stellar.org"
335-
if settings.ENVIRONMENT == "testnet" or settings.ENVIRONMENT == "local"
336-
else "https://horizon.stellar.org"
334+
settings.STELLAR_RPC_URL
337335
)
338336
contract_ids = [settings.STELLAR_CONTRACT_ID, settings.STELLAR_PROJECTS_REGISTRY_CONTRACT]
339337
if contract_ids == ['', '']:

0 commit comments

Comments
 (0)