@imtbl/sdk 0.30.4 → 0.30.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.
@@ -16526,13 +16526,13 @@ function mapFromOpenApiOrder(order) {
16526
16526
  return {
16527
16527
  type: 'ERC20',
16528
16528
  contractAddress: item.contract_address,
16529
- amount: item.start_amount,
16529
+ amount: item.amount,
16530
16530
  };
16531
16531
  }
16532
16532
  if (item.item_type === 'NATIVE') {
16533
16533
  return {
16534
16534
  type: 'NATIVE',
16535
- amount: item.start_amount,
16535
+ amount: item.amount,
16536
16536
  };
16537
16537
  }
16538
16538
  throw new Error('Buy items must be either ERC20 or NATIVE');
@@ -16580,13 +16580,13 @@ function mapFromOpenApiTrade(trade) {
16580
16580
  return {
16581
16581
  type: 'ERC20',
16582
16582
  contractAddress: item.contract_address,
16583
- amount: item.start_amount,
16583
+ amount: item.amount,
16584
16584
  };
16585
16585
  }
16586
16586
  if (item.item_type === 'NATIVE') {
16587
16587
  return {
16588
16588
  type: 'NATIVE',
16589
- amount: item.start_amount,
16589
+ amount: item.amount,
16590
16590
  };
16591
16591
  }
16592
16592
  throw new Error('Buy items must be either ERC20 or NATIVE');
@@ -16726,8 +16726,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
16726
16726
  switch (buyItem.item_type) {
16727
16727
  case 'NATIVE':
16728
16728
  return {
16729
- startAmount: buyItem.start_amount,
16730
- endAmount: buyItem.start_amount,
16729
+ startAmount: buyItem.amount,
16730
+ endAmount: buyItem.amount,
16731
16731
  itemType: ItemType$1.NATIVE,
16732
16732
  recipient: order.account_address,
16733
16733
  token: constants$1.AddressZero,
@@ -16735,8 +16735,8 @@ function mapImmutableOrderToSeaportOrderComponents(order, counter, zoneAddress)
16735
16735
  };
16736
16736
  case 'ERC20':
16737
16737
  return {
16738
- startAmount: buyItem.start_amount,
16739
- endAmount: buyItem.start_amount,
16738
+ startAmount: buyItem.amount,
16739
+ endAmount: buyItem.amount,
16740
16740
  itemType: ItemType$1.ERC20,
16741
16741
  recipient: order.account_address,
16742
16742
  token: buyItem.contract_address || constants$1.AddressZero,
@@ -17057,7 +17057,7 @@ class ImmutableApiClient {
17057
17057
  === ItemType$1.NATIVE
17058
17058
  ? 'NATIVE'
17059
17059
  : 'ERC20',
17060
- start_amount: orderComponents.consideration[0].startAmount,
17060
+ amount: orderComponents.consideration[0].startAmount,
17061
17061
  contract_address: orderComponents.consideration[0].token,
17062
17062
  },
17063
17063
  ],
@@ -20911,7 +20911,7 @@ class APIError extends Error {
20911
20911
 
20912
20912
  /* eslint-disable implicit-arrow-linebreak */
20913
20913
  const defaultHeaders = {
20914
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.30.4',
20914
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.30.5',
20915
20915
  };
20916
20916
  /**
20917
20917
  * createAPIConfiguration to create a custom Configuration
@@ -25626,7 +25626,7 @@ async function getItemRequirementsFromRequirements(provider, requirements) {
25626
25626
  return itemRequirements;
25627
25627
  }
25628
25628
 
25629
- const SDK_VERSION_MARKER = '0.30.4';
25629
+ const SDK_VERSION_MARKER = '0.30.5';
25630
25630
  // This SDK version is replaced by the `yarn build` command ran on the root level
25631
25631
  const globalPackageVersion = () => SDK_VERSION_MARKER;
25632
25632
 
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
17
17
  chainID,
18
18
  coreContractAddress,
19
19
  registrationContractAddress,
20
- sdkVersion: 'ts-immutable-sdk-0.30.4',
20
+ sdkVersion: 'ts-immutable-sdk-0.30.5',
21
21
  });
22
22
  /**
23
23
  * Sets `sdkVersion` at the time of build