Skip to content

Commit

Permalink
support arb<>mantle
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Oct 24, 2023
1 parent 3cc2f3d commit fa8df00
Show file tree
Hide file tree
Showing 3 changed files with 26 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 @@ -19,5 +19,6 @@ LN_ETHEREUM_OPPOSITE_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgrap
LN_ARBITRUM_OPPOSITE_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnopposite/arbitrum
LN_ETHEREUM_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/ethereum
LN_ARBITRUM_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/arbitrum
LN_MANTLE_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/mantle

CHAIN_TYPE=formal
24 changes: 24 additions & 0 deletions apollo/src/lnbridgev20/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,26 @@ export class TransferService extends BaseTransferServiceT2 {
protocolFee: 100000000000000000000,
decimals: 18,
},
{
symbol: 'USDT',
address: '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
protocolFee: 100000,
decimals: 6,
},
],
},
{
chainId: 5000,
chain: 'mantle',
url: this.lnMantleDefaultEndpoint,
bridge: 'default',
symbols: [
{
symbol: 'USDT',
address: '0x201eba5cc46d216ce6dc03f6a759e8e766e956ae',
protocolFee: 100000,
decimals: 6,
},
],
},
];
Expand Down Expand Up @@ -377,10 +397,14 @@ export class TransferService extends BaseTransferServiceT2 {
},
'arbitrum': {
ethereum: 'arbitrum-l2',
mantle: 'layerzero',
},
'ethereum': {
arbitrum: 'arbitrum-l2',
},
'mantle': {
arbitrum: 'layerzero',
}
};
readonly isTest = this.configService.get<string>('CHAIN_TYPE') === 'test';

Expand Down
1 change: 1 addition & 0 deletions subgraph/ln-default-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"build-zkgoerli": "sh generate.sh zkgoerli 0xe8d55759c32fb608fD092aB2C0ef8A1F52B254d4 12529843 && graph codegen && graph build",
"build-ethereum": "sh generate.sh ethereum 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 18411160 && graph codegen && graph build",
"build-arbitrum": "sh generate.sh arbi 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 143123443 && graph codegen && graph build",
"build-mantle": "sh generate.sh mantle 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 17119189 && graph codegen && graph build",
"create-remote-dev": "graph create --access-token ${KEY} --node https://thegraph-g2.darwinia.network/helix/deploy/ lndefault/${NETWORK}",
"deploy-remote-dev": "graph deploy --access-token $KEY --node https://thegraph-g2.darwinia.network/helix/deploy/ --ipfs http://g2.generic.darwinia.network:5001/ lndefault/$NETWORK",
"create-remote-pro": "graph create --access-token ${KEY} --node https://thegraph.darwinia.network/helix/deploy/ lndefault/${NETWORK}",
Expand Down

0 comments on commit fa8df00

Please sign in to comment.