Skip to content

Commit

Permalink
Merge pull request #306 from Instadapp/add-merkleClaim
Browse files Browse the repository at this point in the history
Add merkle claim connector
  • Loading branch information
shriyatyagii authored Jul 18, 2024
2 parents c72a5a0 + 5d5ef55 commit fa60e51
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/abi/connectors/v2/MERKLE-CLAIM-A.ts
Original file line number Diff line number Diff line change
@@ -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"}]
2 changes: 2 additions & 0 deletions src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
}
1 change: 1 addition & 0 deletions src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ export const connectorsV2_M1 = {
'WEETH-A':'0xE9C471bAd195Fc2206269BA4B1F001F93036e404',
'FLUID-INST-CLAIM-A': '0xA846B6E912F03831137Ce3C0349D784F8d51cE78',
'PARASWAP-V6-A': '0x6e5484d041aF87CD6C95cd95bd5bE7eA786098D3',
'MERKLE-CLAIM-A': '0xee85F567efc35621145dCf62f341d095D94b9F65'
}

0 comments on commit fa60e51

Please sign in to comment.