@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
package/dist/checkout_sdk.d.ts
CHANGED
|
@@ -10813,13 +10813,17 @@ interface PassportOverrides {
|
|
|
10813
10813
|
imxPublicApiDomain: string;
|
|
10814
10814
|
immutableXClient: ImmutableXClient;
|
|
10815
10815
|
zkEvmRpcUrl: string;
|
|
10816
|
-
zkEvmChainId: string;
|
|
10817
10816
|
relayerUrl: string;
|
|
10818
10817
|
indexerMrBasePath: string;
|
|
10819
10818
|
orderBookMrBasePath: string;
|
|
10820
10819
|
passportMrBasePath: string;
|
|
10821
10820
|
}
|
|
10822
10821
|
interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverrides>, OidcConfiguration {
|
|
10822
|
+
/**
|
|
10823
|
+
* This flag indicates that Passport is being used in a cross-sdk bridge scenario
|
|
10824
|
+
* and not directly on the web.
|
|
10825
|
+
*/
|
|
10826
|
+
crossSdkBridgeEnabled?: boolean;
|
|
10823
10827
|
}
|
|
10824
10828
|
type DeviceConnectResponse = {
|
|
10825
10829
|
code: string;
|
|
@@ -10837,6 +10841,8 @@ type DeviceTokenResponse = {
|
|
|
10837
10841
|
|
|
10838
10842
|
/**
|
|
10839
10843
|
* ProviderErrors should take priority over RpcErrorCodes
|
|
10844
|
+
* https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
|
10845
|
+
* https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
10840
10846
|
*/
|
|
10841
10847
|
declare enum ProviderErrorCode {
|
|
10842
10848
|
USER_REJECTED_REQUEST = 4001,
|
|
@@ -10851,7 +10857,7 @@ declare enum RpcErrorCode {
|
|
|
10851
10857
|
INVALID_PARAMS = -32602,
|
|
10852
10858
|
INTERNAL_ERROR = -32603,
|
|
10853
10859
|
PARSE_ERROR = -32700,
|
|
10854
|
-
|
|
10860
|
+
TRANSACTION_REJECTED = -32003
|
|
10855
10861
|
}
|
|
10856
10862
|
declare class JsonRpcError extends Error {
|
|
10857
10863
|
readonly message: string;
|
|
@@ -10891,8 +10897,9 @@ declare class Passport {
|
|
|
10891
10897
|
private readonly confirmationScreen;
|
|
10892
10898
|
private readonly immutableXClient;
|
|
10893
10899
|
private readonly magicAdapter;
|
|
10894
|
-
private readonly passportImxProviderFactory;
|
|
10895
10900
|
private readonly multiRollupApiClients;
|
|
10901
|
+
private readonly passportImxProviderFactory;
|
|
10902
|
+
private readonly passportEventEmitter;
|
|
10896
10903
|
constructor(passportModuleConfiguration: PassportModuleConfiguration);
|
|
10897
10904
|
connectImxSilent(): Promise<IMXProvider | null>;
|
|
10898
10905
|
connectImx(): Promise<IMXProvider>;
|
|
@@ -11528,7 +11535,8 @@ declare enum CheckoutErrorType {
|
|
|
11528
11535
|
INVALID_GAS_ESTIMATE_TYPE = "INVALID_GAS_ESTIMATE_TYPE",
|
|
11529
11536
|
UNSUPPORTED_TOKEN_TYPE_ERROR = "UNSUPPORTED_TOKEN_TYPE_ERROR",
|
|
11530
11537
|
GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR",
|
|
11531
|
-
SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED"
|
|
11538
|
+
SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED",
|
|
11539
|
+
GET_ERC20_ALLOWANCE_ERROR = "GET_ERC20_ALLOWANCE_ERROR"
|
|
11532
11540
|
}
|
|
11533
11541
|
/**
|
|
11534
11542
|
* Represents an error object with a specific type, optional message, and optional data.
|