Skip to content

Commit

Permalink
Merge pull request #156 from DefiLlama/feature/xy_finance_blast
Browse files Browse the repository at this point in the history
Feature/xy finance blast
  • Loading branch information
vrtnd authored Mar 16, 2024
2 parents fbc7cda + 224e404 commit 7866cd3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 9 deletions.
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"scripts": {
"deploy:prod": "export NODE_OPTIONS=--max-old-space-size=10240 && sls deploy --stage prod",
"serve": "sls offline start",
"build": "sls webpack",
"test": "ts-node ./src/adapters/test.ts",
"test-txs": "ts-node ./src/utils/testAdapterHistorical.ts",
"build": "export NODE_OPTIONS=--max-old-space-size=10240 && sls webpack",
"test": "tsx ./src/adapters/test.ts",
"test-txs": "tsx ./src/utils/testAdapterHistorical.ts",
"ts": "tsc --noEmit",
"adapter": "export $(cat .env.test | xargs) && ts-node ./src/utils/runAdapterHistorical.ts",
"aggregate": "export $(cat .env.test | xargs) && ts-node ./src/utils/testaggregate.ts",
"daily-volume": "export $(cat .env.test | xargs) && ts-node ./src/utils/testDailyVolume.ts"
"adapter": "export $(cat .env.test | xargs) && tsx ./src/utils/runAdapterHistorical.ts",
"aggregate": "export $(cat .env.test | xargs) && tsx ./src/utils/testaggregate.ts",
"daily-volume": "export $(cat .env.test | xargs) && tsx ./src/utils/testDailyVolume.ts"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.101",
Expand All @@ -23,17 +23,20 @@
"ts-loader": "^9.3.1"
},
"dependencies": {
"@defillama/sdk": "^4.0.64",
"@defillama/sdk": "^5.0.42",
"@solana/web3.js": "^1.87.3",
"async-retry": "^1.3.1",
"axios": "^0.21.0",
"axios-rate-limit": "^1.3.0",
"bignumber.js": "^9.0.1",
"dotenv": "^8.2.0",
"ethers": "^5",
"graphql": "^16.0.0",
"graphql-request": "^4.0.0",
"node-fetch": "^2.6.7",
"postgres": "^3.2.4",
"serverless-webpack": "^5.8.0"
"serverless-webpack": "^5.8.0",
"tsx": "^4.7.1",
"typescript": "^5.4.2"
}
}
19 changes: 18 additions & 1 deletion src/adapters/xy-finance/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export enum Chain {
ThunderCore = 'thundercore',
Numbers = 'numbers',
Wemix = 'wemix',
Blast = 'blast',
}

export enum VAULTS_TOKEN {
Expand Down Expand Up @@ -313,6 +314,20 @@ export const YBridgeVaultsTokenContractAddress: Record<Exclude<Chain, Chain.Numb
contractAddress: '',
tokenAddress: ''
},
},
[Chain.Blast]: {
[VAULTS_TOKEN.USDT]: {
contractAddress: '',
tokenAddress: ''
},
[VAULTS_TOKEN.USDC]: {
contractAddress: '',
tokenAddress: ''
},
[VAULTS_TOKEN.ETH]: {
contractAddress: '0xFa77c2DecCB21ACb9Bf196408Bf6aD5973D07762',
tokenAddress: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
},
}
}

Expand All @@ -337,6 +352,7 @@ export const YBridgeContractAddress: Record<Exclude<Chain, Chain.Numbers>, Contr
[Chain.Moonriver]: "0xc67Dd7054915a2B0aA3e48f35DA714Ff861e71BD",
[Chain.ThunderCore]: "0xF103b5B479d2A629F422C42bb35E7eEceE1ad55E",
[Chain.Wemix]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
[Chain.Blast]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
}

export const XYRouterContractAddress: Record<Chain, ContractAddress> = {
Expand All @@ -360,5 +376,6 @@ export const XYRouterContractAddress: Record<Chain, ContractAddress> = {
[Chain.Moonriver]: "0x64d17beaE666cC435B9d40a21f058b379b2a0194",
[Chain.ThunderCore]: "0xbF26ca7cf925e9EA0765c737B066253CF80e0E09",
[Chain.Numbers]: "0x1acCfC3a45313f8F862BE7fbe9aB25f20A93d598",
[Chain.Wemix]: "0x6471fAd467ac2854b403e7FE3e95FBbB3287a7ee"
[Chain.Wemix]: "0x6471fAd467ac2854b403e7FE3e95FBbB3287a7ee",
[Chain.Blast]: "0x43A86823EBBe2ECF9A384aDfD989E26A30626458",
}
1 change: 1 addition & 0 deletions src/adapters/xy-finance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ const adapter: BridgeAdapter = {
moonriver: constructParams(Chain.Moonriver),
thundercore: constructParams(Chain.ThunderCore),
wemix: constructParams(Chain.Wemix),
blast: constructParams(Chain.Blast),
};

export default adapter;
1 change: 1 addition & 0 deletions src/data/bridgeNetworkData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ export default [
"KCC",
"Moonriver",
"ThunderCore",
"Blast",
// "Numbers",
],
chainMapping: {
Expand Down

0 comments on commit 7866cd3

Please sign in to comment.