@imtbl/sdk 1.43.1-alpha → 1.43.1-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 +2 -2
- package/dist/browser/checkout/{BridgeWidget-51ab414e.js → BridgeWidget-b181daf0.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-88219ca6.js → OnRampWidget-323569cf.js} +1 -1
- package/dist/browser/checkout/SaleWidget-b2ac87de.js +1 -0
- package/dist/browser/checkout/{SpendingCapHero-91d663f4.js → SpendingCapHero-b96dba23.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-50134987.js → SwapWidget-4750f09d.js} +1 -1
- package/dist/browser/checkout/{TopUpView-76db7e54.js → TopUpView-b798fba3.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-a03dda99.js → WalletWidget-427ff2a8.js} +1 -1
- package/dist/browser/checkout/{auto-track-a00d113a.js → auto-track-1699254d.js} +1 -1
- package/dist/browser/checkout/{balance-a4476d1b.js → balance-d5327c17.js} +1 -1
- package/dist/browser/checkout/{index-75519db2.js → index-2439e1f6.js} +1 -1
- package/dist/browser/checkout/index-24a6c63d.js +1 -0
- package/dist/browser/checkout/{index-3be05152.js → index-523f6a0e.js} +1 -1
- package/dist/browser/checkout/{index-3da2ceaf.js → index-58ad2162.js} +1 -1
- package/dist/browser/checkout/{index-b3b84862.js → index-75dd6fc5.js} +1 -1
- package/dist/browser/checkout/{index-ff50b524.js → index-7701ad58.js} +1 -1
- package/dist/browser/checkout/{index-bf3c80e4.js → index-8ba1a8e9.js} +2 -2
- package/dist/browser/checkout/{index-e61bd8e5.js → index-be3460fd.js} +1 -1
- package/dist/browser/checkout/{index.umd-0c8ceeac.js → index.umd-c898a77f.js} +1 -1
- package/dist/browser/checkout/{retry-5f6a4153.js → retry-4390c3d1.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +4 -4
- package/dist/checkout.js +5 -14
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +8 -17
- package/dist/index.js +8 -17
- package/dist/minting_backend.js +2 -2
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +4 -4
- package/dist/webhook.js +1 -1
- package/dist/x.js +3 -3
- package/package.json +1 -1
- package/dist/browser/checkout/SaleWidget-b112229f.js +0 -1
- package/dist/browser/checkout/index-6776acf1.js +0 -1
package/dist/checkout.js
CHANGED
|
@@ -141,7 +141,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
144
|
-
const SDK_VERSION$1 = '1.43.1-alpha';
|
|
144
|
+
const SDK_VERSION$1 = '1.43.1-alpha.1';
|
|
145
145
|
const getFrameParentDomain$1 = () => {
|
|
146
146
|
if (isNode$1()) {
|
|
147
147
|
return '';
|
|
@@ -19518,7 +19518,7 @@ const flattenProperties = (properties) => {
|
|
|
19518
19518
|
};
|
|
19519
19519
|
|
|
19520
19520
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
19521
|
-
const SDK_VERSION = '1.43.1-alpha';
|
|
19521
|
+
const SDK_VERSION = '1.43.1-alpha.1';
|
|
19522
19522
|
const getFrameParentDomain = () => {
|
|
19523
19523
|
if (isNode()) {
|
|
19524
19524
|
return '';
|
|
@@ -31072,7 +31072,7 @@ class APIError extends Error {
|
|
|
31072
31072
|
|
|
31073
31073
|
/* eslint-disable implicit-arrow-linebreak */
|
|
31074
31074
|
const defaultHeaders = {
|
|
31075
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.1-alpha',
|
|
31075
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.1-alpha.1',
|
|
31076
31076
|
};
|
|
31077
31077
|
/**
|
|
31078
31078
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -32604,7 +32604,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
32604
32604
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
32605
32605
|
};
|
|
32606
32606
|
|
|
32607
|
-
const SDK_VERSION_MARKER = '1.43.1-alpha';
|
|
32607
|
+
const SDK_VERSION_MARKER = '1.43.1-alpha.1';
|
|
32608
32608
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
32609
32609
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
32610
32610
|
|
|
@@ -34372,13 +34372,8 @@ const getERC721Balances = async (provider, ownerAddress, itemRequirements) => {
|
|
|
34372
34372
|
// Convert ERC721 ownership into a balance result
|
|
34373
34373
|
const erc721Owners = await Promise.all(erc721OwnershipPromises.values());
|
|
34374
34374
|
const erc721OwnersPromiseIds = Array.from(erc721OwnershipPromises.keys());
|
|
34375
|
-
debugger; // eslint-disable-line
|
|
34376
34375
|
erc721Owners.forEach((erc721OwnerAddress, index) => {
|
|
34377
34376
|
const itemRequirement = erc721s.get(erc721OwnersPromiseIds[index]);
|
|
34378
|
-
console.log('🚀 ~ itemRequirement:', itemRequirement);
|
|
34379
|
-
console.log('🚀 ~ ownerAddress:', ownerAddress);
|
|
34380
|
-
console.log('🚀 ~ erc721OwnerAddress:', erc721OwnerAddress);
|
|
34381
|
-
console.log('🚀 ~ isMatchingAddress:', isMatchingAddress(ownerAddress, erc721OwnerAddress));
|
|
34382
34377
|
let itemCount = 0;
|
|
34383
34378
|
if (itemRequirement && isMatchingAddress(ownerAddress, erc721OwnerAddress)) {
|
|
34384
34379
|
itemCount = 1;
|
|
@@ -35808,11 +35803,7 @@ const processRoutes = async (config, ownerAddress, sufficient, availableRoutingO
|
|
|
35808
35803
|
return routingOutcome;
|
|
35809
35804
|
};
|
|
35810
35805
|
const smartCheckout = async (config, provider, itemRequirements, transactionOrGasAmount, routingOptions, onComplete, onFundingRoute, fundingRouteFullAmount = false) => {
|
|
35811
|
-
const
|
|
35812
|
-
const ownerAddress = await signer.getAddress();
|
|
35813
|
-
if (ownerAddress === undefined) {
|
|
35814
|
-
throw new Error('Owner address is undefined');
|
|
35815
|
-
}
|
|
35806
|
+
const ownerAddress = await provider.getSigner().getAddress();
|
|
35816
35807
|
let aggregatedItems = itemAggregator(itemRequirements);
|
|
35817
35808
|
const erc20AllowancePromise = hasERC20Allowances(provider, ownerAddress, aggregatedItems);
|
|
35818
35809
|
const erc721AllowancePromise = hasERC721Allowances(provider, ownerAddress, aggregatedItems);
|
package/dist/config.js
CHANGED
|
@@ -128,7 +128,7 @@ const flattenProperties = (properties) => {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
131
|
-
const SDK_VERSION = '1.43.1-alpha';
|
|
131
|
+
const SDK_VERSION = '1.43.1-alpha.1';
|
|
132
132
|
const getFrameParentDomain = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|