diff --git a/apollo/.env.prod b/apollo/.env.prod index 8a8576b..4205263 100644 --- a/apollo/.env.prod +++ b/apollo/.env.prod @@ -28,6 +28,7 @@ LN_LINEA_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/n POLYGON_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-polygon/v1.0.0 ARBITRUM_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-arbitrum/v2.0.0 +ARBITRUM_LNV3_ENVIO_ENDPOINT=https://indexer.bigdevenergy.link/e5a45aa/v1/graphql BSC_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-bsc/v1.0.0 LINEA_LNV3_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/linea OP_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-op/v1.0.0 diff --git a/apollo/src/base/TransferServiceT2.ts b/apollo/src/base/TransferServiceT2.ts index 81c880b..a682f01 100644 --- a/apollo/src/base/TransferServiceT2.ts +++ b/apollo/src/base/TransferServiceT2.ts @@ -22,6 +22,7 @@ export enum RecordStatus { export enum Level0IndexerType { thegraph, ponder, + envio, } export interface FetchCacheInfo { diff --git a/apollo/src/lnv3/lnv3.service.ts b/apollo/src/lnv3/lnv3.service.ts index 8e29baa..8f66fe1 100644 --- a/apollo/src/lnv3/lnv3.service.ts +++ b/apollo/src/lnv3/lnv3.service.ts @@ -8,6 +8,7 @@ import { TransferService } from './transfer.service'; import { ChainToken, ChainMessager, ChainCouple } from '@helixbridge/helixconf'; import { Lnv3ThegraphService } from './source/thegraph.service'; import { Lnv3PonderService } from './source/ponder.service'; +import { Lnv3EnvioService } from './source/envio.service'; export enum RelayUpdateType { PROVIDER_UPDATE, @@ -42,6 +43,7 @@ export class Lnv3Service implements OnModuleInit { ) { this.sourceServices.set(Level0IndexerType.thegraph, new Lnv3ThegraphService()); this.sourceServices.set(Level0IndexerType.ponder, new Lnv3PonderService()); + this.sourceServices.set(Level0IndexerType.envio, new Lnv3EnvioService()); } async onModuleInit() { diff --git a/apollo/src/lnv3/transfer.service.ts b/apollo/src/lnv3/transfer.service.ts index 7e4de3e..b139b40 100644 --- a/apollo/src/lnv3/transfer.service.ts +++ b/apollo/src/lnv3/transfer.service.ts @@ -8,6 +8,9 @@ import { AddressTokenMap } from '../base/AddressToken'; export class TransferService extends BaseTransferServiceT2 { private readonly ethereumEndpoint = this.configService.get('ETHEREUM_LNV3_ENDPOINT'); private readonly arbitrumEndpoint = this.configService.get('ARBITRUM_LNV3_ENDPOINT'); + private readonly arbitrumEnvioEndpoint = this.configService.get( + 'ARBITRUM_LNV3_ENVIO_ENDPOINT' + ); private readonly zksyncEndpoint = this.configService.get('ZKSYNC_LNV3_ENDPOINT'); private readonly polygonEndpoint = this.configService.get('POLYGON_LNV3_ENDPOINT'); private readonly bscEndpoint = this.configService.get('BSC_LNV3_ENDPOINT'); @@ -43,6 +46,10 @@ export class TransferService extends BaseTransferServiceT2 { indexerType: Level0IndexerType.thegraph, url: this.arbitrumEndpoint, }, + { + indexerType: Level0IndexerType.envio, + url: this.arbitrumEnvioEndpoint, + }, ], chainConfig: HelixChain.arbitrum, },