@imtbl/sdk 0.6.0-alpha → 0.6.1-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 +18 -3
- package/dist/checkout_sdk.js +2182 -123
- package/dist/checkout_widgets.d.ts +10496 -153
- package/dist/checkout_widgets.js +57 -8
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +8 -8
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +176 -42
- package/dist/index.d.ts +29 -7
- package/dist/index.js +176 -42
- package/dist/orderbook.d.ts +1 -3
- package/dist/orderbook.js +1 -3
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2398,7 +2398,7 @@ class MultiRollupApiClients {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
|
|
2400
2400
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2401
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.6.
|
|
2401
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.6.1-alpha' };
|
|
2402
2402
|
const createConfig = ({ basePath, headers, }) => {
|
|
2403
2403
|
if (!basePath.trim()) {
|
|
2404
2404
|
throw Error('basePath can not be empty');
|
|
@@ -2458,7 +2458,7 @@ class APIError extends Error {
|
|
|
2458
2458
|
|
|
2459
2459
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2460
2460
|
const defaultHeaders = {
|
|
2461
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.6.
|
|
2461
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.6.1-alpha',
|
|
2462
2462
|
};
|
|
2463
2463
|
/**
|
|
2464
2464
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -2730,7 +2730,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
2730
2730
|
chainID,
|
|
2731
2731
|
coreContractAddress,
|
|
2732
2732
|
registrationContractAddress,
|
|
2733
|
-
sdkVersion: 'ts-immutable-sdk-0.6.
|
|
2733
|
+
sdkVersion: 'ts-immutable-sdk-0.6.1-alpha',
|
|
2734
2734
|
});
|
|
2735
2735
|
/**
|
|
2736
2736
|
* Sets `sdkVersion` at the time of build
|
|
@@ -10919,12 +10919,9 @@ class Orderbook {
|
|
|
10919
10919
|
}
|
|
10920
10920
|
}
|
|
10921
10921
|
|
|
10922
|
-
const module = 'orderbook';
|
|
10923
|
-
|
|
10924
10922
|
var orderbook = /*#__PURE__*/Object.freeze({
|
|
10925
10923
|
__proto__: null,
|
|
10926
|
-
Orderbook: Orderbook
|
|
10927
|
-
module: module
|
|
10924
|
+
Orderbook: Orderbook
|
|
10928
10925
|
});
|
|
10929
10926
|
|
|
10930
10927
|
function isChainValid(chainID, config) {
|
|
@@ -27442,6 +27439,19 @@ const $762782b6c862d954$export$db5daa1b5156ccfe = [
|
|
|
27442
27439
|
];
|
|
27443
27440
|
|
|
27444
27441
|
|
|
27442
|
+
var $aa144554f9ef124b$export$1fc8f52ad1810e52;
|
|
27443
|
+
(function(ItemType) {
|
|
27444
|
+
ItemType["NATIVE"] = "NATIVE";
|
|
27445
|
+
ItemType["ERC20"] = "ERC20";
|
|
27446
|
+
ItemType["ERC721"] = "ERC721";
|
|
27447
|
+
})($aa144554f9ef124b$export$1fc8f52ad1810e52 || ($aa144554f9ef124b$export$1fc8f52ad1810e52 = {}));
|
|
27448
|
+
var $aa144554f9ef124b$export$537fa3efd10ed435;
|
|
27449
|
+
(function(GasTokenType) {
|
|
27450
|
+
GasTokenType["NATIVE"] = "NATIVE";
|
|
27451
|
+
GasTokenType["ERC20"] = "ERC20";
|
|
27452
|
+
})($aa144554f9ef124b$export$537fa3efd10ed435 || ($aa144554f9ef124b$export$537fa3efd10ed435 = {}));
|
|
27453
|
+
|
|
27454
|
+
|
|
27445
27455
|
/**
|
|
27446
27456
|
* Enum representing different chain IDs.
|
|
27447
27457
|
* @enum {number}
|
|
@@ -27539,10 +27549,6 @@ const $d85ad1457a3f1a83$export$161d4a74df65fc08 = {
|
|
|
27539
27549
|
[(Environment$1).SANDBOX]: "https://checkout-api.sandbox.immutable.com",
|
|
27540
27550
|
[(Environment$1).PRODUCTION]: "https://checkout-api.immutable.com"
|
|
27541
27551
|
};
|
|
27542
|
-
const $d85ad1457a3f1a83$export$7b057be2a3f512cc = {
|
|
27543
|
-
[(Environment$1).SANDBOX]: "https://zkevm-rpc.sandbox.imtbl.com",
|
|
27544
|
-
[(Environment$1).PRODUCTION]: "https://zkevm-rpc.imtbl.com"
|
|
27545
|
-
};
|
|
27546
27552
|
const $d85ad1457a3f1a83$export$6f24f3cef7d501c4 = new Map([
|
|
27547
27553
|
[
|
|
27548
27554
|
($0472f23319457bfb$export$c06e1e7429de6283).ETHEREUM,
|
|
@@ -27672,6 +27678,8 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
|
|
|
27672
27678
|
CheckoutErrorType["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
|
|
27673
27679
|
CheckoutErrorType["UNPREDICTABLE_GAS_LIMIT"] = "UNPREDICTABLE_GAS_LIMIT";
|
|
27674
27680
|
CheckoutErrorType["INVALID_GAS_ESTIMATE_TYPE"] = "INVALID_GAS_ESTIMATE_TYPE";
|
|
27681
|
+
CheckoutErrorType["UNSUPPORTED_TOKEN_TYPE_ERROR"] = "UNSUPPORTED_TOKEN_TYPE_ERROR";
|
|
27682
|
+
CheckoutErrorType["GET_ORDER_LISTING_ERROR"] = "GET_ORDER_LISTING_ERROR";
|
|
27675
27683
|
})($a8bc256d81a5e2c1$export$e3dc0620abde7f5a || ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a = {}));
|
|
27676
27684
|
class $a8bc256d81a5e2c1$export$b722478a3cbfa3bc extends Error {
|
|
27677
27685
|
message;
|
|
@@ -28118,6 +28126,7 @@ async function $570856c68db0bd36$export$9e73e22953cebcfc(tokenBridge, tokenAddre
|
|
|
28118
28126
|
|
|
28119
28127
|
|
|
28120
28128
|
|
|
28129
|
+
|
|
28121
28130
|
async function $67fc622a2b913d5f$export$989eefe1274a439c(fromChainId, toChainId, readOnlyProviders, config) {
|
|
28122
28131
|
const rootChainProvider = readOnlyProviders.get(fromChainId);
|
|
28123
28132
|
const childChainProvider = readOnlyProviders.get(toChainId);
|
|
@@ -28146,6 +28155,13 @@ async function $67fc622a2b913d5f$export$7cf6178417769841(chainId, config) {
|
|
|
28146
28155
|
overrides: dexConfig?.overrides
|
|
28147
28156
|
});
|
|
28148
28157
|
}
|
|
28158
|
+
async function $67fc622a2b913d5f$export$c60ce6c6a92bc2ff(config) {
|
|
28159
|
+
return new (Orderbook)({
|
|
28160
|
+
baseConfig: {
|
|
28161
|
+
environment: config.environment
|
|
28162
|
+
}
|
|
28163
|
+
});
|
|
28164
|
+
}
|
|
28149
28165
|
|
|
28150
28166
|
|
|
28151
28167
|
|
|
@@ -28212,23 +28228,10 @@ class $4013c5c91bb535f6$export$6ad73ea7e1b6f37f extends Error {
|
|
|
28212
28228
|
this.message = message;
|
|
28213
28229
|
}
|
|
28214
28230
|
}
|
|
28215
|
-
const $4013c5c91bb535f6$var$networkMap = (prod, dev
|
|
28216
|
-
|
|
28217
|
-
if (
|
|
28218
|
-
|
|
28219
|
-
networks = ($d85ad1457a3f1a83$export$6f24f3cef7d501c4);
|
|
28220
|
-
if (local) {
|
|
28221
|
-
const rpcUrls = networks.get(($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_MAINNET)?.rpcUrls;
|
|
28222
|
-
rpcUrls?.splice(0, 1, ($d85ad1457a3f1a83$export$7b057be2a3f512cc)[(Environment$1).PRODUCTION]);
|
|
28223
|
-
}
|
|
28224
|
-
} else {
|
|
28225
|
-
networks = ($d85ad1457a3f1a83$export$3e81fc0987227f10);
|
|
28226
|
-
if (local) {
|
|
28227
|
-
const rpcUrls = networks.get(($0472f23319457bfb$export$c06e1e7429de6283).IMTBL_ZKEVM_TESTNET)?.rpcUrls;
|
|
28228
|
-
rpcUrls?.splice(0, 1, ($d85ad1457a3f1a83$export$7b057be2a3f512cc)[(Environment$1).SANDBOX]);
|
|
28229
|
-
}
|
|
28230
|
-
}
|
|
28231
|
-
return networks;
|
|
28231
|
+
const $4013c5c91bb535f6$var$networkMap = (prod, dev)=>{
|
|
28232
|
+
if (dev) return $d85ad1457a3f1a83$export$3a9ebede6a150274;
|
|
28233
|
+
if (prod) return $d85ad1457a3f1a83$export$6f24f3cef7d501c4;
|
|
28234
|
+
return $d85ad1457a3f1a83$export$3e81fc0987227f10;
|
|
28232
28235
|
};
|
|
28233
28236
|
const $4013c5c91bb535f6$export$9b794d067cdd1af6 = (config)=>{
|
|
28234
28237
|
// DevMode and Sandbox will both use Sepolia.
|
|
@@ -28246,11 +28249,6 @@ class $4013c5c91bb535f6$export$4823433c4a67bbc6 {
|
|
|
28246
28249
|
// This will be used to get around the lack of
|
|
28247
28250
|
// Environment.DEVELOPMENT
|
|
28248
28251
|
isDevelopment = false;
|
|
28249
|
-
// This is a hidden feature that is only available
|
|
28250
|
-
// when building the project from source code.
|
|
28251
|
-
// This will be used to get around the lack of
|
|
28252
|
-
// Environment.LOCAL_DEVELOPMENT
|
|
28253
|
-
isLocal = false;
|
|
28254
28252
|
isProduction;
|
|
28255
28253
|
remote;
|
|
28256
28254
|
environment;
|
|
@@ -28260,7 +28258,7 @@ class $4013c5c91bb535f6$export$4823433c4a67bbc6 {
|
|
|
28260
28258
|
this.environment = config.baseConfig.environment;
|
|
28261
28259
|
// Developer mode will super set any environment configuration
|
|
28262
28260
|
this.isProduction = !this.isDevelopment && this.environment === (Environment$1).PRODUCTION;
|
|
28263
|
-
this.networkMap = $4013c5c91bb535f6$var$networkMap(this.isProduction, this.isDevelopment
|
|
28261
|
+
this.networkMap = $4013c5c91bb535f6$var$networkMap(this.isProduction, this.isDevelopment);
|
|
28264
28262
|
this.remote = new ($a492ee374ae7b613$export$d902b56530cd5f87)({
|
|
28265
28263
|
isDevelopment: this.isDevelopment,
|
|
28266
28264
|
isProduction: this.isProduction
|
|
@@ -28370,6 +28368,84 @@ async function $2e7bf45a7c9a9570$export$942c8de7174809fc(params, readOnlyProvide
|
|
|
28370
28368
|
|
|
28371
28369
|
|
|
28372
28370
|
|
|
28371
|
+
const $c147333b1f360629$export$92589613aaa38e1f = 300000;
|
|
28372
|
+
const $c147333b1f360629$export$dea9ce0e9bb2441c = "0x474989C4D25DD41B0B9b1ECb4643B9Fe25f83B19";
|
|
28373
|
+
const $c147333b1f360629$export$5baee63457fa7911 = (type, amount, contractAddress)=>{
|
|
28374
|
+
switch(type){
|
|
28375
|
+
case ($aa144554f9ef124b$export$1fc8f52ad1810e52).ERC20:
|
|
28376
|
+
case ($aa144554f9ef124b$export$1fc8f52ad1810e52).ERC721:
|
|
28377
|
+
return {
|
|
28378
|
+
type: type,
|
|
28379
|
+
amount: amount,
|
|
28380
|
+
contractAddress: contractAddress,
|
|
28381
|
+
approvalContractAddress: $c147333b1f360629$export$dea9ce0e9bb2441c
|
|
28382
|
+
};
|
|
28383
|
+
case ($aa144554f9ef124b$export$1fc8f52ad1810e52).NATIVE:
|
|
28384
|
+
default:
|
|
28385
|
+
return {
|
|
28386
|
+
type: ($aa144554f9ef124b$export$1fc8f52ad1810e52).NATIVE,
|
|
28387
|
+
amount: amount
|
|
28388
|
+
};
|
|
28389
|
+
}
|
|
28390
|
+
};
|
|
28391
|
+
const $c147333b1f360629$export$7f8e2b98eca5a7f0 = async (config, provider, orderId)=>{
|
|
28392
|
+
let order;
|
|
28393
|
+
try {
|
|
28394
|
+
const orderbook = await $67fc622a2b913d5f$export$c60ce6c6a92bc2ff(config);
|
|
28395
|
+
order = await orderbook.getListing(orderId);
|
|
28396
|
+
} catch (err) {
|
|
28397
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("An error occurred while getting the order listing", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).GET_ORDER_LISTING_ERROR, {
|
|
28398
|
+
orderId: orderId,
|
|
28399
|
+
message: err.message
|
|
28400
|
+
});
|
|
28401
|
+
}
|
|
28402
|
+
let amount = (BigNumber$1).from("0");
|
|
28403
|
+
let type = ($aa144554f9ef124b$export$1fc8f52ad1810e52).NATIVE;
|
|
28404
|
+
let contractAddress = "";
|
|
28405
|
+
const buyArray = order.result.buy;
|
|
28406
|
+
if (buyArray.length > 0) switch(buyArray[0].item_type){
|
|
28407
|
+
case "NATIVE":
|
|
28408
|
+
type = ($aa144554f9ef124b$export$1fc8f52ad1810e52).NATIVE;
|
|
28409
|
+
break;
|
|
28410
|
+
case "ERC20":
|
|
28411
|
+
type = ($aa144554f9ef124b$export$1fc8f52ad1810e52).ERC20;
|
|
28412
|
+
contractAddress = buyArray[0].contract_address;
|
|
28413
|
+
break;
|
|
28414
|
+
case "ERC721":
|
|
28415
|
+
type = ($aa144554f9ef124b$export$1fc8f52ad1810e52).ERC721;
|
|
28416
|
+
contractAddress = buyArray[0].contract_address;
|
|
28417
|
+
break;
|
|
28418
|
+
default:
|
|
28419
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Purchasing token type is unsupported", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).UNSUPPORTED_TOKEN_TYPE_ERROR, {
|
|
28420
|
+
orderId: orderId
|
|
28421
|
+
});
|
|
28422
|
+
}
|
|
28423
|
+
buyArray.forEach((item)=>{
|
|
28424
|
+
amount = amount.add((BigNumber$1).from(item.start_amount));
|
|
28425
|
+
});
|
|
28426
|
+
const feeArray = order.result.fees;
|
|
28427
|
+
feeArray.forEach((item)=>{
|
|
28428
|
+
amount = amount.add((BigNumber$1).from(item.amount));
|
|
28429
|
+
});
|
|
28430
|
+
const requirements = [
|
|
28431
|
+
$c147333b1f360629$export$5baee63457fa7911(type, amount, contractAddress)
|
|
28432
|
+
];
|
|
28433
|
+
return {
|
|
28434
|
+
requirements: requirements,
|
|
28435
|
+
gas: {
|
|
28436
|
+
type: ($aa144554f9ef124b$export$537fa3efd10ed435).NATIVE,
|
|
28437
|
+
limit: (BigNumber$1).from($c147333b1f360629$export$92589613aaa38e1f)
|
|
28438
|
+
}
|
|
28439
|
+
};
|
|
28440
|
+
};
|
|
28441
|
+
|
|
28442
|
+
|
|
28443
|
+
|
|
28444
|
+
|
|
28445
|
+
|
|
28446
|
+
|
|
28447
|
+
|
|
28448
|
+
|
|
28373
28449
|
async function $0e0060cb42e136d2$export$339cb2be73677b30(config, existingReadOnlyProviders) {
|
|
28374
28450
|
if (config.isProduction && existingReadOnlyProviders?.has(($0472f23319457bfb$export$c06e1e7429de6283).ETHEREUM)) return existingReadOnlyProviders;
|
|
28375
28451
|
if (existingReadOnlyProviders?.has(($0472f23319457bfb$export$c06e1e7429de6283).SEPOLIA)) return existingReadOnlyProviders;
|
|
@@ -28504,6 +28580,15 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
28504
28580
|
return await $de192de6ef100f9f$export$79f13b4cfaaf0d09(this.config, web3Provider);
|
|
28505
28581
|
}
|
|
28506
28582
|
/**
|
|
28583
|
+
* Determines the requirements for performing a buy.
|
|
28584
|
+
* @param {BuyParams} params - The parameters for the buy.
|
|
28585
|
+
*/ async buy(params) {
|
|
28586
|
+
// eslint-disable-next-line no-console
|
|
28587
|
+
console.warn("This endpoint is currently under construction.");
|
|
28588
|
+
const web3Provider = await $bb88265fe45a0393$export$9e1fd9cc88c637a0(this.config, params.provider);
|
|
28589
|
+
await $c147333b1f360629$export$7f8e2b98eca5a7f0(this.config, web3Provider, params.orderId);
|
|
28590
|
+
}
|
|
28591
|
+
/**
|
|
28507
28592
|
* Checks if the given object is a Web3 provider.
|
|
28508
28593
|
* @param {Web3Provider} web3Provider - The object to check.
|
|
28509
28594
|
* @returns {boolean} - True if the object is a Web3 provider, false otherwise.
|
|
@@ -28537,7 +28622,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
|
|
|
28537
28622
|
function $parcel$export(e, n, v, s) {
|
|
28538
28623
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
28539
28624
|
}
|
|
28540
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.6.
|
|
28625
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.6.1-alpha";
|
|
28541
28626
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
28542
28627
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
28543
28628
|
|
|
@@ -28730,12 +28815,48 @@ function $77ec335383336bdd$export$931068bc678f0d73(tagName, provider) {
|
|
|
28730
28815
|
|
|
28731
28816
|
|
|
28732
28817
|
|
|
28818
|
+
function $b222a8f062090058$export$fae4199086a966a3(tagName, passport) {
|
|
28819
|
+
if (!passport) {
|
|
28820
|
+
// eslint-disable-next-line no-console
|
|
28821
|
+
console.error("no passport provided");
|
|
28822
|
+
return;
|
|
28823
|
+
}
|
|
28824
|
+
if (window === undefined) {
|
|
28825
|
+
// eslint-disable-next-line no-console
|
|
28826
|
+
console.error("missing window object: please run Checkout client side");
|
|
28827
|
+
return;
|
|
28828
|
+
}
|
|
28829
|
+
let attempts = 0;
|
|
28830
|
+
const maxAttempts = 10;
|
|
28831
|
+
let timer;
|
|
28832
|
+
const attemptToAddPassport = ()=>{
|
|
28833
|
+
try {
|
|
28834
|
+
const elements = document.getElementsByTagName(tagName);
|
|
28835
|
+
const widget = elements[0];
|
|
28836
|
+
widget.addPassportOption(passport);
|
|
28837
|
+
window.clearInterval(timer);
|
|
28838
|
+
} catch (err) {
|
|
28839
|
+
attempts++;
|
|
28840
|
+
if (attempts >= maxAttempts) {
|
|
28841
|
+
window.clearInterval(timer);
|
|
28842
|
+
// eslint-disable-next-line no-console
|
|
28843
|
+
console.error("failed to set the provider");
|
|
28844
|
+
}
|
|
28845
|
+
}
|
|
28846
|
+
};
|
|
28847
|
+
timer = window.setInterval(attemptToAddPassport, 10);
|
|
28848
|
+
attemptToAddPassport();
|
|
28849
|
+
}
|
|
28850
|
+
|
|
28851
|
+
|
|
28733
28852
|
function $1f969328e5988c99$export$30f61ebf204c69f6(props) {
|
|
28734
|
-
const { walletProvider: walletProvider, fromContractAddress: fromContractAddress, amount: amount, provider: provider } = props;
|
|
28853
|
+
const { walletProvider: walletProvider, fromContractAddress: fromContractAddress, amount: amount, provider: provider, passport: passport } = props;
|
|
28735
28854
|
(useEffect)(()=>{
|
|
28736
28855
|
if (provider) ($77ec335383336bdd$export$931068bc678f0d73)(($045213b18e9f1f94$export$75be0f6af9650f2c).BRIDGE, provider);
|
|
28856
|
+
if (passport) ($b222a8f062090058$export$fae4199086a966a3)(($045213b18e9f1f94$export$75be0f6af9650f2c).BRIDGE, passport);
|
|
28737
28857
|
}, [
|
|
28738
|
-
provider
|
|
28858
|
+
provider,
|
|
28859
|
+
passport
|
|
28739
28860
|
]);
|
|
28740
28861
|
const config = window.ImtblCheckoutWidgetConfig;
|
|
28741
28862
|
return /*#__PURE__*/ (jsx)("imtbl-bridge", {
|
|
@@ -28752,8 +28873,15 @@ var $f2083cd30e2f5c56$exports = {};
|
|
|
28752
28873
|
$parcel$export($f2083cd30e2f5c56$exports, "ConnectReact", () => $f2083cd30e2f5c56$export$49d62957f420a1e2);
|
|
28753
28874
|
|
|
28754
28875
|
|
|
28755
|
-
|
|
28876
|
+
|
|
28877
|
+
|
|
28878
|
+
function $f2083cd30e2f5c56$export$49d62957f420a1e2({ passport: passport }) {
|
|
28756
28879
|
const config = window.ImtblCheckoutWidgetConfig;
|
|
28880
|
+
(useEffect)(()=>{
|
|
28881
|
+
if (passport) ($b222a8f062090058$export$fae4199086a966a3)(($045213b18e9f1f94$export$75be0f6af9650f2c).CONNECT, passport);
|
|
28882
|
+
}, [
|
|
28883
|
+
passport
|
|
28884
|
+
]);
|
|
28757
28885
|
return /*#__PURE__*/ (jsx)("imtbl-connect", {
|
|
28758
28886
|
widgetConfig: config
|
|
28759
28887
|
});
|
|
@@ -28767,12 +28895,15 @@ $parcel$export($a4fbb8e3a6aeff58$exports, "SwapReact", () => $a4fbb8e3a6aeff58$e
|
|
|
28767
28895
|
|
|
28768
28896
|
|
|
28769
28897
|
|
|
28898
|
+
|
|
28770
28899
|
function $a4fbb8e3a6aeff58$export$971e031379577f4(props) {
|
|
28771
|
-
const { walletProvider: walletProvider, fromContractAddress: fromContractAddress, amount: amount, toContractAddress: toContractAddress, provider: provider } = props;
|
|
28900
|
+
const { walletProvider: walletProvider, fromContractAddress: fromContractAddress, amount: amount, toContractAddress: toContractAddress, provider: provider, passport: passport } = props;
|
|
28772
28901
|
(useEffect)(()=>{
|
|
28773
28902
|
if (provider) ($77ec335383336bdd$export$931068bc678f0d73)(($045213b18e9f1f94$export$75be0f6af9650f2c).SWAP, provider);
|
|
28903
|
+
if (passport) ($b222a8f062090058$export$fae4199086a966a3)(($045213b18e9f1f94$export$75be0f6af9650f2c).SWAP, passport);
|
|
28774
28904
|
}, [
|
|
28775
|
-
provider
|
|
28905
|
+
provider,
|
|
28906
|
+
passport
|
|
28776
28907
|
]);
|
|
28777
28908
|
const config = window.ImtblCheckoutWidgetConfig;
|
|
28778
28909
|
return /*#__PURE__*/ (jsx)("imtbl-swap", {
|
|
@@ -28792,12 +28923,15 @@ $parcel$export($89d55ace0f8f1c07$exports, "WalletReact", () => $89d55ace0f8f1c07
|
|
|
28792
28923
|
|
|
28793
28924
|
|
|
28794
28925
|
|
|
28926
|
+
|
|
28795
28927
|
function $89d55ace0f8f1c07$export$ceaac94f34dba154(props) {
|
|
28796
|
-
const { walletProvider: walletProvider, provider: provider } = props;
|
|
28928
|
+
const { walletProvider: walletProvider, provider: provider, passport: passport } = props;
|
|
28797
28929
|
(useEffect)(()=>{
|
|
28798
28930
|
if (provider) ($77ec335383336bdd$export$931068bc678f0d73)(($045213b18e9f1f94$export$75be0f6af9650f2c).WALLET, provider);
|
|
28931
|
+
if (passport) ($b222a8f062090058$export$fae4199086a966a3)(($045213b18e9f1f94$export$75be0f6af9650f2c).WALLET, passport);
|
|
28799
28932
|
}, [
|
|
28800
|
-
provider
|
|
28933
|
+
provider,
|
|
28934
|
+
passport
|
|
28801
28935
|
]);
|
|
28802
28936
|
const config = window.ImtblCheckoutWidgetConfig;
|
|
28803
28937
|
return /*#__PURE__*/ (jsx)("imtbl-wallet", {
|
package/dist/orderbook.d.ts
CHANGED
|
@@ -247,6 +247,4 @@ interface CancelOrderResponse {
|
|
|
247
247
|
unsignedCancelOrderTransaction: PopulatedTransaction;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
export { CancelOrderResponse, CreateListingParams, ERC20Item, ERC721Item, FulfillOrderResponse, ListListingsParams, NativeItem, Orderbook, PrepareListingParams, PrepareListingResponse, RoyaltyInfo, module };
|
|
250
|
+
export { CancelOrderResponse, CreateListingParams, ERC20Item, ERC721Item, FulfillOrderResponse, ListListingsParams, NativeItem, Orderbook, PrepareListingParams, PrepareListingResponse, RoyaltyInfo };
|
package/dist/orderbook.js
CHANGED
package/dist/passport.js
CHANGED
|
@@ -1457,7 +1457,7 @@ class MultiRollupApiClients {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
1459
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1460
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.6.
|
|
1460
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.6.1-alpha' };
|
|
1461
1461
|
const createConfig = ({ basePath, headers, }) => {
|
|
1462
1462
|
if (!basePath.trim()) {
|
|
1463
1463
|
throw Error('basePath can not be empty');
|
|
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
1513
1513
|
chainID,
|
|
1514
1514
|
coreContractAddress,
|
|
1515
1515
|
registrationContractAddress,
|
|
1516
|
-
sdkVersion: 'ts-immutable-sdk-0.6.
|
|
1516
|
+
sdkVersion: 'ts-immutable-sdk-0.6.1-alpha',
|
|
1517
1517
|
});
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED