@imtbl/sdk 0.28.4 → 0.28.5
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 +7 -1
- package/dist/checkout_sdk.js +69 -53
- package/dist/checkout_widgets.d.ts +26 -4
- package/dist/checkout_widgets.js +2 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +12 -12
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +140 -74
- package/dist/index.d.ts +28 -3
- package/dist/index.js +141 -75
- package/dist/passport.d.ts +7 -1
- package/dist/passport.js +48 -19
- package/dist/provider.d.ts +7 -0
- package/dist/provider.js +22 -2
- package/package.json +3 -3
package/dist/checkout_sdk.d.ts
CHANGED
|
@@ -10101,6 +10101,12 @@ interface IMXProvider {
|
|
|
10101
10101
|
* @return {Promise<RegisterUserResponse>} Returns a promise that resolves with the user registration response
|
|
10102
10102
|
*/
|
|
10103
10103
|
registerOffchain(): Promise<RegisterUserResponse>;
|
|
10104
|
+
/**
|
|
10105
|
+
* Checks if a User is registered off-chain
|
|
10106
|
+
*
|
|
10107
|
+
* @return {Promise<boolean>} Returns a promise that resolves with true if the User is registered with IMX, false otherwise
|
|
10108
|
+
*/
|
|
10109
|
+
isRegisteredOffchain(): Promise<boolean>;
|
|
10104
10110
|
/**
|
|
10105
10111
|
* Checks if a User is registered on-chain
|
|
10106
10112
|
*
|
|
@@ -10532,7 +10538,7 @@ type UserProfile = {
|
|
|
10532
10538
|
};
|
|
10533
10539
|
declare enum Networks {
|
|
10534
10540
|
PRODUCTION = "mainnet",
|
|
10535
|
-
SANDBOX = "
|
|
10541
|
+
SANDBOX = "sepolia"
|
|
10536
10542
|
}
|
|
10537
10543
|
interface OidcConfiguration {
|
|
10538
10544
|
clientId: string;
|
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.5',
|
|
20791
20791
|
};
|
|
20792
20792
|
/**
|
|
20793
20793
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -22210,6 +22210,7 @@ async function $1564e43dde50bb61$export$60e0fe116a0e6ed0(web3Provider, walletAdd
|
|
|
22210
22210
|
}
|
|
22211
22211
|
// Blockscout client singleton per chain id
|
|
22212
22212
|
const $1564e43dde50bb61$var$blockscoutClientMap = new Map();
|
|
22213
|
+
const $1564e43dde50bb61$export$be5483d07cfa803d = ()=>$1564e43dde50bb61$var$blockscoutClientMap.clear();
|
|
22213
22214
|
const $1564e43dde50bb61$export$8c978679845804d4 = async (walletAddress, chainId, filterTokens)=>{
|
|
22214
22215
|
// Shuffle the mapping of the tokens configuration so it is a hashmap
|
|
22215
22216
|
// for faster access to tokens config objects.
|
|
@@ -22311,6 +22312,8 @@ const $1564e43dde50bb61$export$a3238cee431627c6 = async (config, web3Provider, w
|
|
|
22311
22312
|
};
|
|
22312
22313
|
};
|
|
22313
22314
|
const $1564e43dde50bb61$export$fee49741664a4d7e = async (config, web3Provider, walletAddress, chainId)=>{
|
|
22315
|
+
// eslint-disable-next-line no-param-reassign
|
|
22316
|
+
chainId ||= await web3Provider.getSigner().getChainId();
|
|
22314
22317
|
const { tokens: tokens } = await ($efe60cea83bfc4e8$export$473cec51305fdae8)(config, {
|
|
22315
22318
|
type: ($08d5ddc39acd6833$export$fd9b17d87f4121d2).ALL,
|
|
22316
22319
|
chainId: chainId
|
|
@@ -22332,7 +22335,7 @@ const $1564e43dde50bb61$export$fee49741664a4d7e = async (config, web3Provider, w
|
|
|
22332
22335
|
// Please remove this hack once https://immutable.atlassian.net/browse/WT-1710
|
|
22333
22336
|
// is done.
|
|
22334
22337
|
const isL1Chain = ($4013c5c91bb535f6$export$9b794d067cdd1af6)(config) === chainId;
|
|
22335
|
-
return ($458d407830d66110$export$5280dbcb91c8b391)(config, `Time to fetch balances using blockscout for ${chainId}`, $1564e43dde50bb61$export$8c978679845804d4(walletAddress, chainId, isL1Chain ? tokens : []));
|
|
22338
|
+
return await ($458d407830d66110$export$5280dbcb91c8b391)(config, `Time to fetch balances using blockscout for ${chainId}`, $1564e43dde50bb61$export$8c978679845804d4(walletAddress, chainId, isL1Chain ? tokens : []));
|
|
22336
22339
|
}
|
|
22337
22340
|
// This fallback to use ERC20s calls which is a best effort solution
|
|
22338
22341
|
// Fails in fetching data from the RCP calls might result in some
|
|
@@ -22703,6 +22706,7 @@ async function $2e7bf45a7c9a9570$export$942c8de7174809fc(params, readOnlyProvide
|
|
|
22703
22706
|
|
|
22704
22707
|
|
|
22705
22708
|
|
|
22709
|
+
|
|
22706
22710
|
const $ddc6bcd0896481e5$export$2fbfa41a4de56a89 = (erc20allowances, erc721allowances)=>{
|
|
22707
22711
|
const aggregatedAllowances = [];
|
|
22708
22712
|
if (!erc20allowances.sufficient) {
|
|
@@ -23009,7 +23013,7 @@ const $35c3fc7013888ba5$export$be546c525d418988 = async (provider, ownerAddress,
|
|
|
23009
23013
|
|
|
23010
23014
|
|
|
23011
23015
|
|
|
23012
|
-
|
|
23016
|
+
|
|
23013
23017
|
|
|
23014
23018
|
|
|
23015
23019
|
|
|
@@ -23202,17 +23206,14 @@ const $73d2282a108cc7e2$export$6ab9757fda54db7e = (itemRequirement, balances)=>{
|
|
|
23202
23206
|
/**
|
|
23203
23207
|
* Gets the balances for all NATIVE and ERC20 balance requirements.
|
|
23204
23208
|
*/ const $beb896e098e41faf$var$getTokenBalances = async (config, provider, ownerAddress, itemRequirements)=>{
|
|
23205
|
-
let tokenBalances = [];
|
|
23206
23209
|
try {
|
|
23207
|
-
const
|
|
23208
|
-
|
|
23209
|
-
|
|
23210
|
-
|
|
23211
|
-
];
|
|
23210
|
+
const tokenMap = new Map();
|
|
23211
|
+
(0, $73d2282a108cc7e2$export$ed7929b58bab85da)(itemRequirements).forEach((item)=>tokenMap.set((item.address || "").toLocaleLowerCase(), item));
|
|
23212
|
+
const { balances: balances } = await (0, $1564e43dde50bb61$export$fee49741664a4d7e)(config, provider, ownerAddress);
|
|
23213
|
+
return balances.filter((balance)=>tokenMap.get((balance.token.address || "").toLocaleLowerCase()));
|
|
23212
23214
|
} catch (error) {
|
|
23213
23215
|
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Failed to get balances", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).GET_BALANCE_ERROR);
|
|
23214
23216
|
}
|
|
23215
|
-
return tokenBalances;
|
|
23216
23217
|
};
|
|
23217
23218
|
/**
|
|
23218
23219
|
* Gets the balances for all ERC721 balance requirements.
|
|
@@ -23250,42 +23251,46 @@ const $73d2282a108cc7e2$export$6ab9757fda54db7e = (itemRequirement, balances)=>{
|
|
|
23250
23251
|
};
|
|
23251
23252
|
const $beb896e098e41faf$export$ddfc885f43c3cb6e = async (config, provider, ownerAddress, itemRequirements)=>{
|
|
23252
23253
|
const aggregatedItems = ($aa6caea9a60d18c7$export$f96d1c819a615a64)(itemRequirements);
|
|
23253
|
-
|
|
23254
|
-
|
|
23255
|
-
|
|
23254
|
+
const requiredToken = [];
|
|
23255
|
+
const requiredERC721 = [];
|
|
23256
|
+
aggregatedItems.forEach((item)=>{
|
|
23257
|
+
switch(item.type){
|
|
23258
|
+
case ($4b58188d47aafe8d$export$1fc8f52ad1810e52).ERC20:
|
|
23259
|
+
case ($4b58188d47aafe8d$export$1fc8f52ad1810e52).NATIVE:
|
|
23260
|
+
requiredToken.push(item);
|
|
23261
|
+
break;
|
|
23262
|
+
case ($4b58188d47aafe8d$export$1fc8f52ad1810e52).ERC721:
|
|
23263
|
+
requiredERC721.push(item);
|
|
23264
|
+
break;
|
|
23265
|
+
}
|
|
23266
|
+
});
|
|
23267
|
+
if (requiredERC721.length === 0 && requiredToken.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Unsupported item requirement balance check", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).UNSUPPORTED_BALANCE_REQUIREMENT_ERROR);
|
|
23256
23268
|
// Get all ERC20 and NATIVE balances
|
|
23257
|
-
const
|
|
23258
|
-
|
|
23259
|
-
if (tokenItemRequirements.length > 0) currentBalances.push($beb896e098e41faf$var$getTokenBalances(config, provider, ownerAddress, aggregatedItems));
|
|
23269
|
+
const balancePromises = [];
|
|
23270
|
+
if (requiredToken.length > 0) balancePromises.push($beb896e098e41faf$var$getTokenBalances(config, provider, ownerAddress, aggregatedItems));
|
|
23260
23271
|
// Get all ERC721 balances
|
|
23261
|
-
|
|
23262
|
-
if (erc721ItemRequirements.length > 0) currentBalances.push($beb896e098e41faf$var$getERC721Balances(provider, ownerAddress, aggregatedItems));
|
|
23272
|
+
if (requiredERC721.length > 0) balancePromises.push($beb896e098e41faf$var$getERC721Balances(provider, ownerAddress, aggregatedItems));
|
|
23263
23273
|
// Wait for all balances and calculate the requirements
|
|
23264
|
-
const
|
|
23265
|
-
|
|
23266
|
-
|
|
23267
|
-
|
|
23268
|
-
|
|
23269
|
-
|
|
23270
|
-
|
|
23271
|
-
|
|
23272
|
-
|
|
23273
|
-
|
|
23274
|
-
|
|
23275
|
-
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
|
|
23281
|
-
|
|
23282
|
-
|
|
23283
|
-
|
|
23284
|
-
return requirements;
|
|
23285
|
-
});
|
|
23286
|
-
const sufficient = balanceRequirements.reduce((acc, balanceRequirement)=>{
|
|
23287
|
-
return acc && balanceRequirement.sufficient;
|
|
23288
|
-
}, true);
|
|
23274
|
+
const promisesResponses = await Promise.all(balancePromises);
|
|
23275
|
+
const balanceRequirements = [];
|
|
23276
|
+
// Get all ERC20 and NATIVE balances
|
|
23277
|
+
if (requiredToken.length > 0 && promisesResponses.length > 0) {
|
|
23278
|
+
const result = promisesResponses.shift();
|
|
23279
|
+
if (result) requiredToken.forEach((item)=>{
|
|
23280
|
+
balanceRequirements.push(($73d2282a108cc7e2$export$6ab9757fda54db7e)(item, result));
|
|
23281
|
+
});
|
|
23282
|
+
}
|
|
23283
|
+
// Get all ERC721 balances
|
|
23284
|
+
if (requiredERC721.length > 0 && promisesResponses.length > 0) {
|
|
23285
|
+
const result = promisesResponses.shift();
|
|
23286
|
+
if (result) requiredERC721.forEach((item)=>{
|
|
23287
|
+
balanceRequirements.push(($73d2282a108cc7e2$export$9b757e40b19984c3)(item, result));
|
|
23288
|
+
});
|
|
23289
|
+
}
|
|
23290
|
+
// Find if there are any requirements that aren't sufficient.
|
|
23291
|
+
// If there is not item with sufficient === false then the requirements
|
|
23292
|
+
// are satisfied.
|
|
23293
|
+
const sufficient = balanceRequirements.find((req)=>req.sufficient === false) === undefined;
|
|
23289
23294
|
return {
|
|
23290
23295
|
sufficient: sufficient,
|
|
23291
23296
|
balanceRequirements: balanceRequirements
|
|
@@ -23869,7 +23874,9 @@ const $15fe1c77041bd4f4$export$9e73e22953cebcfc = async (config, readOnlyProvide
|
|
|
23869
23874
|
|
|
23870
23875
|
const $887d24b47765b1c0$export$c37d8687c27b9660 = "0x0000000000000000000000000000000000000001";
|
|
23871
23876
|
const $887d24b47765b1c0$export$1430626eec86fce9 = (chainId)=>{
|
|
23877
|
+
if (chainId === ($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_MAINNET) return "imtbl-zkevm-mainnet";
|
|
23872
23878
|
if (chainId === ($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_TESTNET) return "imtbl-zkevm-testnet";
|
|
23879
|
+
if (chainId === ($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_DEVNET) return "imtbl-zkevm-devent";
|
|
23873
23880
|
return "";
|
|
23874
23881
|
};
|
|
23875
23882
|
const $887d24b47765b1c0$export$53e663abd9b77fc1 = async (chainId, config)=>{
|
|
@@ -24690,7 +24697,6 @@ const $a7367d01c6e76b1c$export$d62081fac18000c2 = (orderHash, orderComponents, a
|
|
|
24690
24697
|
|
|
24691
24698
|
|
|
24692
24699
|
|
|
24693
|
-
|
|
24694
24700
|
const $9051cee080948594$export$9ac1563efd38130 = 1; // 100%
|
|
24695
24701
|
const $9051cee080948594$export$768e717351d4b176 = 6; // will allow 0.000001 (0.0001%) as the minimum value
|
|
24696
24702
|
const $9051cee080948594$var$calculateFeesPercent = (orderFee, amountBn)=>{
|
|
@@ -24731,6 +24737,7 @@ const $9051cee080948594$export$1e69c9cfc42e28d8 = (orderFees, weiAmount, decimal
|
|
|
24731
24737
|
|
|
24732
24738
|
|
|
24733
24739
|
|
|
24740
|
+
|
|
24734
24741
|
const $64863c39386de592$export$4249179755829904 = (type, contractAddress, amount, spenderAddress)=>{
|
|
24735
24742
|
switch(type){
|
|
24736
24743
|
case ($4b58188d47aafe8d$export$1fc8f52ad1810e52).ERC20:
|
|
@@ -24762,16 +24769,24 @@ const $64863c39386de592$export$8f2ff92ab8657f0b = (gasLimit, fulfillmentTransact
|
|
|
24762
24769
|
};
|
|
24763
24770
|
};
|
|
24764
24771
|
const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, orders)=>{
|
|
24765
|
-
|
|
24772
|
+
if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were provided to the orders array. Please provide at least one order.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).FULFILL_ORDER_LISTING_ERROR);
|
|
24766
24773
|
let order;
|
|
24767
24774
|
let spenderAddress = "";
|
|
24775
|
+
let decimals = 18;
|
|
24768
24776
|
const gasLimit = (constants).estimatedFulfillmentGasGwei;
|
|
24769
|
-
|
|
24777
|
+
const orderbook = $67fc622a2b913d5f$export$c60ce6c6a92bc2ff(config);
|
|
24778
|
+
const blockchainClient = $67fc622a2b913d5f$export$436dd76f23f463ff(config);
|
|
24779
|
+
const fulfillerAddress = await ($458d407830d66110$export$5280dbcb91c8b391)(config, "Time to get the address from the provider", provider.getSigner().getAddress());
|
|
24780
|
+
// Prefetch balances and store them in memory
|
|
24781
|
+
($1564e43dde50bb61$export$be5483d07cfa803d)();
|
|
24782
|
+
($1564e43dde50bb61$export$fee49741664a4d7e)(config, provider, fulfillerAddress, ($4013c5c91bb535f6$export$9b794d067cdd1af6)(config));
|
|
24783
|
+
($1564e43dde50bb61$export$fee49741664a4d7e)(config, provider, fulfillerAddress, ($4013c5c91bb535f6$export$c9af4e4b001c6476)(config));
|
|
24770
24784
|
const { id: id, takerFees: takerFees } = orders[0];
|
|
24785
|
+
let orderChainName;
|
|
24771
24786
|
try {
|
|
24772
|
-
orderbook = $67fc622a2b913d5f$export$c60ce6c6a92bc2ff(config);
|
|
24773
24787
|
order = await (0, $458d407830d66110$export$5280dbcb91c8b391)(config, "Time to fetch the listing from the orderbook", orderbook.getListing(id));
|
|
24774
|
-
const { seaportContractAddress: seaportContractAddress } = orderbook.config();
|
|
24788
|
+
const { seaportContractAddress: seaportContractAddress, chainName: chainName } = orderbook.config();
|
|
24789
|
+
orderChainName = chainName;
|
|
24775
24790
|
spenderAddress = seaportContractAddress;
|
|
24776
24791
|
} catch (err) {
|
|
24777
24792
|
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("An error occurred while getting the order listing", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).GET_ORDER_LISTING_ERROR, {
|
|
@@ -24784,10 +24799,12 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
|
|
|
24784
24799
|
message: "No buy side tokens found on order"
|
|
24785
24800
|
});
|
|
24786
24801
|
const buyToken = order.result.buy[0];
|
|
24787
|
-
|
|
24788
|
-
|
|
24789
|
-
|
|
24790
|
-
|
|
24802
|
+
if (buyToken.type === "ERC20") {
|
|
24803
|
+
const token = await ($458d407830d66110$export$5280dbcb91c8b391)(config, "Time to get decimals of token contract for the buy token", blockchainClient.getToken({
|
|
24804
|
+
contractAddress: buyToken.contractAddress,
|
|
24805
|
+
chainName: orderChainName
|
|
24806
|
+
}));
|
|
24807
|
+
if (token.result.decimals) decimals = token.result.decimals;
|
|
24791
24808
|
}
|
|
24792
24809
|
let fees = [];
|
|
24793
24810
|
if (takerFees && takerFees.length > 0) fees = ($9051cee080948594$export$1e69c9cfc42e28d8)(takerFees, buyToken.amount, decimals);
|
|
@@ -24796,7 +24813,6 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
|
|
|
24796
24813
|
let orderActions = [];
|
|
24797
24814
|
const fulfillOrderStartTime = performance.now();
|
|
24798
24815
|
try {
|
|
24799
|
-
const fulfillerAddress = await (0, $458d407830d66110$export$5280dbcb91c8b391)(config, "Time to get the address from the provider", provider.getSigner().getAddress());
|
|
24800
24816
|
const { actions: actions } = await (0, $458d407830d66110$export$5280dbcb91c8b391)(config, "Time to call fulfillOrder from the orderbook", orderbook.fulfillOrder(id, fulfillerAddress, fees));
|
|
24801
24817
|
orderActions = actions;
|
|
24802
24818
|
unsignedApprovalTransactions = await (0, $458d407830d66110$export$5280dbcb91c8b391)(config, "Time to construct the unsigned approval transactions", (0, $a7367d01c6e76b1c$export$f64a20a30eb98855)(actions));
|
|
@@ -10039,6 +10039,12 @@ interface IMXProvider {
|
|
|
10039
10039
|
* @return {Promise<RegisterUserResponse>} Returns a promise that resolves with the user registration response
|
|
10040
10040
|
*/
|
|
10041
10041
|
registerOffchain(): Promise<RegisterUserResponse>;
|
|
10042
|
+
/**
|
|
10043
|
+
* Checks if a User is registered off-chain
|
|
10044
|
+
*
|
|
10045
|
+
* @return {Promise<boolean>} Returns a promise that resolves with true if the User is registered with IMX, false otherwise
|
|
10046
|
+
*/
|
|
10047
|
+
isRegisteredOffchain(): Promise<boolean>;
|
|
10042
10048
|
/**
|
|
10043
10049
|
* Checks if a User is registered on-chain
|
|
10044
10050
|
*
|
|
@@ -10470,7 +10476,7 @@ type UserProfile = {
|
|
|
10470
10476
|
};
|
|
10471
10477
|
declare enum Networks {
|
|
10472
10478
|
PRODUCTION = "mainnet",
|
|
10473
|
-
SANDBOX = "
|
|
10479
|
+
SANDBOX = "sepolia"
|
|
10474
10480
|
}
|
|
10475
10481
|
interface OidcConfiguration {
|
|
10476
10482
|
clientId: string;
|
|
@@ -25310,11 +25316,12 @@ declare enum SaleEventType {
|
|
|
25310
25316
|
CLOSE_WIDGET = "close-widget",
|
|
25311
25317
|
SUCCESS = "success",
|
|
25312
25318
|
FAILURE = "failure",
|
|
25313
|
-
REJECTED = "rejected"
|
|
25319
|
+
REJECTED = "rejected",
|
|
25320
|
+
TRANSACTION_SUCCESS = "transaction-success"
|
|
25314
25321
|
}
|
|
25315
25322
|
/**
|
|
25316
25323
|
* Represents a successful Sale transaction.
|
|
25317
|
-
* @property {
|
|
25324
|
+
* @property {Array} transactions - The executed transactions
|
|
25318
25325
|
*/
|
|
25319
25326
|
type SaleSuccess = {
|
|
25320
25327
|
transactions: {
|
|
@@ -25327,10 +25334,25 @@ type SaleSuccess = {
|
|
|
25327
25334
|
* Type representing a Sale Widget with type FAILURE.
|
|
25328
25335
|
* @property {string} reason - The reason why the swap failed.
|
|
25329
25336
|
* @property {number} timestamp - The timestamp of the failed swap.
|
|
25337
|
+
* @property {Array} transactions - The executed transactions
|
|
25330
25338
|
*/
|
|
25331
25339
|
type SaleFailed = {
|
|
25332
25340
|
reason: string;
|
|
25333
25341
|
timestamp: number;
|
|
25342
|
+
transactions: {
|
|
25343
|
+
method: string;
|
|
25344
|
+
hash: string | undefined;
|
|
25345
|
+
}[];
|
|
25346
|
+
};
|
|
25347
|
+
/**
|
|
25348
|
+
* Type representing a Sale Widget with type TRANSACTION_SUCCESS.
|
|
25349
|
+
* @property {Object} transactions - The executed transactions
|
|
25350
|
+
*/
|
|
25351
|
+
type SaleTransactionSuccess = {
|
|
25352
|
+
transactions: {
|
|
25353
|
+
method: string;
|
|
25354
|
+
hash: string | undefined;
|
|
25355
|
+
}[];
|
|
25334
25356
|
};
|
|
25335
25357
|
/**
|
|
25336
25358
|
* Enum representing the events emitted by the widgets.
|
|
@@ -25580,4 +25602,4 @@ interface OnRampReactProps {
|
|
|
25580
25602
|
*/
|
|
25581
25603
|
declare function OnRampReact(props: OnRampReactProps): JSX.Element;
|
|
25582
25604
|
|
|
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 };
|
|
25605
|
+
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.5";
|
|
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
|
|
|
@@ -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.5',
|
|
21
21
|
});
|
|
22
22
|
/**
|
|
23
23
|
* Sets `sdkVersion` at the time of build
|