dsa-connect 0.5.8 → 0.5.12

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.
@@ -59,6 +59,8 @@ export declare const connectors: {
59
59
  "MAKERDAO-CLAIM-A": import("web3-utils").AbiItem[];
60
60
  "INTEROP-A": import("web3-utils").AbiItem[];
61
61
  "INTEROP-STAGING-A": import("web3-utils").AbiItem[];
62
+ "WMATIC-A": import("web3-utils").AbiItem[];
63
+ "WAVAX-A": import("web3-utils").AbiItem[];
62
64
  };
63
65
  };
64
66
  };
@@ -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[];
@@ -51,4 +51,6 @@ export declare const connectorsV2_M1: {
51
51
  "MAKERDAO-CLAIM-A": import("web3-utils").AbiItem[];
52
52
  "INTEROP-A": import("web3-utils").AbiItem[];
53
53
  "INTEROP-STAGING-A": import("web3-utils").AbiItem[];
54
+ "WMATIC-A": import("web3-utils").AbiItem[];
55
+ "WAVAX-A": import("web3-utils").AbiItem[];
54
56
  };
@@ -57,6 +57,8 @@ export declare const Abi: {
57
57
  "MAKERDAO-CLAIM-A": import("web3-utils").AbiItem[];
58
58
  "INTEROP-A": import("web3-utils").AbiItem[];
59
59
  "INTEROP-STAGING-A": import("web3-utils").AbiItem[];
60
+ "WMATIC-A": import("web3-utils").AbiItem[];
61
+ "WAVAX-A": import("web3-utils").AbiItem[];
60
62
  };
61
63
  };
62
64
  };
@@ -4,6 +4,7 @@ export declare const connectorsV2_M1: {
4
4
  "WAVAX-A": string;
5
5
  "AAVE-V2-A": string;
6
6
  "AAVE-CLAIM-A": string;
7
+ "AAVE-V2-IMPORT-C": string;
7
8
  "PARASWAP-A": string;
8
9
  "BENQI-A": string;
9
10
  "QI-A": string;
@@ -174,6 +174,8 @@ export declare const Addresses: {
174
174
  "COMPOUND-IMPORT-C": string;
175
175
  "AAVE-V2-IMPORT-C": string;
176
176
  "INSTAPOOL-C": string;
177
+ "INTEROP-A": string;
178
+ "INTEROP-STAGING-A": string;
177
179
  };
178
180
  };
179
181
  };
@@ -201,6 +203,7 @@ export declare const Addresses: {
201
203
  "INTEROP-A": string;
202
204
  "INTEROP-STAGING-A": string;
203
205
  "INSTAPOOL-C": string;
206
+ "WMATIC-A": string;
204
207
  };
205
208
  };
206
209
  };
@@ -227,6 +230,7 @@ export declare const Addresses: {
227
230
  "WAVAX-A": string;
228
231
  "AAVE-V2-A": string;
229
232
  "AAVE-CLAIM-A": string;
233
+ "AAVE-V2-IMPORT-C": string;
230
234
  "PARASWAP-A": string;
231
235
  "BENQI-A": string;
232
236
  "QI-A": string;
@@ -44,4 +44,6 @@ export declare const connectorsV2_M1: {
44
44
  "COMPOUND-IMPORT-C": string;
45
45
  "AAVE-V2-IMPORT-C": string;
46
46
  "INSTAPOOL-C": string;
47
+ "INTEROP-A": string;
48
+ "INTEROP-STAGING-A": string;
47
49
  };
@@ -16,4 +16,5 @@ export declare const connectorsV2_M1: {
16
16
  "INTEROP-A": string;
17
17
  "INTEROP-STAGING-A": string;
18
18
  "INSTAPOOL-C": string;
19
+ "WMATIC-A": string;
19
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>;