@imtbl/sdk 0.11.0-alpha → 0.13.0-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.
- package/dist/blockchain_data.js +1 -1
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +14 -5
- package/dist/checkout_sdk.js +737 -1231
- package/dist/checkout_widgets.d.ts +10 -3
- package/dist/checkout_widgets.js +1 -1
- package/dist/erc20.js +9 -9
- package/dist/erc721_hybrid_permissioned_mintable.d.ts +531 -0
- package/dist/erc721_hybrid_permissioned_mintable.js +1559 -0
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +15 -15
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2639 -1587
- package/dist/index.d.ts +319 -17
- package/dist/index.js +2640 -1589
- package/dist/orderbook.d.ts +5 -4
- package/dist/orderbook.js +69 -998
- package/dist/passport.d.ts +10 -3
- package/dist/passport.js +181 -192
- package/package.json +7 -2
package/dist/passport.d.ts
CHANGED
|
@@ -10494,13 +10494,17 @@ interface PassportOverrides {
|
|
|
10494
10494
|
imxPublicApiDomain: string;
|
|
10495
10495
|
immutableXClient: ImmutableXClient;
|
|
10496
10496
|
zkEvmRpcUrl: string;
|
|
10497
|
-
zkEvmChainId: string;
|
|
10498
10497
|
relayerUrl: string;
|
|
10499
10498
|
indexerMrBasePath: string;
|
|
10500
10499
|
orderBookMrBasePath: string;
|
|
10501
10500
|
passportMrBasePath: string;
|
|
10502
10501
|
}
|
|
10503
10502
|
interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverrides>, OidcConfiguration {
|
|
10503
|
+
/**
|
|
10504
|
+
* This flag indicates that Passport is being used in a cross-sdk bridge scenario
|
|
10505
|
+
* and not directly on the web.
|
|
10506
|
+
*/
|
|
10507
|
+
crossSdkBridgeEnabled?: boolean;
|
|
10504
10508
|
}
|
|
10505
10509
|
type DeviceConnectResponse = {
|
|
10506
10510
|
code: string;
|
|
@@ -10518,6 +10522,8 @@ type DeviceTokenResponse = {
|
|
|
10518
10522
|
|
|
10519
10523
|
/**
|
|
10520
10524
|
* ProviderErrors should take priority over RpcErrorCodes
|
|
10525
|
+
* https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
|
10526
|
+
* https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
10521
10527
|
*/
|
|
10522
10528
|
declare enum ProviderErrorCode {
|
|
10523
10529
|
USER_REJECTED_REQUEST = 4001,
|
|
@@ -10532,7 +10538,7 @@ declare enum RpcErrorCode {
|
|
|
10532
10538
|
INVALID_PARAMS = -32602,
|
|
10533
10539
|
INTERNAL_ERROR = -32603,
|
|
10534
10540
|
PARSE_ERROR = -32700,
|
|
10535
|
-
|
|
10541
|
+
TRANSACTION_REJECTED = -32003
|
|
10536
10542
|
}
|
|
10537
10543
|
declare class JsonRpcError extends Error {
|
|
10538
10544
|
readonly message: string;
|
|
@@ -10576,8 +10582,9 @@ declare class Passport {
|
|
|
10576
10582
|
private readonly confirmationScreen;
|
|
10577
10583
|
private readonly immutableXClient;
|
|
10578
10584
|
private readonly magicAdapter;
|
|
10579
|
-
private readonly passportImxProviderFactory;
|
|
10580
10585
|
private readonly multiRollupApiClients;
|
|
10586
|
+
private readonly passportImxProviderFactory;
|
|
10587
|
+
private readonly passportEventEmitter;
|
|
10581
10588
|
constructor(passportModuleConfiguration: PassportModuleConfiguration);
|
|
10582
10589
|
connectImxSilent(): Promise<IMXProvider | null>;
|
|
10583
10590
|
connectImx(): Promise<IMXProvider>;
|