@imtbl/sdk 0.26.0 → 0.27.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/index.cjs CHANGED
@@ -719,13 +719,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
719
719
  * List all collections
720
720
  * @summary List all collections
721
721
  * @param {string} chainName The name of chain
722
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
722
723
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
723
724
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
724
725
  * @param {number} [pageSize] Maximum number of items to return
725
726
  * @param {*} [options] Override http request option.
726
727
  * @throws {RequiredError}
727
728
  */
728
- listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
729
+ listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
729
730
  // verify required parameter 'chainName' is not null or undefined
730
731
  assertParamExists$1('listCollections', 'chainName', chainName);
731
732
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -739,6 +740,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
739
740
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
740
741
  const localVarHeaderParameter = {};
741
742
  const localVarQueryParameter = {};
743
+ if (contractAddress) {
744
+ localVarQueryParameter['contract_address'] = contractAddress;
745
+ }
742
746
  if (fromUpdatedAt !== undefined) {
743
747
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
744
748
  fromUpdatedAt.toISOString() :
@@ -864,14 +868,15 @@ const CollectionsApiFp = function (configuration) {
864
868
  * List all collections
865
869
  * @summary List all collections
866
870
  * @param {string} chainName The name of chain
871
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
867
872
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
868
873
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
869
874
  * @param {number} [pageSize] Maximum number of items to return
870
875
  * @param {*} [options] Override http request option.
871
876
  * @throws {RequiredError}
872
877
  */
873
- async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
874
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
878
+ async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
875
880
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
876
881
  },
877
882
  /**
@@ -925,14 +930,15 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
925
930
  * List all collections
926
931
  * @summary List all collections
927
932
  * @param {string} chainName The name of chain
933
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
928
934
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
929
935
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
930
936
  * @param {number} [pageSize] Maximum number of items to return
931
937
  * @param {*} [options] Override http request option.
932
938
  * @throws {RequiredError}
933
939
  */
934
- listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
935
- return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
940
+ listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
941
+ return localVarFp.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
936
942
  },
937
943
  /**
938
944
  * List collections by NFT owner account address
@@ -988,7 +994,7 @@ class CollectionsApi extends BaseAPI$1 {
988
994
  * @memberof CollectionsApi
989
995
  */
990
996
  listCollections(requestParameters, options) {
991
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
997
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
992
998
  }
993
999
  /**
994
1000
  * List collections by NFT owner account address
@@ -2242,7 +2248,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2242
2248
  * List all listings
2243
2249
  * @summary List all listings
2244
2250
  * @param {string} chainName
2245
- * @param {OrderStatus} [status] Order status to filter by
2251
+ * @param {OrderStatusName} [status] Order status to filter by
2246
2252
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2247
2253
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2248
2254
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -2421,7 +2427,7 @@ const OrdersApiFp = function (configuration) {
2421
2427
  * List all listings
2422
2428
  * @summary List all listings
2423
2429
  * @param {string} chainName
2424
- * @param {OrderStatus} [status] Order status to filter by
2430
+ * @param {OrderStatusName} [status] Order status to filter by
2425
2431
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2426
2432
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2427
2433
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -2520,7 +2526,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2520
2526
  * List all listings
2521
2527
  * @summary List all listings
2522
2528
  * @param {string} chainName
2523
- * @param {OrderStatus} [status] Order status to filter by
2529
+ * @param {OrderStatusName} [status] Order status to filter by
2524
2530
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2525
2531
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2526
2532
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -3217,6 +3223,23 @@ const APIError501AllOfCodeEnum = {
3217
3223
  NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
3218
3224
  };
3219
3225
 
3226
+ /* tslint:disable */
3227
+ /* eslint-disable */
3228
+ /**
3229
+ * Immutable zkEVM API
3230
+ * Immutable Multi Rollup API
3231
+ *
3232
+ * The version of the OpenAPI document: 1.0.0
3233
+ * Contact: support@immutable.com
3234
+ *
3235
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3236
+ * https://openapi-generator.tech
3237
+ * Do not edit the class manually.
3238
+ */
3239
+ const ActiveOrderStatusNameEnum = {
3240
+ Active: 'ACTIVE'
3241
+ };
3242
+
3220
3243
  /* tslint:disable */
3221
3244
  /* eslint-disable */
3222
3245
  /**
@@ -3257,8 +3280,12 @@ const ActivityType = {
3257
3280
  * https://openapi-generator.tech
3258
3281
  * Do not edit the class manually.
3259
3282
  */
3260
- const CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum = {
3261
- AlreadyFilled: 'ALREADY_FILLED'
3283
+ const CancelledOrderStatusNameEnum = {
3284
+ Cancelled: 'CANCELLED'
3285
+ };
3286
+ const CancelledOrderStatusCancellationTypeEnum = {
3287
+ OnChain: 'ON_CHAIN',
3288
+ OffChain: 'OFF_CHAIN'
3262
3289
  };
3263
3290
 
3264
3291
  /* tslint:disable */
@@ -3317,6 +3344,40 @@ const ERC721ItemItemTypeEnum = {
3317
3344
  Erc721: 'ERC721'
3318
3345
  };
3319
3346
 
3347
+ /* tslint:disable */
3348
+ /* eslint-disable */
3349
+ /**
3350
+ * Immutable zkEVM API
3351
+ * Immutable Multi Rollup API
3352
+ *
3353
+ * The version of the OpenAPI document: 1.0.0
3354
+ * Contact: support@immutable.com
3355
+ *
3356
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3357
+ * https://openapi-generator.tech
3358
+ * Do not edit the class manually.
3359
+ */
3360
+ const ExpiredOrderStatusNameEnum = {
3361
+ Expired: 'EXPIRED'
3362
+ };
3363
+
3364
+ /* tslint:disable */
3365
+ /* eslint-disable */
3366
+ /**
3367
+ * Immutable zkEVM API
3368
+ * Immutable Multi Rollup API
3369
+ *
3370
+ * The version of the OpenAPI document: 1.0.0
3371
+ * Contact: support@immutable.com
3372
+ *
3373
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3374
+ * https://openapi-generator.tech
3375
+ * Do not edit the class manually.
3376
+ */
3377
+ const FailedOrderCancellationReasonCodeEnum = {
3378
+ AlreadyFilled: 'ALREADY_FILLED'
3379
+ };
3380
+
3320
3381
  /* tslint:disable */
3321
3382
  /* eslint-disable */
3322
3383
  /**
@@ -3337,6 +3398,40 @@ const FeeFeeTypeEnum = {
3337
3398
  Protocol: 'PROTOCOL'
3338
3399
  };
3339
3400
 
3401
+ /* tslint:disable */
3402
+ /* eslint-disable */
3403
+ /**
3404
+ * Immutable zkEVM API
3405
+ * Immutable Multi Rollup API
3406
+ *
3407
+ * The version of the OpenAPI document: 1.0.0
3408
+ * Contact: support@immutable.com
3409
+ *
3410
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3411
+ * https://openapi-generator.tech
3412
+ * Do not edit the class manually.
3413
+ */
3414
+ const FilledOrderStatusNameEnum = {
3415
+ Filled: 'FILLED'
3416
+ };
3417
+
3418
+ /* tslint:disable */
3419
+ /* eslint-disable */
3420
+ /**
3421
+ * Immutable zkEVM API
3422
+ * Immutable Multi Rollup API
3423
+ *
3424
+ * The version of the OpenAPI document: 1.0.0
3425
+ * Contact: support@immutable.com
3426
+ *
3427
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3428
+ * https://openapi-generator.tech
3429
+ * Do not edit the class manually.
3430
+ */
3431
+ const InactiveOrderStatusNameEnum = {
3432
+ Inactive: 'INACTIVE'
3433
+ };
3434
+
3340
3435
  /* tslint:disable */
3341
3436
  /* eslint-disable */
3342
3437
  /**
@@ -3394,13 +3489,30 @@ const NativeItemItemTypeEnum = {
3394
3489
  * @export
3395
3490
  * @enum {string}
3396
3491
  */
3397
- const OrderStatus = {
3492
+ const OrderStatusName$1 = {
3398
3493
  Pending: 'PENDING',
3399
3494
  Active: 'ACTIVE',
3400
3495
  Inactive: 'INACTIVE',
3401
3496
  Filled: 'FILLED',
3402
- Cancelled: 'CANCELLED',
3403
- Expired: 'EXPIRED'
3497
+ Expired: 'EXPIRED',
3498
+ Cancelled: 'CANCELLED'
3499
+ };
3500
+
3501
+ /* tslint:disable */
3502
+ /* eslint-disable */
3503
+ /**
3504
+ * Immutable zkEVM API
3505
+ * Immutable Multi Rollup API
3506
+ *
3507
+ * The version of the OpenAPI document: 1.0.0
3508
+ * Contact: support@immutable.com
3509
+ *
3510
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3511
+ * https://openapi-generator.tech
3512
+ * Do not edit the class manually.
3513
+ */
3514
+ const PendingOrderStatusNameEnum = {
3515
+ Pending: 'PENDING'
3404
3516
  };
3405
3517
 
3406
3518
  /* tslint:disable */
@@ -3482,12 +3594,14 @@ var index = /*#__PURE__*/Object.freeze({
3482
3594
  APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
3483
3595
  APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
3484
3596
  APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
3597
+ ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
3485
3598
  ActivitiesApi: ActivitiesApi,
3486
3599
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
3487
3600
  ActivitiesApiFactory: ActivitiesApiFactory,
3488
3601
  ActivitiesApiFp: ActivitiesApiFp,
3489
3602
  ActivityType: ActivityType,
3490
- CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum: CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum,
3603
+ CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
3604
+ CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
3491
3605
  ChainsApi: ChainsApi,
3492
3606
  ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
3493
3607
  ChainsApiFactory: ChainsApiFactory,
@@ -3500,7 +3614,11 @@ var index = /*#__PURE__*/Object.freeze({
3500
3614
  Configuration: Configuration$2,
3501
3615
  ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
3502
3616
  ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
3617
+ ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
3618
+ FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
3503
3619
  FeeFeeTypeEnum: FeeFeeTypeEnum,
3620
+ FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
3621
+ InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
3504
3622
  MetadataApi: MetadataApi,
3505
3623
  MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
3506
3624
  MetadataApiFactory: MetadataApiFactory,
@@ -3515,7 +3633,7 @@ var index = /*#__PURE__*/Object.freeze({
3515
3633
  NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
3516
3634
  NftsApiFactory: NftsApiFactory,
3517
3635
  NftsApiFp: NftsApiFp,
3518
- OrderStatus: OrderStatus,
3636
+ OrderStatusName: OrderStatusName$1,
3519
3637
  OrdersApi: OrdersApi,
3520
3638
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
3521
3639
  OrdersApiFactory: OrdersApiFactory,
@@ -3524,6 +3642,7 @@ var index = /*#__PURE__*/Object.freeze({
3524
3642
  PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
3525
3643
  PassportApiFactory: PassportApiFactory,
3526
3644
  PassportApiFp: PassportApiFp,
3645
+ PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
3527
3646
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
3528
3647
  SaleFeeTypeEnum: SaleFeeTypeEnum,
3529
3648
  TokenContractType: TokenContractType,
@@ -3555,7 +3674,7 @@ class MultiRollupApiClients {
3555
3674
  }
3556
3675
 
3557
3676
  // eslint-disable-next-line @typescript-eslint/naming-convention
3558
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.26.0' };
3677
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.27.1' };
3559
3678
  const createConfig = ({ basePath, headers, }) => {
3560
3679
  if (!basePath.trim()) {
3561
3680
  throw Error('basePath can not be empty');
@@ -3615,7 +3734,7 @@ class APIError extends Error {
3615
3734
 
3616
3735
  /* eslint-disable implicit-arrow-linebreak */
3617
3736
  const defaultHeaders = {
3618
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.26.0',
3737
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.1',
3619
3738
  };
3620
3739
  /**
3621
3740
  * createAPIConfiguration to create a custom Configuration
@@ -4019,7 +4138,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4019
4138
  chainID,
4020
4139
  coreContractAddress,
4021
4140
  registrationContractAddress,
4022
- sdkVersion: 'ts-immutable-sdk-0.26.0',
4141
+ sdkVersion: 'ts-immutable-sdk-0.27.1',
4023
4142
  });
4024
4143
  /**
4025
4144
  * Sets `sdkVersion` at the time of build
@@ -32040,15 +32159,6 @@ const $c16168a9c28ae4fd$export$92606e71d0a264ff = async (config, ownerAddress, b
32040
32159
  fundingRoutes: []
32041
32160
  };
32042
32161
  let priority = 0;
32043
- if (bridgeFundingStep) {
32044
- priority++;
32045
- response.fundingRoutes.push({
32046
- priority: priority,
32047
- steps: [
32048
- bridgeFundingStep
32049
- ]
32050
- });
32051
- }
32052
32162
  if (swapFundingSteps.length > 0) {
32053
32163
  priority++;
32054
32164
  swapFundingSteps.forEach((swapFundingStep)=>{
@@ -32060,6 +32170,15 @@ const $c16168a9c28ae4fd$export$92606e71d0a264ff = async (config, ownerAddress, b
32060
32170
  });
32061
32171
  });
32062
32172
  }
32173
+ if (bridgeFundingStep) {
32174
+ priority++;
32175
+ response.fundingRoutes.push({
32176
+ priority: priority,
32177
+ steps: [
32178
+ bridgeFundingStep
32179
+ ]
32180
+ });
32181
+ }
32063
32182
  if (onRampFundingStep) {
32064
32183
  priority++;
32065
32184
  response.fundingRoutes.push({
@@ -32107,12 +32226,10 @@ const $0e7419077c373b24$export$9e073f9ada8c81e6 = async (config, provider, itemR
32107
32226
  };
32108
32227
  const availableRoutingOptions = await ($7f2e17f026d4fc8d$export$86d9f998ddda013e)(config, provider);
32109
32228
  const routingOutcome = await ($c16168a9c28ae4fd$export$92606e71d0a264ff)(config, ownerAddress, balanceCheckResult, availableRoutingOptions);
32110
- const isPassport = provider.provider?.isPassport || false;
32111
32229
  return {
32112
32230
  sufficient: sufficient,
32113
32231
  transactionRequirements: transactionRequirements,
32114
32232
  router: {
32115
- isPassport: isPassport,
32116
32233
  availableRoutingOptions: availableRoutingOptions,
32117
32234
  routingOutcome: routingOutcome
32118
32235
  }
@@ -32326,7 +32443,7 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
32326
32443
  let order;
32327
32444
  let spenderAddress = "";
32328
32445
  const gasLimit = (constants).estimatedFulfillmentGasGwei;
32329
- if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were passed in, must pass at least one order", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).FULFILL_ORDER_LISTING_ERROR);
32446
+ if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were provided to the orders array. Please provide at least one order.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).FULFILL_ORDER_LISTING_ERROR);
32330
32447
  const { id: id, takerFees: takerFees } = orders[0];
32331
32448
  try {
32332
32449
  orderbook = await $67fc622a2b913d5f$export$c60ce6c6a92bc2ff(config);
@@ -32402,9 +32519,7 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
32402
32519
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).FAILED,
32403
32520
  transactionHash: approvalResult.transactionHash,
32404
32521
  reason: approvalResult.reason,
32405
- smartCheckoutResult: [
32406
- smartCheckoutResult
32407
- ]
32522
+ smartCheckoutResult: smartCheckoutResult
32408
32523
  };
32409
32524
  try {
32410
32525
  if (unsignedFulfillmentTransactions.length === 0) unsignedFulfillmentTransactions = await (0, $a7367d01c6e76b1c$export$396bd6ce7d3ab533)(orderActions);
@@ -32418,22 +32533,16 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
32418
32533
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).FAILED,
32419
32534
  transactionHash: fulfillmentResult.transactionHash,
32420
32535
  reason: fulfillmentResult.reason,
32421
- smartCheckoutResult: [
32422
- smartCheckoutResult
32423
- ]
32536
+ smartCheckoutResult: smartCheckoutResult
32424
32537
  };
32425
32538
  return {
32426
32539
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).SUCCESS,
32427
- smartCheckoutResult: [
32428
- smartCheckoutResult
32429
- ]
32540
+ smartCheckoutResult: smartCheckoutResult
32430
32541
  };
32431
32542
  }
32432
32543
  return {
32433
32544
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).INSUFFICIENT_FUNDS,
32434
- smartCheckoutResult: [
32435
- smartCheckoutResult
32436
- ]
32545
+ smartCheckoutResult: smartCheckoutResult
32437
32546
  };
32438
32547
  };
32439
32548
 
@@ -32447,7 +32556,7 @@ const $64863c39386de592$export$7f8e2b98eca5a7f0 = async (config, provider, order
32447
32556
 
32448
32557
  const $9c3db1bb9c8b69d3$export$70b61ad426ddbe54 = async (config, provider, orderIds)=>{
32449
32558
  let unsignedCancelOrderTransaction;
32450
- if (orderIds.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orderIds were passed in, must pass at least one orderId to cancel", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).CANCEL_ORDER_LISTING_ERROR);
32559
+ if (orderIds.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orderIds were provided to the orderIds array. Please provide at least one orderId.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).CANCEL_ORDER_LISTING_ERROR);
32451
32560
  // Update this when bulk cancel is supported
32452
32561
  const orderId = orderIds[0];
32453
32562
  try {
@@ -32508,7 +32617,7 @@ const $9085b221b72ac69e$export$e761f9e0703de895 = async (config, provider, order
32508
32617
  let orderbook;
32509
32618
  let listing;
32510
32619
  let spenderAddress = "";
32511
- if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were parsed, must parse at least one order", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PREPARE_ORDER_LISTING_ERROR);
32620
+ if (orders.length === 0) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No orders were provided to the orders array. Please provide at least one order.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PREPARE_ORDER_LISTING_ERROR);
32512
32621
  const { buyToken: buyToken, sellToken: sellToken, makerFees: makerFees } = orders[0];
32513
32622
  let decimals = 18;
32514
32623
  if (buyToken.type === ($4b58188d47aafe8d$export$1fc8f52ad1810e52).ERC20) {
@@ -32555,9 +32664,7 @@ const $9085b221b72ac69e$export$e761f9e0703de895 = async (config, provider, order
32555
32664
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).FAILED,
32556
32665
  transactionHash: approvalResult.transactionHash,
32557
32666
  reason: approvalResult.reason,
32558
- smartCheckoutResult: [
32559
- smartCheckoutResult
32560
- ]
32667
+ smartCheckoutResult: smartCheckoutResult
32561
32668
  };
32562
32669
  const unsignedMessage = ($a7367d01c6e76b1c$export$d62081fac18000c2)(listing.orderHash, listing.orderComponents, listing.actions);
32563
32670
  if (!unsignedMessage) // For sell it is expected the orderbook will always return an unsigned message
@@ -32594,16 +32701,12 @@ const $9085b221b72ac69e$export$e761f9e0703de895 = async (config, provider, order
32594
32701
  orderIds: [
32595
32702
  orderId
32596
32703
  ],
32597
- smartCheckoutResult: [
32598
- smartCheckoutResult
32599
- ]
32704
+ smartCheckoutResult: smartCheckoutResult
32600
32705
  };
32601
32706
  }
32602
32707
  return {
32603
32708
  status: ($4b58188d47aafe8d$export$de7bcda3c490bf18).INSUFFICIENT_FUNDS,
32604
- smartCheckoutResult: [
32605
- smartCheckoutResult
32606
- ]
32709
+ smartCheckoutResult: smartCheckoutResult
32607
32710
  };
32608
32711
  };
32609
32712
 
@@ -32960,7 +33063,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
32960
33063
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
32961
33064
 
32962
33065
 
32963
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.26.0";
33066
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.1";
32964
33067
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
32965
33068
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
32966
33069
 
@@ -33094,7 +33197,7 @@ var $207ed853f11d19d5$export$5a0ace85cae72d45;
33094
33197
  IMTBLWidgetEvents["IMTBL_SWAP_WIDGET_EVENT"] = "imtbl-swap-widget";
33095
33198
  IMTBLWidgetEvents["IMTBL_BRIDGE_WIDGET_EVENT"] = "imtbl-bridge-widget";
33096
33199
  IMTBLWidgetEvents["IMTBL_ONRAMP_WIDGET_EVENT"] = "imtbl-onramp-widget";
33097
- IMTBLWidgetEvents["IMTBL_PRIMARY_REVENUE_WIDGET_EVENT"] = "imtbl-primary-revenue-widget";
33200
+ IMTBLWidgetEvents["IMTBL_PRIMARY_REVENUE_WIDGET_EVENT"] = "imtbl-sale-widget";
33098
33201
  })($207ed853f11d19d5$export$5a0ace85cae72d45 || ($207ed853f11d19d5$export$5a0ace85cae72d45 = {}));
33099
33202
 
33100
33203
 
@@ -33134,18 +33237,18 @@ $parcel$export($53d219e7f6bf0cd6$exports, "SwapEventType", () => $53d219e7f6bf0c
33134
33237
  })($53d219e7f6bf0cd6$export$140a49745ab55563 || ($53d219e7f6bf0cd6$export$140a49745ab55563 = {}));
33135
33238
 
33136
33239
 
33137
- var $8c83f59522c4ca40$exports = {};
33240
+ var $9b3189b6b155842e$exports = {};
33138
33241
 
33139
- $parcel$export($8c83f59522c4ca40$exports, "PrimaryRevenueEventType", () => $8c83f59522c4ca40$export$b33478ffb988bd5e);
33242
+ $parcel$export($9b3189b6b155842e$exports, "SaleEventType", () => $9b3189b6b155842e$export$881881ffb3bd733e);
33140
33243
  /**
33141
- * Enum representing possible Primary Revenue Widget event types.
33142
- */ var $8c83f59522c4ca40$export$b33478ffb988bd5e;
33143
- (function(PrimaryRevenueEventType) {
33144
- PrimaryRevenueEventType["CLOSE_WIDGET"] = "close-widget";
33145
- PrimaryRevenueEventType["SUCCESS"] = "success";
33146
- PrimaryRevenueEventType["FAILURE"] = "failure";
33147
- PrimaryRevenueEventType["REJECTED"] = "rejected";
33148
- })($8c83f59522c4ca40$export$b33478ffb988bd5e || ($8c83f59522c4ca40$export$b33478ffb988bd5e = {}));
33244
+ * Enum representing possible Sale Widget event types.
33245
+ */ var $9b3189b6b155842e$export$881881ffb3bd733e;
33246
+ (function(SaleEventType) {
33247
+ SaleEventType["CLOSE_WIDGET"] = "close-widget";
33248
+ SaleEventType["SUCCESS"] = "success";
33249
+ SaleEventType["FAILURE"] = "failure";
33250
+ SaleEventType["REJECTED"] = "rejected";
33251
+ })($9b3189b6b155842e$export$881881ffb3bd733e || ($9b3189b6b155842e$export$881881ffb3bd733e = {}));
33149
33252
 
33150
33253
 
33151
33254
  var $15cc9e120aa6f3bf$exports = {};
@@ -33393,7 +33496,7 @@ var checkout_widgets = /*#__PURE__*/Object.freeze({
33393
33496
  get OnRampEventType () { return $d882ddc5600b1284$export$66ec39c0924078d8; },
33394
33497
  OnRampReact: $f94f63f2c041a04c$export$9e363c61ea99bbb4,
33395
33498
  get OrchestrationEventType () { return $ad06b030b1a3ba34$export$b80d2daf830437b9; },
33396
- get PrimaryRevenueEventType () { return $8c83f59522c4ca40$export$b33478ffb988bd5e; },
33499
+ get SaleEventType () { return $9b3189b6b155842e$export$881881ffb3bd733e; },
33397
33500
  get SwapEventType () { return $53d219e7f6bf0cd6$export$140a49745ab55563; },
33398
33501
  SwapReact: $a4fbb8e3a6aeff58$export$971e031379577f4,
33399
33502
  UpdateConfig: $430e3eda76fa4d5f$export$bf1548ba7e61c17f,