Skip to content

Commit

Permalink
Merge pull request #332 from Instadapp/f/lrt-merkle-claim
Browse files Browse the repository at this point in the history
  • Loading branch information
thrilok209 authored Nov 14, 2024
2 parents 7b5a017 + 9e89a35 commit cdd77b1
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
38 changes: 38 additions & 0 deletions src/abi/connectors/v2/MERKLE-CLAIM-LRT-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { AbiItem } from 'web3-utils'

export const MERKLE_CLAIM_LRT_A: AbiItem[] = [
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'address', name: 'merkleContract', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
{ indexed: false, internalType: 'bytes32', name: 'expectedMerkleRoot', type: 'bytes32' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogClaimed',
type: 'event'
},
{
inputs: [
{ internalType: 'address', name: 'merkleContract', type: 'address' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
{ internalType: 'bytes32', name: 'expectedMerkleRoot', type: 'bytes32' },
{ 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: [],
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 @@ -144,6 +144,7 @@ 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"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -286,5 +287,6 @@ export const connectorsV2_M1 = {
'FLUID-VAULT-T2-A': FLUID_VAULT_T2_A,
'FLUID-VAULT-T3-A': FLUID_VAULT_T3_A,
'FLUID-VAULT-T4-A': FLUID_VAULT_T4_A,
'ZEROX-V5-A': ZEROX_V5_A
'ZEROX-V5-A': ZEROX_V5_A,
'MERKLE-CLAIM-LRT-A': MERKLE_CLAIM_LRT_A
}
3 changes: 2 additions & 1 deletion src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,6 @@ export const connectorsV2_M1 = {
'FLUID-VAULT-T2-A': '0x2Edf4cc84989Aa31C74ea69bc5166a4C287f0dFb',
'FLUID-VAULT-T3-A': '0x18C8E1a43D12B218a2142d36aA0e885b39e5e8F6',
'FLUID-VAULT-T4-A': '0xD1574167A8EB19b006ae6F93Bc96d320a9a0C3C6',
'ZEROX-V5-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25'
'ZEROX-V5-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25',
'MERKLE-CLAIM-LRT-A': '0x4F2500Ac4334880C966dCAA220b54fd6664603F6'
}

0 comments on commit cdd77b1

Please sign in to comment.