@imtbl/sdk 0.4.3 → 0.4.4-alpha.1

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.
@@ -10563,6 +10563,7 @@ type Provider = {
10563
10563
  send: (request: string | JsonRpcRequestPayload | JsonRpcRequestPayload[], callbackOrParams?: JsonRpcRequestCallback | Array<any>, callback?: JsonRpcRequestCallback) => void;
10564
10564
  on: (event: string, listener: (...args: any[]) => void) => void;
10565
10565
  removeListener: (event: string, listener: (...args: any[]) => void) => void;
10566
+ isPassport: boolean;
10566
10567
  };
10567
10568
  declare enum ProviderEvent {
10568
10569
  ACCOUNTS_CHANGED = "accountsChanged"
package/dist/passport.js CHANGED
@@ -1457,7 +1457,7 @@ class MultiRollupApiClients {
1457
1457
  }
1458
1458
 
1459
1459
  // eslint-disable-next-line @typescript-eslint/naming-convention
1460
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.0.0' };
1460
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.4.4-alpha.1' };
1461
1461
  const createConfig = ({ basePath, headers, }) => {
1462
1462
  if (!basePath.trim()) {
1463
1463
  throw Error('basePath can not be empty');
@@ -1487,10 +1487,10 @@ const multiRollupConfig = {
1487
1487
  }),
1488
1488
  getSandbox: () => ({
1489
1489
  indexer: createConfig({
1490
- basePath: 'https://indexer-mr.sandbox.imtbl.com',
1490
+ basePath: 'https://api.sandbox.immutable.com',
1491
1491
  }),
1492
1492
  orderBook: createConfig({
1493
- basePath: 'https://order-book-mr.sandbox.imtbl.com',
1493
+ basePath: 'https://api.sandbox.immutable.com',
1494
1494
  }),
1495
1495
  passport: createConfig({
1496
1496
  basePath: 'https://api.sandbox.immutable.com',
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
1513
1513
  chainID,
1514
1514
  coreContractAddress,
1515
1515
  registrationContractAddress,
1516
- sdkVersion: 'ts-immutable-sdk-0.0.0',
1516
+ sdkVersion: 'ts-immutable-sdk-0.4.4-alpha.1',
1517
1517
  });
1518
1518
  /**
1519
1519
  * Sets `sdkVersion` at the time of build
@@ -7421,6 +7421,7 @@ class ZkEvmProvider {
7421
7421
  this.multiRollupApiClients = multiRollupApiClients;
7422
7422
  this.eventEmitter = new TypedEventEmitter();
7423
7423
  }
7424
+ isPassport = true;
7424
7425
  isLoggedIn() {
7425
7426
  return this.magicProvider !== undefined
7426
7427
  && this.user !== undefined
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.4.3",
4
+ "version": "0.4.4-alpha.1",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
@@ -70,6 +70,10 @@
70
70
  "types": "./dist/config.d.ts",
71
71
  "import": "./dist/config.js"
72
72
  },
73
+ "./blockchain_data": {
74
+ "types": "./dist/blockchain_data.d.ts",
75
+ "import": "./dist/blockchain_data.js"
76
+ },
73
77
  "./immutablex_client": {
74
78
  "types": "./dist/immutablex_client.d.ts",
75
79
  "import": "./dist/immutablex_client.js"
@@ -78,9 +82,29 @@
78
82
  "types": "./dist/passport.d.ts",
79
83
  "import": "./dist/passport.js"
80
84
  },
85
+ "./orderbook": {
86
+ "types": "./dist/orderbook.d.ts",
87
+ "import": "./dist/orderbook.js"
88
+ },
81
89
  "./provider": {
82
90
  "types": "./dist/provider.d.ts",
83
91
  "import": "./dist/provider.js"
92
+ },
93
+ "./checkout_sdk": {
94
+ "types": "./dist/checkout_sdk.d.ts",
95
+ "import": "./dist/checkout_sdk.js"
96
+ },
97
+ "./checkout_widgets": {
98
+ "types": "./dist/checkout_widgets.d.ts",
99
+ "import": "./dist/checkout_widgets.js"
100
+ },
101
+ "./erc20": {
102
+ "types": "./dist/erc20.d.ts",
103
+ "import": "./dist/erc20.js"
104
+ },
105
+ "./erc721_permissioned_mintable": {
106
+ "types": "./dist/erc721_permissioned_mintable.d.ts",
107
+ "import": "./dist/erc721_permissioned_mintable.js"
84
108
  }
85
109
  },
86
110
  "files": [