@imtbl/sdk 0.12.0-alpha → 0.13.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/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +8 -61
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2753 -24299
- package/dist/index.d.ts +6499 -25122
- package/dist/index.js +2982 -24522
- package/dist/passport.js +3 -12
- package/package.json +2 -25
- package/dist/blockchain_data.d.ts +0 -1971
- package/dist/blockchain_data.js +0 -2528
- package/dist/browser/checkout.js +0 -2
- package/dist/checkout_sdk.d.ts +0 -11669
- package/dist/checkout_sdk.js +0 -18258
- package/dist/checkout_widgets.d.ts +0 -25733
- package/dist/checkout_widgets.js +0 -325
- package/dist/erc20.d.ts +0 -296
- package/dist/erc20.js +0 -371
- package/dist/erc721_permissioned_mintable.d.ts +0 -486
- package/dist/erc721_permissioned_mintable.js +0 -1364
- package/dist/orderbook.d.ts +0 -281
- package/dist/orderbook.js +0 -1134
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.
|
|
1460
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.0.0' };
|
|
1461
1461
|
const createConfig = ({ basePath, headers, }) => {
|
|
1462
1462
|
if (!basePath.trim()) {
|
|
1463
1463
|
throw Error('basePath can not be empty');
|
|
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
1513
1513
|
chainID,
|
|
1514
1514
|
coreContractAddress,
|
|
1515
1515
|
registrationContractAddress,
|
|
1516
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
1516
|
+
sdkVersion: 'ts-immutable-sdk-0.0.0',
|
|
1517
1517
|
});
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Sets `sdkVersion` at the time of build
|
|
@@ -7393,7 +7393,6 @@ class ZkEvmProvider {
|
|
|
7393
7393
|
config;
|
|
7394
7394
|
confirmationScreen;
|
|
7395
7395
|
magicAdapter;
|
|
7396
|
-
transactionAPI;
|
|
7397
7396
|
multiRollupApiClients;
|
|
7398
7397
|
jsonRpcProvider; // Used for read
|
|
7399
7398
|
eventEmitter;
|
|
@@ -7407,9 +7406,6 @@ class ZkEvmProvider {
|
|
|
7407
7406
|
this.magicAdapter = magicAdapter;
|
|
7408
7407
|
this.config = config;
|
|
7409
7408
|
this.confirmationScreen = confirmationScreen;
|
|
7410
|
-
this.transactionAPI = new TransactionsApi(new Configuration({
|
|
7411
|
-
basePath: this.config.imxPublicApiDomain,
|
|
7412
|
-
}));
|
|
7413
7409
|
this.jsonRpcProvider = new JsonRpcProvider(this.config.zkEvmRpcUrl);
|
|
7414
7410
|
this.multiRollupApiClients = multiRollupApiClients;
|
|
7415
7411
|
this.eventEmitter = new TypedEventEmitter();
|
|
@@ -7454,12 +7450,7 @@ class ZkEvmProvider {
|
|
|
7454
7450
|
accessToken: this.user.accessToken,
|
|
7455
7451
|
confirmationScreen: this.confirmationScreen,
|
|
7456
7452
|
imxEtherAddress: this.user.zkEvm.ethAddress,
|
|
7457
|
-
config:
|
|
7458
|
-
baseConfig: {},
|
|
7459
|
-
clientId: 'client123',
|
|
7460
|
-
logoutRedirectUri: 'http://localhost:3000/logout',
|
|
7461
|
-
redirectUri: 'http://localhost:3000/redirect',
|
|
7462
|
-
}),
|
|
7453
|
+
config: this.config,
|
|
7463
7454
|
});
|
|
7464
7455
|
this.eventEmitter.emit(ProviderEvent.ACCOUNTS_CHANGED, [this.user.zkEvm.ethAddress]);
|
|
7465
7456
|
return [this.user.zkEvm.ethAddress];
|
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
|
+
"version": "0.13.0",
|
|
5
5
|
"author": "Immutable",
|
|
6
6
|
"browser": "./dist/index.browser.js",
|
|
7
7
|
"bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@imtbl/config": "0.0.0",
|
|
34
34
|
"@imtbl/cryptofiat": "0.0.0",
|
|
35
35
|
"@imtbl/erc20": "0.0.0",
|
|
36
|
+
"@imtbl/erc721-hybrid-permissioned-mintable": "0.0.0",
|
|
36
37
|
"@imtbl/erc721-permissioned-mintable": "0.0.0",
|
|
37
38
|
"@imtbl/generated-clients": "0.0.0",
|
|
38
39
|
"@imtbl/guardian": "0.0.0",
|
|
@@ -70,10 +71,6 @@
|
|
|
70
71
|
"types": "./dist/config.d.ts",
|
|
71
72
|
"import": "./dist/config.js"
|
|
72
73
|
},
|
|
73
|
-
"./blockchain_data": {
|
|
74
|
-
"types": "./dist/blockchain_data.d.ts",
|
|
75
|
-
"import": "./dist/blockchain_data.js"
|
|
76
|
-
},
|
|
77
74
|
"./immutablex_client": {
|
|
78
75
|
"types": "./dist/immutablex_client.d.ts",
|
|
79
76
|
"import": "./dist/immutablex_client.js"
|
|
@@ -82,29 +79,9 @@
|
|
|
82
79
|
"types": "./dist/passport.d.ts",
|
|
83
80
|
"import": "./dist/passport.js"
|
|
84
81
|
},
|
|
85
|
-
"./orderbook": {
|
|
86
|
-
"types": "./dist/orderbook.d.ts",
|
|
87
|
-
"import": "./dist/orderbook.js"
|
|
88
|
-
},
|
|
89
82
|
"./provider": {
|
|
90
83
|
"types": "./dist/provider.d.ts",
|
|
91
84
|
"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"
|
|
108
85
|
}
|
|
109
86
|
},
|
|
110
87
|
"files": [
|