Skip to content

Commit

Permalink
support bera & taiko testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Mar 12, 2024
1 parent d82c9f3 commit 43a94de
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apollo/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ LN_ZKSYNC_DEFAULT_ENDPOINT = https://api.studio.thegraph.com/query/61328/ln-defa
ETHEREUM_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/61328/lnv3-sepolia/v1.0.5
ARBITRUM_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/61328/lnv3-arbitrum-sepolia/v1.0.5
ZKSYNC_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/61328/lnv3-zksepolia/v1.0.5
BERA_LNV3_ENDPOINT=https://thegraph-g2.darwinia.network/helix/subgraphs/name/lnv3/bera
TAIKO_LNV3_ENDPOINT=https://thegraph-g2.darwinia.network/helix/subgraphs/name/lnv3/taiko

XTOKEN_DARWINIA = https://thegraph-g2.darwinia.network/helix/subgraphs/name/xtokentransfer/pangolin
XTOKEN_ETHEREUM = https://api.studio.thegraph.com/query/61328/xtoken-sepolia/v1.1.3
Expand Down
53 changes: 53 additions & 0 deletions apollo/src/lnv3/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export class TransferService extends BaseTransferServiceT2 {
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');
private readonly beraEndpoint = this.configService.get<string>('BERA_LNV3_ENDPOINT');
private readonly taikoEndpoint = this.configService.get<string>('TAIKO_LNV3_ENDPOINT');

formalChainTransfers: PartnerT2[] = [
{
Expand Down Expand Up @@ -545,6 +547,14 @@ export class TransferService extends BaseTransferServiceT2 {
chain: 'zksync-sepolia',
channel: 'layerzero',
},
{
chain: 'taiko',
channel: 'layerzero',
},
{
chain: 'bera',
channel: 'layerzero',
},
],
},
{
Expand Down Expand Up @@ -586,6 +596,49 @@ export class TransferService extends BaseTransferServiceT2 {
},
],
},
{
chainId: 167008,
chain: 'taiko',
url: this.taikoEndpoint,
bridge: 'lnv3',
symbols: [
{
key: 'USDC',
symbol: 'USDC',
address: '0x3F7DF5866591e7E48D18C8EbeAE61Bc343a63283',
protocolFee: 1000000000000000,
decimals: 18,
},
],
channels: [
{
chain: 'arbitrum-sepolia',
channel: 'layerzero',
},
],
},
{
chainId: 80085,
chain: 'bera',
url: this.beraEndpoint,
bridge: 'lnv3',
symbols: [
{
key: 'USDC',
symbol: 'USDC',
address: '0x89AF830781A2C1d3580Db930bea11094F55AfEae',
protocolFee: 1000000000000000,
decimals: 18,
},
],
channels: [
{
chain: 'arbitrum-sepolia',
channel: 'layerzero',
},
],
},

];

readonly addressToTokenInfo: { [key: string]: AddressTokenMap } = {};
Expand Down
2 changes: 2 additions & 0 deletions subgraph/lnv3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"build-sepolia": "sh generate.sh sepolia 0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa 5060070 && graph codegen && graph build",
"build-arbitrum-sepolia": "sh generate.sh arbitrum-sepolia 0x38627Cb033De66a1E07e73f5D0a7a7adFB6741fa 6126325 && graph codegen && graph build",
"build-zksync-sepolia": "sh generate.sh zksync-era-sepolia 0xDc55fF59F82AA50D8A4A61dB8CcaDffD26Fb7dD2 76772 && graph codegen && graph build",
"build-bera-testnet": "sh generate.sh bera 0x00e7EFf0826dfCDf2AA5945dFF710B48f4AA7E64 1006527 && graph codegen && graph build",
"build-taiko-testnet": "sh generate.sh taiko 0x00e7EFf0826dfCDf2AA5945dFF710B48f4AA7E64 501744 && graph codegen && graph build",
"build-polygon-pos": "sh generate.sh matic 0xbA5D580B18b6436411562981e02c8A9aA1776D10 52848029 && graph codegen && graph build",
"build-arbitrum-one": "sh generate.sh arbitrum-one 0xbA5D580B18b6436411562981e02c8A9aA1776D10 175050634 && graph codegen && graph build",
"build-bsc": "sh generate.sh bsc 0xbA5D580B18b6436411562981e02c8A9aA1776D10 35684060 && graph codegen && graph build",
Expand Down

0 comments on commit 43a94de

Please sign in to comment.