@imtbl/sdk 0.1.7-alpha.1 → 0.1.7
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/immutablex_client.js +2 -2
- package/dist/index.cjs +873 -3718
- package/dist/index.d.ts +332 -17166
- package/dist/index.js +878 -3710
- package/dist/passport.d.ts +1 -1154
- package/dist/passport.js +2 -4
- package/package.json +2 -18
- package/dist/browser/checkout.js +0 -2
- package/dist/checkout_sdk.d.ts +0 -986
- package/dist/checkout_sdk.js +0 -734
- package/dist/checkout_widgets.d.ts +0 -15485
- package/dist/checkout_widgets.js +0 -284
- package/dist/orderbook.d.ts +0 -57
- package/dist/orderbook.js +0 -1833
package/dist/passport.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as guardian from '@imtbl/guardian';
|
|
2
|
-
export { guardian };
|
|
3
1
|
import { ImmutableX, Config, generateLegacyStarkPrivateKey, createStarkSigner } from '@imtbl/core-sdk';
|
|
4
2
|
import { UserManager } from 'oidc-client-ts';
|
|
5
3
|
import { ethers } from 'ethers';
|
|
@@ -22,7 +20,7 @@ const production = () => Config.createConfig({
|
|
|
22
20
|
chainID: 1,
|
|
23
21
|
coreContractAddress: '0x5FDCCA53617f4d2b9134B29090C87D01058e27e9',
|
|
24
22
|
registrationContractAddress: '0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c',
|
|
25
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
23
|
+
sdkVersion: 'ts-immutable-sdk-0.0.0',
|
|
26
24
|
});
|
|
27
25
|
/**
|
|
28
26
|
* Set `sdkVersion` on config
|
|
@@ -32,7 +30,7 @@ const sandbox = () => Config.createConfig({
|
|
|
32
30
|
chainID: 5,
|
|
33
31
|
coreContractAddress: '0x7917eDb51ecD6CdB3F9854c3cc593F33de10c623',
|
|
34
32
|
registrationContractAddress: '0x1C97Ada273C9A52253f463042f29117090Cd7D83',
|
|
35
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
33
|
+
sdkVersion: 'ts-immutable-sdk-0.0.0',
|
|
36
34
|
});
|
|
37
35
|
class ImxConfiguration {
|
|
38
36
|
immutableXConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtbl/sdk",
|
|
3
3
|
"description": "Immutable Unified SDK",
|
|
4
|
-
"version": "0.1.7
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"author": "Immutable",
|
|
6
6
|
"bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"@imtbl/core-sdk": "^1.1.1-alpha.1",
|
|
12
12
|
"@magic-ext/oidc": "^1.0.1",
|
|
13
13
|
"@metamask/detect-provider": "^2.0.0",
|
|
14
|
-
"@opensea/seaport-js": "^1.3.0",
|
|
15
14
|
"axios": "^1.3.5",
|
|
16
15
|
"bn.js": "^5.2.1",
|
|
17
16
|
"enc-utils": "^3.0.0",
|
|
@@ -25,7 +24,6 @@
|
|
|
25
24
|
"@imtbl/config": "0.0.0",
|
|
26
25
|
"@imtbl/cryptofiat": "0.0.0",
|
|
27
26
|
"@imtbl/immutablex-client": "0.0.0",
|
|
28
|
-
"@imtbl/orderbook": "0.0.0",
|
|
29
27
|
"@imtbl/passport": "0.0.0",
|
|
30
28
|
"@imtbl/provider": "0.0.0",
|
|
31
29
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
@@ -35,8 +33,7 @@
|
|
|
35
33
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
36
34
|
"@yarnpkg/cli": "3.5.0",
|
|
37
35
|
"@yarnpkg/core": "3.5.0",
|
|
38
|
-
"eslint": "^8.
|
|
39
|
-
"glob": "^10.2.3",
|
|
36
|
+
"eslint": "^8.37.0",
|
|
40
37
|
"rollup": "^3.17.2",
|
|
41
38
|
"rollup-plugin-dts": "^5.3.0",
|
|
42
39
|
"semver": "^7.4.0",
|
|
@@ -64,21 +61,9 @@
|
|
|
64
61
|
"types": "./dist/passport.d.ts",
|
|
65
62
|
"import": "./dist/passport.js"
|
|
66
63
|
},
|
|
67
|
-
"./orderbook": {
|
|
68
|
-
"types": "./dist/orderbook.d.ts",
|
|
69
|
-
"import": "./dist/orderbook.js"
|
|
70
|
-
},
|
|
71
64
|
"./provider": {
|
|
72
65
|
"types": "./dist/provider.d.ts",
|
|
73
66
|
"import": "./dist/provider.js"
|
|
74
|
-
},
|
|
75
|
-
"./checkout_sdk": {
|
|
76
|
-
"types": "./dist/checkout_sdk.d.ts",
|
|
77
|
-
"import": "./dist/checkout_sdk.js"
|
|
78
|
-
},
|
|
79
|
-
"./checkout_widgets": {
|
|
80
|
-
"types": "./dist/checkout_widgets.d.ts",
|
|
81
|
-
"import": "./dist/checkout_widgets.js"
|
|
82
67
|
}
|
|
83
68
|
},
|
|
84
69
|
"files": [
|
|
@@ -96,7 +81,6 @@
|
|
|
96
81
|
"scripts": {
|
|
97
82
|
"build": "yarn packageList && yarn updateDependencies && yarn regenModules && rm -rf dist && NODE_ENV=production rollup --config rollup.config.js && rm -rf dist/types",
|
|
98
83
|
"build:only": "rm -rf dist && NODE_ENV=production rollup --config rollup.config.js && rm -rf dist/types",
|
|
99
|
-
"copyBrowserBundles": "node scripts/copyBrowserBundles.js",
|
|
100
84
|
"generateIndex": "node scripts/generateIndex.js",
|
|
101
85
|
"lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0",
|
|
102
86
|
"packageList": "./scripts/generate-package-list.sh",
|