@hawksightco/hawk-sdk 1.3.208 → 1.3.209

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.
@@ -63,18 +63,6 @@ export declare class Transactions {
63
63
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse.
64
64
  */
65
65
  meteoraCreatePositionAndDeposit({ connection, params, }: TxgenParams<MeteoraCreatePositionAndDeposit>): Promise<TransactionMetadataResponse>;
66
- /**
67
- * Creates meteora instruction that creates new position and deposit
68
- * - Supports larger positions
69
- *
70
- * @deprecated Use meteoraCreatePositionAndDepositToLargePosition instead.
71
- *
72
- * @param connection The Solana web3 connection object for blockchain interactions.
73
- * @param payer The public key of the payer for transaction fees.
74
- * @param params Parameters required
75
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse.
76
- */
77
- meteoraCreatePositionAndDeposit2({ connection, params, }: TxgenParams<MeteoraCreatePositionAndDeposit>): Promise<TransactionMetadataResponse2>;
78
66
  /**
79
67
  * Creates meteora instruction that creates new position and deposit.
80
68
  *
@@ -114,17 +102,6 @@ export declare class Transactions {
114
102
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse.
115
103
  */
116
104
  meteoraDeposit({ connection, params, }: TxgenParams<MeteoraDeposit>): Promise<TransactionMetadataResponse>;
117
- /**
118
- * Creates meteora instruction that deposits to position.
119
- *
120
- * @deprecated Use meteoraDepositToLargePosition instead
121
- *
122
- * @param connection The Solana web3 connection object for blockchain interactions.
123
- * @param payer The public key of the payer for transaction fees.
124
- * @param params Parameters required
125
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse.
126
- */
127
- meteoraDeposit2({ connection, params, }: TxgenParams<MeteoraDeposit>): Promise<TransactionMetadataResponse2>;
128
105
  /**
129
106
  * Creates meteora instruction withdraws from a position.
130
107
  *
@@ -145,23 +122,6 @@ export declare class Transactions {
145
122
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse.
146
123
  */
147
124
  meteoraWithdrawPda({ connection, params, }: TxgenParams<MeteoraWithdraw>): Promise<TransactionMetadataResponse>;
148
- /**
149
- * Withdraws liquidity from a Meteora DLMM position using simple instructions.
150
- *
151
- * @deprecated Use meteoraWithdrawLargePosition instead
152
- *
153
- * Unlike meteoraWithdraw which uses Meteora SDK (that generates multiple claimFee ixs
154
- * potentially bloating tx size), this method uses direct instructions:
155
- * - removeLiquidityByRange2: Withdraw liquidity from the specified bin range
156
- * - claimFee2: Single instruction to claim fees
157
- * - claimReward2: N instructions (one per active reward)
158
- * - closePositionIfEmpty: Closes position if shouldClaimAndClose is true
159
- *
160
- * @param connection The Solana web3 connection object for blockchain interactions.
161
- * @param params Parameters required for withdrawal
162
- * @returns A ResponseWithStatus containing TransactionMetadataResponse.
163
- */
164
- meteoraWithdrawLargerPosition({ connection, params, fetch, }: TxgenParams<MeteoraWithdrawLargerPosition>): Promise<TransactionMetadataResponse>;
165
125
  /**
166
126
  * Withdraw liquidity from a large Meteora DLMM position (up to 1400 bins).
167
127
  *
@@ -178,21 +138,6 @@ export declare class Transactions {
178
138
  connection: web3.Connection;
179
139
  params: MeteoraWithdrawLargerPosition;
180
140
  }): Promise<TransactionMetadataResponse[]>;
181
- /**
182
- * Withdraws liquidity from a Meteora DLMM position using simple instructions.
183
- *
184
- * Unlike meteoraWithdraw which uses Meteora SDK (that generates multiple claimFee ixs
185
- * potentially bloating tx size), this method uses direct instructions:
186
- * - removeLiquidityByRange2: Withdraw liquidity from the specified bin range
187
- * - claimFee2: Single instruction to claim fees
188
- * - claimReward2: N instructions (one per active reward)
189
- * - closePositionIfEmpty: Closes position if shouldClaimAndClose is true
190
- *
191
- * @param connection The Solana web3 connection object for blockchain interactions.
192
- * @param params Parameters required for withdrawal
193
- * @returns A ResponseWithStatus containing TransactionMetadataResponse.
194
- */
195
- private _meteoraWithdrawLargerPosition;
196
141
  /**
197
142
  * Resolves pool data needed for withdraw instructions.
198
143
  * Call once, then pass the result to _buildWithdrawInstructions for each chunk.
@@ -1 +1 @@
1
- {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,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAyG/E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAiGhF;AAED,eAAO,MAAM,KAAK,cAA6B,CAAC"}
@@ -235,45 +235,6 @@ class Transactions {
235
235
  });
236
236
  });
237
237
  }
238
- /**
239
- * Creates meteora instruction that creates new position and deposit
240
- * - Supports larger positions
241
- *
242
- * @deprecated Use meteoraCreatePositionAndDepositToLargePosition instead.
243
- *
244
- * @param connection The Solana web3 connection object for blockchain interactions.
245
- * @param payer The public key of the payer for transaction fees.
246
- * @param params Parameters required
247
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse.
248
- */
249
- meteoraCreatePositionAndDeposit2(_a) {
250
- return __awaiter(this, arguments, void 0, function* ({ connection, params, }) {
251
- // The logic is routed to meteoraDepositLargerPosition so that front-end no longer need
252
- // to change anything in the front-end code.
253
- // The only change they need to implement is the maximum number of bins allowed to
254
- // initialize a position.
255
- //
256
- // Recommended bin range is up to 149 bins to ensure stability.
257
- return yield this.meteoraDepositLargerPosition({
258
- connection,
259
- params: {
260
- userWallet: params.userWallet,
261
- lbPair: params.pool,
262
- position: params.position,
263
- lowerBinId: params.binRange.lowerRange,
264
- upperBinId: params.binRange.upperRange,
265
- totalXAmount: params.totalXAmount,
266
- totalYAmount: params.totalYAmount,
267
- distribution: params.distribution,
268
- slippage: params.slippage,
269
- skipInputTokenCheck: params.skipInputTokenCheck,
270
- pdaTokenType: params.pdaTokenType,
271
- initializePosition: true,
272
- },
273
- fetch: undefined,
274
- });
275
- });
276
- }
277
238
  /**
278
239
  * Creates meteora instruction that creates new position and deposit.
279
240
  *
@@ -470,51 +431,6 @@ class Transactions {
470
431
  });
471
432
  });
472
433
  }
473
- /**
474
- * Creates meteora instruction that deposits to position.
475
- *
476
- * @deprecated Use meteoraDepositToLargePosition instead
477
- *
478
- * @param connection The Solana web3 connection object for blockchain interactions.
479
- * @param payer The public key of the payer for transaction fees.
480
- * @param params Parameters required
481
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse.
482
- */
483
- meteoraDeposit2(_a) {
484
- return __awaiter(this, arguments, void 0, function* ({ connection, params, }) {
485
- const program = yield meteora_1.MeteoraDLMM.program(connection);
486
- let lbPair, maxBinId, minBinId;
487
- if (params.fastGeneration !== undefined) {
488
- lbPair = params.fastGeneration.pool;
489
- maxBinId = params.fastGeneration.upperBinId;
490
- minBinId = params.fastGeneration.lowerBinId;
491
- }
492
- else {
493
- const position = yield program.account.positionV2.fetch(params.position);
494
- lbPair = position.lbPair;
495
- maxBinId = position.upperBinId;
496
- minBinId = position.lowerBinId;
497
- }
498
- return yield this.meteoraDepositLargerPosition({
499
- connection,
500
- params: {
501
- userWallet: params.userWallet,
502
- lbPair,
503
- position: params.position,
504
- lowerBinId: minBinId,
505
- upperBinId: maxBinId,
506
- totalXAmount: params.totalXAmount,
507
- totalYAmount: params.totalYAmount,
508
- distribution: params.distribution,
509
- slippage: params.slippage,
510
- skipInputTokenCheck: params.skipInputTokenCheck,
511
- pdaTokenType: params.pdaTokenType,
512
- initializePosition: false,
513
- },
514
- fetch: undefined,
515
- });
516
- });
517
- }
518
434
  /**
519
435
  * Creates meteora instruction withdraws from a position.
520
436
  *
@@ -677,44 +593,6 @@ class Transactions {
677
593
  });
678
594
  });
679
595
  }
680
- /**
681
- * Withdraws liquidity from a Meteora DLMM position using simple instructions.
682
- *
683
- * @deprecated Use meteoraWithdrawLargePosition instead
684
- *
685
- * Unlike meteoraWithdraw which uses Meteora SDK (that generates multiple claimFee ixs
686
- * potentially bloating tx size), this method uses direct instructions:
687
- * - removeLiquidityByRange2: Withdraw liquidity from the specified bin range
688
- * - claimFee2: Single instruction to claim fees
689
- * - claimReward2: N instructions (one per active reward)
690
- * - closePositionIfEmpty: Closes position if shouldClaimAndClose is true
691
- *
692
- * @param connection The Solana web3 connection object for blockchain interactions.
693
- * @param params Parameters required for withdrawal
694
- * @returns A ResponseWithStatus containing TransactionMetadataResponse.
695
- */
696
- meteoraWithdrawLargerPosition(_a) {
697
- return __awaiter(this, arguments, void 0, function* ({ connection, params, fetch, }) {
698
- const mainInstructions = yield this._meteoraWithdrawLargerPosition({ connection, params, fetch });
699
- // Build description
700
- let description;
701
- if (params.shouldClaimAndClose) {
702
- description = 'Full position withdrawal with claim and close from Meteora DLMM (larger position)';
703
- }
704
- else if (params.amountBps.eq(new bn_js_1.default(10000))) {
705
- description = 'Full position withdrawal without close from Meteora DLMM (larger position)';
706
- }
707
- else {
708
- description = 'Partial position withdrawal from Meteora DLMM (larger position)';
709
- }
710
- return (0, functions_1.createTransactionMeta)({
711
- payer: params.userWallet,
712
- description,
713
- addressLookupTableAddresses: addresses_1.GLOBAL_ALT,
714
- mainInstructions,
715
- });
716
- });
717
- }
718
596
  /**
719
597
  * Withdraw liquidity from a large Meteora DLMM position (up to 1400 bins).
720
598
  *
@@ -746,16 +624,16 @@ class Transactions {
746
624
  upperBinId = position.upperBinId;
747
625
  }
748
626
  const totalBins = upperBinId - lowerBinId + 1;
749
- // ≤149 bins: single-tx path
750
- if (totalBins <= 149) {
751
- const result = yield this.meteoraWithdrawLargerPosition({
627
+ // ≤69 bins: single-tx path
628
+ if (totalBins <= 69) {
629
+ const result = yield this.meteoraWithdraw({
752
630
  connection,
753
631
  params,
754
632
  fetch: undefined,
755
633
  });
756
634
  return [result];
757
635
  }
758
- // ≥150 bins: multi-tx chunked withdraw
636
+ // ≥70 bins: multi-tx chunked withdraw
759
637
  const resolved = yield this._resolveWithdrawPoolData({ connection, lbPair });
760
638
  const amountBps = params.shouldClaimAndClose ? new bn_js_1.default(10000) : params.amountBps;
761
639
  // Chunk into ≤149-bin ranges
@@ -780,45 +658,6 @@ class Transactions {
780
658
  return transactions;
781
659
  });
782
660
  }
783
- /**
784
- * Withdraws liquidity from a Meteora DLMM position using simple instructions.
785
- *
786
- * Unlike meteoraWithdraw which uses Meteora SDK (that generates multiple claimFee ixs
787
- * potentially bloating tx size), this method uses direct instructions:
788
- * - removeLiquidityByRange2: Withdraw liquidity from the specified bin range
789
- * - claimFee2: Single instruction to claim fees
790
- * - claimReward2: N instructions (one per active reward)
791
- * - closePositionIfEmpty: Closes position if shouldClaimAndClose is true
792
- *
793
- * @param connection The Solana web3 connection object for blockchain interactions.
794
- * @param params Parameters required for withdrawal
795
- * @returns A ResponseWithStatus containing TransactionMetadataResponse.
796
- */
797
- _meteoraWithdrawLargerPosition(_a) {
798
- return __awaiter(this, arguments, void 0, function* ({ connection, params, }) {
799
- // Determine lbPair and bin range
800
- let lbPair;
801
- let lowerBinId;
802
- let upperBinId;
803
- if (params.fastGeneration !== undefined) {
804
- lbPair = params.fastGeneration.pool;
805
- lowerBinId = params.fastGeneration.lowerBinId;
806
- upperBinId = params.fastGeneration.upperBinId;
807
- }
808
- else {
809
- const program = yield meteora_1.MeteoraDLMM.program(connection);
810
- const position = yield program.account.positionV2.fetch(params.position);
811
- lbPair = position.lbPair;
812
- lowerBinId = position.lowerBinId;
813
- upperBinId = position.upperBinId;
814
- }
815
- // Resolve pool data
816
- const resolved = yield this._resolveWithdrawPoolData({ connection, lbPair });
817
- return this._buildWithdrawInstructions(Object.assign({ connection, userWallet: params.userWallet, position: params.position, lbPair,
818
- lowerBinId,
819
- upperBinId, amountBps: params.shouldClaimAndClose ? new bn_js_1.default(10000) : params.amountBps, shouldClaimAndClose: params.shouldClaimAndClose, pdaTokenType: params.pdaTokenType }, resolved));
820
- });
821
- }
822
661
  /**
823
662
  * Resolves pool data needed for withdraw instructions.
824
663
  * Call once, then pass the result to _buildWithdrawInstructions for each chunk.
@@ -3771,12 +3610,10 @@ class Transactions {
3771
3610
  const depositInstructions = [];
3772
3611
  // Build deposit array for tokens with non-zero amounts
3773
3612
  const deposits = [];
3774
- if (totalXAmount.gt(new bn_js_1.default(0))) {
3775
- deposits.push({ mint: tokenXMint, amount: totalXAmount });
3776
- }
3777
- if (totalYAmount.gt(new bn_js_1.default(0))) {
3778
- deposits.push({ mint: tokenYMint, amount: totalYAmount });
3779
- }
3613
+ // We should deposit both X and Y even if 0 amount, because rebalance_liquidity
3614
+ // requires both passthrough accounts to be present.
3615
+ deposits.push({ mint: tokenXMint, amount: totalXAmount });
3616
+ deposits.push({ mint: tokenYMint, amount: totalYAmount });
3780
3617
  // Wrap SOL to wSOL if any deposit mint is wSOL
3781
3618
  const wrapSolIx = (0, functions_1.wrapSolIfMintIsWsolLabeled)(userWallet, userWallet, deposits);
3782
3619
  depositInstructions.push(...wrapSolIx);
@@ -3967,25 +3804,31 @@ class Transactions {
3967
3804
  const totalBins = params.binRange.upperRange - params.binRange.lowerRange + 1;
3968
3805
  // ≤70 bins: single-tx path via meteoraDepositLargerPosition
3969
3806
  if (totalBins <= 70) {
3970
- const result = yield this.meteoraDepositLargerPosition({
3971
- connection,
3972
- params: {
3973
- userWallet: params.userWallet,
3974
- lbPair: params.pool,
3975
- position: params.position,
3976
- lowerBinId: params.binRange.lowerRange,
3977
- upperBinId: params.binRange.upperRange,
3978
- totalXAmount: params.totalXAmount,
3979
- totalYAmount: params.totalYAmount,
3980
- distribution: params.distribution,
3981
- slippage: params.slippage,
3982
- skipInputTokenCheck: params.skipInputTokenCheck,
3807
+ const dlmmPool = yield meteora_1.MeteoraDLMM.create(connection, new web3.PublicKey(params.pool), this.ix);
3808
+ const userPda = (0, functions_1.generateUserPda)(params.userWallet);
3809
+ const mainInstructions = (yield dlmmPool.initializePositionAndAddLiquidityByStrategyLabeled(connection, params.userWallet, params.userWallet, {
3810
+ positionPubKey: params.position,
3811
+ user: userPda,
3812
+ totalXAmount: params.totalXAmount,
3813
+ totalYAmount: params.totalYAmount,
3814
+ strategy: {
3815
+ maxBinId: params.binRange.upperRange,
3816
+ minBinId: params.binRange.lowerRange,
3817
+ strategyType: types_3.StrategyTypeMap[params.distribution],
3818
+ },
3819
+ slippage: params.slippage,
3820
+ skipInputTokenCheck: params.skipInputTokenCheck,
3821
+ opt: {
3983
3822
  pdaTokenType: params.pdaTokenType,
3984
- initializePosition: true,
3985
3823
  },
3986
- fetch: undefined,
3987
- });
3988
- return [result];
3824
+ }, hsToMeteora_1.meteoraToHawksightLabeled)).default();
3825
+ return [
3826
+ yield (0, functions_1.createTransactionMeta2)({
3827
+ payer: params.userWallet,
3828
+ addressLookupTableAddresses: addresses_1.GLOBAL_ALT,
3829
+ mainInstructions: [...mainInstructions],
3830
+ })
3831
+ ];
3989
3832
  }
3990
3833
  // ≥150 bins: multi-tx path
3991
3834
  // Convert Distribution string to liquidityStrategy.StrategyType number for chunked deposit
@@ -4033,6 +3876,31 @@ class Transactions {
4033
3876
  pdaTokenType: params.pdaTokenType,
4034
3877
  },
4035
3878
  });
3879
+ // For one-side deposits, if the side amount is zero, we need to include init ATA idempotent ix,
3880
+ // since rebalanceLiquidity requires both source tokens to exist.
3881
+ const initIdempotent = (mint, label) => {
3882
+ return {
3883
+ instruction: (0, functions_1.createAtaIdempotentIxs)({
3884
+ accounts: [{
3885
+ payer: params.userWallet,
3886
+ mint,
3887
+ owner: params.userWallet,
3888
+ programId: tokenProgramMap[mint.toString()],
3889
+ }]
3890
+ })[0],
3891
+ label: `Idempotently initialize zero-amount ATA for ${label} mint`,
3892
+ class: `initZeroAmountAtaLabeled`,
3893
+ };
3894
+ };
3895
+ const initAtaIxs = [];
3896
+ if (params.totalXAmount.isZero()) {
3897
+ console.log(`Idempotently initialize zero-amount ATA for X mint ${tokenXMint.toString()} since totalXAmount is zero`);
3898
+ initAtaIxs.push(initIdempotent(tokenXMint, 'X'));
3899
+ }
3900
+ else if (params.totalYAmount.isZero()) {
3901
+ console.log(`Idempotently initialize zero-amount ATA for Y mint ${tokenYMint.toString()} since totalYAmount is zero`);
3902
+ initAtaIxs.push(initIdempotent(tokenYMint, 'Y'));
3903
+ }
4036
3904
  const wrapSolIxs = [];
4037
3905
  const depositToPdaIxs = [];
4038
3906
  // Moving wrap SOL instruction from depositTxs to initTxs
@@ -4063,7 +3931,7 @@ class Transactions {
4063
3931
  }
4064
3932
  }
4065
3933
  // Add wrap SOL instructions to the end of the last init transaction (correct order)
4066
- initTxs[initTxs.length - 1].push(...wrapSolIxs.reverse(), ...depositToPdaIxs.reverse());
3934
+ initTxs[initTxs.length - 1].push(...initAtaIxs, ...wrapSolIxs.reverse(), ...depositToPdaIxs.reverse());
4067
3935
  // Step 4: Assemble — merge init's last TX into deposit's first TX if init has >1 TX
4068
3936
  const assembled = [];
4069
3937
  if (initTxs.length > 1) {
@@ -117,17 +117,6 @@ export declare class TxGenerator {
117
117
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
118
118
  */
119
119
  meteoraCreatePositionAndDeposit(connection: web3.Connection, payer: string, params: _client.TxCreatePositionAndDepositBody): Promise<ResponseWithStatus<TransactionMetadata>>;
120
- /**
121
- * Creates meteora instruction that creates new position and deposit.
122
- * - Supports larger positions
123
- * - Auto-splits into multiple transactions based on size
124
- *
125
- * @param connection The Solana web3 connection object for blockchain interactions.
126
- * @param payer The public key of the payer for transaction fees.
127
- * @param params Parameters required
128
- * @returns A ResponseWithStatus containing TransactionMetadata[] (auto-split by tx size).
129
- */
130
- meteoraCreatePositionAndDeposit2(connection: web3.Connection, payer: string, params: _client.TxCreatePositionAndDepositBody): Promise<ResponseWithStatus<TransactionMetadataWithActions>>;
131
120
  /**
132
121
  * Creates meteora instruction that creates new position and deposit.
133
122
  *
@@ -148,18 +137,6 @@ export declare class TxGenerator {
148
137
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
149
138
  */
150
139
  meteoraDeposit(connection: web3.Connection, payer: string, params: _client.TxDepositBody): Promise<ResponseWithStatus<TransactionMetadata>>;
151
- /**
152
- * Creates meteora instruction that deposits to position.
153
- * - Supports larger positions
154
- *
155
- * @deprecated Use meteoraDepositToLargePosition instead
156
- *
157
- * @param connection The Solana web3 connection object for blockchain interactions.
158
- * @param payer The public key of the payer for transaction fees.
159
- * @param params Parameters required
160
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
161
- */
162
- meteoraDeposit2(connection: web3.Connection, payer: string, params: _client.TxDepositBody): Promise<ResponseWithStatus<TransactionMetadata>>;
163
140
  /**
164
141
  * Creates meteora instruction withdraws from a position.
165
142
  *
@@ -180,17 +157,6 @@ export declare class TxGenerator {
180
157
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
181
158
  */
182
159
  meteoraWithdrawPda(connection: web3.Connection, payer: string, params: MeteoraTxWithdraw, pdaTokenType?: TokenType): Promise<ResponseWithStatus<TransactionMetadata>>;
183
- /**
184
- * Withdraws liquidity from a Meteora DLMM position using simple instructions.
185
- * Unlike meteoraWithdraw which uses Meteora SDK (that generates multiple claimFee ixs
186
- * potentially bloating tx size), this method uses direct instructions.
187
- *
188
- * @param connection The Solana web3 connection object for blockchain interactions.
189
- * @param payer The public key of the payer for transaction fees.
190
- * @param params Parameters required for withdrawal
191
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
192
- */
193
- meteoraWithdrawLargerPosition(connection: web3.Connection, payer: string, params: MeteoraTxWithdrawLargerPosition): Promise<ResponseWithStatus<TransactionMetadata>>;
194
160
  /**
195
161
  * Withdraw liquidity from a large Meteora DLMM position (up to 1400 bins).
196
162
  * For ≤149 bins: single tx. For ≥150 bins: multi-tx with chunked withdrawals.
@@ -1 +1 @@
1
- {"version":3,"file":"TxGenerator.d.ts","sourceRoot":"","sources":["../../../src/classes/TxGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EAInB,YAAY,EACZ,WAAW,EACX,iBAAiB,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