@imtbl/checkout-sdk 2.0.0-alpha.3 → 2.0.0-alpha.4
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/browser/index.js +3 -3
- package/dist/node/index.cjs +3 -3
- package/dist/node/index.js +3 -3
- package/dist/types/sdk.d.ts +2 -2
- package/dist/types/types/connect.d.ts +1 -1
- package/dist/types/types/network.d.ts +1 -1
- package/dist/types/types/provider.d.ts +1 -1
- package/dist/types/widgets/definitions/events/wallet.d.ts +1 -1
- package/package.json +9 -9
package/dist/browser/index.js
CHANGED
|
@@ -789,7 +789,7 @@ var it = {
|
|
|
789
789
|
};
|
|
790
790
|
|
|
791
791
|
// src/env/env.ts
|
|
792
|
-
var Do = "2.0.0-alpha.
|
|
792
|
+
var Do = "2.0.0-alpha.4";
|
|
793
793
|
var at = () => false;
|
|
794
794
|
var ie = () => Do;
|
|
795
795
|
|
|
@@ -6377,9 +6377,9 @@ var Bt = class {
|
|
|
6377
6377
|
);
|
|
6378
6378
|
}
|
|
6379
6379
|
/**
|
|
6380
|
-
* Checks if the given object is a
|
|
6380
|
+
* Checks if the given object is a WrappedBrowserProvider.
|
|
6381
6381
|
* @param {BrowserProvider} browserProvider - The object to check.
|
|
6382
|
-
* @returns {boolean} - True if the object is a
|
|
6382
|
+
* @returns {boolean} - True if the object is a WrappedBrowserProvider, false otherwise.
|
|
6383
6383
|
*/
|
|
6384
6384
|
static isWrappedBrowserProvider(e) {
|
|
6385
6385
|
return pr(e);
|
package/dist/node/index.cjs
CHANGED
|
@@ -789,7 +789,7 @@ var nt = {
|
|
|
789
789
|
};
|
|
790
790
|
|
|
791
791
|
// src/env/env.ts
|
|
792
|
-
var bn = "2.0.0-alpha.
|
|
792
|
+
var bn = "2.0.0-alpha.4";
|
|
793
793
|
var ot = () => false;
|
|
794
794
|
var ne = () => bn;
|
|
795
795
|
|
|
@@ -6377,9 +6377,9 @@ var Ot = class {
|
|
|
6377
6377
|
);
|
|
6378
6378
|
}
|
|
6379
6379
|
/**
|
|
6380
|
-
* Checks if the given object is a
|
|
6380
|
+
* Checks if the given object is a WrappedBrowserProvider.
|
|
6381
6381
|
* @param {BrowserProvider} browserProvider - The object to check.
|
|
6382
|
-
* @returns {boolean} - True if the object is a
|
|
6382
|
+
* @returns {boolean} - True if the object is a WrappedBrowserProvider, false otherwise.
|
|
6383
6383
|
*/
|
|
6384
6384
|
static isWrappedBrowserProvider(e) {
|
|
6385
6385
|
return dr(e);
|
package/dist/node/index.js
CHANGED
|
@@ -789,7 +789,7 @@ var nt = {
|
|
|
789
789
|
};
|
|
790
790
|
|
|
791
791
|
// src/env/env.ts
|
|
792
|
-
var bn = "2.0.0-alpha.
|
|
792
|
+
var bn = "2.0.0-alpha.4";
|
|
793
793
|
var ot = () => false;
|
|
794
794
|
var ne = () => bn;
|
|
795
795
|
|
|
@@ -6377,9 +6377,9 @@ var Ot = class {
|
|
|
6377
6377
|
);
|
|
6378
6378
|
}
|
|
6379
6379
|
/**
|
|
6380
|
-
* Checks if the given object is a
|
|
6380
|
+
* Checks if the given object is a WrappedBrowserProvider.
|
|
6381
6381
|
* @param {BrowserProvider} browserProvider - The object to check.
|
|
6382
|
-
* @returns {boolean} - True if the object is a
|
|
6382
|
+
* @returns {boolean} - True if the object is a WrappedBrowserProvider, false otherwise.
|
|
6383
6383
|
*/
|
|
6384
6384
|
static isWrappedBrowserProvider(e) {
|
|
6385
6385
|
return dr(e);
|
package/dist/types/sdk.d.ts
CHANGED
|
@@ -174,9 +174,9 @@ export declare class Checkout {
|
|
|
174
174
|
*/
|
|
175
175
|
smartCheckout(params: SmartCheckoutParams): Promise<SmartCheckoutResult>;
|
|
176
176
|
/**
|
|
177
|
-
* Checks if the given object is a
|
|
177
|
+
* Checks if the given object is a WrappedBrowserProvider.
|
|
178
178
|
* @param {BrowserProvider} browserProvider - The object to check.
|
|
179
|
-
* @returns {boolean} - True if the object is a
|
|
179
|
+
* @returns {boolean} - True if the object is a WrappedBrowserProvider, false otherwise.
|
|
180
180
|
*/
|
|
181
181
|
static isWrappedBrowserProvider(browserProvider: WrappedBrowserProvider): boolean;
|
|
182
182
|
/**
|
|
@@ -25,7 +25,7 @@ export interface CheckConnectionParams {
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Interface representing the result of {@link Checkout.checkIsWalletConnected}.
|
|
28
|
-
* @property {boolean} isConnected - A boolean indicating the connection status of the
|
|
28
|
+
* @property {boolean} isConnected - A boolean indicating the connection status of the WrappedBrowserProvider.
|
|
29
29
|
* @property {string} walletAddress - The wallet address used to check the connection.
|
|
30
30
|
*/
|
|
31
31
|
export interface CheckConnectionResult {
|
|
@@ -25,7 +25,7 @@ export interface SwitchNetworkParams {
|
|
|
25
25
|
* Represents the result of switching the network in a Web3 application {@link Checkout.switchNetwork}.
|
|
26
26
|
* @interface SwitchNetworkResult
|
|
27
27
|
* @property {NetworkInfo} network - The information about the switched network.
|
|
28
|
-
* @property {WrappedBrowserProvider} provider - The
|
|
28
|
+
* @property {WrappedBrowserProvider} provider - The WrappedBrowserProvider for the switched network.
|
|
29
29
|
*/
|
|
30
30
|
export interface SwitchNetworkResult {
|
|
31
31
|
network: NetworkInfo;
|
|
@@ -25,7 +25,7 @@ export interface CreateProviderParams {
|
|
|
25
25
|
walletProviderName: WalletProviderName;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Represents the result of creating a
|
|
28
|
+
* Represents the result of creating a WrappedBrowserProvider {@link Checkout.createProvider}.
|
|
29
29
|
* @property {WrappedBrowserProvider} provider - The created Browser provider.
|
|
30
30
|
* @property {WalletProviderName} walletProviderName - The wallet provider name of the provider that was created.
|
|
31
31
|
*/
|
|
@@ -19,7 +19,7 @@ export type WalletNetworkSwitch = {
|
|
|
19
19
|
network: string;
|
|
20
20
|
/** The chain ID of the network that the user switched to. */
|
|
21
21
|
chainId: number;
|
|
22
|
-
/** The
|
|
22
|
+
/** The WrappedBrowserProvider object for the switched network. */
|
|
23
23
|
provider: WrappedBrowserProvider;
|
|
24
24
|
};
|
|
25
25
|
/**
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtbl/checkout-sdk",
|
|
3
3
|
"description": "Immutable Checkout SDK",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.4",
|
|
5
5
|
"author": "immutable",
|
|
6
6
|
"bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@imtbl/blockchain-data": "2.0.0-alpha.
|
|
9
|
-
"@imtbl/bridge-sdk": "2.0.0-alpha.
|
|
10
|
-
"@imtbl/config": "2.0.0-alpha.
|
|
11
|
-
"@imtbl/dex-sdk": "2.0.0-alpha.
|
|
12
|
-
"@imtbl/generated-clients": "2.0.0-alpha.
|
|
13
|
-
"@imtbl/metrics": "2.0.0-alpha.
|
|
14
|
-
"@imtbl/orderbook": "2.0.0-alpha.
|
|
15
|
-
"@imtbl/passport": "2.0.0-alpha.
|
|
8
|
+
"@imtbl/blockchain-data": "2.0.0-alpha.4",
|
|
9
|
+
"@imtbl/bridge-sdk": "2.0.0-alpha.4",
|
|
10
|
+
"@imtbl/config": "2.0.0-alpha.4",
|
|
11
|
+
"@imtbl/dex-sdk": "2.0.0-alpha.4",
|
|
12
|
+
"@imtbl/generated-clients": "2.0.0-alpha.4",
|
|
13
|
+
"@imtbl/metrics": "2.0.0-alpha.4",
|
|
14
|
+
"@imtbl/orderbook": "2.0.0-alpha.4",
|
|
15
|
+
"@imtbl/passport": "2.0.0-alpha.4",
|
|
16
16
|
"@metamask/detect-provider": "^2.0.0",
|
|
17
17
|
"axios": "^1.6.5",
|
|
18
18
|
"ethers": "^6.13.4",
|