@imtbl/sdk 0.11.0-alpha → 0.12.0-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 +1 -1
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +12 -4
- package/dist/checkout_sdk.js +499 -1224
- package/dist/checkout_widgets.d.ts +10 -3
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +14 -14
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +595 -1330
- package/dist/index.d.ts +17 -8
- package/dist/index.js +596 -1331
- package/dist/orderbook.d.ts +5 -4
- package/dist/orderbook.js +58 -987
- package/dist/passport.d.ts +10 -3
- package/dist/passport.js +186 -188
- package/package.json +2 -2
|
@@ -10781,13 +10781,17 @@ interface PassportOverrides {
|
|
|
10781
10781
|
imxPublicApiDomain: string;
|
|
10782
10782
|
immutableXClient: ImmutableXClient;
|
|
10783
10783
|
zkEvmRpcUrl: string;
|
|
10784
|
-
zkEvmChainId: string;
|
|
10785
10784
|
relayerUrl: string;
|
|
10786
10785
|
indexerMrBasePath: string;
|
|
10787
10786
|
orderBookMrBasePath: string;
|
|
10788
10787
|
passportMrBasePath: string;
|
|
10789
10788
|
}
|
|
10790
10789
|
interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverrides>, OidcConfiguration {
|
|
10790
|
+
/**
|
|
10791
|
+
* This flag indicates that Passport is being used in a cross-sdk bridge scenario
|
|
10792
|
+
* and not directly on the web.
|
|
10793
|
+
*/
|
|
10794
|
+
crossSdkBridgeEnabled?: boolean;
|
|
10791
10795
|
}
|
|
10792
10796
|
type DeviceConnectResponse = {
|
|
10793
10797
|
code: string;
|
|
@@ -10805,6 +10809,8 @@ type DeviceTokenResponse = {
|
|
|
10805
10809
|
|
|
10806
10810
|
/**
|
|
10807
10811
|
* ProviderErrors should take priority over RpcErrorCodes
|
|
10812
|
+
* https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
|
10813
|
+
* https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
10808
10814
|
*/
|
|
10809
10815
|
declare enum ProviderErrorCode {
|
|
10810
10816
|
USER_REJECTED_REQUEST = 4001,
|
|
@@ -10819,7 +10825,7 @@ declare enum RpcErrorCode {
|
|
|
10819
10825
|
INVALID_PARAMS = -32602,
|
|
10820
10826
|
INTERNAL_ERROR = -32603,
|
|
10821
10827
|
PARSE_ERROR = -32700,
|
|
10822
|
-
|
|
10828
|
+
TRANSACTION_REJECTED = -32003
|
|
10823
10829
|
}
|
|
10824
10830
|
declare class JsonRpcError extends Error {
|
|
10825
10831
|
readonly message: string;
|
|
@@ -10859,8 +10865,9 @@ declare class Passport {
|
|
|
10859
10865
|
private readonly confirmationScreen;
|
|
10860
10866
|
private readonly immutableXClient;
|
|
10861
10867
|
private readonly magicAdapter;
|
|
10862
|
-
private readonly passportImxProviderFactory;
|
|
10863
10868
|
private readonly multiRollupApiClients;
|
|
10869
|
+
private readonly passportImxProviderFactory;
|
|
10870
|
+
private readonly passportEventEmitter;
|
|
10864
10871
|
constructor(passportModuleConfiguration: PassportModuleConfiguration);
|
|
10865
10872
|
connectImxSilent(): Promise<IMXProvider | null>;
|
|
10866
10873
|
connectImx(): Promise<IMXProvider>;
|
package/dist/checkout_widgets.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
|
|
|
4
4
|
function $parcel$export(e, n, v, s) {
|
|
5
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
6
|
}
|
|
7
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.
|
|
7
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.12.0-alpha";
|
|
8
8
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
9
9
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
16
16
|
chainID,
|
|
17
17
|
coreContractAddress,
|
|
18
18
|
registrationContractAddress,
|
|
19
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
19
|
+
sdkVersion: 'ts-immutable-sdk-0.12.0-alpha',
|
|
20
20
|
});
|
|
21
21
|
/**
|
|
22
22
|
* Sets `sdkVersion` at the time of build
|