@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/index.cjs CHANGED
@@ -185,7 +185,7 @@ const flattenProperties$1 = (properties) => {
185
185
  };
186
186
 
187
187
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
188
- const SDK_VERSION$1 = '1.43.0-alpha.4';
188
+ const SDK_VERSION$1 = '1.43.1-alpha';
189
189
  const getFrameParentDomain$1 = () => {
190
190
  if (isNode$1()) {
191
191
  return '';
@@ -14212,7 +14212,7 @@ class MultiRollupApiClients {
14212
14212
  }
14213
14213
 
14214
14214
  // eslint-disable-next-line @typescript-eslint/naming-convention
14215
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.43.0-alpha.4' };
14215
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.43.1-alpha' };
14216
14216
  const createConfig$1 = ({ basePath, headers, }) => {
14217
14217
  if (!basePath.trim()) {
14218
14218
  throw Error('basePath can not be empty');
@@ -14284,7 +14284,7 @@ class APIError extends Error {
14284
14284
 
14285
14285
  /* eslint-disable implicit-arrow-linebreak */
14286
14286
  const defaultHeaders$1 = {
14287
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.0-alpha.4',
14287
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.1-alpha',
14288
14288
  };
14289
14289
  /**
14290
14290
  * createAPIConfiguration to create a custom Configuration
@@ -14758,7 +14758,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14758
14758
  /* eslint-disable @typescript-eslint/naming-convention */
14759
14759
  class ApiConfiguration extends index$2.Configuration {
14760
14760
  }
14761
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.0-alpha.4' };
14761
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.1-alpha' };
14762
14762
  /**
14763
14763
  * @dev use createImmutableXConfiguration instead
14764
14764
  */
@@ -14799,7 +14799,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14799
14799
  coreContractAddress,
14800
14800
  registrationContractAddress,
14801
14801
  registrationV4ContractAddress,
14802
- sdkVersion: 'ts-immutable-sdk-1.43.0-alpha.4',
14802
+ sdkVersion: 'ts-immutable-sdk-1.43.1-alpha',
14803
14803
  baseConfig,
14804
14804
  });
14805
14805
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -52226,7 +52226,7 @@ const flattenProperties = (properties) => {
52226
52226
  };
52227
52227
 
52228
52228
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52229
- const SDK_VERSION = '1.43.0-alpha.4';
52229
+ const SDK_VERSION = '1.43.1-alpha';
52230
52230
  const getFrameParentDomain = () => {
52231
52231
  if (isNode()) {
52232
52232
  return '';
@@ -57545,7 +57545,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57545
57545
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
57546
57546
  };
57547
57547
 
57548
- const SDK_VERSION_MARKER = '1.43.0-alpha.4';
57548
+ const SDK_VERSION_MARKER = '1.43.1-alpha';
57549
57549
  // This SDK version is replaced by the `yarn build` command ran on the root level
57550
57550
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57551
57551
 
@@ -59313,8 +59313,13 @@ const getERC721Balances = async (provider, ownerAddress, itemRequirements) => {
59313
59313
  // Convert ERC721 ownership into a balance result
59314
59314
  const erc721Owners = await Promise.all(erc721OwnershipPromises.values());
59315
59315
  const erc721OwnersPromiseIds = Array.from(erc721OwnershipPromises.keys());
59316
+ debugger; // eslint-disable-line
59316
59317
  erc721Owners.forEach((erc721OwnerAddress, index) => {
59317
59318
  const itemRequirement = erc721s.get(erc721OwnersPromiseIds[index]);
59319
+ console.log('🚀 ~ itemRequirement:', itemRequirement);
59320
+ console.log('🚀 ~ ownerAddress:', ownerAddress);
59321
+ console.log('🚀 ~ erc721OwnerAddress:', erc721OwnerAddress);
59322
+ console.log('🚀 ~ isMatchingAddress:', isMatchingAddress(ownerAddress, erc721OwnerAddress));
59318
59323
  let itemCount = 0;
59319
59324
  if (itemRequirement && isMatchingAddress(ownerAddress, erc721OwnerAddress)) {
59320
59325
  itemCount = 1;
@@ -60744,7 +60749,11 @@ const processRoutes = async (config, ownerAddress, sufficient, availableRoutingO
60744
60749
  return routingOutcome;
60745
60750
  };
60746
60751
  const smartCheckout = async (config, provider, itemRequirements, transactionOrGasAmount, routingOptions, onComplete, onFundingRoute, fundingRouteFullAmount = false) => {
60747
- const ownerAddress = await provider.getSigner().getAddress();
60752
+ const signer = provider.getSigner();
60753
+ const ownerAddress = await signer.getAddress();
60754
+ if (ownerAddress === undefined) {
60755
+ throw new Error('Owner address is undefined');
60756
+ }
60748
60757
  let aggregatedItems = itemAggregator(itemRequirements);
60749
60758
  const erc20AllowancePromise = hasERC20Allowances(provider, ownerAddress, aggregatedItems);
60750
60759
  const erc721AllowancePromise = hasERC721Allowances(provider, ownerAddress, aggregatedItems);
package/dist/index.js CHANGED
@@ -162,7 +162,7 @@ const flattenProperties$1 = (properties) => {
162
162
  };
163
163
 
164
164
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
165
- const SDK_VERSION$1 = '1.43.0-alpha.4';
165
+ const SDK_VERSION$1 = '1.43.1-alpha';
166
166
  const getFrameParentDomain$1 = () => {
167
167
  if (isNode$1()) {
168
168
  return '';
@@ -14189,7 +14189,7 @@ class MultiRollupApiClients {
14189
14189
  }
14190
14190
 
14191
14191
  // eslint-disable-next-line @typescript-eslint/naming-convention
14192
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.43.0-alpha.4' };
14192
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.43.1-alpha' };
14193
14193
  const createConfig$1 = ({ basePath, headers, }) => {
14194
14194
  if (!basePath.trim()) {
14195
14195
  throw Error('basePath can not be empty');
@@ -14261,7 +14261,7 @@ class APIError extends Error {
14261
14261
 
14262
14262
  /* eslint-disable implicit-arrow-linebreak */
14263
14263
  const defaultHeaders$1 = {
14264
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.0-alpha.4',
14264
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.1-alpha',
14265
14265
  };
14266
14266
  /**
14267
14267
  * createAPIConfiguration to create a custom Configuration
@@ -14735,7 +14735,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14735
14735
  /* eslint-disable @typescript-eslint/naming-convention */
14736
14736
  class ApiConfiguration extends index$2.Configuration {
14737
14737
  }
14738
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.0-alpha.4' };
14738
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.1-alpha' };
14739
14739
  /**
14740
14740
  * @dev use createImmutableXConfiguration instead
14741
14741
  */
@@ -14776,7 +14776,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14776
14776
  coreContractAddress,
14777
14777
  registrationContractAddress,
14778
14778
  registrationV4ContractAddress,
14779
- sdkVersion: 'ts-immutable-sdk-1.43.0-alpha.4',
14779
+ sdkVersion: 'ts-immutable-sdk-1.43.1-alpha',
14780
14780
  baseConfig,
14781
14781
  });
14782
14782
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -52203,7 +52203,7 @@ const flattenProperties = (properties) => {
52203
52203
  };
52204
52204
 
52205
52205
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52206
- const SDK_VERSION = '1.43.0-alpha.4';
52206
+ const SDK_VERSION = '1.43.1-alpha';
52207
52207
  const getFrameParentDomain = () => {
52208
52208
  if (isNode()) {
52209
52209
  return '';
@@ -57522,7 +57522,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57522
57522
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
57523
57523
  };
57524
57524
 
57525
- const SDK_VERSION_MARKER = '1.43.0-alpha.4';
57525
+ const SDK_VERSION_MARKER = '1.43.1-alpha';
57526
57526
  // This SDK version is replaced by the `yarn build` command ran on the root level
57527
57527
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57528
57528
 
@@ -59290,8 +59290,13 @@ const getERC721Balances = async (provider, ownerAddress, itemRequirements) => {
59290
59290
  // Convert ERC721 ownership into a balance result
59291
59291
  const erc721Owners = await Promise.all(erc721OwnershipPromises.values());
59292
59292
  const erc721OwnersPromiseIds = Array.from(erc721OwnershipPromises.keys());
59293
+ debugger; // eslint-disable-line
59293
59294
  erc721Owners.forEach((erc721OwnerAddress, index) => {
59294
59295
  const itemRequirement = erc721s.get(erc721OwnersPromiseIds[index]);
59296
+ console.log('🚀 ~ itemRequirement:', itemRequirement);
59297
+ console.log('🚀 ~ ownerAddress:', ownerAddress);
59298
+ console.log('🚀 ~ erc721OwnerAddress:', erc721OwnerAddress);
59299
+ console.log('🚀 ~ isMatchingAddress:', isMatchingAddress(ownerAddress, erc721OwnerAddress));
59295
59300
  let itemCount = 0;
59296
59301
  if (itemRequirement && isMatchingAddress(ownerAddress, erc721OwnerAddress)) {
59297
59302
  itemCount = 1;
@@ -60721,7 +60726,11 @@ const processRoutes = async (config, ownerAddress, sufficient, availableRoutingO
60721
60726
  return routingOutcome;
60722
60727
  };
60723
60728
  const smartCheckout = async (config, provider, itemRequirements, transactionOrGasAmount, routingOptions, onComplete, onFundingRoute, fundingRouteFullAmount = false) => {
60724
- const ownerAddress = await provider.getSigner().getAddress();
60729
+ const signer = provider.getSigner();
60730
+ const ownerAddress = await signer.getAddress();
60731
+ if (ownerAddress === undefined) {
60732
+ throw new Error('Owner address is undefined');
60733
+ }
60725
60734
  let aggregatedItems = itemAggregator(itemRequirements);
60726
60735
  const erc20AllowancePromise = hasERC20Allowances(provider, ownerAddress, aggregatedItems);
60727
60736
  const erc721AllowancePromise = hasERC721Allowances(provider, ownerAddress, aggregatedItems);
@@ -5286,7 +5286,7 @@ const flattenProperties = (properties) => {
5286
5286
  };
5287
5287
 
5288
5288
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
5289
- const SDK_VERSION = '1.43.0-alpha.4';
5289
+ const SDK_VERSION = '1.43.1-alpha';
5290
5290
  const getFrameParentDomain = () => {
5291
5291
  if (isNode()) {
5292
5292
  return '';
@@ -5554,7 +5554,7 @@ class APIError extends Error {
5554
5554
 
5555
5555
  /* eslint-disable implicit-arrow-linebreak */
5556
5556
  const defaultHeaders = {
5557
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.0-alpha.4',
5557
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.1-alpha',
5558
5558
  };
5559
5559
  /**
5560
5560
  * createAPIConfiguration to create a custom Configuration
package/dist/orderbook.js CHANGED
@@ -133,7 +133,7 @@ const flattenProperties = (properties) => {
133
133
  };
134
134
 
135
135
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
136
- const SDK_VERSION = '1.43.0-alpha.4';
136
+ const SDK_VERSION = '1.43.1-alpha';
137
137
  const getFrameParentDomain = () => {
138
138
  if (isNode()) {
139
139
  return '';
package/dist/passport.js CHANGED
@@ -11459,7 +11459,7 @@ class MultiRollupApiClients {
11459
11459
  }
11460
11460
 
11461
11461
  // eslint-disable-next-line @typescript-eslint/naming-convention
11462
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.43.0-alpha.4' };
11462
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.43.1-alpha' };
11463
11463
  const createConfig$1 = ({ basePath, headers, }) => {
11464
11464
  if (!basePath.trim()) {
11465
11465
  throw Error('basePath can not be empty');
@@ -11638,7 +11638,7 @@ const flattenProperties = (properties) => {
11638
11638
  };
11639
11639
 
11640
11640
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11641
- const SDK_VERSION = '1.43.0-alpha.4';
11641
+ const SDK_VERSION = '1.43.1-alpha';
11642
11642
  const getFrameParentDomain = () => {
11643
11643
  if (isNode()) {
11644
11644
  return '';
@@ -12028,7 +12028,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
12028
12028
  /* eslint-disable @typescript-eslint/naming-convention */
12029
12029
  class ApiConfiguration extends index$2.Configuration {
12030
12030
  }
12031
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.0-alpha.4' };
12031
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.1-alpha' };
12032
12032
  /**
12033
12033
  * @dev use createImmutableXConfiguration instead
12034
12034
  */
@@ -12069,7 +12069,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
12069
12069
  coreContractAddress,
12070
12070
  registrationContractAddress,
12071
12071
  registrationV4ContractAddress,
12072
- sdkVersion: 'ts-immutable-sdk-1.43.0-alpha.4',
12072
+ sdkVersion: 'ts-immutable-sdk-1.43.1-alpha',
12073
12073
  baseConfig,
12074
12074
  });
12075
12075
  const production = ({ baseConfig }) => createImmutableXConfiguration({
package/dist/webhook.js CHANGED
@@ -129,7 +129,7 @@ const flattenProperties = (properties) => {
129
129
  };
130
130
 
131
131
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
132
- const SDK_VERSION = '1.43.0-alpha.4';
132
+ const SDK_VERSION = '1.43.1-alpha';
133
133
  const getFrameParentDomain = () => {
134
134
  if (isNode()) {
135
135
  return '';
package/dist/x.js CHANGED
@@ -9003,7 +9003,7 @@ const flattenProperties = (properties) => {
9003
9003
  };
9004
9004
 
9005
9005
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
9006
- const SDK_VERSION = '1.43.0-alpha.4';
9006
+ const SDK_VERSION = '1.43.1-alpha';
9007
9007
  const getFrameParentDomain = () => {
9008
9008
  if (isNode()) {
9009
9009
  return '';
@@ -9269,7 +9269,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
9269
9269
  /* eslint-disable @typescript-eslint/naming-convention */
9270
9270
  class ApiConfiguration extends index$2.Configuration {
9271
9271
  }
9272
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.0-alpha.4' };
9272
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.1-alpha' };
9273
9273
  /**
9274
9274
  * @dev use createImmutableXConfiguration instead
9275
9275
  */
@@ -9310,7 +9310,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9310
9310
  coreContractAddress,
9311
9311
  registrationContractAddress,
9312
9312
  registrationV4ContractAddress,
9313
- sdkVersion: 'ts-immutable-sdk-1.43.0-alpha.4',
9313
+ sdkVersion: 'ts-immutable-sdk-1.43.1-alpha',
9314
9314
  baseConfig,
9315
9315
  });
9316
9316
  const production = ({ baseConfig }) => createImmutableXConfiguration({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Typescript SDK",
4
- "version": "1.43.0-alpha.4",
4
+ "version": "1.43.1-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",