Skip to content

Commit

Permalink
Merge pull request #338 from Instadapp/f/morpho-claim
Browse files Browse the repository at this point in the history
feat: add base morpho claim connector
  • Loading branch information
shriyatyagii authored Dec 12, 2024
2 parents 991ac5c + 153e77f commit c85fa06
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 22 deletions.
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.7.12",
"version": "0.7.13",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
38 changes: 38 additions & 0 deletions src/abi/connectors/v2/MORPHO-CLAIM-A.ts
Original file line number Diff line number Diff line change
@@ -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'
}
]
44 changes: 23 additions & 21 deletions src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
1 change: 1 addition & 0 deletions src/addresses/base/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ export const connectorsV2_M1 = {
'OKX-A': '0x0cAF0705a21Be560690A14e4e6D61A3A167fB026',
'ODOS-V2-A': '0x5523AFAdCd20310569A61694dA0B8F47EF991690',
'ZEROX-V2-A': '0x68e391aF9B25C6fBFC48efDea7Ea391E053E5217',
'MORPHO-CLAIM-A': '0x094876716f911eD6557100f6a47ef4dB346396df',
}

0 comments on commit c85fa06

Please sign in to comment.