diff --git a/package.json b/package.json index 6d7647a..ed724ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsa-connect", - "version": "0.7.12", + "version": "0.7.13", "description": "DSA connect", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/src/abi/connectors/v2/MORPHO-CLAIM-A.ts b/src/abi/connectors/v2/MORPHO-CLAIM-A.ts new file mode 100644 index 0000000..cb72de5 --- /dev/null +++ b/src/abi/connectors/v2/MORPHO-CLAIM-A.ts @@ -0,0 +1,38 @@ +import { AbiItem } from 'web3-utils' + +export const MORPHO_CLAIM_A: AbiItem[] = [ + { + anonymous: false, + inputs: [ + { indexed: false, internalType: 'address', name: 'distributor', type: 'address' }, + { indexed: false, internalType: 'address', name: 'rewardToken', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'claimableAmount', type: 'uint256' }, + { indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' } + ], + name: 'LogClaimed', + type: 'event' + }, + { + inputs: [ + { internalType: 'address', name: 'distributorAddress', type: 'address' }, + { internalType: 'address', name: 'rewardToken', type: 'address' }, + { internalType: 'uint256', name: 'claimableAmount', type: 'uint256' }, + { internalType: 'bytes32[]', name: 'proof', 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' + } +] diff --git a/src/abi/connectors/v2/index.ts b/src/abi/connectors/v2/index.ts index 46472dc..4851496 100644 --- a/src/abi/connectors/v2/index.ts +++ b/src/abi/connectors/v2/index.ts @@ -119,35 +119,36 @@ import { CURVE_USD_A } from './CURVE-USD-A' import { FLUID_A } from './FLUID-A' import { MORPHO_BLUE_A } from './MORPHO-BLUE-A' import { BASIC_D_V2 } from './BASIC-D-V2' -import { INSTAPOOL_D } from './INSTAPOOL-D'; +import { INSTAPOOL_D } from './INSTAPOOL-D' import { SPARK_IMPORT_A } from './SPARK-IMPORT-A' import { SPARK_IMPORT_PERMIT_A } from './SPARK-IMPORT-PERMIT-A' import { FLUID_STAKING_A } from './FLUID-STAKING-A' import { FLUID_STETH_A } from './FLUID-STETH-A' import { ONEINCH_V6_A } from './1INCH-V6-A' -import { WEETH_A } from "./WEETH-A" -import { EETH_A } from "./EETH-A" +import { WEETH_A } from './WEETH-A' +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" -import { SPARK_CLAIM_A } from "./SPARK-CLAIM-A" -import { FLUID_ARB_CLAIM_A } from "./FLUID-ARB-CLAIM-A" -import { WEETHS_A } from "./WEETHS-A" -import { ODOS_V2_A } from "./ODOS-V2-A" -import { OKX_A } from "./OKX-A" -import { FLUID_MERKLE_CLAIM_A } from "./FLUID-MERKLE-CLAIM-A" -import { USDS_A } from "./USDS-A" -import { AAVE_V3_ETHERFI } from "./AAVE-V3-ETHERFI" -import { FLUID_VAULT_T2_A } from "./FLUID-VAULT-T2-A" -import { FLUID_VAULT_T3_A } from "./FLUID-VAULT-T3-A" -import { FLUID_VAULT_T4_A } from "./FLUID-VAULT-T4-A" -import { ZEROX_V5_A } from "./ZEROX-V5-A" -import { MERKLE_CLAIM_LRT_A } from "./MERKLE-CLAIM-LRT-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' +import { SPARK_CLAIM_A } from './SPARK-CLAIM-A' +import { FLUID_ARB_CLAIM_A } from './FLUID-ARB-CLAIM-A' +import { WEETHS_A } from './WEETHS-A' +import { ODOS_V2_A } from './ODOS-V2-A' +import { OKX_A } from './OKX-A' +import { FLUID_MERKLE_CLAIM_A } from './FLUID-MERKLE-CLAIM-A' +import { USDS_A } from './USDS-A' +import { AAVE_V3_ETHERFI } from './AAVE-V3-ETHERFI' +import { FLUID_VAULT_T2_A } from './FLUID-VAULT-T2-A' +import { FLUID_VAULT_T3_A } from './FLUID-VAULT-T3-A' +import { FLUID_VAULT_T4_A } from './FLUID-VAULT-T4-A' +import { ZEROX_V5_A } from './ZEROX-V5-A' +import { MERKLE_CLAIM_LRT_A } from './MERKLE-CLAIM-LRT-A' import { ZEROX_V2_A } from './ZEROX-V2-A' -import { MORPHO_TOKEN_WRAPPER_A } from "./MORPHO-TOKEN-WRAPPER-A" -import { SPARK_PSM_A } from "./SPARK-PSM-A" +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' export const connectorsV2_M1 = { 'MORPHO-REWARDS-A': MORPHO_REWARDS_A, @@ -295,4 +296,5 @@ export const connectorsV2_M1 = { 'ZEROX-V2-A': ZEROX_V2_A, 'MORPHO-TOKEN-WRAPPER-A': MORPHO_TOKEN_WRAPPER_A, 'SPARK-PSM-A': SPARK_PSM_A, + 'MORPHO-CLAIM-A': MORPHO_CLAIM_A } diff --git a/src/addresses/base/connectorsV2_M1.ts b/src/addresses/base/connectorsV2_M1.ts index cfffeb7..c985091 100644 --- a/src/addresses/base/connectorsV2_M1.ts +++ b/src/addresses/base/connectorsV2_M1.ts @@ -31,4 +31,5 @@ export const connectorsV2_M1 = { 'OKX-A': '0x0cAF0705a21Be560690A14e4e6D61A3A167fB026', 'ODOS-V2-A': '0x5523AFAdCd20310569A61694dA0B8F47EF991690', 'ZEROX-V2-A': '0x68e391aF9B25C6fBFC48efDea7Ea391E053E5217', + 'MORPHO-CLAIM-A': '0x094876716f911eD6557100f6a47ef4dB346396df', }