@portal-hq/web 3.7.0 → 3.8.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/hypernative.d.ts +39 -336
- package/lib/commonjs/mpc/index.js +188 -810
- package/lib/commonjs/shared/types/api.js +5 -0
- package/lib/commonjs/shared/types/common.js +5 -0
- package/lib/commonjs/shared/types/hypernative.js +2 -0
- package/lib/commonjs/shared/types/index.js +30 -0
- package/lib/commonjs/shared/types/lifi.js +5 -0
- package/lib/commonjs/shared/types/yieldxyz.js +2 -0
- package/lib/commonjs/shared/types/zero-x.js +2 -0
- package/lib/esm/mpc/index.js +188 -810
- package/lib/esm/shared/types/api.js +4 -0
- package/lib/esm/shared/types/common.js +4 -0
- package/lib/esm/shared/types/hypernative.js +1 -0
- package/lib/esm/shared/types/index.js +14 -0
- package/lib/esm/shared/types/lifi.js +4 -0
- package/lib/esm/shared/types/yieldxyz.js +1 -0
- package/lib/esm/shared/types/zero-x.js +1 -0
- package/lifi-types.d.ts +54 -1235
- package/package.json +10 -6
- package/src/index.ts +15 -12
- package/src/integrations/trading/lifi/index.ts +1 -1
- package/src/integrations/trading/zero-x/index.ts +1 -1
- package/src/integrations/yield/yieldxyz.ts +1 -1
- package/src/mpc/index.ts +202 -970
- package/src/shared/types/api.ts +171 -0
- package/src/shared/types/common.ts +681 -0
- package/src/shared/types/hypernative.ts +337 -0
- package/src/shared/types/index.ts +17 -0
- package/src/shared/types/lifi.ts +1236 -0
- package/src/shared/types/yieldxyz.ts +778 -0
- package/src/shared/types/zero-x.ts +204 -0
- package/types.d.ts +117 -704
- package/yieldxyz-types.d.ts +77 -777
- package/zero-x.d.ts +12 -204
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Portal MPC Support for Web",
|
|
4
4
|
"author": "Portal Labs, Inc.",
|
|
5
5
|
"homepage": "https://portalhq.io/",
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.8.0",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "lib/commonjs/index",
|
|
9
9
|
"module": "lib/esm/index",
|
|
@@ -22,15 +22,19 @@
|
|
|
22
22
|
"!dist"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
+
"shared:symlink": "sh ./scripts/symlink-shared-types.sh",
|
|
26
|
+
"shared:copy": "sh ./scripts/copy-shared-types.sh",
|
|
25
27
|
"coverage": "jest --collect-coverage",
|
|
28
|
+
"package:copy-types": "yarn shared:copy && yarn package",
|
|
26
29
|
"package": "npm pack && npm run unversion",
|
|
27
30
|
"prepare": "rm -rf ./lib && sh ./scripts/version.sh && yarn prepare:cjs && yarn prepare:esm && sh ./scripts/post-prepare.sh",
|
|
28
|
-
"prepare:cjs": "tsc --outDir lib/commonjs --module commonjs",
|
|
29
|
-
"prepare:esm": "tsc --outDir lib/esm --module es2015 --target es2015",
|
|
31
|
+
"prepare:cjs": "tsc -p tsconfig.json --outDir lib/commonjs --module commonjs",
|
|
32
|
+
"prepare:esm": "tsc -p tsconfig.json --outDir lib/esm --module es2015 --target es2015",
|
|
30
33
|
"prerelease": "sh ./scripts/version.sh",
|
|
31
|
-
"release": "npm publish --access public",
|
|
32
|
-
"release-alpha": "npm publish --access public --tag alpha",
|
|
33
|
-
"test": "jest",
|
|
34
|
+
"release": "yarn package:copy-types && npm publish --access public",
|
|
35
|
+
"release-alpha": "yarn package:copy-types && npm publish --access public --tag alpha",
|
|
36
|
+
"test": "yarn shared:symlink && jest",
|
|
37
|
+
"test:ci": "yarn shared:copy && jest",
|
|
34
38
|
"unversion": "sh ./scripts/unversion.sh"
|
|
35
39
|
},
|
|
36
40
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
GetAssetsResponse,
|
|
10
10
|
BuiltTransaction,
|
|
11
|
-
EjectPrivateKeysResult,
|
|
12
11
|
EvaluateTransactionOperationType,
|
|
13
12
|
EvaluateTransactionParam,
|
|
14
13
|
EvaluatedTransaction,
|
|
@@ -18,30 +17,34 @@ import {
|
|
|
18
17
|
OrgBackupShares,
|
|
19
18
|
SendAssetParams,
|
|
20
19
|
type BackupConfigs,
|
|
21
|
-
type BackupOptions,
|
|
22
20
|
type BackupResponse,
|
|
23
|
-
type BackupShareResult,
|
|
24
21
|
type Balance,
|
|
25
|
-
type ClientResponse,
|
|
26
|
-
type ClientResponseWallet,
|
|
27
|
-
type EjectResult,
|
|
28
22
|
type EthereumTransaction,
|
|
29
23
|
type FeatureFlags,
|
|
30
24
|
type GDriveConfig,
|
|
31
25
|
type NFT,
|
|
32
26
|
type PasskeyConfig,
|
|
33
|
-
type PasskeyOptions,
|
|
34
|
-
type PortalOptions,
|
|
35
|
-
type ProgressCallback,
|
|
36
27
|
type QuoteArgs,
|
|
37
28
|
type QuoteResponse,
|
|
38
|
-
type RequestArguments,
|
|
39
29
|
type RpcConfig,
|
|
40
|
-
type SharesOnDeviceResponse,
|
|
41
30
|
type SimulateTransactionParam,
|
|
42
31
|
type SimulatedTransaction,
|
|
43
32
|
type Transaction,
|
|
44
33
|
type TypedData,
|
|
34
|
+
} from './shared/types'
|
|
35
|
+
|
|
36
|
+
import {
|
|
37
|
+
EjectPrivateKeysResult,
|
|
38
|
+
type ClientResponse,
|
|
39
|
+
type ClientResponseWallet,
|
|
40
|
+
type EjectResult,
|
|
41
|
+
type RequestArguments,
|
|
42
|
+
type SharesOnDeviceResponse,
|
|
43
|
+
type ProgressCallback,
|
|
44
|
+
type BackupOptions,
|
|
45
|
+
type BackupShareResult,
|
|
46
|
+
type PasskeyOptions,
|
|
47
|
+
type PortalOptions,
|
|
45
48
|
} from '../types'
|
|
46
49
|
import Mpc from './mpc'
|
|
47
50
|
import Provider, { RequestMethod } from './provider'
|
|
@@ -1256,7 +1259,7 @@ export {
|
|
|
1256
1259
|
type YieldXyzManageYieldResponse,
|
|
1257
1260
|
type YieldXyzTrackTransactionRequest,
|
|
1258
1261
|
type YieldXyzTrackTransactionResponse,
|
|
1259
|
-
} from '
|
|
1262
|
+
} from './shared/types'
|
|
1260
1263
|
|
|
1261
1264
|
export { MpcError, MpcErrorCodes } from './mpc'
|
|
1262
1265
|
|