From 45b46ac0a8bebf78a7d9402f4a854b1a1ff2a306 Mon Sep 17 00:00:00 2001 From: Samarendra Gouda Date: Wed, 8 Jan 2025 17:26:39 +0530 Subject: [PATCH] feat: add aave-merit-claim connector --- package.json | 2 +- .../connectors/v2/AAVE-V3-MERIT-CLAIM-A.ts | 37 +++++++++++++++++++ src/abi/connectors/v2/index.ts | 2 + src/addresses/avalanche/connectorsV2_M1.ts | 1 + src/addresses/mainnet/connectorsV2_M1.ts | 1 + 5 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/abi/connectors/v2/AAVE-V3-MERIT-CLAIM-A.ts diff --git a/package.json b/package.json index 5e5c4f4..fc0854b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsa-connect", - "version": "0.7.18", + "version": "0.7.19", "description": "DSA connect", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/src/abi/connectors/v2/AAVE-V3-MERIT-CLAIM-A.ts b/src/abi/connectors/v2/AAVE-V3-MERIT-CLAIM-A.ts new file mode 100644 index 0000000..3079716 --- /dev/null +++ b/src/abi/connectors/v2/AAVE-V3-MERIT-CLAIM-A.ts @@ -0,0 +1,37 @@ +import { AbiItem } from 'web3-utils' + +export const AAVE_MERIT_CLAIM_A: AbiItem[] = [ + { + anonymous: false, + inputs: [ + { indexed: false, internalType: 'address', name: 'distributor', type: 'address' }, + { indexed: false, internalType: 'address[]', name: 'tokens', type: 'address[]' }, + { indexed: false, internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, + { indexed: false, internalType: 'bytes32[][]', name: 'merkleProofs', type: 'bytes32[][]' } + ], + name: 'LogClaimAll', + type: 'event' + }, + { + inputs: [ + { internalType: 'address', name: 'distributor', type: 'address' }, + { internalType: 'address[]', name: 'tokens', type: 'address[]' }, + { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, + { internalType: 'bytes32[][]', name: 'merkleProofs', type: 'bytes32[][]' } + ], + name: 'claimAll', + 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' + } +] diff --git a/src/abi/connectors/v2/index.ts b/src/abi/connectors/v2/index.ts index 9371cd5..fc01f5a 100644 --- a/src/abi/connectors/v2/index.ts +++ b/src/abi/connectors/v2/index.ts @@ -150,6 +150,7 @@ import { MORPHO_TOKEN_WRAPPER_A } from './MORPHO-TOKEN-WRAPPER-A' import { SPARK_PSM_A } from './SPARK-PSM-A' import { MORPHO_CLAIM_A } from './MORPHO-CLAIM-A' import { SUSDS_A } from './SUSDS-A' +import { AAVE_MERIT_CLAIM_A } from "./AAVE-V3-MERIT-CLAIM-A" export const connectorsV2_M1 = { 'MORPHO-REWARDS-A': MORPHO_REWARDS_A, @@ -299,4 +300,5 @@ export const connectorsV2_M1 = { 'SPARK-PSM-A': SPARK_PSM_A, 'MORPHO-CLAIM-A': MORPHO_CLAIM_A, 'SUSDS-A': SUSDS_A, + 'AAVE-V3-MERIT-CLAIM-A': AAVE_MERIT_CLAIM_A } diff --git a/src/addresses/avalanche/connectorsV2_M1.ts b/src/addresses/avalanche/connectorsV2_M1.ts index 59e6de8..a4073b3 100644 --- a/src/addresses/avalanche/connectorsV2_M1.ts +++ b/src/addresses/avalanche/connectorsV2_M1.ts @@ -42,4 +42,5 @@ export const connectorsV2_M1 = { 'OKX-A': '0xE761304F14FeeE3dB4491738DA175891Db430468', 'ODOS-V2-A': '0x748Fbb99DE5a89a506AB1DDF15839368402bEb4F', 'ZEROX-V2-A': '0xDb08a687bC3Cf7127F7933146D08d1De2a73ef87', + 'AAVE-V3-MERIT-CLAIM-A': '0x65f244005B002ecD701Eb44F042d64CCE1bb8D1b' } diff --git a/src/addresses/mainnet/connectorsV2_M1.ts b/src/addresses/mainnet/connectorsV2_M1.ts index eb614c4..6d278de 100644 --- a/src/addresses/mainnet/connectorsV2_M1.ts +++ b/src/addresses/mainnet/connectorsV2_M1.ts @@ -128,4 +128,5 @@ export const connectorsV2_M1 = { 'MORPHO-TOKEN-WRAPPER-A': '0x2D73c8C3BA746976d43311324565f290c0C9d44E', 'SPARK-PSM-A': '0x60dAf1F4Fb22bE9aa8DF110E867429Ea12c2F36e', 'MORPHO-CLAIM-A': '0x749E8dDcb309596f7c301d304C0d633291AA4174', + 'AAVE-V3-MERIT-CLAIM-A': '0x95Ff3024d7d17f9F28Ee0e33cCa68a94C4D9E7BD' }