Skip to content

Commit

Permalink
add linea mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Nov 22, 2023
1 parent bd0abad commit f1f1002
Show file tree
Hide file tree
Showing 3 changed files with 56 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 @@ -28,5 +28,6 @@ LN_CRAB_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/na
LN_BSC_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/bsc
LN_BASE_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/base
LN_OP_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/op
LN_LINEA_DEFAULT_ENDPOINT=https://thegraph-g1.darwinia.network/helix/subgraphs/name/lndefault/linea

CHAIN_TYPE=formal
51 changes: 51 additions & 0 deletions apollo/src/lnbridgev20/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ export class TransferService extends BaseTransferServiceT3 {
bridgeType: 'default',
channel: 'layerzero',
},
{
toChain: 59144,
toSymbol: 'USDT',
toAddress: '0xA219439258ca9da29E9Cc4cE5596924745e12B93',
protocolFee: 100000000000000000,
decimals: 6,
bridgeType: 'default',
channel: 'layerzero',
},
],
},
{
Expand Down Expand Up @@ -484,6 +493,15 @@ export class TransferService extends BaseTransferServiceT3 {
bridgeType: 'default',
channel: 'layerzero',
},
{
toChain: 59144,
toSymbol: 'USDT',
toAddress: '0xA219439258ca9da29E9Cc4cE5596924745e12B93',
protocolFee: 100000000000000000,
decimals: 6,
bridgeType: 'default',
channel: 'layerzero',
},
],
},
{
Expand Down Expand Up @@ -552,6 +570,39 @@ export class TransferService extends BaseTransferServiceT3 {
},
],
},
{
chainId: 59144,
chainName: 'linea',
defaultEndpoint: this.lnLineaDefaultEndpoint,
oppositeEndpoint: null,
tokens: [
{
fromSymbol: 'USDT',
fromAddress: '0xA219439258ca9da29E9Cc4cE5596924745e12B93',
decimals: 6,
remoteInfos: [
{
toChain: 56,
toSymbol: 'USDT',
toAddress: '0x55d398326f99059fF775485246999027B3197955',
protocolFee: 100000,
decimals: 18,
bridgeType: 'default',
channel: 'layerzero',
},
{
toChain: 42161,
toSymbol: 'USDT',
toAddress: '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9',
protocolFee: 100000000000000000,
decimals: 6,
bridgeType: 'default',
channel: 'layerzero',
},
],
},
],
},
];

testChainTransfers: PartnerT3[] = [
Expand Down
4 changes: 4 additions & 0 deletions subgraph/ln-default-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"build-scroll": "sh generate.sh scroll 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 660609 && graph codegen && graph build",
"build-darwinia": "sh generate.sh darwinia2 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 1423237 && graph codegen && graph build",
"build-crab": "sh generate.sh crab2 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 1718910 && graph codegen && graph build",
"build-bsc": "sh generate.sh bsc 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 33646764 && graph codegen && graph build",
"build-base": "sh generate.sh base 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 6837827 && graph codegen && graph build",
"build-op": "sh generate.sh op 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 112469188 && graph codegen && graph build",
"build-linea": "sh generate.sh linea 0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337 927064 && 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 f1f1002

Please sign in to comment.