From 915a5960416a60a4189b29b385ce5b1aa2b984b6 Mon Sep 17 00:00:00 2001 From: xiaoch05 Date: Tue, 8 Oct 2024 11:22:02 +0800 Subject: [PATCH] add base thegraph indexer --- apollo/.env.prod | 1 + apollo/src/lnv2/transfer.service.ts | 10 ---------- apollo/src/lnv3/transfer.service.ts | 4 ++++ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/apollo/.env.prod b/apollo/.env.prod index ea862a5..13f8de8 100644 --- a/apollo/.env.prod +++ b/apollo/.env.prod @@ -39,6 +39,7 @@ BLAST_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-blast/v1.0. ASTAR_ZKEVM_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-astar-zkevm/v1.0.0 MOONBEAM_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-moonbeam/v1.0.0 ZIRCUIT_LNV3_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/zircuit +BASE_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-base/version/latest LNV3_ENVIO_ENDPOINT=https://indexer.bigdevenergy.link/e5a45aa/v1/graphql XTOKEN_DARWINIA_CRAB_BACKING=https://thegraph.darwinia.network/helix/subgraphs/name/xtokentransfer/darwinia-crab-backing diff --git a/apollo/src/lnv2/transfer.service.ts b/apollo/src/lnv2/transfer.service.ts index ed65e0e..69354dd 100644 --- a/apollo/src/lnv2/transfer.service.ts +++ b/apollo/src/lnv2/transfer.service.ts @@ -64,11 +64,6 @@ export class TransferService extends BaseTransferServiceT3 { oppositeEndpoint: this.lnArbitrumOppositeEndpoint, chainConfig: HelixChain.arbitrum, }, - { - defaultEndpoint: this.lnMantleDefaultEndpoint, - oppositeEndpoint: null, - chainConfig: HelixChain.mantle, - }, { defaultEndpoint: this.lnPolygonDefaultEndpoint, oppositeEndpoint: null, @@ -89,11 +84,6 @@ export class TransferService extends BaseTransferServiceT3 { oppositeEndpoint: this.lnDarwiniaOppositeEndpoint, chainConfig: HelixChain.darwiniaDvm, }, - { - defaultEndpoint: this.lnCrabDefaultEndpoint, - oppositeEndpoint: null, - chainConfig: HelixChain.crabDvm, - }, { defaultEndpoint: this.lnBscDefaultEndpoint, oppositeEndpoint: null, diff --git a/apollo/src/lnv3/transfer.service.ts b/apollo/src/lnv3/transfer.service.ts index 2b1bda3..e330a33 100644 --- a/apollo/src/lnv3/transfer.service.ts +++ b/apollo/src/lnv3/transfer.service.ts @@ -189,6 +189,10 @@ export class TransferService extends BaseTransferServiceT2 { }, { level0Indexers: [ + { + indexerType: Level0IndexerType.thegraph, + url: this.baseEndpoint, + }, { indexerType: Level0IndexerType.superindex, url: this.superindexEndpoint,