Skip to content

Commit dcf67f1

Browse files
authored
Merge pull request #341 from Instadapp/f/base-susds
feat: add susds connector on base
2 parents 7ed4731 + 44404a1 commit dcf67f1

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dsa-connect",
3-
"version": "0.7.14",
3+
"version": "0.7.15",
44
"description": "DSA connect",
55
"main": "dist/index.js",
66
"module": "dist/index.es.js",

src/abi/connectors/v2/SUSDS-A.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { AbiItem } from 'web3-utils'
2+
3+
export const SUSDS_A: AbiItem[] = [
4+
{
5+
inputs: [],
6+
name: 'name',
7+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
8+
stateMutability: 'view',
9+
type: 'function'
10+
},
11+
{
12+
inputs: [
13+
{ internalType: 'address', name: 'assetAddr', type: 'address' },
14+
{ internalType: 'uint256', name: 'amountIn', type: 'uint256' },
15+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
16+
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
17+
],
18+
name: 'swapExactIn',
19+
outputs: [
20+
{ internalType: 'string', name: '_eventName', type: 'string' },
21+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
22+
],
23+
stateMutability: 'nonpayable',
24+
type: 'function'
25+
},
26+
{
27+
inputs: [
28+
{ internalType: 'address', name: 'assetAddr', type: 'address' },
29+
{ internalType: 'uint256', name: 'amountOut', type: 'uint256' },
30+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
31+
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
32+
],
33+
name: 'swapExactOut',
34+
outputs: [
35+
{ internalType: 'string', name: '_eventName', type: 'string' },
36+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
37+
],
38+
stateMutability: 'nonpayable',
39+
type: 'function'
40+
}
41+
]

src/abi/connectors/v2/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ import { ZEROX_V2_A } from './ZEROX-V2-A'
149149
import { MORPHO_TOKEN_WRAPPER_A } from './MORPHO-TOKEN-WRAPPER-A'
150150
import { SPARK_PSM_A } from './SPARK-PSM-A'
151151
import { MORPHO_CLAIM_A } from './MORPHO-CLAIM-A'
152+
import { SUSDS_A } from './SUSDS-A'
152153

153154
export const connectorsV2_M1 = {
154155
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
@@ -296,5 +297,6 @@ export const connectorsV2_M1 = {
296297
'ZEROX-V2-A': ZEROX_V2_A,
297298
'MORPHO-TOKEN-WRAPPER-A': MORPHO_TOKEN_WRAPPER_A,
298299
'SPARK-PSM-A': SPARK_PSM_A,
299-
'MORPHO-CLAIM-A': MORPHO_CLAIM_A
300+
'MORPHO-CLAIM-A': MORPHO_CLAIM_A,
301+
'SUSDS-A': SUSDS_A,
300302
}

src/addresses/base/connectorsV2_M1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ export const connectorsV2_M1 = {
3232
'ODOS-V2-A': '0x5523AFAdCd20310569A61694dA0B8F47EF991690',
3333
'ZEROX-V2-A': '0x68e391aF9B25C6fBFC48efDea7Ea391E053E5217',
3434
'MORPHO-CLAIM-A': '0x094876716f911eD6557100f6a47ef4dB346396df',
35+
'SUSDS-A': '0x46DaF6F557a815b82Bf2b7Bd56E195CBb16daC5a'
3536
}

0 commit comments

Comments
 (0)