Skip to content

Commit

Permalink
Merge pull request #308 from Instadapp/spark-claim
Browse files Browse the repository at this point in the history
Add spark claim
  • Loading branch information
shriyatyagii authored Jul 26, 2024
2 parents 39eee09 + cd5a03a commit 7c177a8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 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.89",
"version": "0.6.90",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
3 changes: 3 additions & 0 deletions src/abi/connectors/v2/SPARK-CLAIM-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AbiItem } from 'web3-utils'

export const SPARK_CLAIM_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"assets","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"rewards","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amts","type":"uint256[]"}],"name":"LogAllClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"assets","type":"address[]"},{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogClaimed","type":"event"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256","name":"amt","type":"uint256"},{"internalType":"address","name":"reward","type":"address"},{"internalType":"uint256","name":"getId","type":"uint256"},{"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":"assets","type":"address[]"}],"name":"claimAll","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"}]
2 changes: 2 additions & 0 deletions src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ 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"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -261,4 +262,5 @@ 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
}
3 changes: 2 additions & 1 deletion src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,6 @@ export const connectorsV2_M1 = {
'WEETH-A':'0xE9C471bAd195Fc2206269BA4B1F001F93036e404',
'FLUID-INST-CLAIM-A': '0xA846B6E912F03831137Ce3C0349D784F8d51cE78',
'PARASWAP-V6-A': '0x6e5484d041aF87CD6C95cd95bd5bE7eA786098D3',
'MERKLE-CLAIM-A': '0xee85F567efc35621145dCf62f341d095D94b9F65'
'MERKLE-CLAIM-A': '0xee85F567efc35621145dCf62f341d095D94b9F65',
'SPARK-CLAIM-A': '0xF8d555bCFf0F755A6a98b91A18dE64DB3610FA40'
}

0 comments on commit 7c177a8

Please sign in to comment.