Skip to content

Commit

Permalink
support darwinia<>arbitrum lnv3
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Feb 7, 2024
1 parent 62280c1 commit 1b13f58
Show file tree
Hide file tree
Showing 2 changed files with 27 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 @@ -33,5 +33,6 @@ OP_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-op/v1.0.0
GNOSIS_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-gnosis/v1.0.0
MANTLE_LNV3_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/mantle
SCROLL_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-scroll/v1.0.0
DARWINIA_LNV3_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/darwinia

CHAIN_TYPE=formal
26 changes: 26 additions & 0 deletions apollo/src/lnv3/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class TransferService extends BaseTransferServiceT2 {
private readonly gnosisEndpoint = this.configService.get<string>('GNOSIS_LNV3_ENDPOINT');
private readonly mantleEndpoint = this.configService.get<string>('MANTLE_LNV3_ENDPOINT');
private readonly scrollEndpoint = this.configService.get<string>('SCROLL_LNV3_ENDPOINT');
private readonly darwiniaEndpoint = this.configService.get<string>('DARWINIA_LNV3_ENDPOINT');

formalChainTransfers: PartnerT2[] = [
{
Expand Down Expand Up @@ -118,6 +119,10 @@ export class TransferService extends BaseTransferServiceT2 {
{
chain: 'scroll',
channel: 'layerzero',
},
{
chain: 'darwinia-dvm',
channel: 'msgline',
}
]
},
Expand Down Expand Up @@ -390,6 +395,27 @@ export class TransferService extends BaseTransferServiceT2 {
channel: 'layerzero',
}
]
},
{
chainId: 46,
chain: 'darwinia-dvm',
url: this.darwiniaEndpoint,
bridge: 'lnv3',
symbols: [
{
key: 'RING',
symbol: 'RING',
address: '0x0000000000000000000000000000000000000000',
protocolFee: 30000000000000000000,
decimals: 18,
}
],
channels: [
{
chain: 'arbitrum',
channel: 'msgline',
},
]
}
];

Expand Down

0 comments on commit 1b13f58

Please sign in to comment.