Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add base sepolia #173

Merged
merged 4 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 3 additions & 0 deletions apollo/src/aggregation/aggregation.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export class AggregationResolver {
'0x570fca2c6f902949dbb90664be5680fec94a84f6': '0x000000000bb6a011db294ce3f3423f00eac4959e',
'0xc5a809900b5bfb46b1b3892e419e69331b8fbc6c': '0x000000000bb6a011db294ce3f3423f00eac4959e',
'0x3f63bce51d3c6665bfe919816780a2109d42238d': '0x000000000bb6a011db294ce3f3423f00eac4959e',
'0x9c02a1a56474247a48f1090070d2817a2a5607d9': '0x0000000cf324fed44fb52e9a519cbb5bd8217f77',
'0x44c224d93b0f5e30b1a930d362e2bcfbb7807078': '0x0000000cf324fed44fb52e9a519cbb5bd8217f77',
'0x3b9e571adecb0c277486036d6097e9c2cccfa9d9': '0x0b425baaf0443275d40ce854734b06e7e976387d',
};
constructor(private aggregationService: AggregationService) {}

Expand Down
36 changes: 36 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 @@ -634,6 +635,10 @@ export class TransferService extends BaseTransferServiceT2 {
chain: 'zksync-sepolia',
channel: 'layerzero',
},
{
chain: 'base-sepolia',
channel: 'layerzero',
},
],
},
{
Expand Down Expand Up @@ -827,6 +832,37 @@ 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,
},
{
key: 'ETH',
symbol: 'ETH',
address: '0x0000000000000000000000000000000000000000',
outerAddress: '0x0000000000000000000000000000000000000000',
protocolFee: 10000000000000,
decimals: 18,
},
],
channels: [
{
chain: 'sepolia',
channel: 'layerzero',
},
],
},
];

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