Skip to content

Commit

Permalink
Merge pull request #297 from Instadapp/feat/fluid-inst-claim
Browse files Browse the repository at this point in the history
feat: fluid-inst-claim connector
  • Loading branch information
thrilok209 authored May 30, 2024
2 parents d219127 + 0b4838f commit 277b26b
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 1 deletion.
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.78",
"version": "0.6.79",
"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-INST-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_INST_CLAIM_A: AbiItem[] = [
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'uint256', name: 'cumulativeAmount', type: 'uint256' },
{ indexed: false, internalType: 'address', name: 'fToken', type: 'address' },
{ 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: 'address', name: 'fToken', type: 'address' },
{ 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: 'address', name: 'fToken_', type: 'address' },
{ 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: 'address', name: 'fToken_', type: 'address' },
{ 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'
}
]
3 changes: 3 additions & 0 deletions src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ import { ONEINCH_V6_A } from './1INCH-V6-A'
import { WEETH_A } from "./WEETH-A"
import { EETH_A } from "./EETH-A"

import { FLUID_INST_CLAIM_A } from "./FLUID-INST-CLAIM-A"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
'LITE-B': LITE_B,
Expand Down Expand Up @@ -254,4 +256,5 @@ export const connectorsV2_M1 = {
'FLUID-STETH-A': FLUID_STETH_A,
'WEETH-A': WEETH_A,
'EETH-A': EETH_A,
'FLUID-INST-CLAIM-A': FLUID_INST_CLAIM_A,
}
1 change: 1 addition & 0 deletions src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ export const connectorsV2_M1 = {
'FLUID-STETH-A': '0x2d32F5bA3F0FBDe78E4bF77E7656738e5799bE79',
'EETH-A':'0x05F471Be16c25ae233A21614A4C3edc2e2120F78',
'WEETH-A':'0xE9C471bAd195Fc2206269BA4B1F001F93036e404',
'FLUID-INST-CLAIM-A': '0xA846B6E912F03831137Ce3C0349D784F8d51cE78',
}

0 comments on commit 277b26b

Please sign in to comment.