From 5d5ef55cd219103a50741b7ae0f62d6caa21b2e0 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi Date: Wed, 17 Jul 2024 23:40:12 +0530 Subject: [PATCH] feat: Add merkle claim connector --- package.json | 2 +- src/abi/connectors/v2/MERKLE-CLAIM-A.ts | 3 +++ src/abi/connectors/v2/index.ts | 2 ++ src/addresses/mainnet/connectorsV2_M1.ts | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/abi/connectors/v2/MERKLE-CLAIM-A.ts diff --git a/package.json b/package.json index a17bc051..344bb2a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsa-connect", - "version": "0.6.87", + "version": "0.6.88", "description": "DSA connect", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/src/abi/connectors/v2/MERKLE-CLAIM-A.ts b/src/abi/connectors/v2/MERKLE-CLAIM-A.ts new file mode 100644 index 00000000..fed83f9b --- /dev/null +++ b/src/abi/connectors/v2/MERKLE-CLAIM-A.ts @@ -0,0 +1,3 @@ +import { AbiItem } from 'web3-utils' + +export const MERKLE_CLAIM_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"merkleContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogClaimed","type":"event"},{"inputs":[{"internalType":"address","name":"merkleContract","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"claim","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 fd33dbe1..4d8f856b 100644 --- a/src/abi/connectors/v2/index.ts +++ b/src/abi/connectors/v2/index.ts @@ -130,6 +130,7 @@ import { EETH_A } from "./EETH-A" import { FLUID_INST_CLAIM_A } from "./FLUID-INST-CLAIM-A" import { PARASWAP_V6_A } from "./PARASWAP-V6-A" +import { MERKLE_CLAIM_A } from "./MERKLE-CLAIM-A" export const connectorsV2_M1 = { 'MORPHO-REWARDS-A': MORPHO_REWARDS_A, @@ -259,4 +260,5 @@ export const connectorsV2_M1 = { 'EETH-A': EETH_A, 'FLUID-INST-CLAIM-A': FLUID_INST_CLAIM_A, 'PARASWAP-V6-A': PARASWAP_V6_A, + 'MERKLE-CLAIM-A': MERKLE_CLAIM_A, } diff --git a/src/addresses/mainnet/connectorsV2_M1.ts b/src/addresses/mainnet/connectorsV2_M1.ts index f18f389f..3ab1c519 100644 --- a/src/addresses/mainnet/connectorsV2_M1.ts +++ b/src/addresses/mainnet/connectorsV2_M1.ts @@ -110,4 +110,5 @@ export const connectorsV2_M1 = { 'WEETH-A':'0xE9C471bAd195Fc2206269BA4B1F001F93036e404', 'FLUID-INST-CLAIM-A': '0xA846B6E912F03831137Ce3C0349D784F8d51cE78', 'PARASWAP-V6-A': '0x6e5484d041aF87CD6C95cd95bd5bE7eA786098D3', + 'MERKLE-CLAIM-A': '0xee85F567efc35621145dCf62f341d095D94b9F65' }