Skip to content

Commit

Permalink
feat: add susds connector on base
Browse files Browse the repository at this point in the history
  • Loading branch information
SamarendraGouda committed Dec 21, 2024
1 parent 7ed4731 commit 44404a1
Show file tree
Hide file tree
Showing 4 changed files with 46 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.14",
"version": "0.7.15",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
41 changes: 41 additions & 0 deletions src/abi/connectors/v2/SUSDS-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { AbiItem } from 'web3-utils'

export const SUSDS_A: AbiItem[] = [
{
inputs: [],
name: 'name',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'address', name: 'assetAddr', type: 'address' },
{ internalType: 'uint256', name: 'amountIn', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'swapExactIn',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{ internalType: 'address', name: 'assetAddr', type: 'address' },
{ internalType: 'uint256', name: 'amountOut', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'swapExactOut',
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 @@ -149,6 +149,7 @@ 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'
import { MORPHO_CLAIM_A } from './MORPHO-CLAIM-A'
import { SUSDS_A } from './SUSDS-A'

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -296,5 +297,6 @@ export const connectorsV2_M1 = {
'ZEROX-V2-A': ZEROX_V2_A,
'MORPHO-TOKEN-WRAPPER-A': MORPHO_TOKEN_WRAPPER_A,
'SPARK-PSM-A': SPARK_PSM_A,
'MORPHO-CLAIM-A': MORPHO_CLAIM_A
'MORPHO-CLAIM-A': MORPHO_CLAIM_A,
'SUSDS-A': SUSDS_A,
}
1 change: 1 addition & 0 deletions src/addresses/base/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ export const connectorsV2_M1 = {
'ODOS-V2-A': '0x5523AFAdCd20310569A61694dA0B8F47EF991690',
'ZEROX-V2-A': '0x68e391aF9B25C6fBFC48efDea7Ea391E053E5217',
'MORPHO-CLAIM-A': '0x094876716f911eD6557100f6a47ef4dB346396df',
'SUSDS-A': '0x46DaF6F557a815b82Bf2b7Bd56E195CBb16daC5a'
}

0 comments on commit 44404a1

Please sign in to comment.