Skip to content

Commit

Permalink
support scroll network
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Nov 9, 2023
1 parent db50418 commit e61b9da
Show file tree
Hide file tree
Showing 2 changed files with 24 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 @@ -22,5 +22,6 @@ LN_ARBITRUM_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraph
LN_MANTLE_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/mantle
LN_POLYGON_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/polygon
LN_ZKSYNC_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/zksync
LN_SCROLL_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/scroll

CHAIN_TYPE=formal
23 changes: 23 additions & 0 deletions apollo/src/lnbridgev20/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export class TransferService extends BaseTransferServiceT2 {
private readonly lnPolygonDefaultEndpoint = this.configService.get<string>(
'LN_POLYGON_DEFAULT_ENDPOINT'
);
private readonly lnScrollDefaultEndpoint = this.configService.get<string>(
'LN_SCROLL_DEFAULT_ENDPOINT'
);

formalChainTransfers: PartnerT2[] = [
{
Expand Down Expand Up @@ -141,6 +144,20 @@ export class TransferService extends BaseTransferServiceT2 {
},
],
},
{
chainId: 534352,
chain: 'scroll',
url: this.lnScrollDefaultEndpoint,
bridge: 'default',
symbols: [
{
symbol: 'USDT',
address: '0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df',
protocolFee: 100000,
decimals: 6,
},
],
},
];

testChainTransfers: PartnerT2[] = [
Expand Down Expand Up @@ -438,14 +455,20 @@ export class TransferService extends BaseTransferServiceT2 {
'mantle': {
arbitrum: 'layerzero',
zksync: 'layerzero',
scroll: 'layerzero',
},
'zksync': {
arbitrum: 'layerzero',
mantle: 'layerzero',
scroll: 'layerzero',
},
'polygon': {
arbitrum: 'layerzero',
},
'scroll': {
zksync: 'layerzero',
mantle: 'layerzero',
},
};
readonly isTest = this.configService.get<string>('CHAIN_TYPE') === 'test';

Expand Down

0 comments on commit e61b9da

Please sign in to comment.