From 9e7889162300b9674ede94688209494ebcd00bb8 Mon Sep 17 00:00:00 2001 From: Samarendra Gouda Date: Fri, 29 Nov 2024 21:57:45 +0530 Subject: [PATCH] feat: add spark-psm-a connector --- package.json | 2 +- src/abi/connectors/v2/SPARK-PSM-A.ts | 36 ++++++++++++++++++++++++ src/abi/connectors/v2/index.ts | 4 ++- src/addresses/mainnet/connectorsV2_M1.ts | 1 + 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 src/abi/connectors/v2/SPARK-PSM-A.ts diff --git a/package.json b/package.json index edeb4da..6d7647a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/abi/connectors/v2/SPARK-PSM-A.ts b/src/abi/connectors/v2/SPARK-PSM-A.ts new file mode 100644 index 0000000..d9c3321 --- /dev/null +++ b/src/abi/connectors/v2/SPARK-PSM-A.ts @@ -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' + } +] diff --git a/src/abi/connectors/v2/index.ts b/src/abi/connectors/v2/index.ts index 6f55eba..46472dc 100644 --- a/src/abi/connectors/v2/index.ts +++ b/src/abi/connectors/v2/index.ts @@ -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, @@ -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, } diff --git a/src/addresses/mainnet/connectorsV2_M1.ts b/src/addresses/mainnet/connectorsV2_M1.ts index d9ac9e4..21db293 100644 --- a/src/addresses/mainnet/connectorsV2_M1.ts +++ b/src/addresses/mainnet/connectorsV2_M1.ts @@ -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', }