Skip to content

Commit

Permalink
Merge pull request #314 from Instadapp/f/arb-claim
Browse files Browse the repository at this point in the history
feat: add arb merkle claim connector
  • Loading branch information
thrilok209 authored Aug 17, 2024
2 parents 577cd15 + 3ea947b commit df34adf
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 3 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.6.95",
"version": "0.6.96",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
70 changes: 70 additions & 0 deletions src/abi/connectors/v2/FLUID-ARB-CLAIM-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import { AbiItem } from 'web3-utils'
export const FLUID_ARB_CLAIM_A: AbiItem[] = [
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'uint256', name: 'cumulativeAmount', type: 'uint256' },
{ 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: 'uint256', name: 'rewardsClaimed', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogClaim',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'address', name: 'recipient_', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'cumulativeAmount', type: 'uint256' },
{ 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: 'uint256', name: 'rewardsClaimed', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogClaimOnBehalf',
type: 'event'
},
{
inputs: [
{ internalType: 'uint256', name: 'cumulativeAmount_', type: 'uint256' },
{ internalType: 'bytes32', name: 'positionId_', type: 'bytes32' },
{ internalType: 'uint256', name: 'cycle_', 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: [
{ internalType: 'address', name: 'recipient_', type: 'address' },
{ internalType: 'uint256', name: 'cumulativeAmount_', type: 'uint256' },
{ internalType: 'bytes32', name: 'positionId_', type: 'bytes32' },
{ internalType: 'uint256', name: 'cycle_', type: 'uint256' },
{ internalType: 'bytes32[]', name: 'merkleProof_', type: 'bytes32[]' },
{ internalType: 'uint256', name: 'setId_', type: 'uint256' }
],
name: 'claimOnBehalf',
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'
}
]
4 changes: 3 additions & 1 deletion src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ 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"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -264,5 +265,6 @@ export const connectorsV2_M1 = {
'FLUID-INST-CLAIM-A': FLUID_INST_CLAIM_A,
'PARASWAP-V6-A': PARASWAP_V6_A,
'MERKLE-CLAIM-A': MERKLE_CLAIM_A,
'SPARK-CLAIM-A': SPARK_CLAIM_A
'SPARK-CLAIM-A': SPARK_CLAIM_A,
'FLUID-ARB-CLAIM-A': FLUID_ARB_CLAIM_A
}
3 changes: 2 additions & 1 deletion src/addresses/base/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ export const connectorsV2_M1 = {
'INSTAPOOL-D': '0x3Ca137EC191299481472f7d7F72ce63586D4C4A8',
'FLUID-A': '0x671E98Cd55587CFf8bA192489fFd968D804757D7',
'BASIC-D-V2': '0x748Fbb99DE5a89a506AB1DDF15839368402bEb4F',
'MORPHO-BLUE-A': '0x38cB414DA0620F2D7Ec3A9A1f185D519270F9538'
'MORPHO-BLUE-A': '0x38cB414DA0620F2D7Ec3A9A1f185D519270F9538',
'FLUID-ARB-CLAIM-A': '0x95596f9C4477861C313B1dD5e20aCd1f3DFBc092'
}

0 comments on commit df34adf

Please sign in to comment.