@getpara/core-sdk 2.0.0-alpha.26 → 2.0.0-alpha.27
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/cjs/constants.js
CHANGED
|
@@ -40,7 +40,7 @@ __export(constants_exports, {
|
|
|
40
40
|
SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(constants_exports);
|
|
43
|
-
const PARA_CORE_VERSION = "2.0.0-alpha.
|
|
43
|
+
const PARA_CORE_VERSION = "2.0.0-alpha.27";
|
|
44
44
|
const PREFIX = "@CAPSULE/";
|
|
45
45
|
const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
|
|
46
46
|
const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
|
package/dist/esm/constants.js
CHANGED
package/dist/types/ParaCore.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ export declare abstract class ParaCore implements CoreInterface {
|
|
|
140
140
|
* Remove all local storage and prefixed session storage.
|
|
141
141
|
* @param {'local' | 'session' | 'secure' | 'all'} type - Type of storage to clear. Defaults to 'all'.
|
|
142
142
|
*/
|
|
143
|
-
clearStorage: (type?: CoreMethodParams<
|
|
143
|
+
clearStorage: (type?: CoreMethodParams<"clearStorage">) => CoreMethodResponse<"clearStorage">;
|
|
144
144
|
private convertBigInt;
|
|
145
145
|
private convertEncryptionKeyPair;
|
|
146
146
|
private isPortal;
|
|
@@ -498,7 +498,7 @@ export declare abstract class ParaCore implements CoreInterface {
|
|
|
498
498
|
*
|
|
499
499
|
* @deprecated alias for `createWalletPerType`
|
|
500
500
|
**/
|
|
501
|
-
createWalletPerMissingType: ({ skipDistribute, types, }?: CoreMethodParams<
|
|
501
|
+
createWalletPerMissingType: ({ skipDistribute, types, }?: CoreMethodParams<"createWalletPerType">) => CoreMethodResponse<"createWalletPerType">;
|
|
502
502
|
/**
|
|
503
503
|
* Creates several new wallets with the desired types. If no types are provided, this method
|
|
504
504
|
* will create one for each of the non-optional types specified in the instance's `supportedWalletTypes`
|
|
@@ -590,7 +590,7 @@ export declare abstract class ParaCore implements CoreInterface {
|
|
|
590
590
|
setUserShare(base64Wallets: CoreMethodParams<'setUserShare'>): CoreMethodResponse<'setUserShare'>;
|
|
591
591
|
private getTransactionReviewUrl;
|
|
592
592
|
private getOnRampTransactionUrl;
|
|
593
|
-
getWalletBalance: ({ walletId, rpcUrl, }: CoreMethodParams<
|
|
593
|
+
getWalletBalance: ({ walletId, rpcUrl, }: CoreMethodParams<"getWalletBalance">) => CoreMethodResponse<"getWalletBalance">;
|
|
594
594
|
/**
|
|
595
595
|
* Signs a message using one of the current wallets.
|
|
596
596
|
*
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import { BackupKitEmailProps, TPregenIdentifierType, TWalletType, SDKType } from '@getpara/user-management-client';
|
|
4
2
|
import { Ctx, PopupType, SignatureRes } from './types/index.js';
|
|
5
3
|
import { StorageUtils } from './StorageUtils.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const PARA_CORE_VERSION: string;
|
|
2
2
|
export declare const PREFIX = "@CAPSULE/";
|
|
3
|
-
export declare const LOCAL_STORAGE_AUTH_INFO
|
|
4
|
-
export declare const LOCAL_STORAGE_EMAIL
|
|
5
|
-
export declare const LOCAL_STORAGE_PHONE
|
|
6
|
-
export declare const LOCAL_STORAGE_COUNTRY_CODE
|
|
7
|
-
export declare const LOCAL_STORAGE_FARCASTER_USERNAME
|
|
8
|
-
export declare const LOCAL_STORAGE_TELEGRAM_USER_ID
|
|
9
|
-
export declare const LOCAL_STORAGE_EXTERNAL_WALLET_USER_ID
|
|
10
|
-
export declare const LOCAL_STORAGE_USER_ID
|
|
11
|
-
export declare const LOCAL_STORAGE_ED25519_WALLETS
|
|
12
|
-
export declare const LOCAL_STORAGE_WALLETS
|
|
13
|
-
export declare const LOCAL_STORAGE_EXTERNAL_WALLETS
|
|
14
|
-
export declare const LOCAL_STORAGE_CURRENT_WALLET_IDS
|
|
15
|
-
export declare const LOCAL_STORAGE_SESSION_COOKIE
|
|
16
|
-
export declare const SESSION_STORAGE_LOGIN_ENCRYPTION_KEY_PAIR
|
|
3
|
+
export declare const LOCAL_STORAGE_AUTH_INFO = "@CAPSULE/authInfo";
|
|
4
|
+
export declare const LOCAL_STORAGE_EMAIL = "@CAPSULE/e-mail";
|
|
5
|
+
export declare const LOCAL_STORAGE_PHONE = "@CAPSULE/phone";
|
|
6
|
+
export declare const LOCAL_STORAGE_COUNTRY_CODE = "@CAPSULE/countryCode";
|
|
7
|
+
export declare const LOCAL_STORAGE_FARCASTER_USERNAME = "@CAPSULE/farcasterUsername";
|
|
8
|
+
export declare const LOCAL_STORAGE_TELEGRAM_USER_ID = "@CAPSULE/telegramUserId";
|
|
9
|
+
export declare const LOCAL_STORAGE_EXTERNAL_WALLET_USER_ID = "@CAPSULE/externalWalletUserId";
|
|
10
|
+
export declare const LOCAL_STORAGE_USER_ID = "@CAPSULE/userId";
|
|
11
|
+
export declare const LOCAL_STORAGE_ED25519_WALLETS = "@CAPSULE/ed25519Wallets";
|
|
12
|
+
export declare const LOCAL_STORAGE_WALLETS = "@CAPSULE/wallets";
|
|
13
|
+
export declare const LOCAL_STORAGE_EXTERNAL_WALLETS = "@CAPSULE/externalWallets";
|
|
14
|
+
export declare const LOCAL_STORAGE_CURRENT_WALLET_IDS = "@CAPSULE/currentWalletIds";
|
|
15
|
+
export declare const LOCAL_STORAGE_SESSION_COOKIE = "@CAPSULE/sessionCookie";
|
|
16
|
+
export declare const SESSION_STORAGE_LOGIN_ENCRYPTION_KEY_PAIR = "@CAPSULE/loginEncryptionKeyPair";
|
|
17
17
|
export declare const POLLING_INTERVAL_MS = 2000;
|
|
18
18
|
export declare const SHORT_POLLING_INTERVAL_MS = 1000;
|
|
19
19
|
export declare const POLLING_TIMEOUT_MS = 300000;
|
package/package.json
CHANGED
|
@@ -1,39 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-sdk",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
4
|
-
"main": "dist/cjs/index.js",
|
|
5
|
-
"module": "dist/esm/index.js",
|
|
6
|
-
"types": "dist/types/index.d.ts",
|
|
7
|
-
"typings": "dist/types/index.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
3
|
+
"version": "2.0.0-alpha.27",
|
|
9
4
|
"dependencies": {
|
|
10
5
|
"@celo/utils": "^8.0.2",
|
|
11
6
|
"@cosmjs/encoding": "^0.32.4",
|
|
12
7
|
"@ethereumjs/util": "^9.1.0",
|
|
13
|
-
"@getpara/user-management-client": "2.0.0-alpha.
|
|
8
|
+
"@getpara/user-management-client": "2.0.0-alpha.27",
|
|
14
9
|
"@noble/hashes": "^1.5.0",
|
|
15
10
|
"base64url": "^3.0.1",
|
|
16
|
-
"libphonenumber-js": "1.11.
|
|
11
|
+
"libphonenumber-js": "^1.11.7",
|
|
17
12
|
"node-forge": "^1.3.1",
|
|
18
13
|
"uuid": "^11.1.0"
|
|
19
14
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "rm -rf dist && node ./scripts/build.mjs && yarn build:types",
|
|
22
|
-
"old-build": "yarn build:cjs && yarn build:esm && yarn build:types; yarn post-build",
|
|
23
|
-
"post-build": "./scripts/set-version.sh",
|
|
24
|
-
"build:cjs": "rm -rf dist/cjs && tsc --module commonjs --outDir dist/cjs && printf '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
25
|
-
"build:esm": "rm -rf dist/esm && tsc --module es6 --outDir dist/esm && printf '{\"type\":\"module\",\"sideEffects\":false}' > dist/esm/package.json",
|
|
26
|
-
"build:types": "rm -rf dist/types && tsc --module es6 --declarationDir dist/types --emitDeclarationOnly --declaration",
|
|
27
|
-
"test": "vitest run --coverage"
|
|
28
|
-
},
|
|
29
15
|
"devDependencies": {
|
|
30
16
|
"@faker-js/faker": "^9.5.1",
|
|
31
|
-
"typescript": "5.
|
|
17
|
+
"typescript": "^5.8.3"
|
|
32
18
|
},
|
|
33
|
-
"files": [
|
|
34
|
-
"dist",
|
|
35
|
-
"package.json"
|
|
36
|
-
],
|
|
37
19
|
"exports": {
|
|
38
20
|
".": {
|
|
39
21
|
"types": "./dist/types/index.d.ts",
|
|
@@ -41,5 +23,23 @@
|
|
|
41
23
|
"require": "./dist/cjs/index.js"
|
|
42
24
|
}
|
|
43
25
|
},
|
|
44
|
-
"
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"package.json"
|
|
29
|
+
],
|
|
30
|
+
"gitHead": "a54f63445995abd13220eda3d63809728e4b5f7e",
|
|
31
|
+
"main": "dist/cjs/index.js",
|
|
32
|
+
"module": "dist/esm/index.js",
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "rm -rf dist && node ./scripts/build.mjs && yarn build:types",
|
|
35
|
+
"build:cjs": "rm -rf dist/cjs && tsc --module commonjs --outDir dist/cjs && printf '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
36
|
+
"build:esm": "rm -rf dist/esm && tsc --module es6 --outDir dist/esm && printf '{\"type\":\"module\",\"sideEffects\":false}' > dist/esm/package.json",
|
|
37
|
+
"build:types": "rm -rf dist/types && tsc --module es6 --declarationDir dist/types --emitDeclarationOnly --declaration",
|
|
38
|
+
"old-build": "yarn build:cjs && yarn build:esm && yarn build:types; yarn post-build",
|
|
39
|
+
"post-build": "./scripts/set-version.sh",
|
|
40
|
+
"test": "vitest run --coverage"
|
|
41
|
+
},
|
|
42
|
+
"sideEffects": false,
|
|
43
|
+
"types": "dist/types/index.d.ts",
|
|
44
|
+
"typings": "dist/types/index.d.ts"
|
|
45
45
|
}
|