@dzapio/sdk 2.0.49 → 2.0.50

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.d.mts CHANGED
@@ -155,6 +155,21 @@ declare const AllowanceTypes: {
155
155
  };
156
156
  type AllowanceType = (typeof AllowanceTypes)[keyof typeof AllowanceTypes];
157
157
 
158
+ declare const zapFeeType: {
159
+ readonly fee: "fee";
160
+ readonly ata: "ata";
161
+ readonly nftMint: "nft_mint";
162
+ readonly position: "position";
163
+ readonly protocolPosition: "protocol_position";
164
+ readonly tickArray: "tick_array";
165
+ readonly binArray: "bin_array";
166
+ readonly bitmapExtension: "bitmap_extension";
167
+ };
168
+ declare const zapRefundType: {
169
+ readonly dust: "dust";
170
+ readonly rent: "rent";
171
+ };
172
+
158
173
  declare const zapPathAction: {
159
174
  readonly swap: "swap";
160
175
  readonly bridge: "bridge";
@@ -166,12 +181,9 @@ declare const zapPathAction: {
166
181
  readonly harvest: "harvest";
167
182
  };
168
183
 
169
- type ZapFee = {
170
- amount: string;
171
- amountUSD: string;
172
- asset: ZapPathAsset;
173
- included: boolean;
174
- refundable: boolean;
184
+ type ZapRefundType = (typeof zapRefundType)[keyof typeof zapRefundType];
185
+ type ZapRefund = ZapOutput & {
186
+ type: ZapRefundType;
175
187
  };
176
188
 
177
189
  type ZapPathAction = keyof typeof zapPathAction;
@@ -187,22 +199,29 @@ type ZapPathAsset = {
187
199
  provider?: ProviderDetails;
188
200
  underlyingTokens?: ZapUnderlyingToken[];
189
201
  };
202
+ type ZapAsset = {
203
+ asset: ZapPathAsset;
204
+ amount: string;
205
+ amountUSD: string;
206
+ };
207
+ type ZapOutput = ZapAsset & {
208
+ minAmount: string;
209
+ };
190
210
  type ZapPath = {
191
211
  action: ZapPathAction;
192
212
  protocol: ProviderDetails;
193
213
  fee: ZapFee[];
214
+ refund: ZapRefund[];
194
215
  estimatedDuration: number;
195
- input: {
196
- asset: ZapPathAsset;
197
- amount: string;
198
- amountUSD: string;
199
- }[];
200
- output: {
201
- asset: ZapPathAsset;
202
- amount: string;
203
- amountUSD: string;
204
- minAmount: string;
205
- }[];
216
+ input: ZapAsset[];
217
+ output: ZapOutput[];
218
+ };
219
+
220
+ type ZapFeeType = (typeof zapFeeType)[keyof typeof zapFeeType];
221
+ type ZapFee = ZapAsset & {
222
+ included: boolean;
223
+ refundable: boolean;
224
+ type: ZapFeeType;
206
225
  };
207
226
 
208
227
  declare const chainTypes: {
@@ -274,8 +293,9 @@ type ZapBuildTxnResponse = {
274
293
  approveTo: HexString;
275
294
  amount: string;
276
295
  }[];
277
- dust: ZapPath['output'];
278
- output: ZapPath['output'];
296
+ refund: ZapRefund[];
297
+ fees: ZapFee[];
298
+ output: ZapOutput[];
279
299
  steps: ZapStep[];
280
300
  path: ZapPath[];
281
301
  };
@@ -397,26 +417,21 @@ type ZapQuoteRequest = Omit<ZapBuildTxnRequest, 'refundee' | 'recipient' | 'acco
397
417
  }>;
398
418
 
399
419
  type ZapStatus = 'PENDING' | 'COMPLETED' | 'FAILED' | 'REFUNDED';
400
- type ZapStatusAsset = {
401
- asset: ZapPathAsset;
402
- amount: string;
403
- amountUSD: string;
404
- };
405
420
  type ZapStatusStep = {
406
421
  chainId: number;
407
422
  hash?: string;
408
423
  status: ZapStatus;
409
424
  action: string;
410
425
  protocol: ProviderDetails;
411
- input: ZapStatusAsset[];
412
- output: ZapStatusAsset[];
426
+ input: ZapAsset[];
427
+ output: ZapAsset[];
413
428
  };
414
429
  type ZapStatusResponse = {
415
430
  status: ZapStatus;
416
431
  account: string;
417
432
  recipient: string;
418
- input: ZapStatusAsset[];
419
- output: ZapStatusAsset[];
433
+ input: ZapAsset[];
434
+ output: ZapAsset[];
420
435
  steps: ZapStatusStep[];
421
436
  timestamp: number;
422
437
  completedAt: number;
@@ -644,6 +659,7 @@ type TradeQuote = {
644
659
  gasless: boolean;
645
660
  steps: TradeStep[];
646
661
  path: TradePath[];
662
+ simulated?: boolean;
647
663
  tags?: Tag[];
648
664
  additionalInfo?: AdditionalInfo;
649
665
  };
@@ -2742,4 +2758,4 @@ declare const robinhood: {
2742
2758
  declare const customViemChains: viemChains.Chain[];
2743
2759
  declare const viemChainsById: Record<number, viemChains.Chain>;
2744
2760
 
2745
- export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapIntegratorConfig, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusAsset, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
2761
+ export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapAsset, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapFeeType, type ZapIntegratorConfig, type ZapOutput, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRefund, type ZapRefundType, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapFeeType, zapPathAction, zapRefundType, zapStepAction };
package/dist/index.d.ts CHANGED
@@ -155,6 +155,21 @@ declare const AllowanceTypes: {
155
155
  };
156
156
  type AllowanceType = (typeof AllowanceTypes)[keyof typeof AllowanceTypes];
157
157
 
158
+ declare const zapFeeType: {
159
+ readonly fee: "fee";
160
+ readonly ata: "ata";
161
+ readonly nftMint: "nft_mint";
162
+ readonly position: "position";
163
+ readonly protocolPosition: "protocol_position";
164
+ readonly tickArray: "tick_array";
165
+ readonly binArray: "bin_array";
166
+ readonly bitmapExtension: "bitmap_extension";
167
+ };
168
+ declare const zapRefundType: {
169
+ readonly dust: "dust";
170
+ readonly rent: "rent";
171
+ };
172
+
158
173
  declare const zapPathAction: {
159
174
  readonly swap: "swap";
160
175
  readonly bridge: "bridge";
@@ -166,12 +181,9 @@ declare const zapPathAction: {
166
181
  readonly harvest: "harvest";
167
182
  };
168
183
 
169
- type ZapFee = {
170
- amount: string;
171
- amountUSD: string;
172
- asset: ZapPathAsset;
173
- included: boolean;
174
- refundable: boolean;
184
+ type ZapRefundType = (typeof zapRefundType)[keyof typeof zapRefundType];
185
+ type ZapRefund = ZapOutput & {
186
+ type: ZapRefundType;
175
187
  };
176
188
 
177
189
  type ZapPathAction = keyof typeof zapPathAction;
@@ -187,22 +199,29 @@ type ZapPathAsset = {
187
199
  provider?: ProviderDetails;
188
200
  underlyingTokens?: ZapUnderlyingToken[];
189
201
  };
202
+ type ZapAsset = {
203
+ asset: ZapPathAsset;
204
+ amount: string;
205
+ amountUSD: string;
206
+ };
207
+ type ZapOutput = ZapAsset & {
208
+ minAmount: string;
209
+ };
190
210
  type ZapPath = {
191
211
  action: ZapPathAction;
192
212
  protocol: ProviderDetails;
193
213
  fee: ZapFee[];
214
+ refund: ZapRefund[];
194
215
  estimatedDuration: number;
195
- input: {
196
- asset: ZapPathAsset;
197
- amount: string;
198
- amountUSD: string;
199
- }[];
200
- output: {
201
- asset: ZapPathAsset;
202
- amount: string;
203
- amountUSD: string;
204
- minAmount: string;
205
- }[];
216
+ input: ZapAsset[];
217
+ output: ZapOutput[];
218
+ };
219
+
220
+ type ZapFeeType = (typeof zapFeeType)[keyof typeof zapFeeType];
221
+ type ZapFee = ZapAsset & {
222
+ included: boolean;
223
+ refundable: boolean;
224
+ type: ZapFeeType;
206
225
  };
207
226
 
208
227
  declare const chainTypes: {
@@ -274,8 +293,9 @@ type ZapBuildTxnResponse = {
274
293
  approveTo: HexString;
275
294
  amount: string;
276
295
  }[];
277
- dust: ZapPath['output'];
278
- output: ZapPath['output'];
296
+ refund: ZapRefund[];
297
+ fees: ZapFee[];
298
+ output: ZapOutput[];
279
299
  steps: ZapStep[];
280
300
  path: ZapPath[];
281
301
  };
@@ -397,26 +417,21 @@ type ZapQuoteRequest = Omit<ZapBuildTxnRequest, 'refundee' | 'recipient' | 'acco
397
417
  }>;
398
418
 
399
419
  type ZapStatus = 'PENDING' | 'COMPLETED' | 'FAILED' | 'REFUNDED';
400
- type ZapStatusAsset = {
401
- asset: ZapPathAsset;
402
- amount: string;
403
- amountUSD: string;
404
- };
405
420
  type ZapStatusStep = {
406
421
  chainId: number;
407
422
  hash?: string;
408
423
  status: ZapStatus;
409
424
  action: string;
410
425
  protocol: ProviderDetails;
411
- input: ZapStatusAsset[];
412
- output: ZapStatusAsset[];
426
+ input: ZapAsset[];
427
+ output: ZapAsset[];
413
428
  };
414
429
  type ZapStatusResponse = {
415
430
  status: ZapStatus;
416
431
  account: string;
417
432
  recipient: string;
418
- input: ZapStatusAsset[];
419
- output: ZapStatusAsset[];
433
+ input: ZapAsset[];
434
+ output: ZapAsset[];
420
435
  steps: ZapStatusStep[];
421
436
  timestamp: number;
422
437
  completedAt: number;
@@ -644,6 +659,7 @@ type TradeQuote = {
644
659
  gasless: boolean;
645
660
  steps: TradeStep[];
646
661
  path: TradePath[];
662
+ simulated?: boolean;
647
663
  tags?: Tag[];
648
664
  additionalInfo?: AdditionalInfo;
649
665
  };
@@ -2742,4 +2758,4 @@ declare const robinhood: {
2742
2758
  declare const customViemChains: viemChains.Chain[];
2743
2759
  declare const viemChainsById: Record<number, viemChains.Chain>;
2744
2760
 
2745
- export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapIntegratorConfig, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusAsset, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
2761
+ export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapAsset, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapFeeType, type ZapIntegratorConfig, type ZapOutput, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRefund, type ZapRefundType, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapFeeType, zapPathAction, zapRefundType, zapStepAction };
package/dist/index.js CHANGED
@@ -17098,6 +17098,32 @@ var zapPathAction = {
17098
17098
  harvest: "harvest"
17099
17099
  };
17100
17100
 
17101
+ // src/zap/constants/fee.ts
17102
+ var zapFeeType = {
17103
+ /** protocol or integrator fee taken out of the traded amount */
17104
+ fee: "fee",
17105
+ /** Associated Token Account — holds the user's balance for one mint. Created once per (wallet, mint); reused after that. */
17106
+ ata: "ata",
17107
+ /** NFT Mint — on-chain identity of a CLMM LP position. Burned and its rent recovered when the position closes. */
17108
+ nftMint: "nft_mint",
17109
+ /** Personal Position PDA — the user's LP state. Always created on open; rent refunded on close. */
17110
+ position: "position",
17111
+ /** Protocol Position PDA — pool-level tick range state, shared across every LP in that range. Rent is not refundable. */
17112
+ protocolPosition: "protocol_position",
17113
+ /** Tick Array PDA — tick data for a chunk of ticks, shared across the pool. Rent is not refundable. */
17114
+ tickArray: "tick_array",
17115
+ /** Bin Array PDA — bin data for a chunk of bins, shared across the pool. Rent is not refundable. */
17116
+ binArray: "bin_array",
17117
+ /** Bin Array Bitmap Extension PDA — bitmap state for bins outside the default range. Rent is not refundable. */
17118
+ bitmapExtension: "bitmap_extension"
17119
+ };
17120
+ var zapRefundType = {
17121
+ /** extra tokens the route ended up with because slippage came out in the user's favour */
17122
+ dust: "dust",
17123
+ /** account rent returned to the payer, e.g. when a position is closed */
17124
+ rent: "rent"
17125
+ };
17126
+
17101
17127
  Object.defineProperty(exports, "bitcoin", {
17102
17128
  enumerable: true,
17103
17129
  get: function () { return core.bitcoin; }
@@ -17140,5 +17166,7 @@ exports.robinhood = robinhood;
17140
17166
  exports.stableChain = stableChain;
17141
17167
  exports.tempo = tempo;
17142
17168
  exports.viemChainsById = viemChainsById;
17169
+ exports.zapFeeType = zapFeeType;
17143
17170
  exports.zapPathAction = zapPathAction;
17171
+ exports.zapRefundType = zapRefundType;
17144
17172
  exports.zapStepAction = zapStepAction;
package/dist/index.mjs CHANGED
@@ -17073,4 +17073,30 @@ var zapPathAction = {
17073
17073
  harvest: "harvest"
17074
17074
  };
17075
17075
 
17076
- export { AllowanceTypes, ApprovalModes, dZapClient_default as DZapClient, DZapPermitMode, OtherAbis, PermitTypes, QuoteFilters, STATUS, Services, SignatureExpiryInSecs, StatusCodes, SwapInputDataDecoder, TxnStatus, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
17076
+ // src/zap/constants/fee.ts
17077
+ var zapFeeType = {
17078
+ /** protocol or integrator fee taken out of the traded amount */
17079
+ fee: "fee",
17080
+ /** Associated Token Account — holds the user's balance for one mint. Created once per (wallet, mint); reused after that. */
17081
+ ata: "ata",
17082
+ /** NFT Mint — on-chain identity of a CLMM LP position. Burned and its rent recovered when the position closes. */
17083
+ nftMint: "nft_mint",
17084
+ /** Personal Position PDA — the user's LP state. Always created on open; rent refunded on close. */
17085
+ position: "position",
17086
+ /** Protocol Position PDA — pool-level tick range state, shared across every LP in that range. Rent is not refundable. */
17087
+ protocolPosition: "protocol_position",
17088
+ /** Tick Array PDA — tick data for a chunk of ticks, shared across the pool. Rent is not refundable. */
17089
+ tickArray: "tick_array",
17090
+ /** Bin Array PDA — bin data for a chunk of bins, shared across the pool. Rent is not refundable. */
17091
+ binArray: "bin_array",
17092
+ /** Bin Array Bitmap Extension PDA — bitmap state for bins outside the default range. Rent is not refundable. */
17093
+ bitmapExtension: "bitmap_extension"
17094
+ };
17095
+ var zapRefundType = {
17096
+ /** extra tokens the route ended up with because slippage came out in the user's favour */
17097
+ dust: "dust",
17098
+ /** account rent returned to the payer, e.g. when a position is closed */
17099
+ rent: "rent"
17100
+ };
17101
+
17102
+ export { AllowanceTypes, ApprovalModes, dZapClient_default as DZapClient, DZapPermitMode, OtherAbis, PermitTypes, QuoteFilters, STATUS, Services, SignatureExpiryInSecs, StatusCodes, SwapInputDataDecoder, TxnStatus, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapFeeType, zapPathAction, zapRefundType, zapStepAction };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzapio/sdk",
3
- "version": "2.0.49",
3
+ "version": "2.0.50",
4
4
  "description": "A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",