Skip to content

Commit

Permalink
add arbitrum envio
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Jul 26, 2024
1 parent c4a5486 commit ef0f46e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions apollo/.env.prod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions apollo/src/base/TransferServiceT2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export enum RecordStatus {
export enum Level0IndexerType {
thegraph,
ponder,
envio,
}

export interface FetchCacheInfo {
Expand Down
2 changes: 2 additions & 0 deletions apollo/src/lnv3/lnv3.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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() {
Expand Down
7 changes: 7 additions & 0 deletions apollo/src/lnv3/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { AddressTokenMap } from '../base/AddressToken';
export class TransferService extends BaseTransferServiceT2 {
private readonly ethereumEndpoint = this.configService.get<string>('ETHEREUM_LNV3_ENDPOINT');
private readonly arbitrumEndpoint = this.configService.get<string>('ARBITRUM_LNV3_ENDPOINT');
private readonly arbitrumEnvioEndpoint = this.configService.get<string>(
'ARBITRUM_LNV3_ENVIO_ENDPOINT'
);
private readonly zksyncEndpoint = this.configService.get<string>('ZKSYNC_LNV3_ENDPOINT');
private readonly polygonEndpoint = this.configService.get<string>('POLYGON_LNV3_ENDPOINT');
private readonly bscEndpoint = this.configService.get<string>('BSC_LNV3_ENDPOINT');
Expand Down Expand Up @@ -43,6 +46,10 @@ export class TransferService extends BaseTransferServiceT2 {
indexerType: Level0IndexerType.thegraph,
url: this.arbitrumEndpoint,
},
{
indexerType: Level0IndexerType.envio,
url: this.arbitrumEnvioEndpoint,
},
],
chainConfig: HelixChain.arbitrum,
},
Expand Down

0 comments on commit ef0f46e

Please sign in to comment.