@imtbl/sdk 0.28.3 → 0.28.4-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 -16
- package/dist/checkout_sdk.js +2 -4
- package/dist/checkout_widgets.d.ts +19 -3
- package/dist/checkout_widgets.js +3 -2
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +7 -8
- package/dist/index.d.ts +34 -18
- package/dist/index.js +7 -8
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/checkout_sdk.d.ts
CHANGED
|
@@ -11459,20 +11459,6 @@ type ChainTokensConfig = {
|
|
|
11459
11459
|
allowed?: TokenInfo[];
|
|
11460
11460
|
blockscout?: boolean;
|
|
11461
11461
|
};
|
|
11462
|
-
/**
|
|
11463
|
-
* Represents information about a network.
|
|
11464
|
-
* @interface NetworkInfo
|
|
11465
|
-
* @property {string} name - The name of the network.
|
|
11466
|
-
* @property {number} chainId - The chain ID of the network.
|
|
11467
|
-
* @property {TokenInfo} nativeCurrency - Information about the native currency of the network.
|
|
11468
|
-
* @property {boolean} isSupported - Indicates whether the network is supported.
|
|
11469
|
-
*/
|
|
11470
|
-
interface NetworkInfo {
|
|
11471
|
-
name: string;
|
|
11472
|
-
chainId: number;
|
|
11473
|
-
nativeCurrency: TokenInfo;
|
|
11474
|
-
isSupported: boolean;
|
|
11475
|
-
}
|
|
11476
11462
|
/**
|
|
11477
11463
|
* Interface representing the params of {@link Checkout.connect}.
|
|
11478
11464
|
* @property {Web3Provider} provider - The provider used to connect to the network.
|
|
@@ -11483,11 +11469,9 @@ interface ConnectParams {
|
|
|
11483
11469
|
/**
|
|
11484
11470
|
* Interface representing the result of {@link Checkout.connect}.
|
|
11485
11471
|
* @property {Web3Provider} provider - The provider used to connect to the network.
|
|
11486
|
-
* @property {NetworkInfo} network - Information about the connected network.
|
|
11487
11472
|
*/
|
|
11488
11473
|
interface ConnectResult {
|
|
11489
11474
|
provider: Web3Provider;
|
|
11490
|
-
network: NetworkInfo;
|
|
11491
11475
|
}
|
|
11492
11476
|
/**
|
|
11493
11477
|
* Interface representing the params of {@link Checkout.checkIsWalletConnected}.
|
|
@@ -11568,6 +11552,20 @@ interface TokenAmountEstimate {
|
|
|
11568
11552
|
estimatedAmount?: BigNumber;
|
|
11569
11553
|
token?: TokenInfo;
|
|
11570
11554
|
}
|
|
11555
|
+
/**
|
|
11556
|
+
* Represents information about a network.
|
|
11557
|
+
* @interface NetworkInfo
|
|
11558
|
+
* @property {string} name - The name of the network.
|
|
11559
|
+
* @property {number} chainId - The chain ID of the network.
|
|
11560
|
+
* @property {TokenInfo} nativeCurrency - Information about the native currency of the network.
|
|
11561
|
+
* @property {boolean} isSupported - Indicates whether the network is supported.
|
|
11562
|
+
*/
|
|
11563
|
+
interface NetworkInfo {
|
|
11564
|
+
name: string;
|
|
11565
|
+
chainId: number;
|
|
11566
|
+
nativeCurrency: TokenInfo;
|
|
11567
|
+
isSupported: boolean;
|
|
11568
|
+
}
|
|
11571
11569
|
/**
|
|
11572
11570
|
* Interface representing the parameters for {@link Checkout.switchNetwork}.
|
|
11573
11571
|
* @property {Web3Provider} provider - The provider to connect to the network.
|
package/dist/checkout_sdk.js
CHANGED
|
@@ -20787,7 +20787,7 @@ class APIError extends Error {
|
|
|
20787
20787
|
|
|
20788
20788
|
/* eslint-disable implicit-arrow-linebreak */
|
|
20789
20789
|
const defaultHeaders = {
|
|
20790
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.
|
|
20790
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.4-alpha.1',
|
|
20791
20791
|
};
|
|
20792
20792
|
/**
|
|
20793
20793
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -25176,10 +25176,8 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
25176
25176
|
allowUnsupportedProvider: true
|
|
25177
25177
|
});
|
|
25178
25178
|
await $c99672cf2294e839$export$43f7168eb392a88c(web3Provider);
|
|
25179
|
-
const networkInfo = await $de192de6ef100f9f$export$79f13b4cfaaf0d09(this.config, web3Provider);
|
|
25180
25179
|
return {
|
|
25181
|
-
provider: web3Provider
|
|
25182
|
-
network: networkInfo
|
|
25180
|
+
provider: web3Provider
|
|
25183
25181
|
};
|
|
25184
25182
|
}
|
|
25185
25183
|
/**
|
|
@@ -25310,11 +25310,12 @@ declare enum SaleEventType {
|
|
|
25310
25310
|
CLOSE_WIDGET = "close-widget",
|
|
25311
25311
|
SUCCESS = "success",
|
|
25312
25312
|
FAILURE = "failure",
|
|
25313
|
-
REJECTED = "rejected"
|
|
25313
|
+
REJECTED = "rejected",
|
|
25314
|
+
TRANSACTION_SUCCESS = "transaction-success"
|
|
25314
25315
|
}
|
|
25315
25316
|
/**
|
|
25316
25317
|
* Represents a successful Sale transaction.
|
|
25317
|
-
* @property {
|
|
25318
|
+
* @property {Array} transactions - The executed transactions
|
|
25318
25319
|
*/
|
|
25319
25320
|
type SaleSuccess = {
|
|
25320
25321
|
transactions: {
|
|
@@ -25327,10 +25328,25 @@ type SaleSuccess = {
|
|
|
25327
25328
|
* Type representing a Sale Widget with type FAILURE.
|
|
25328
25329
|
* @property {string} reason - The reason why the swap failed.
|
|
25329
25330
|
* @property {number} timestamp - The timestamp of the failed swap.
|
|
25331
|
+
* @property {Array} transactions - The executed transactions
|
|
25330
25332
|
*/
|
|
25331
25333
|
type SaleFailed = {
|
|
25332
25334
|
reason: string;
|
|
25333
25335
|
timestamp: number;
|
|
25336
|
+
transactions: {
|
|
25337
|
+
method: string;
|
|
25338
|
+
hash: string | undefined;
|
|
25339
|
+
}[];
|
|
25340
|
+
};
|
|
25341
|
+
/**
|
|
25342
|
+
* Type representing a Sale Widget with type TRANSACTION_SUCCESS.
|
|
25343
|
+
* @property {Object} transactions - The executed transactions
|
|
25344
|
+
*/
|
|
25345
|
+
type SaleTransactionSuccess = {
|
|
25346
|
+
transactions: {
|
|
25347
|
+
method: string;
|
|
25348
|
+
hash: string | undefined;
|
|
25349
|
+
}[];
|
|
25334
25350
|
};
|
|
25335
25351
|
/**
|
|
25336
25352
|
* Enum representing the events emitted by the widgets.
|
|
@@ -25580,4 +25596,4 @@ interface OnRampReactProps {
|
|
|
25580
25596
|
*/
|
|
25581
25597
|
declare function OnRampReact(props: OnRampReactProps): JSX.Element;
|
|
25582
25598
|
|
|
25583
|
-
export { BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectReact, ConnectReactProps, ConnectionFailed, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblConnectProps, ImtblOnRampProps, ImtblSaleProps, ImtblSwapProps, ImtblWalletProps, OnRampEventType, OnRampFailed, OnRampReact, OnRampReactProps, OnRampSuccess, OrchestrationEventType, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SaleEventType, SaleFailed, SaleSuccess, SemanticVersion, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme };
|
|
25599
|
+
export { BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectReact, ConnectReactProps, ConnectionFailed, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblConnectProps, ImtblOnRampProps, ImtblSaleProps, ImtblSwapProps, ImtblWalletProps, OnRampEventType, OnRampFailed, OnRampReact, OnRampReactProps, OnRampSuccess, OrchestrationEventType, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SaleEventType, SaleFailed, SaleSuccess, SaleTransactionSuccess, SemanticVersion, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme };
|
package/dist/checkout_widgets.js
CHANGED
|
@@ -25,7 +25,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
|
|
|
25
25
|
})($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.
|
|
28
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.4-alpha.1";
|
|
29
29
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
30
30
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
31
31
|
|
|
@@ -210,6 +210,7 @@ $parcel$export($9b3189b6b155842e$exports, "SaleEventType", () => $9b3189b6b15584
|
|
|
210
210
|
SaleEventType["SUCCESS"] = "success";
|
|
211
211
|
SaleEventType["FAILURE"] = "failure";
|
|
212
212
|
SaleEventType["REJECTED"] = "rejected";
|
|
213
|
+
SaleEventType["TRANSACTION_SUCCESS"] = "transaction-success";
|
|
213
214
|
})($9b3189b6b155842e$export$881881ffb3bd733e || ($9b3189b6b155842e$export$881881ffb3bd733e = {}));
|
|
214
215
|
|
|
215
216
|
|
|
@@ -319,7 +320,7 @@ function $b222a8f062090058$export$fae4199086a966a3(tagName, passport) {
|
|
|
319
320
|
if (attempts >= maxAttempts) {
|
|
320
321
|
window.clearInterval(timer);
|
|
321
322
|
// eslint-disable-next-line no-console
|
|
322
|
-
console.error("failed to set the provider");
|
|
323
|
+
console.error("failed to set the provider", err);
|
|
323
324
|
}
|
|
324
325
|
}
|
|
325
326
|
};
|
|
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
17
17
|
chainID,
|
|
18
18
|
coreContractAddress,
|
|
19
19
|
registrationContractAddress,
|
|
20
|
-
sdkVersion: 'ts-immutable-sdk-0.28.
|
|
20
|
+
sdkVersion: 'ts-immutable-sdk-0.28.4-alpha.1',
|
|
21
21
|
});
|
|
22
22
|
/**
|
|
23
23
|
* Sets `sdkVersion` at the time of build
|