From 39e95838731e6f8c6a98f808b53b72619f547a45 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi Date: Tue, 26 Nov 2024 01:13:10 +0400 Subject: [PATCH 1/2] feat: add fluid dex connector --- package.json | 2 +- src/abi/connectors/v2/FLUID-DEX-A.ts | 2 ++ src/abi/connectors/v2/index.ts | 4 +++- src/addresses/mainnet/connectorsV2_M1.ts | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/abi/connectors/v2/FLUID-DEX-A.ts diff --git a/package.json b/package.json index edeb4da8..6d7647a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsa-connect", - "version": "0.7.11", + "version": "0.7.12", "description": "DSA connect", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/src/abi/connectors/v2/FLUID-DEX-A.ts b/src/abi/connectors/v2/FLUID-DEX-A.ts new file mode 100644 index 00000000..2bec4008 --- /dev/null +++ b/src/abi/connectors/v2/FLUID-DEX-A.ts @@ -0,0 +1,2 @@ +import { AbiItem } from 'web3-utils' +export const FLUID_DEX_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"dex","type":"address"},{"indexed":false,"internalType":"uint256","name":"token0Amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"token1Amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minSharesAmt","type":"uint256"}],"name":"LogFluidDexDeposit","type":"event"},{"inputs":[{"internalType":"address","name":"dex_","type":"address"},{"internalType":"uint256","name":"token0Amt_","type":"uint256"},{"internalType":"uint256","name":"token1Amt_","type":"uint256"},{"internalType":"uint256","name":"minSharesAmt_","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}] \ No newline at end of file diff --git a/src/abi/connectors/v2/index.ts b/src/abi/connectors/v2/index.ts index 6f55ebaa..e9fa9a0b 100644 --- a/src/abi/connectors/v2/index.ts +++ b/src/abi/connectors/v2/index.ts @@ -147,6 +147,7 @@ import { ZEROX_V5_A } from "./ZEROX-V5-A" import { MERKLE_CLAIM_LRT_A } from "./MERKLE-CLAIM-LRT-A" import { ZEROX_V2_A } from './ZEROX-V2-A' import { MORPHO_TOKEN_WRAPPER_A } from "./MORPHO-TOKEN-WRAPPER-A" +import { FLUID_DEX_A } from "./FLUID-DEX-A" export const connectorsV2_M1 = { 'MORPHO-REWARDS-A': MORPHO_REWARDS_A, @@ -292,5 +293,6 @@ export const connectorsV2_M1 = { 'ZEROX-V5-A': ZEROX_V5_A, 'MERKLE-CLAIM-LRT-A': MERKLE_CLAIM_LRT_A, 'ZEROX-V2-A': ZEROX_V2_A, - 'MORPHO-TOKEN-WRAPPER-A': MORPHO_TOKEN_WRAPPER_A + 'MORPHO-TOKEN-WRAPPER-A': MORPHO_TOKEN_WRAPPER_A, + 'FLUID-DEX-A': FLUID_DEX_A } diff --git a/src/addresses/mainnet/connectorsV2_M1.ts b/src/addresses/mainnet/connectorsV2_M1.ts index d9ac9e4c..0c2ee4f2 100644 --- a/src/addresses/mainnet/connectorsV2_M1.ts +++ b/src/addresses/mainnet/connectorsV2_M1.ts @@ -126,4 +126,5 @@ export const connectorsV2_M1 = { 'MERKLE-CLAIM-LRT-A': '0x4F2500Ac4334880C966dCAA220b54fd6664603F6', 'ZEROX-V2-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25', 'MORPHO-TOKEN-WRAPPER-A': '0x2D73c8C3BA746976d43311324565f290c0C9d44E', + 'FLUID-DEX-A': '0x7FF4C3F6CA8661C072A103c6491ef20Edb9b66db' } From 62f9fa81b84113ca264fe26c4f15b66d0ac748e6 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi Date: Tue, 26 Nov 2024 02:16:33 +0400 Subject: [PATCH 2/2] feat: update connector address --- src/addresses/mainnet/connectorsV2_M1.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addresses/mainnet/connectorsV2_M1.ts b/src/addresses/mainnet/connectorsV2_M1.ts index 0c2ee4f2..d4e49e77 100644 --- a/src/addresses/mainnet/connectorsV2_M1.ts +++ b/src/addresses/mainnet/connectorsV2_M1.ts @@ -126,5 +126,5 @@ export const connectorsV2_M1 = { 'MERKLE-CLAIM-LRT-A': '0x4F2500Ac4334880C966dCAA220b54fd6664603F6', 'ZEROX-V2-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25', 'MORPHO-TOKEN-WRAPPER-A': '0x2D73c8C3BA746976d43311324565f290c0C9d44E', - 'FLUID-DEX-A': '0x7FF4C3F6CA8661C072A103c6491ef20Edb9b66db' + 'FLUID-DEX-A': '0x26Bdcf4D4A1d3F85914cbb4bFE6D1b0ABA7CEAE1' }