dsa-connect 0.6.10 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist/abi/connectors/index.d.ts +2 -0
- package/dist/abi/connectors/v2/AAVE-V3-IMPORT-PERMIT-A.d.ts +2 -0
- package/dist/abi/connectors/v2/LITE-A.d.ts +2 -0
- package/dist/abi/connectors/v2/index.d.ts +2 -0
- package/dist/abi/index.d.ts +2 -0
- package/dist/addresses/arbitrum/connectorsV2_M1.d.ts +17 -16
- package/dist/addresses/avalanche/connectorsV2_M1.d.ts +1 -0
- package/dist/addresses/index.d.ts +34 -29
- package/dist/addresses/mainnet/connectorsV2_M1.d.ts +1 -0
- package/dist/addresses/optimism/connectorsV2_M1.d.ts +14 -13
- package/dist/addresses/polygon/connectorsV2_M1.d.ts +1 -0
- package/dist/index.bundle.js +2 -2
- package/dist/index.es.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
# DSA Connect [](https://github.com/Instadapp/dsa-connect/actions/workflows/build.yml)
|
|
4
4
|
|
|
5
5
|
<img src="https://raw.githubusercontent.com/InstaDApp/dsa-connect/master/src/data/img.svg">
|
|
6
6
|
|
|
7
7
|
The official DSA SDK for JavaScript, available for browsers and Node.js backends.
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
9
12
|
## Installation
|
|
10
13
|
|
|
11
14
|
To get started, install the DSA Connect package from npm:
|
|
@@ -219,7 +222,7 @@ spells.cast({
|
|
|
219
222
|
```
|
|
220
223
|
|
|
221
224
|
| **Parameter (optional)** | **Type** | **Description** |
|
|
222
|
-
|--------------------------|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
225
|
+
|--------------------------|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
223
226
|
| `gasPrice` | *string/number* | The gas price in gwei. Mostly used in Node implementation to configure the transaction confirmation speed. |
|
|
224
227
|
| `value` | *string/number* | Amount of ETH which you want to send along with the transaction (in wei). |
|
|
225
228
|
| `nonce` | *string/number* | Nonce of your sender account. Mostly used in Node implementation to send transaction with a particular nonce either to override unconfirmed transaction or some other purpose. |
|
|
@@ -7,6 +7,8 @@ export declare const connectors: {
|
|
|
7
7
|
versions: {
|
|
8
8
|
1: typeof connectorsV1;
|
|
9
9
|
2: {
|
|
10
|
+
'AAVE-V3-IMPORT-PERMIT-A': import("web3-utils").AbiItem[];
|
|
11
|
+
'LITE-A': import("web3-utils").AbiItem[];
|
|
10
12
|
'COMPOUND-IMPORT-D': import("web3-utils").AbiItem[];
|
|
11
13
|
'AAVE-V3-IMPORT-A': import("web3-utils").AbiItem[];
|
|
12
14
|
'AAVE-IMPORT-V2-V3-A': import("web3-utils").AbiItem[];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const connectorsV2_M1: {
|
|
2
|
+
'AAVE-V3-IMPORT-PERMIT-A': import("web3-utils").AbiItem[];
|
|
3
|
+
'LITE-A': import("web3-utils").AbiItem[];
|
|
2
4
|
'COMPOUND-IMPORT-D': import("web3-utils").AbiItem[];
|
|
3
5
|
'AAVE-V3-IMPORT-A': import("web3-utils").AbiItem[];
|
|
4
6
|
'AAVE-IMPORT-V2-V3-A': import("web3-utils").AbiItem[];
|
package/dist/abi/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export declare const Abi: {
|
|
|
5
5
|
versions: {
|
|
6
6
|
1: typeof import("./connectors/v1");
|
|
7
7
|
2: {
|
|
8
|
+
'AAVE-V3-IMPORT-PERMIT-A': import("web3-utils").AbiItem[];
|
|
9
|
+
'LITE-A': import("web3-utils").AbiItem[];
|
|
8
10
|
'COMPOUND-IMPORT-D': import("web3-utils").AbiItem[];
|
|
9
11
|
'AAVE-V3-IMPORT-A': import("web3-utils").AbiItem[];
|
|
10
12
|
'AAVE-IMPORT-V2-V3-A': import("web3-utils").AbiItem[];
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
export declare const connectorsV2_M1: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
'AUTHORITY-A': string;
|
|
3
|
+
'BASIC-A': string;
|
|
4
|
+
'BASIC-B': string;
|
|
5
|
+
'BASIC-C': string;
|
|
6
|
+
'UNISWAP-V3-A': string;
|
|
7
|
+
'WETH-A': string;
|
|
8
|
+
'UNISWAP-SELL-BETA': string;
|
|
9
|
+
'INSTAPOOL-C': string;
|
|
10
|
+
'1INCH-V4-A': string;
|
|
11
|
+
'1INCH-V3-A ': string;
|
|
12
|
+
'1INCH-A': string;
|
|
13
|
+
'SUSHISWAP-A': string;
|
|
14
|
+
'UNISWAP-V3-STAKER-B': string;
|
|
15
|
+
'UNISWAP-V3-ROUTER-A': string;
|
|
16
|
+
'AAVE-V3-A': string;
|
|
17
|
+
'AAVE-V3-IMPORT-A': string;
|
|
18
|
+
'AAVE-V3-IMPORT-PERMIT-A': string;
|
|
18
19
|
};
|
|
@@ -228,6 +228,7 @@ export declare const Addresses: {
|
|
|
228
228
|
'UNISWAP-V3-ROUTER-A': string;
|
|
229
229
|
'LIDO-STETH-A': string;
|
|
230
230
|
'COMPOUND-IMPORT-D': string;
|
|
231
|
+
'LITE-A': string;
|
|
231
232
|
};
|
|
232
233
|
};
|
|
233
234
|
};
|
|
@@ -273,28 +274,30 @@ export declare const Addresses: {
|
|
|
273
274
|
'AAVE-V3-A': string;
|
|
274
275
|
'AAVE-IMPORT-V2-V3-A': string;
|
|
275
276
|
'AAVE-V3-IMPORT-A': string;
|
|
277
|
+
'AAVE-V3-IMPORT-PERMIT-A': string;
|
|
276
278
|
};
|
|
277
279
|
};
|
|
278
280
|
};
|
|
279
281
|
42161: {
|
|
280
282
|
versions: {
|
|
281
283
|
2: {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
284
|
+
'AUTHORITY-A': string;
|
|
285
|
+
'BASIC-A': string;
|
|
286
|
+
'BASIC-B': string;
|
|
287
|
+
'BASIC-C': string;
|
|
288
|
+
'UNISWAP-V3-A': string;
|
|
289
|
+
'WETH-A': string;
|
|
290
|
+
'UNISWAP-SELL-BETA': string;
|
|
291
|
+
'INSTAPOOL-C': string;
|
|
292
|
+
'1INCH-V4-A': string;
|
|
293
|
+
'1INCH-V3-A ': string;
|
|
294
|
+
'1INCH-A': string;
|
|
295
|
+
'SUSHISWAP-A': string;
|
|
296
|
+
'UNISWAP-V3-STAKER-B': string;
|
|
297
|
+
'UNISWAP-V3-ROUTER-A': string;
|
|
298
|
+
'AAVE-V3-A': string;
|
|
299
|
+
'AAVE-V3-IMPORT-A': string;
|
|
300
|
+
'AAVE-V3-IMPORT-PERMIT-A': string;
|
|
298
301
|
};
|
|
299
302
|
};
|
|
300
303
|
};
|
|
@@ -325,25 +328,27 @@ export declare const Addresses: {
|
|
|
325
328
|
'AAVE-V3-A': string;
|
|
326
329
|
'AAVE-IMPORT-V2-V3-A': string;
|
|
327
330
|
'AAVE-V3-IMPORT-A': string;
|
|
331
|
+
'AAVE-V3-IMPORT-PERMIT-A': string;
|
|
328
332
|
};
|
|
329
333
|
};
|
|
330
334
|
};
|
|
331
335
|
10: {
|
|
332
336
|
versions: {
|
|
333
337
|
2: {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
338
|
+
'BASIC-A': string;
|
|
339
|
+
'BASIC-B': string;
|
|
340
|
+
'BASIC-C': string;
|
|
341
|
+
'AUTHORITY-A': string;
|
|
342
|
+
'WETH-A': string;
|
|
343
|
+
'UNISWAP-V3-A': string;
|
|
344
|
+
'UNISWAP-V3-STAKE-A': string;
|
|
345
|
+
'1INCH-V4-A': string;
|
|
346
|
+
'1INCH-A': string;
|
|
347
|
+
'UNISWAP-V3-STAKER-B': string;
|
|
348
|
+
'UNISWAP-V3-ROUTER-A': string;
|
|
349
|
+
'AAVE-V3-A': string;
|
|
350
|
+
'AAVE-V3-IMPORT-A': string;
|
|
351
|
+
'INSTAPOOL-C': string;
|
|
347
352
|
};
|
|
348
353
|
};
|
|
349
354
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
export declare const connectorsV2_M1: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
'BASIC-A': string;
|
|
3
|
+
'BASIC-B': string;
|
|
4
|
+
'BASIC-C': string;
|
|
5
|
+
'AUTHORITY-A': string;
|
|
6
|
+
'WETH-A': string;
|
|
7
|
+
'UNISWAP-V3-A': string;
|
|
8
|
+
'UNISWAP-V3-STAKE-A': string;
|
|
9
|
+
'1INCH-V4-A': string;
|
|
10
|
+
'1INCH-A': string;
|
|
11
|
+
'UNISWAP-V3-STAKER-B': string;
|
|
12
|
+
'UNISWAP-V3-ROUTER-A': string;
|
|
13
|
+
'AAVE-V3-A': string;
|
|
14
|
+
'AAVE-V3-IMPORT-A': string;
|
|
15
|
+
'INSTAPOOL-C': string;
|
|
15
16
|
};
|