@imtbl/sdk 1.14.0-alpha → 1.14.1-alpha
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/blockchain_data.js +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.d.ts +3 -1
- package/dist/checkout.js +4 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +11 -11
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +15 -43
- package/dist/index.d.ts +237 -69
- package/dist/index.js +19 -47
- package/dist/orderbook.js +1 -1
- package/dist/passport.d.ts +3 -1
- package/dist/passport.js +8 -9
- package/dist/x.d.ts +165 -49
- package/dist/x.js +14 -37
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -181,7 +181,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
184
|
-
const SDK_VERSION$1 = '1.14.
|
|
184
|
+
const SDK_VERSION$1 = '1.14.1-alpha';
|
|
185
185
|
const getReferrer$1 = () => {
|
|
186
186
|
if (isNode$1()) {
|
|
187
187
|
return '';
|
|
@@ -13557,7 +13557,7 @@ class MultiRollupApiClients {
|
|
|
13557
13557
|
}
|
|
13558
13558
|
|
|
13559
13559
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13560
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.14.
|
|
13560
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.14.1-alpha' };
|
|
13561
13561
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13562
13562
|
if (!basePath.trim()) {
|
|
13563
13563
|
throw Error('basePath can not be empty');
|
|
@@ -13629,7 +13629,7 @@ class APIError extends Error {
|
|
|
13629
13629
|
|
|
13630
13630
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13631
13631
|
const defaultHeaders$1 = {
|
|
13632
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.14.
|
|
13632
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.14.1-alpha',
|
|
13633
13633
|
};
|
|
13634
13634
|
/**
|
|
13635
13635
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14104,10 +14104,11 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14104
14104
|
});
|
|
14105
14105
|
|
|
14106
14106
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14107
|
-
|
|
14108
|
-
|
|
14107
|
+
class ApiConfiguration extends index$2.Configuration {
|
|
14108
|
+
}
|
|
14109
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.1-alpha' };
|
|
14109
14110
|
/**
|
|
14110
|
-
* @dev
|
|
14111
|
+
* @dev use createImmutableXConfiguration instead
|
|
14111
14112
|
*/
|
|
14112
14113
|
const createConfig = ({ coreContractAddress, registrationContractAddress, chainID, basePath, headers, sdkVersion, }) => {
|
|
14113
14114
|
if (!basePath.trim()) {
|
|
@@ -14131,30 +14132,6 @@ const createConfig = ({ coreContractAddress, registrationContractAddress, chainI
|
|
|
14131
14132
|
},
|
|
14132
14133
|
};
|
|
14133
14134
|
};
|
|
14134
|
-
/**
|
|
14135
|
-
* Creates a Configuration for the specified environment
|
|
14136
|
-
* @dev Copied from Core SDK as a convenience for migrating away from Core SDK
|
|
14137
|
-
* @returns an ImmutableXConfiguration
|
|
14138
|
-
*/
|
|
14139
|
-
const Config = {
|
|
14140
|
-
get PRODUCTION() {
|
|
14141
|
-
return createConfig({
|
|
14142
|
-
basePath: 'https://api.x.immutable.com',
|
|
14143
|
-
chainID: 1,
|
|
14144
|
-
coreContractAddress: '0x5FDCCA53617f4d2b9134B29090C87D01058e27e9',
|
|
14145
|
-
registrationContractAddress: '0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c',
|
|
14146
|
-
});
|
|
14147
|
-
},
|
|
14148
|
-
get SANDBOX() {
|
|
14149
|
-
return createConfig({
|
|
14150
|
-
basePath: 'https://api.sandbox.x.immutable.com',
|
|
14151
|
-
chainID: 11155111,
|
|
14152
|
-
coreContractAddress: '0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98',
|
|
14153
|
-
registrationContractAddress: '0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97',
|
|
14154
|
-
});
|
|
14155
|
-
},
|
|
14156
|
-
createConfig,
|
|
14157
|
-
};
|
|
14158
14135
|
/**
|
|
14159
14136
|
* createImmutableXConfiguration to create a custom ImmutableXConfiguration
|
|
14160
14137
|
* other than the production and sandbox defined below.
|
|
@@ -14164,7 +14141,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14164
14141
|
chainID,
|
|
14165
14142
|
coreContractAddress,
|
|
14166
14143
|
registrationContractAddress,
|
|
14167
|
-
sdkVersion: 'ts-immutable-sdk-1.14.
|
|
14144
|
+
sdkVersion: 'ts-immutable-sdk-1.14.1-alpha',
|
|
14168
14145
|
});
|
|
14169
14146
|
/**
|
|
14170
14147
|
* Sets `sdkVersion` at the time of build
|
|
@@ -17740,8 +17717,8 @@ class IMXClient {
|
|
|
17740
17717
|
});
|
|
17741
17718
|
}
|
|
17742
17719
|
}
|
|
17743
|
-
|
|
17744
|
-
|
|
17720
|
+
class ImmutableX extends IMXClient {
|
|
17721
|
+
}
|
|
17745
17722
|
|
|
17746
17723
|
/* Autogenerated file. Do not edit manually. */
|
|
17747
17724
|
/* tslint:disable */
|
|
@@ -25032,9 +25009,7 @@ async function batchNftTransfer({ user, starkSigner, request, transfersApi, guar
|
|
|
25032
25009
|
await guardianClient.evaluateImxTransaction({
|
|
25033
25010
|
payloadHash: signableResult.data.signable_responses[0]?.payload_hash,
|
|
25034
25011
|
});
|
|
25035
|
-
const requests = await Promise.all(
|
|
25036
|
-
// @ts-ignore - TS is not able to infer the type of the response
|
|
25037
|
-
signableResult.data.signable_responses.map(async (resp) => {
|
|
25012
|
+
const requests = await Promise.all(signableResult.data.signable_responses.map(async (resp) => {
|
|
25038
25013
|
const starkSignature = await starkSigner.signMessage(resp.payload_hash);
|
|
25039
25014
|
return {
|
|
25040
25015
|
sender_vault_id: resp.sender_vault_id,
|
|
@@ -45468,7 +45443,7 @@ const flattenProperties = (properties) => {
|
|
|
45468
45443
|
};
|
|
45469
45444
|
|
|
45470
45445
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45471
|
-
const SDK_VERSION = '1.14.
|
|
45446
|
+
const SDK_VERSION = '1.14.1-alpha';
|
|
45472
45447
|
const getReferrer = () => {
|
|
45473
45448
|
if (isNode()) {
|
|
45474
45449
|
return '';
|
|
@@ -50648,7 +50623,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50648
50623
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
50649
50624
|
};
|
|
50650
50625
|
|
|
50651
|
-
const SDK_VERSION_MARKER = '1.14.
|
|
50626
|
+
const SDK_VERSION_MARKER = '1.14.1-alpha';
|
|
50652
50627
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50653
50628
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50654
50629
|
|
|
@@ -54963,7 +54938,7 @@ async function isRegisteredOffchain(ethAddress, config) {
|
|
|
54963
54938
|
return accounts?.length > 0;
|
|
54964
54939
|
}
|
|
54965
54940
|
catch (ex) {
|
|
54966
|
-
if (
|
|
54941
|
+
if (globalAxios$1.isAxiosError(ex) && ex.response?.status === 404) {
|
|
54967
54942
|
return false;
|
|
54968
54943
|
}
|
|
54969
54944
|
throw ex;
|
|
@@ -55836,7 +55811,6 @@ var x = /*#__PURE__*/Object.freeze({
|
|
|
55836
55811
|
AssetsApi: AssetsApi,
|
|
55837
55812
|
BalancesApi: BalancesApi,
|
|
55838
55813
|
CollectionsApi: CollectionsApi,
|
|
55839
|
-
Config: Config,
|
|
55840
55814
|
Contracts: exportContracts,
|
|
55841
55815
|
DepositsApi: DepositsApi,
|
|
55842
55816
|
EncodingApi: EncodingApi,
|
|
@@ -55864,9 +55838,7 @@ var x = /*#__PURE__*/Object.freeze({
|
|
|
55864
55838
|
createStarkSigner: createStarkSigner,
|
|
55865
55839
|
generateLegacyStarkPrivateKey: generateLegacyStarkPrivateKey,
|
|
55866
55840
|
generateStarkPrivateKey: generateStarkPrivateKey,
|
|
55867
|
-
imxClientConfig: imxClientConfig
|
|
55868
|
-
imxClientCreateStarkSigner: createStarkSigner,
|
|
55869
|
-
imxClientGenerateLegacyStarkPrivateKey: generateLegacyStarkPrivateKey
|
|
55841
|
+
imxClientConfig: imxClientConfig
|
|
55870
55842
|
});
|
|
55871
55843
|
|
|
55872
55844
|
exports.blockchainData = blockchain_data;
|