Skip to content

Commit

Permalink
Merge pull request #161 from helix-bridge/xiaoch05-support-astarzkevm
Browse files Browse the repository at this point in the history
support astar zkevm mainnet
  • Loading branch information
xiaoch05 authored Apr 11, 2024
2 parents 59fa538 + ce8f34c commit 0f06c95
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions apollo/.env.prod
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ MANTLE_LNV3_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/l
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
BLAST_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-blast/v1.0.0
ASTAR_ZKEVM_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-astar-zkevm/v1.0.0

XTOKEN_DARWINIA_CRAB_BACKING=https://thegraph.darwinia.network/helix/subgraphs/name/xtokentransfer/darwinia-crab-backing
XTOKEN_DARWINIA_CRAB_ISSUING=https://thegraph.darwinia.network/helix/subgraphs/name/xtokentransfer/darwinia-crab-issuing
Expand Down
28 changes: 27 additions & 1 deletion apollo/src/lnv3/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class TransferService extends BaseTransferServiceT2 {
private readonly blastEndpoint = this.configService.get<string>('BLAST_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');

formalChainTransfers: PartnerT2[] = [
{
Expand Down Expand Up @@ -146,6 +147,10 @@ export class TransferService extends BaseTransferServiceT2 {
{
chain: 'blast',
channel: 'layerzero',
},
{
chain: 'astar-zkevm',
channel: 'layerzero',
}
]
},
Expand Down Expand Up @@ -480,8 +485,29 @@ export class TransferService extends BaseTransferServiceT2 {
channel: 'layerzero',
}
]
},
{
chainId: 3776,
chain: 'astar-zkevm',
url: this.astarZkEVMEndpoint,
bridge: 'lnv3',
symbols: [
{
key: 'ETH',
symbol: 'ETH',
address: '0x0000000000000000000000000000000000000000',
outerAddress: '0x0000000000000000000000000000000000000000',
protocolFee: 10000000000000,
decimals: 18,
}
],
channels: [
{
chain: 'arbitrum',
channel: 'layerzero',
}
]
}

];

testChainTransfers: PartnerT2[] = [
Expand Down
1 change: 1 addition & 0 deletions subgraph/lnv3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"build-scroll": "sh generate.sh scroll 0xbA5D580B18b6436411562981e02c8A9aA1776D10 2932126 && graph codegen && graph build",
"build-darwinia": "sh generate.sh darwinia2 0xbA5D580B18b6436411562981e02c8A9aA1776D10 2013481 && graph codegen && graph build",
"build-blast": "sh generate.sh blast-mainnet 0xB180D7DcB5CC161C862aD60442FA37527546cAFC 459939 && graph codegen && graph build",
"build-astar-zkevm": "sh generate.sh astar-zkevm-mainnet 0xD476650e03a45E70202b0bcAfa04E1513920f83a 1039985 && graph codegen && graph build",
"create-remote-dev": "graph create --access-token ${KEY} --node https://thegraph-g2.darwinia.network/helix/deploy/ lnv3/${NETWORK}",
"deploy-remote-dev": "graph deploy --access-token $KEY --node https://thegraph-g2.darwinia.network/helix/deploy/ --ipfs https://ipfs.network.thegraph.com lnv3/$NETWORK",
"create-remote-pro": "graph create --access-token ${KEY} --node https://thegraph.darwinia.network/helix/deploy/ lnv3/${NETWORK}",
Expand Down

0 comments on commit 0f06c95

Please sign in to comment.