Skip to content

Commit

Permalink
add base sepolia network
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Jul 1, 2024
1 parent f6e1e18 commit a541210
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions apollo/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ZKSYNC_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/61328/lnv3-zksepolia/
BERA_LNV3_ENDPOINT=https://thegraph-g2.darwinia.network/helix/subgraphs/name/lnv3/bera
TAIKO_LNV3_ENDPOINT=https://thegraph-g2.darwinia.network/helix/subgraphs/name/lnv3/taiko
MORPH_LNV3_ENDPOINT=https://thegraph-g2.darwinia.network/helix/subgraphs/name/lnv3/morph
BASE_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/61328/lnv3-base-sepolia/v1.0.0

XTOKEN_DARWINIA_ETHEREUM_BACKING = https://thegraph-g2.darwinia.network/helix/subgraphs/name/xtokentransfer/pangolin
XTOKEN_DARWINIA_ETHEREUM_ISSUING = https://api.studio.thegraph.com/query/61328/xtoken-sepolia/v1.1.8
Expand Down
24 changes: 24 additions & 0 deletions apollo/src/lnv3/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class TransferService extends BaseTransferServiceT2 {
private readonly scrollEndpoint = this.configService.get<string>('SCROLL_LNV3_ENDPOINT');
private readonly darwiniaEndpoint = this.configService.get<string>('DARWINIA_LNV3_ENDPOINT');
private readonly blastEndpoint = this.configService.get<string>('BLAST_LNV3_ENDPOINT');
private readonly baseEndpoint = this.configService.get<string>('BASE_LNV3_ENDPOINT');
private readonly beraEndpoint = this.configService.get<string>('BERA_LNV3_ENDPOINT');
private readonly taikoEndpoint = this.configService.get<string>('TAIKO_LNV3_ENDPOINT');
private readonly astarZkEVMEndpoint = this.configService.get<string>('ASTAR_ZKEVM_LNV3_ENDPOINT');
Expand Down Expand Up @@ -827,6 +828,29 @@ export class TransferService extends BaseTransferServiceT2 {
},
],
},
{
chainId: 84532,
chain: 'base-sepolia',
url: this.baseEndpoint,
level0Indexer: Level0Indexer.thegraph,
bridge: 'lnv3',
symbols: [
{
key: 'USDT',
symbol: 'USDT',
address: '0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1',
outerAddress: '0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1',
protocolFee: 1000000000000000,
decimals: 18,
},
],
channels: [
{
chain: 'sepolia',
channel: 'layerzero',
},
],
},
];

readonly addressToTokenInfo: { [key: string]: AddressTokenMap } = {};
Expand Down

0 comments on commit a541210

Please sign in to comment.