Skip to content

Commit

Permalink
Merge pull request #153 from helix-bridge/xiaoch05-support-blast
Browse files Browse the repository at this point in the history
support blast
  • Loading branch information
xiaoch05 authored Mar 7, 2024
2 parents f9620c7 + 843a9be commit f024b36
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 296 deletions.
1 change: 1 addition & 0 deletions apollo/.env.prod
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ GNOSIS_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-gnosis/v1.
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
BLAST_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/59403/lnv3-blast/v1.0.0

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

formalChainTransfers: PartnerT2[] = [
{
Expand Down Expand Up @@ -71,6 +72,10 @@ export class TransferService extends BaseTransferServiceT2 {
{
chain: 'darwinia-dvm',
channel: 'msgline',
},
{
chain: 'blast',
channel: 'msgline',
}
]
},
Expand Down Expand Up @@ -438,7 +443,29 @@ export class TransferService extends BaseTransferServiceT2 {
channel: 'msgline',
}
]
},
{
chainId: 81457,
chain: 'blast',
url: this.blastEndpoint,
bridge: 'lnv3',
symbols: [
{
key: 'ETH',
symbol: 'ETH',
address: '0x0000000000000000000000000000000000000000',
protocolFee: 10000000000000,
decimals: 18,
}
],
channels: [
{
chain: 'arbitrum',
channel: 'msgline',
}
]
}

];

testChainTransfers: PartnerT2[] = [
Expand Down
6 changes: 4 additions & 2 deletions subgraph/lnv3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
"build-gnosis": "sh generate.sh gnosis 0xbA5D580B18b6436411562981e02c8A9aA1776D10 32215168 && graph codegen && graph build",
"build-mantle": "sh generate.sh mantle 0xbA5D580B18b6436411562981e02c8A9aA1776D10 51738488 && graph codegen && graph build",
"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",
"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}",
"deploy-remote-pro": "graph deploy --access-token $KEY --node https://thegraph.darwinia.network/helix/deploy/ --ipfs https://ipfs.network.thegraph.com lnv3/$NETWORK"
},
"dependencies": {
"@graphprotocol/graph-cli": "0.31.1",
"@graphprotocol/graph-ts": "0.31.0"
"@graphprotocol/graph-cli": "0.68.5",
"@graphprotocol/graph-ts": "0.33.0"
}
}
Loading

0 comments on commit f024b36

Please sign in to comment.