From 72d87da313b8492cb579a28f92fd0d5feb43f5c7 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi Date: Tue, 20 Aug 2024 15:34:53 +0530 Subject: [PATCH] feat: add weeths --- package.json | 2 +- src/abi/connectors/v2/WEETHS-A.ts | 2 ++ src/abi/connectors/v2/index.ts | 4 +++- src/addresses/mainnet/connectorsV2_M1.ts | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 src/abi/connectors/v2/WEETHS-A.ts diff --git a/package.json b/package.json index c2c156f1..4dd19922 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsa-connect", - "version": "0.6.97", + "version": "0.6.98", "description": "DSA connect", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/src/abi/connectors/v2/WEETHS-A.ts b/src/abi/connectors/v2/WEETHS-A.ts new file mode 100644 index 00000000..fabc50a6 --- /dev/null +++ b/src/abi/connectors/v2/WEETHS-A.ts @@ -0,0 +1,2 @@ +import { AbiItem } from 'web3-utils' +export const WEETHS_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"assetAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minShares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesMinted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogDeposit","type":"event"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"assetAmount","type":"uint256"},{"internalType":"uint256","name":"minShares","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"nonpayable","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 f5fcde3f..95d44d2c 100644 --- a/src/abi/connectors/v2/index.ts +++ b/src/abi/connectors/v2/index.ts @@ -134,6 +134,7 @@ import { PARASWAP_V6_A } from "./PARASWAP-V6-A" import { MERKLE_CLAIM_A } from "./MERKLE-CLAIM-A" import { SPARK_CLAIM_A } from "./SPARK-CLAIM-A" import { FLUID_ARB_CLAIM_A } from "./FLUID-ARB-CLAIM-A" +import { WEETHS_A } from "./WEETHS-A" export const connectorsV2_M1 = { 'MORPHO-REWARDS-A': MORPHO_REWARDS_A, @@ -266,5 +267,6 @@ export const connectorsV2_M1 = { 'PARASWAP-V6-A': PARASWAP_V6_A, 'MERKLE-CLAIM-A': MERKLE_CLAIM_A, 'SPARK-CLAIM-A': SPARK_CLAIM_A, - 'FLUID-ARB-CLAIM-A': FLUID_ARB_CLAIM_A + 'FLUID-ARB-CLAIM-A': FLUID_ARB_CLAIM_A, + 'WEETHS-A': WEETHS_A } diff --git a/src/addresses/mainnet/connectorsV2_M1.ts b/src/addresses/mainnet/connectorsV2_M1.ts index 46b086f1..bf80c052 100644 --- a/src/addresses/mainnet/connectorsV2_M1.ts +++ b/src/addresses/mainnet/connectorsV2_M1.ts @@ -112,5 +112,6 @@ export const connectorsV2_M1 = { 'FLUID-INST-CLAIM-A': '0xA846B6E912F03831137Ce3C0349D784F8d51cE78', 'PARASWAP-V6-A': '0x6e5484d041aF87CD6C95cd95bd5bE7eA786098D3', 'MERKLE-CLAIM-A': '0xee85F567efc35621145dCf62f341d095D94b9F65', - 'SPARK-CLAIM-A': '0xC36a19FFA9D050EEe5D53Fa15095Dc1228767EcF' + 'SPARK-CLAIM-A': '0xC36a19FFA9D050EEe5D53Fa15095Dc1228767EcF', + 'WEETHS-A': '0x8714DDa838b9fd0CF426545D319721c086833d59' }