dsa-connect 0.5.6 → 0.5.10

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.
@@ -7,6 +7,7 @@ export declare const connectors: {
7
7
  versions: {
8
8
  1: typeof connectorsV1;
9
9
  2: {
10
+ "INSTAPOOL-C": import("web3-utils").AbiItem[];
10
11
  "UNISWAP-SELL-BETA": import("web3-utils").AbiItem[];
11
12
  "AAVE-V2-IMPORT-C": import("web3-utils").AbiItem[];
12
13
  "COMPOUND-IMPORT-C": import("web3-utils").AbiItem[];
@@ -58,6 +59,8 @@ export declare const connectors: {
58
59
  "MAKERDAO-CLAIM-A": import("web3-utils").AbiItem[];
59
60
  "INTEROP-A": import("web3-utils").AbiItem[];
60
61
  "INTEROP-STAGING-A": import("web3-utils").AbiItem[];
62
+ "WMATIC-A": import("web3-utils").AbiItem[];
63
+ "WAVAX-A": import("web3-utils").AbiItem[];
61
64
  };
62
65
  };
63
66
  };
@@ -0,0 +1,2 @@
1
+ import { AbiItem } from 'web3-utils';
2
+ export declare const INSTAPOOL_C: AbiItem[];
@@ -0,0 +1,2 @@
1
+ import { AbiItem } from 'web3-utils';
2
+ export declare const WAVAX_A: AbiItem[];
@@ -0,0 +1,2 @@
1
+ import { AbiItem } from 'web3-utils';
2
+ export declare const WMATIC_A: AbiItem[];
@@ -1,4 +1,5 @@
1
1
  export declare const connectorsV2_M1: {
2
+ "INSTAPOOL-C": import("web3-utils").AbiItem[];
2
3
  "UNISWAP-SELL-BETA": import("web3-utils").AbiItem[];
3
4
  "AAVE-V2-IMPORT-C": import("web3-utils").AbiItem[];
4
5
  "COMPOUND-IMPORT-C": import("web3-utils").AbiItem[];
@@ -50,4 +51,6 @@ export declare const connectorsV2_M1: {
50
51
  "MAKERDAO-CLAIM-A": import("web3-utils").AbiItem[];
51
52
  "INTEROP-A": import("web3-utils").AbiItem[];
52
53
  "INTEROP-STAGING-A": import("web3-utils").AbiItem[];
54
+ "WMATIC-A": import("web3-utils").AbiItem[];
55
+ "WAVAX-A": import("web3-utils").AbiItem[];
53
56
  };
@@ -5,6 +5,7 @@ export declare const Abi: {
5
5
  versions: {
6
6
  1: typeof import("./connectors/v1");
7
7
  2: {
8
+ "INSTAPOOL-C": import("web3-utils").AbiItem[];
8
9
  "UNISWAP-SELL-BETA": import("web3-utils").AbiItem[];
9
10
  "AAVE-V2-IMPORT-C": import("web3-utils").AbiItem[];
10
11
  "COMPOUND-IMPORT-C": import("web3-utils").AbiItem[];
@@ -56,6 +57,8 @@ export declare const Abi: {
56
57
  "MAKERDAO-CLAIM-A": import("web3-utils").AbiItem[];
57
58
  "INTEROP-A": import("web3-utils").AbiItem[];
58
59
  "INTEROP-STAGING-A": import("web3-utils").AbiItem[];
60
+ "WMATIC-A": import("web3-utils").AbiItem[];
61
+ "WAVAX-A": import("web3-utils").AbiItem[];
59
62
  };
60
63
  };
61
64
  };
@@ -7,4 +7,5 @@ export declare const connectorsV2_M1: {
7
7
  "1INCH-A": string;
8
8
  "WETH-A": string;
9
9
  "UNISWAP-SELL-BETA": string;
10
+ "INSTAPOOL-C": string;
10
11
  };
@@ -10,4 +10,5 @@ export declare const connectorsV2_M1: {
10
10
  "INSTAPOOL-B": string;
11
11
  "INTEROP-A": string;
12
12
  "INTEROP-STAGING-A": string;
13
+ "INSTAPOOL-C": string;
13
14
  };
@@ -173,6 +173,7 @@ export declare const Addresses: {
173
173
  "INSTAPOOL-B": string;
174
174
  "COMPOUND-IMPORT-C": string;
175
175
  "AAVE-V2-IMPORT-C": string;
176
+ "INSTAPOOL-C": string;
176
177
  };
177
178
  };
178
179
  };
@@ -199,6 +200,8 @@ export declare const Addresses: {
199
200
  "AAVE-V2-IMPORT-C": string;
200
201
  "INTEROP-A": string;
201
202
  "INTEROP-STAGING-A": string;
203
+ "INSTAPOOL-C": string;
204
+ "WMATIC-A": string;
202
205
  };
203
206
  };
204
207
  };
@@ -213,6 +216,7 @@ export declare const Addresses: {
213
216
  "1INCH-A": string;
214
217
  "WETH-A": string;
215
218
  "UNISWAP-SELL-BETA": string;
219
+ "INSTAPOOL-C": string;
216
220
  };
217
221
  };
218
222
  };
@@ -230,6 +234,7 @@ export declare const Addresses: {
230
234
  "INSTAPOOL-B": string;
231
235
  "INTEROP-A": string;
232
236
  "INTEROP-STAGING-A": string;
237
+ "INSTAPOOL-C": string;
233
238
  };
234
239
  };
235
240
  };
@@ -43,4 +43,5 @@ export declare const connectorsV2_M1: {
43
43
  "INSTAPOOL-B": string;
44
44
  "COMPOUND-IMPORT-C": string;
45
45
  "AAVE-V2-IMPORT-C": string;
46
+ "INSTAPOOL-C": string;
46
47
  };
@@ -15,4 +15,6 @@ export declare const connectorsV2_M1: {
15
15
  "AAVE-V2-IMPORT-C": string;
16
16
  "INTEROP-A": string;
17
17
  "INTEROP-STAGING-A": string;
18
+ "INSTAPOOL-C": string;
19
+ "WMATIC-A": string;
18
20
  };
package/dist/dsa.d.ts CHANGED
@@ -56,6 +56,7 @@ declare type BuildParams = {
56
56
  version?: Instance['version'];
57
57
  } & TransactionCallbacks & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'nonce'>;
58
58
  export declare class DSA {
59
+ static readonly version: string;
59
60
  readonly config: DSAConfig;
60
61
  get web3(): Web3;
61
62
  get mode(): "node" | "simulation" | "browser" | undefined;
@@ -155,20 +156,20 @@ export declare class DSA {
155
156
  * ```
156
157
  */
157
158
  Spell(): {
158
- cast: (params?: Pick<CastParams, "from" | "to" | "value" | "gas" | "gasPrice" | "nonce" | "origin" | "onReceipt" | "onConfirmation"> | undefined) => Promise<string | undefined>;
159
- estimateCastGas: (params?: Pick<(params: {
159
+ cast: (params?: Omit<CastParams, "spells"> | undefined) => Promise<string | undefined>;
160
+ estimateCastGas: (params?: Omit<(params: {
160
161
  spells: Spells;
161
- } & Pick<TransactionConfig, "from" | "to" | "value">) => Promise<number>, never> | undefined) => Promise<number | undefined>;
162
- encodeCastABI: (params?: Pick<(params: Spells | ({
162
+ } & Pick<TransactionConfig, "from" | "to" | "value">) => Promise<number>, "spells"> | undefined) => Promise<number | undefined>;
163
+ encodeCastABI: (params?: Omit<(params: Spells | ({
163
164
  spells: Spells;
164
165
  origin?: string | undefined;
165
- } & Pick<TransactionConfig, "to">)) => string, never> | undefined) => Promise<string | undefined>;
166
- encodeSpells: (params?: Pick<(params: Spells | {
166
+ } & Pick<TransactionConfig, "to">)) => string, "spells"> | undefined) => Promise<string | undefined>;
167
+ encodeSpells: (params?: Omit<(params: Spells | {
167
168
  spells: Spells;
168
169
  }, version?: 1 | 2) => {
169
170
  targets: (string | void)[];
170
171
  spells: string[];
171
- }, never> | undefined) => Promise<{
172
+ }, "spells"> | undefined) => Promise<{
172
173
  targets: (string | void)[];
173
174
  spells: string[];
174
175
  } | undefined>;