@tomo-inc/cubist-wallet-sdk 0.0.10 → 0.0.11
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/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/package.json +2 -2
- package/src/index.ts +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TomoStage, CubeStage } from '@tomo-inc/wallet-utils';
|
|
1
2
|
import { CubeSignerClient as CubeSignerClient$1, SessionData } from '@cubist-labs/cubesigner-sdk';
|
|
2
3
|
export { SessionData } from '@cubist-labs/cubesigner-sdk';
|
|
3
|
-
import { TomoStage, CubeStage } from '@tomo-inc/wallet-utils';
|
|
4
4
|
import { TypedData } from '@tomo-inc/cubist-sig-sdk';
|
|
5
5
|
|
|
6
6
|
type MfaType = "fido" | "emailOtp" | "totp";
|
|
@@ -255,6 +255,22 @@ interface CubeConnectResult {
|
|
|
255
255
|
user: Record<string, any>;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
declare class CubeExportService {
|
|
259
|
+
private static instance;
|
|
260
|
+
private cubeAccountService;
|
|
261
|
+
private cubeSignerClient;
|
|
262
|
+
private seedPhraseKey;
|
|
263
|
+
private exportKey;
|
|
264
|
+
constructor();
|
|
265
|
+
static getInstance(): CubeExportService;
|
|
266
|
+
init(cubeAccountService: CubeAccountService): this;
|
|
267
|
+
getExportKey(): Promise<string>;
|
|
268
|
+
getExportInfo(): Promise<SeedPhraseExportInfo | null>;
|
|
269
|
+
initExport(receipt?: MfaReceipt): Promise<MfaInfo | null>;
|
|
270
|
+
completeExport(receipt?: MfaReceipt): Promise<MfaInfo | SeedPhrase | null>;
|
|
271
|
+
deleteExport(): Promise<CubeRes>;
|
|
272
|
+
}
|
|
273
|
+
|
|
258
274
|
declare class CubeMfaService {
|
|
259
275
|
private static instance;
|
|
260
276
|
private cubeAccountService;
|
|
@@ -376,22 +392,6 @@ declare class CubeAccountService {
|
|
|
376
392
|
getMfaConfig(): Promise<MfaConfig>;
|
|
377
393
|
}
|
|
378
394
|
|
|
379
|
-
declare class CubeExportService {
|
|
380
|
-
private static instance;
|
|
381
|
-
private cubeAccountService;
|
|
382
|
-
private cubeSignerClient;
|
|
383
|
-
private seedPhraseKey;
|
|
384
|
-
private exportKey;
|
|
385
|
-
constructor();
|
|
386
|
-
static getInstance(): CubeExportService;
|
|
387
|
-
init(cubeAccountService: CubeAccountService): this;
|
|
388
|
-
getExportKey(): Promise<string>;
|
|
389
|
-
getExportInfo(): Promise<SeedPhraseExportInfo | null>;
|
|
390
|
-
initExport(receipt?: MfaReceipt): Promise<MfaInfo | null>;
|
|
391
|
-
completeExport(receipt?: MfaReceipt): Promise<MfaInfo | SeedPhrase | null>;
|
|
392
|
-
deleteExport(): Promise<CubeRes>;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
395
|
declare const CubeConnect: (config: CubeConfig) => Promise<{
|
|
396
396
|
cubeAccount: CubeAccountService;
|
|
397
397
|
cubeMfa: CubeMfaService | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TomoStage, CubeStage } from '@tomo-inc/wallet-utils';
|
|
1
2
|
import { CubeSignerClient as CubeSignerClient$1, SessionData } from '@cubist-labs/cubesigner-sdk';
|
|
2
3
|
export { SessionData } from '@cubist-labs/cubesigner-sdk';
|
|
3
|
-
import { TomoStage, CubeStage } from '@tomo-inc/wallet-utils';
|
|
4
4
|
import { TypedData } from '@tomo-inc/cubist-sig-sdk';
|
|
5
5
|
|
|
6
6
|
type MfaType = "fido" | "emailOtp" | "totp";
|
|
@@ -255,6 +255,22 @@ interface CubeConnectResult {
|
|
|
255
255
|
user: Record<string, any>;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
declare class CubeExportService {
|
|
259
|
+
private static instance;
|
|
260
|
+
private cubeAccountService;
|
|
261
|
+
private cubeSignerClient;
|
|
262
|
+
private seedPhraseKey;
|
|
263
|
+
private exportKey;
|
|
264
|
+
constructor();
|
|
265
|
+
static getInstance(): CubeExportService;
|
|
266
|
+
init(cubeAccountService: CubeAccountService): this;
|
|
267
|
+
getExportKey(): Promise<string>;
|
|
268
|
+
getExportInfo(): Promise<SeedPhraseExportInfo | null>;
|
|
269
|
+
initExport(receipt?: MfaReceipt): Promise<MfaInfo | null>;
|
|
270
|
+
completeExport(receipt?: MfaReceipt): Promise<MfaInfo | SeedPhrase | null>;
|
|
271
|
+
deleteExport(): Promise<CubeRes>;
|
|
272
|
+
}
|
|
273
|
+
|
|
258
274
|
declare class CubeMfaService {
|
|
259
275
|
private static instance;
|
|
260
276
|
private cubeAccountService;
|
|
@@ -376,22 +392,6 @@ declare class CubeAccountService {
|
|
|
376
392
|
getMfaConfig(): Promise<MfaConfig>;
|
|
377
393
|
}
|
|
378
394
|
|
|
379
|
-
declare class CubeExportService {
|
|
380
|
-
private static instance;
|
|
381
|
-
private cubeAccountService;
|
|
382
|
-
private cubeSignerClient;
|
|
383
|
-
private seedPhraseKey;
|
|
384
|
-
private exportKey;
|
|
385
|
-
constructor();
|
|
386
|
-
static getInstance(): CubeExportService;
|
|
387
|
-
init(cubeAccountService: CubeAccountService): this;
|
|
388
|
-
getExportKey(): Promise<string>;
|
|
389
|
-
getExportInfo(): Promise<SeedPhraseExportInfo | null>;
|
|
390
|
-
initExport(receipt?: MfaReceipt): Promise<MfaInfo | null>;
|
|
391
|
-
completeExport(receipt?: MfaReceipt): Promise<MfaInfo | SeedPhrase | null>;
|
|
392
|
-
deleteExport(): Promise<CubeRes>;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
395
|
declare const CubeConnect: (config: CubeConfig) => Promise<{
|
|
396
396
|
cubeAccount: CubeAccountService;
|
|
397
397
|
cubeMfa: CubeMfaService | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomo-inc/cubist-wallet-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"author": "tomo.inc",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"axios": "^1.11.0",
|
|
21
21
|
"crypto-js": "^4.2.0",
|
|
22
22
|
"@tomo-inc/cubist-sig-sdk": "1.1.0",
|
|
23
|
-
"@tomo-inc/wallet-utils": "0.0.
|
|
23
|
+
"@tomo-inc/wallet-utils": "0.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/crypto-js": "^4.2.2",
|
package/src/index.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { CubeAccountService } from "./cube-account";
|
|
1
2
|
import { CubeConnect } from "./cube-connect";
|
|
2
3
|
import { CubeExportService } from "./cube-export";
|
|
3
|
-
import { CubeAccountService } from "./cube-account";
|
|
4
4
|
import { CubeMfaService } from "./cube-mfa";
|
|
5
5
|
import { CubeSignService } from "./cube-sign";
|
|
6
|
+
import { CubeConfig } from "./types";
|
|
6
7
|
|
|
7
8
|
export * from "./const";
|
|
8
9
|
|
|
9
|
-
export { CubeConnect, CubeExportService,
|
|
10
|
+
export { CubeAccountService, CubeConnect, CubeExportService, CubeMfaService, CubeSignService };
|
|
10
11
|
|
|
11
12
|
export * from "./types";
|
|
12
13
|
|
|
13
14
|
export type { SessionData } from "./cube-libs";
|
|
14
|
-
import { CubeConfig } from "./types";
|
|
15
15
|
export type { CubeConfig };
|