@imtbl/sdk 1.40.0-alpha.1 → 1.40.0-alpha.2

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.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.40.0-alpha.1';
165
+ const SDK_VERSION$1 = '1.40.0-alpha.2';
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.40.0-alpha.1' };
14192
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.2' };
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.40.0-alpha.1',
14264
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.0-alpha.2',
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.40.0-alpha.1' };
14738
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.2' };
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.40.0-alpha.1',
14779
+ sdkVersion: 'ts-immutable-sdk-1.40.0-alpha.2',
14780
14780
  baseConfig,
14781
14781
  });
14782
14782
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -60925,7 +60925,7 @@ const flattenProperties = (properties) => {
60925
60925
  };
60926
60926
 
60927
60927
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
60928
- const SDK_VERSION = '1.40.0-alpha.1';
60928
+ const SDK_VERSION = '1.40.0-alpha.2';
60929
60929
  const getFrameParentDomain = () => {
60930
60930
  if (isNode()) {
60931
60931
  return '';
@@ -66243,7 +66243,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
66243
66243
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
66244
66244
  };
66245
66245
 
66246
- const SDK_VERSION_MARKER = '1.40.0-alpha.1';
66246
+ const SDK_VERSION_MARKER = '1.40.0-alpha.2';
66247
66247
  // This SDK version is replaced by the `yarn build` command ran on the root level
66248
66248
  const globalPackageVersion = () => SDK_VERSION_MARKER;
66249
66249
 
@@ -72043,6 +72043,96 @@ const handle = async (body, env, handlers) => {
72043
72043
  await handlers?.zkevmMintRequestUpdated(event);
72044
72044
  }
72045
72045
  break;
72046
+ case 'imtbl_zkevm_activity_mint':
72047
+ if (handlers?.zkEvmActivityMint) {
72048
+ await handlers?.zkEvmActivityMint(event);
72049
+ }
72050
+ break;
72051
+ case 'imtbl_zkevm_activity_burn':
72052
+ if (handlers?.zkEvmActivityBurn) {
72053
+ await handlers?.zkEvmActivityBurn(event);
72054
+ }
72055
+ break;
72056
+ case 'imtbl_zkevm_activity_transfer':
72057
+ if (handlers?.zkEvmActivityTransfer) {
72058
+ await handlers?.zkEvmActivityTransfer(event);
72059
+ }
72060
+ break;
72061
+ case 'imtbl_zkevm_activity_sale':
72062
+ if (handlers?.zkEvmActivitySale) {
72063
+ await handlers?.zkEvmActivitySale(event);
72064
+ }
72065
+ break;
72066
+ case 'imtbl_zkevm_activity_deposit':
72067
+ if (handlers?.zkEvmActivityDeposit) {
72068
+ await handlers?.zkEvmActivityDeposit(event);
72069
+ }
72070
+ break;
72071
+ case 'imtbl_zkevm_activity_withdrawal':
72072
+ if (handlers?.zkEvmActivityWithdrawal) {
72073
+ await handlers?.zkEvmActivityWithdrawal(event);
72074
+ }
72075
+ break;
72076
+ case 'imtbl_zkevm_collection_updated':
72077
+ if (handlers?.zkEvmCollectionUpdated) {
72078
+ await handlers?.zkEvmCollectionUpdated(event);
72079
+ }
72080
+ break;
72081
+ case 'imtbl_zkevm_nft_updated':
72082
+ if (handlers?.zkEvmNftUpdated) {
72083
+ await handlers?.zkEvmNftUpdated(event);
72084
+ }
72085
+ break;
72086
+ case 'imtbl_zkevm_metadata_updated':
72087
+ if (handlers?.zkEvmMetadataUpdated) {
72088
+ await handlers?.zkEvmMetadataUpdated(event);
72089
+ }
72090
+ break;
72091
+ case 'imtbl_zkevm_token_updated':
72092
+ if (handlers?.zkEvmTokenUpdated) {
72093
+ await handlers?.zkEvmTokenUpdated(event);
72094
+ }
72095
+ break;
72096
+ case 'imtbl_zkevm_order_updated':
72097
+ if (handlers?.zkEvmOrderUpdated) {
72098
+ await handlers?.zkEvmOrderUpdated(event);
72099
+ }
72100
+ break;
72101
+ case 'imtbl_zkevm_trade_created':
72102
+ if (handlers?.zkEvmTradeCreated) {
72103
+ await handlers?.zkEvmTradeCreated(event);
72104
+ }
72105
+ break;
72106
+ case 'imtbl_x_nft_created':
72107
+ if (handlers?.xNftCreated) {
72108
+ await handlers?.xNftCreated(event);
72109
+ }
72110
+ break;
72111
+ case 'imtbl_x_nft_updated':
72112
+ if (handlers?.xNftUpdated) {
72113
+ await handlers?.xNftUpdated(event);
72114
+ }
72115
+ break;
72116
+ case 'imtbl_x_order_accepted':
72117
+ if (handlers?.xOrderAccepted) {
72118
+ await handlers?.xOrderAccepted(event);
72119
+ }
72120
+ break;
72121
+ case 'imtbl_x_order_filled':
72122
+ if (handlers?.xOrderFilled) {
72123
+ await handlers?.xOrderFilled(event);
72124
+ }
72125
+ break;
72126
+ case 'imtbl_x_order_cancelled':
72127
+ if (handlers?.xOrderCancelled) {
72128
+ await handlers?.xOrderCancelled(event);
72129
+ }
72130
+ break;
72131
+ case 'imtbl_x_transfer_created':
72132
+ if (handlers?.xTransferCreated) {
72133
+ await handlers?.xTransferCreated(event);
72134
+ }
72135
+ break;
72046
72136
  }
72047
72137
  if (handlers?.all) {
72048
72138
  await handlers?.all(event);
@@ -72597,9 +72687,7 @@ const processMint = async (mintingPersistence, event, logger = console) => {
72597
72687
 
72598
72688
  const noopHandlers = {
72599
72689
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
72600
- zkevmMintRequestUpdated: async (event) => { },
72601
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
72602
- all: async (..._args) => { }
72690
+ zkevmMintRequestUpdated: async (event) => { }
72603
72691
  };
72604
72692
  class MintingBackendModule {
72605
72693
  baseConfig;
@@ -72628,9 +72716,10 @@ class MintingBackendModule {
72628
72716
  await handle(body, this.baseConfig.environment, {
72629
72717
  zkevmMintRequestUpdated: async (event) => {
72630
72718
  await processMint(this.persistence, event, this.logger);
72631
- otherHandlers.zkevmMintRequestUpdated(event);
72632
- },
72633
- all: otherHandlers.all
72719
+ if (otherHandlers.zkevmMintRequestUpdated) {
72720
+ otherHandlers.zkevmMintRequestUpdated(event);
72721
+ }
72722
+ }
72634
72723
  });
72635
72724
  }
72636
72725
  }
@@ -21,52 +21,6 @@ interface ModuleConfiguration<T> {
21
21
  overrides?: T;
22
22
  }
23
23
 
24
- type CreateMintRequest = {
25
- contract_address: string;
26
- asset_id: string;
27
- metadata: any;
28
- owner_address: string;
29
- amount?: number;
30
- token_id?: string;
31
- };
32
- type MintRequest = {
33
- id: string;
34
- contract_address: string;
35
- wallet_address: string;
36
- asset_id: string;
37
- metadata: any;
38
- owner_address: string;
39
- tried_count: number;
40
- amount?: number;
41
- token_id?: string;
42
- };
43
- type SubmittedMintRequest = {
44
- tokenId: string | null;
45
- status: string;
46
- assetId: string;
47
- contractAddress: string;
48
- ownerAddress: string;
49
- metadataId: string;
50
- imtblZkevmMintRequestUpdatedId: string;
51
- error: any | null;
52
- amount: number | null;
53
- };
54
- interface MintingPersistence {
55
- recordMint: (request: CreateMintRequest) => Promise<void>;
56
- getNextBatchForSubmission: (limit: number) => Promise<MintRequest[]>;
57
- updateMintingStatusToSubmitted: (ids: string[]) => Promise<void>;
58
- updateMintingStatusToSubmissionFailed: (ids: string[]) => Promise<void>;
59
- syncMintingStatus: (submittedMintRequest: SubmittedMintRequest) => Promise<void>;
60
- markAsConflict: (assetIds: string[], contractAddress: string) => Promise<void>;
61
- resetMintingStatus: (ids: string[]) => Promise<void>;
62
- markForRetry: (ids: string[]) => Promise<void>;
63
- getMintingRequest: (contractAddress: string, referenceId: string) => Promise<MintRequest | null>;
64
- }
65
-
66
- declare const mintingPersistence$1: (client: Pool) => MintingPersistence;
67
-
68
- declare const mintingPersistence: (client: any) => MintingPersistence;
69
-
70
24
  /**
71
25
  * Immutable zkEVM API
72
26
  * Immutable Multi Rollup API
@@ -768,7 +722,7 @@ interface BlockchainMetadata {
768
722
  * @export
769
723
  * @interface Chain
770
724
  */
771
- interface Chain {
725
+ interface Chain$1 {
772
726
  /**
773
727
  * The id of chain
774
728
  * @type {string}
@@ -812,7 +766,7 @@ interface Activity {
812
766
  * @type {Chain}
813
767
  * @memberof Activity
814
768
  */
815
- 'chain': Chain;
769
+ 'chain': Chain$1;
816
770
  /**
817
771
  *
818
772
  * @type {ActivityType}
@@ -910,7 +864,7 @@ interface ChainWithDetailsAllOf {
910
864
  * @type ChainWithDetails
911
865
  * @export
912
866
  */
913
- type ChainWithDetails = Chain & ChainWithDetailsAllOf;
867
+ type ChainWithDetails = Chain$1 & ChainWithDetailsAllOf;
914
868
 
915
869
  /**
916
870
  * Immutable zkEVM API
@@ -957,7 +911,7 @@ interface Collection {
957
911
  * @type {Chain}
958
912
  * @memberof Collection
959
913
  */
960
- 'chain': Chain;
914
+ 'chain': Chain$1;
961
915
  /**
962
916
  * The name of the collection
963
917
  * @type {string}
@@ -1411,7 +1365,7 @@ interface Metadata {
1411
1365
  * @type {Chain}
1412
1366
  * @memberof Metadata
1413
1367
  */
1414
- 'chain': Chain;
1368
+ 'chain': Chain$1;
1415
1369
  /**
1416
1370
  * The contract address of the metadata
1417
1371
  * @type {string}
@@ -1571,7 +1525,7 @@ interface GetMintRequestResult {
1571
1525
  * @type {Chain}
1572
1526
  * @memberof GetMintRequestResult
1573
1527
  */
1574
- 'chain': Chain;
1528
+ 'chain': Chain$1;
1575
1529
  /**
1576
1530
  * The address of the contract
1577
1531
  * @type {string}
@@ -1663,7 +1617,7 @@ interface NFT {
1663
1617
  * @type {Chain}
1664
1618
  * @memberof NFT
1665
1619
  */
1666
- 'chain': Chain;
1620
+ 'chain': Chain$1;
1667
1621
  /**
1668
1622
  * An `uint256` token id as string
1669
1623
  * @type {string}
@@ -1805,7 +1759,7 @@ interface Token {
1805
1759
  * @type {Chain}
1806
1760
  * @memberof Token
1807
1761
  */
1808
- 'chain': Chain;
1762
+ 'chain': Chain$1;
1809
1763
  /**
1810
1764
  * The address of token contract
1811
1765
  * @type {string}
@@ -2096,7 +2050,7 @@ interface NFTOwner {
2096
2050
  * @type {Chain}
2097
2051
  * @memberof NFTOwner
2098
2052
  */
2099
- 'chain': Chain;
2053
+ 'chain': Chain$1;
2100
2054
  /**
2101
2055
  * The address of NFT contract
2102
2056
  * @type {string}
@@ -2330,7 +2284,7 @@ interface RefreshCollectionMetadataResult {
2330
2284
  * @type {Chain}
2331
2285
  * @memberof RefreshCollectionMetadataResult
2332
2286
  */
2333
- 'chain': Chain;
2287
+ 'chain': Chain$1;
2334
2288
  /**
2335
2289
  *
2336
2290
  * @type {CollectionMetadata}
@@ -3270,6 +3224,80 @@ interface TokensApiListERC20TokensRequest {
3270
3224
  readonly pageSize?: number;
3271
3225
  }
3272
3226
 
3227
+ interface Chain {
3228
+ id: string;
3229
+ name: string;
3230
+ }
3231
+ interface ZkevmMintRequestUpdated {
3232
+ event_name: 'imtbl_zkevm_mint_request_updated';
3233
+ event_id: string;
3234
+ chain: string;
3235
+ data: {
3236
+ chain: Chain;
3237
+ contract_address: string;
3238
+ owner_address: string;
3239
+ reference_id: string;
3240
+ metadata_id: string;
3241
+ token_id: string | null;
3242
+ status: string;
3243
+ transaction_hash: string | null;
3244
+ activity_id: string | null;
3245
+ error: {
3246
+ code: string;
3247
+ message: string;
3248
+ } | null;
3249
+ created_at: string;
3250
+ updated_at: string;
3251
+ amount?: number;
3252
+ };
3253
+ }
3254
+
3255
+ type CreateMintRequest = {
3256
+ contract_address: string;
3257
+ asset_id: string;
3258
+ metadata: any;
3259
+ owner_address: string;
3260
+ amount?: number;
3261
+ token_id?: string;
3262
+ };
3263
+ type MintRequest = {
3264
+ id: string;
3265
+ contract_address: string;
3266
+ wallet_address: string;
3267
+ asset_id: string;
3268
+ metadata: any;
3269
+ owner_address: string;
3270
+ tried_count: number;
3271
+ amount?: number;
3272
+ token_id?: string;
3273
+ };
3274
+ type SubmittedMintRequest = {
3275
+ tokenId: string | null;
3276
+ status: string;
3277
+ assetId: string;
3278
+ contractAddress: string;
3279
+ ownerAddress: string;
3280
+ metadataId: string;
3281
+ imtblZkevmMintRequestUpdatedId: string;
3282
+ error: any | null;
3283
+ amount: number | null;
3284
+ };
3285
+ interface MintingPersistence {
3286
+ recordMint: (request: CreateMintRequest) => Promise<void>;
3287
+ getNextBatchForSubmission: (limit: number) => Promise<MintRequest[]>;
3288
+ updateMintingStatusToSubmitted: (ids: string[]) => Promise<void>;
3289
+ updateMintingStatusToSubmissionFailed: (ids: string[]) => Promise<void>;
3290
+ syncMintingStatus: (submittedMintRequest: SubmittedMintRequest) => Promise<void>;
3291
+ markAsConflict: (assetIds: string[], contractAddress: string) => Promise<void>;
3292
+ resetMintingStatus: (ids: string[]) => Promise<void>;
3293
+ markForRetry: (ids: string[]) => Promise<void>;
3294
+ getMintingRequest: (contractAddress: string, referenceId: string) => Promise<MintRequest | null>;
3295
+ }
3296
+
3297
+ declare const mintingPersistence$1: (client: Pool) => MintingPersistence;
3298
+
3299
+ declare const mintingPersistence: (client: any) => MintingPersistence;
3300
+
3273
3301
  interface APIConfigurationParams {
3274
3302
  basePath: string;
3275
3303
  headers?: Record<string, string>;
@@ -3481,33 +3509,7 @@ declare const submitMintingRequests: (mintingPersistence: MintingPersistence, bl
3481
3509
  chainName?: string | undefined;
3482
3510
  maxNumberOfTries?: number | undefined;
3483
3511
  }, logger?: Logger) => Promise<never>;
3484
- type MintRequestEvent = {
3485
- event_name: string;
3486
- chain: string;
3487
- event_id: string;
3488
- data: {
3489
- chain: {
3490
- id: string;
3491
- name: string;
3492
- };
3493
- contract_address: string;
3494
- owner_address: string;
3495
- reference_id: string;
3496
- metadata_id: string;
3497
- token_id: string | null;
3498
- status: string;
3499
- transaction_hash: string | null;
3500
- activity_id: string | null;
3501
- error: {
3502
- code: string;
3503
- message: string;
3504
- } | null;
3505
- created_at: string;
3506
- updated_at: string;
3507
- amount?: number;
3508
- };
3509
- };
3510
- declare const processMint: (mintingPersistence: MintingPersistence, event: MintRequestEvent, logger?: Logger) => Promise<void>;
3512
+ declare const processMint: (mintingPersistence: MintingPersistence, event: ZkevmMintRequestUpdated, logger?: Logger) => Promise<void>;
3511
3513
 
3512
3514
  interface MintingBackendModuleConfiguration extends ModuleConfiguration<undefined> {
3513
3515
  persistence: MintingPersistence;
@@ -3526,8 +3528,7 @@ declare class MintingBackendModule {
3526
3528
  maxNumberOfTries?: number;
3527
3529
  }): Promise<void>;
3528
3530
  processMint(body: string | Record<string, unknown>, otherHandlers?: {
3529
- zkevmMintRequestUpdated: (event: MintRequestEvent) => Promise<void>;
3530
- all: (..._args: any) => Promise<void>;
3531
+ zkevmMintRequestUpdated: (event: ZkevmMintRequestUpdated) => Promise<void>;
3531
3532
  }): Promise<void>;
3532
3533
  }
3533
3534
 
@@ -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.40.0-alpha.1';
5289
+ const SDK_VERSION = '1.40.0-alpha.2';
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.40.0-alpha.1',
5557
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.0-alpha.2',
5558
5558
  };
5559
5559
  /**
5560
5560
  * createAPIConfiguration to create a custom Configuration
@@ -6058,6 +6058,96 @@ const handle = async (body, env, handlers) => {
6058
6058
  await handlers?.zkevmMintRequestUpdated(event);
6059
6059
  }
6060
6060
  break;
6061
+ case 'imtbl_zkevm_activity_mint':
6062
+ if (handlers?.zkEvmActivityMint) {
6063
+ await handlers?.zkEvmActivityMint(event);
6064
+ }
6065
+ break;
6066
+ case 'imtbl_zkevm_activity_burn':
6067
+ if (handlers?.zkEvmActivityBurn) {
6068
+ await handlers?.zkEvmActivityBurn(event);
6069
+ }
6070
+ break;
6071
+ case 'imtbl_zkevm_activity_transfer':
6072
+ if (handlers?.zkEvmActivityTransfer) {
6073
+ await handlers?.zkEvmActivityTransfer(event);
6074
+ }
6075
+ break;
6076
+ case 'imtbl_zkevm_activity_sale':
6077
+ if (handlers?.zkEvmActivitySale) {
6078
+ await handlers?.zkEvmActivitySale(event);
6079
+ }
6080
+ break;
6081
+ case 'imtbl_zkevm_activity_deposit':
6082
+ if (handlers?.zkEvmActivityDeposit) {
6083
+ await handlers?.zkEvmActivityDeposit(event);
6084
+ }
6085
+ break;
6086
+ case 'imtbl_zkevm_activity_withdrawal':
6087
+ if (handlers?.zkEvmActivityWithdrawal) {
6088
+ await handlers?.zkEvmActivityWithdrawal(event);
6089
+ }
6090
+ break;
6091
+ case 'imtbl_zkevm_collection_updated':
6092
+ if (handlers?.zkEvmCollectionUpdated) {
6093
+ await handlers?.zkEvmCollectionUpdated(event);
6094
+ }
6095
+ break;
6096
+ case 'imtbl_zkevm_nft_updated':
6097
+ if (handlers?.zkEvmNftUpdated) {
6098
+ await handlers?.zkEvmNftUpdated(event);
6099
+ }
6100
+ break;
6101
+ case 'imtbl_zkevm_metadata_updated':
6102
+ if (handlers?.zkEvmMetadataUpdated) {
6103
+ await handlers?.zkEvmMetadataUpdated(event);
6104
+ }
6105
+ break;
6106
+ case 'imtbl_zkevm_token_updated':
6107
+ if (handlers?.zkEvmTokenUpdated) {
6108
+ await handlers?.zkEvmTokenUpdated(event);
6109
+ }
6110
+ break;
6111
+ case 'imtbl_zkevm_order_updated':
6112
+ if (handlers?.zkEvmOrderUpdated) {
6113
+ await handlers?.zkEvmOrderUpdated(event);
6114
+ }
6115
+ break;
6116
+ case 'imtbl_zkevm_trade_created':
6117
+ if (handlers?.zkEvmTradeCreated) {
6118
+ await handlers?.zkEvmTradeCreated(event);
6119
+ }
6120
+ break;
6121
+ case 'imtbl_x_nft_created':
6122
+ if (handlers?.xNftCreated) {
6123
+ await handlers?.xNftCreated(event);
6124
+ }
6125
+ break;
6126
+ case 'imtbl_x_nft_updated':
6127
+ if (handlers?.xNftUpdated) {
6128
+ await handlers?.xNftUpdated(event);
6129
+ }
6130
+ break;
6131
+ case 'imtbl_x_order_accepted':
6132
+ if (handlers?.xOrderAccepted) {
6133
+ await handlers?.xOrderAccepted(event);
6134
+ }
6135
+ break;
6136
+ case 'imtbl_x_order_filled':
6137
+ if (handlers?.xOrderFilled) {
6138
+ await handlers?.xOrderFilled(event);
6139
+ }
6140
+ break;
6141
+ case 'imtbl_x_order_cancelled':
6142
+ if (handlers?.xOrderCancelled) {
6143
+ await handlers?.xOrderCancelled(event);
6144
+ }
6145
+ break;
6146
+ case 'imtbl_x_transfer_created':
6147
+ if (handlers?.xTransferCreated) {
6148
+ await handlers?.xTransferCreated(event);
6149
+ }
6150
+ break;
6061
6151
  }
6062
6152
  if (handlers?.all) {
6063
6153
  await handlers?.all(event);
@@ -6607,9 +6697,7 @@ const processMint = async (mintingPersistence, event, logger = console) => {
6607
6697
 
6608
6698
  const noopHandlers = {
6609
6699
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
6610
- zkevmMintRequestUpdated: async (event) => { },
6611
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6612
- all: async (..._args) => { }
6700
+ zkevmMintRequestUpdated: async (event) => { }
6613
6701
  };
6614
6702
  class MintingBackendModule {
6615
6703
  baseConfig;
@@ -6638,9 +6726,10 @@ class MintingBackendModule {
6638
6726
  await handle(body, this.baseConfig.environment, {
6639
6727
  zkevmMintRequestUpdated: async (event) => {
6640
6728
  await processMint(this.persistence, event, this.logger);
6641
- otherHandlers.zkevmMintRequestUpdated(event);
6642
- },
6643
- all: otherHandlers.all
6729
+ if (otherHandlers.zkevmMintRequestUpdated) {
6730
+ otherHandlers.zkevmMintRequestUpdated(event);
6731
+ }
6732
+ }
6644
6733
  });
6645
6734
  }
6646
6735
  }
package/dist/orderbook.js CHANGED
@@ -132,7 +132,7 @@ const flattenProperties = (properties) => {
132
132
  };
133
133
 
134
134
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
135
- const SDK_VERSION = '1.40.0-alpha.1';
135
+ const SDK_VERSION = '1.40.0-alpha.2';
136
136
  const getFrameParentDomain = () => {
137
137
  if (isNode()) {
138
138
  return '';
package/dist/passport.js CHANGED
@@ -11460,7 +11460,7 @@ class MultiRollupApiClients {
11460
11460
  }
11461
11461
 
11462
11462
  // eslint-disable-next-line @typescript-eslint/naming-convention
11463
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.1' };
11463
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.2' };
11464
11464
  const createConfig$1 = ({ basePath, headers, }) => {
11465
11465
  if (!basePath.trim()) {
11466
11466
  throw Error('basePath can not be empty');
@@ -11639,7 +11639,7 @@ const flattenProperties = (properties) => {
11639
11639
  };
11640
11640
 
11641
11641
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11642
- const SDK_VERSION = '1.40.0-alpha.1';
11642
+ const SDK_VERSION = '1.40.0-alpha.2';
11643
11643
  const getFrameParentDomain = () => {
11644
11644
  if (isNode()) {
11645
11645
  return '';
@@ -12029,7 +12029,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
12029
12029
  /* eslint-disable @typescript-eslint/naming-convention */
12030
12030
  class ApiConfiguration extends index$2.Configuration {
12031
12031
  }
12032
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.1' };
12032
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.0-alpha.2' };
12033
12033
  /**
12034
12034
  * @dev use createImmutableXConfiguration instead
12035
12035
  */
@@ -12070,7 +12070,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
12070
12070
  coreContractAddress,
12071
12071
  registrationContractAddress,
12072
12072
  registrationV4ContractAddress,
12073
- sdkVersion: 'ts-immutable-sdk-1.40.0-alpha.1',
12073
+ sdkVersion: 'ts-immutable-sdk-1.40.0-alpha.2',
12074
12074
  baseConfig,
12075
12075
  });
12076
12076
  const production = ({ baseConfig }) => createImmutableXConfiguration({