@imtbl/sdk 1.43.0-alpha.4 → 1.43.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 +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.js +14 -5
- 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 +17 -8
- package/dist/index.js +17 -8
- 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/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.
|
|
144
|
+
const SDK_VERSION$1 = '1.43.1-alpha';
|
|
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.
|
|
19521
|
+
const SDK_VERSION = '1.43.1-alpha';
|
|
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.
|
|
31075
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.1-alpha',
|
|
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.
|
|
32607
|
+
const SDK_VERSION_MARKER = '1.43.1-alpha';
|
|
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,8 +34372,13 @@ 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
|
|
34375
34376
|
erc721Owners.forEach((erc721OwnerAddress, index) => {
|
|
34376
34377
|
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));
|
|
34377
34382
|
let itemCount = 0;
|
|
34378
34383
|
if (itemRequirement && isMatchingAddress(ownerAddress, erc721OwnerAddress)) {
|
|
34379
34384
|
itemCount = 1;
|
|
@@ -35803,7 +35808,11 @@ const processRoutes = async (config, ownerAddress, sufficient, availableRoutingO
|
|
|
35803
35808
|
return routingOutcome;
|
|
35804
35809
|
};
|
|
35805
35810
|
const smartCheckout = async (config, provider, itemRequirements, transactionOrGasAmount, routingOptions, onComplete, onFundingRoute, fundingRouteFullAmount = false) => {
|
|
35806
|
-
const
|
|
35811
|
+
const signer = provider.getSigner();
|
|
35812
|
+
const ownerAddress = await signer.getAddress();
|
|
35813
|
+
if (ownerAddress === undefined) {
|
|
35814
|
+
throw new Error('Owner address is undefined');
|
|
35815
|
+
}
|
|
35807
35816
|
let aggregatedItems = itemAggregator(itemRequirements);
|
|
35808
35817
|
const erc20AllowancePromise = hasERC20Allowances(provider, ownerAddress, aggregatedItems);
|
|
35809
35818
|
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.
|
|
131
|
+
const SDK_VERSION = '1.43.1-alpha';
|
|
132
132
|
const getFrameParentDomain = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|