dsa-connect 0.6.11 → 0.6.14-beta.0
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 +3 -0
- package/dist/abi/connectors/v2/AAVE-V3-IMPORT-PERMIT-A.d.ts +2 -0
- package/dist/abi/connectors/v2/HOP-A.d.ts +2 -0
- package/dist/abi/connectors/v2/LITE-A.d.ts +2 -0
- package/dist/abi/connectors/v2/index.d.ts +3 -0
- package/dist/abi/index.d.ts +3 -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 +35 -30
- package/dist/addresses/mainnet/connectorsV2_M1.d.ts +1 -0
- package/dist/addresses/optimism/connectorsV2_M1.d.ts +14 -14
- package/dist/addresses/polygon/connectorsV2_M1.d.ts +2 -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,9 @@ export declare const connectors: {
|
|
|
7
7
|
versions: {
|
|
8
8
|
1: typeof connectorsV1;
|
|
9
9
|
2: {
|
|
10
|
+
'HOP-A': import("web3-utils").AbiItem[];
|
|
11
|
+
'AAVE-V3-IMPORT-PERMIT-A': import("web3-utils").AbiItem[];
|
|
12
|
+
'LITE-A': import("web3-utils").AbiItem[];
|
|
10
13
|
'COMPOUND-IMPORT-D': import("web3-utils").AbiItem[];
|
|
11
14
|
'AAVE-V3-IMPORT-A': import("web3-utils").AbiItem[];
|
|
12
15
|
'AAVE-IMPORT-V2-V3-A': import("web3-utils").AbiItem[];
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const connectorsV2_M1: {
|
|
2
|
+
'HOP-A': import("web3-utils").AbiItem[];
|
|
3
|
+
'AAVE-V3-IMPORT-PERMIT-A': import("web3-utils").AbiItem[];
|
|
4
|
+
'LITE-A': import("web3-utils").AbiItem[];
|
|
2
5
|
'COMPOUND-IMPORT-D': import("web3-utils").AbiItem[];
|
|
3
6
|
'AAVE-V3-IMPORT-A': import("web3-utils").AbiItem[];
|
|
4
7
|
'AAVE-IMPORT-V2-V3-A': import("web3-utils").AbiItem[];
|
package/dist/abi/index.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare const Abi: {
|
|
|
5
5
|
versions: {
|
|
6
6
|
1: typeof import("./connectors/v1");
|
|
7
7
|
2: {
|
|
8
|
+
'HOP-A': import("web3-utils").AbiItem[];
|
|
9
|
+
'AAVE-V3-IMPORT-PERMIT-A': import("web3-utils").AbiItem[];
|
|
10
|
+
'LITE-A': import("web3-utils").AbiItem[];
|
|
8
11
|
'COMPOUND-IMPORT-D': import("web3-utils").AbiItem[];
|
|
9
12
|
'AAVE-V3-IMPORT-A': import("web3-utils").AbiItem[];
|
|
10
13
|
'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,31 @@ 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;
|
|
278
|
+
'HOP-A': string;
|
|
276
279
|
};
|
|
277
280
|
};
|
|
278
281
|
};
|
|
279
282
|
42161: {
|
|
280
283
|
versions: {
|
|
281
284
|
2: {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
285
|
+
'AUTHORITY-A': string;
|
|
286
|
+
'BASIC-A': string;
|
|
287
|
+
'BASIC-B': string;
|
|
288
|
+
'BASIC-C': string;
|
|
289
|
+
'UNISWAP-V3-A': string;
|
|
290
|
+
'WETH-A': string;
|
|
291
|
+
'UNISWAP-SELL-BETA': string;
|
|
292
|
+
'INSTAPOOL-C': string;
|
|
293
|
+
'1INCH-V4-A': string;
|
|
294
|
+
'1INCH-V3-A ': string;
|
|
295
|
+
'1INCH-A': string;
|
|
296
|
+
'SUSHISWAP-A': string;
|
|
297
|
+
'UNISWAP-V3-STAKER-B': string;
|
|
298
|
+
'UNISWAP-V3-ROUTER-A': string;
|
|
299
|
+
'AAVE-V3-A': string;
|
|
300
|
+
'AAVE-V3-IMPORT-A': string;
|
|
301
|
+
'AAVE-V3-IMPORT-PERMIT-A': string;
|
|
298
302
|
};
|
|
299
303
|
};
|
|
300
304
|
};
|
|
@@ -325,26 +329,27 @@ export declare const Addresses: {
|
|
|
325
329
|
'AAVE-V3-A': string;
|
|
326
330
|
'AAVE-IMPORT-V2-V3-A': string;
|
|
327
331
|
'AAVE-V3-IMPORT-A': string;
|
|
332
|
+
'AAVE-V3-IMPORT-PERMIT-A': string;
|
|
328
333
|
};
|
|
329
334
|
};
|
|
330
335
|
};
|
|
331
336
|
10: {
|
|
332
337
|
versions: {
|
|
333
338
|
2: {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
339
|
+
'BASIC-A': string;
|
|
340
|
+
'BASIC-B': string;
|
|
341
|
+
'BASIC-C': string;
|
|
342
|
+
'AUTHORITY-A': string;
|
|
343
|
+
'WETH-A': string;
|
|
344
|
+
'UNISWAP-V3-A': string;
|
|
345
|
+
'UNISWAP-V3-STAKE-A': string;
|
|
346
|
+
'1INCH-V4-A': string;
|
|
347
|
+
'1INCH-A': string;
|
|
348
|
+
'UNISWAP-V3-STAKER-B': string;
|
|
349
|
+
'UNISWAP-V3-ROUTER-A': string;
|
|
350
|
+
'AAVE-V3-A': string;
|
|
351
|
+
'AAVE-V3-IMPORT-A': string;
|
|
352
|
+
'INSTAPOOL-C': string;
|
|
348
353
|
};
|
|
349
354
|
};
|
|
350
355
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const connectorsV2_M1: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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;
|
|
16
16
|
};
|