Skip to content

Commit

Permalink
feat: add spark-psm-a connector
Browse files Browse the repository at this point in the history
  • Loading branch information
SamarendraGouda committed Nov 29, 2024
1 parent dff57e4 commit 9e78891
Show file tree
Hide file tree
Showing 4 changed files with 41 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.7.11",
"version": "0.7.12",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
36 changes: 36 additions & 0 deletions src/abi/connectors/v2/SPARK-PSM-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { AbiItem } from 'web3-utils'

export const SPARK_PSM_A: AbiItem[] = [
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'address', name: 'usr', 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: 'LogBuyGem',
type: 'event'
},
{
inputs: [],
name: 'name',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'swapDaiToUsdc',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'nonpayable',
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 @@ -147,6 +147,7 @@ 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"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -292,5 +293,6 @@ export const connectorsV2_M1 = {
'ZEROX-V5-A': ZEROX_V5_A,
'MERKLE-CLAIM-LRT-A': MERKLE_CLAIM_LRT_A,
'ZEROX-V2-A': ZEROX_V2_A,
'MORPHO-TOKEN-WRAPPER-A': MORPHO_TOKEN_WRAPPER_A
'MORPHO-TOKEN-WRAPPER-A': MORPHO_TOKEN_WRAPPER_A,
'SPARK-PSM-A': SPARK_PSM_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 @@ -126,4 +126,5 @@ export const connectorsV2_M1 = {
'MERKLE-CLAIM-LRT-A': '0x4F2500Ac4334880C966dCAA220b54fd6664603F6',
'ZEROX-V2-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25',
'MORPHO-TOKEN-WRAPPER-A': '0x2D73c8C3BA746976d43311324565f290c0C9d44E',
'SPARK-PSM-A': '0x60dAf1F4Fb22bE9aa8DF110E867429Ea12c2F36e',
}

0 comments on commit 9e78891

Please sign in to comment.