From 274267cdf760abdcb128cb16937cf15675e4227b Mon Sep 17 00:00:00 2001 From: Samarendra Gouda Date: Thu, 19 Dec 2024 19:11:35 +0530 Subject: [PATCH] fix: update fluid-merkle-claim-a --- package.json | 2 +- src/abi/connectors/v2/FLUID-MERKLE-CLAIM-A.ts | 76 +++++++++++++++++++ src/addresses/mainnet/connectorsV2_M1.ts | 2 +- 3 files changed, 78 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ed724abe..f0f03e7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsa-connect", - "version": "0.7.13", + "version": "0.7.14", "description": "DSA connect", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/src/abi/connectors/v2/FLUID-MERKLE-CLAIM-A.ts b/src/abi/connectors/v2/FLUID-MERKLE-CLAIM-A.ts index e1167cf9..34763835 100644 --- a/src/abi/connectors/v2/FLUID-MERKLE-CLAIM-A.ts +++ b/src/abi/connectors/v2/FLUID-MERKLE-CLAIM-A.ts @@ -31,6 +31,41 @@ export const FLUID_MERKLE_CLAIM_A: AbiItem[] = [ name: 'LogClaimOnBehalf', type: 'event' }, + { + anonymous: false, + inputs: [ + { indexed: false, internalType: 'address', name: 'merkleDistributorContract', type: 'address' }, + { indexed: false, internalType: 'address', name: 'rewardToken', type: 'address' }, + { indexed: false, internalType: 'address', name: 'recipient_', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'cumulativeAmount', type: 'uint256' }, + { indexed: false, internalType: 'uint8', name: 'positonType', type: 'uint8' }, + { indexed: false, internalType: 'bytes32', name: 'positionId', type: 'bytes32' }, + { indexed: false, internalType: 'uint256', name: 'cycle', type: 'uint256' }, + { indexed: false, internalType: 'bytes32[]', name: 'merkleProof', type: 'bytes32[]' }, + { indexed: false, internalType: 'bytes', name: 'metadata', type: 'bytes' }, + { indexed: false, internalType: 'uint256', name: 'rewardsClaimed', type: 'uint256' }, + { indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' } + ], + name: 'LogClaimOnBehalfV2', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { indexed: false, internalType: 'address', name: 'merkleDistributorContract', type: 'address' }, + { indexed: false, internalType: 'address', name: 'rewardToken', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'cumulativeAmount', type: 'uint256' }, + { indexed: false, internalType: 'uint8', name: 'positonType', type: 'uint8' }, + { indexed: false, internalType: 'bytes32', name: 'positionId', type: 'bytes32' }, + { indexed: false, internalType: 'uint256', name: 'cycle', type: 'uint256' }, + { indexed: false, internalType: 'bytes32[]', name: 'merkleProof', type: 'bytes32[]' }, + { indexed: false, internalType: 'bytes', name: 'metadata', type: 'bytes' }, + { indexed: false, internalType: 'uint256', name: 'rewardsClaimed', type: 'uint256' }, + { indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' } + ], + name: 'LogClaimV2', + type: 'event' + }, { inputs: [ { internalType: 'address', name: 'merkleDistributorContract', type: 'address' }, @@ -68,6 +103,47 @@ export const FLUID_MERKLE_CLAIM_A: AbiItem[] = [ stateMutability: 'payable', type: 'function' }, + { + inputs: [ + { internalType: 'address', name: 'merkleDistributorContract', type: 'address' }, + { internalType: 'address', name: 'rewardToken', type: 'address' }, + { internalType: 'address', name: 'recipient_', type: 'address' }, + { internalType: 'uint256', name: 'cumulativeAmount_', type: 'uint256' }, + { internalType: 'uint8', name: 'positonType_', type: 'uint8' }, + { internalType: 'bytes32', name: 'positionId_', type: 'bytes32' }, + { internalType: 'uint256', name: 'cycle_', type: 'uint256' }, + { internalType: 'bytes32[]', name: 'merkleProof_', type: 'bytes32[]' }, + { internalType: 'bytes', name: 'metadata_', type: 'bytes' }, + { internalType: 'uint256', name: 'setId_', type: 'uint256' } + ], + name: 'claimOnBehalfV2', + outputs: [ + { internalType: 'string', name: '_eventName', type: 'string' }, + { internalType: 'bytes', name: '_eventParam', type: 'bytes' } + ], + stateMutability: 'payable', + type: 'function' + }, + { + inputs: [ + { internalType: 'address', name: 'merkleDistributorContract', type: 'address' }, + { internalType: 'address', name: 'rewardToken', type: 'address' }, + { internalType: 'uint256', name: 'cumulativeAmount_', type: 'uint256' }, + { internalType: 'uint8', name: 'positonType_', type: 'uint8' }, + { internalType: 'bytes32', name: 'positionId_', type: 'bytes32' }, + { internalType: 'uint256', name: 'cycle_', type: 'uint256' }, + { internalType: 'bytes32[]', name: 'merkleProof_', type: 'bytes32[]' }, + { internalType: 'bytes', name: 'metadata_', type: 'bytes' }, + { internalType: 'uint256', name: 'setId_', type: 'uint256' } + ], + name: 'claimV2', + outputs: [ + { internalType: 'string', name: '_eventName', type: 'string' }, + { internalType: 'bytes', name: '_eventParam', type: 'bytes' } + ], + stateMutability: 'payable', + type: 'function' + }, { inputs: [], name: 'name', diff --git a/src/addresses/mainnet/connectorsV2_M1.ts b/src/addresses/mainnet/connectorsV2_M1.ts index 21db293f..d5c88c67 100644 --- a/src/addresses/mainnet/connectorsV2_M1.ts +++ b/src/addresses/mainnet/connectorsV2_M1.ts @@ -116,7 +116,7 @@ export const connectorsV2_M1 = { 'WEETHS-A': '0x8714DDa838b9fd0CF426545D319721c086833d59', 'OKX-A': '0x69107F54d58400b38E4e7fE8037bff5C35EE222f', 'ODOS-V2-A': '0xAa48Cca7DCe006F37DBb2e2Ef2dE7ACD5f6F5Dfc', - 'FLUID-MERKLE-CLAIM-A': '0xaa9322865E914c625043D8cEc1318ebaD071B365', + 'FLUID-MERKLE-CLAIM-A': '0x0cB7dE5779a4803287806eD125C443EBfc781abf', 'USDS-A': '0xA10c9b8EAba65aB5920b34aB76b9D68DaBc4B3c8', 'AAVE-V3-ETHERFI': '0xf2c3968e5373C58F01C931a589B7cccf0C01163b', 'FLUID-VAULT-T2-A': '0x2Edf4cc84989Aa31C74ea69bc5166a4C287f0dFb',