@chainflip/sdk 1.4.1 → 1.4.3

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/swap.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Signer } from 'ethers';
2
- import { A as AssetAndChain, C as Chain, a as Asset, I as InternalAsset, b as AssetOfChain, c as ChainflipNetwork, T as TransactionOptions, d as ChainAssetMap, e as ChainMap } from './contracts-49zdGryt.js';
3
- export { g as Assets, h as ChainflipIds, i as ChainflipNetworks, f as Chains, j as getChainflipId } from './contracts-49zdGryt.js';
2
+ import { A as AssetAndChain, C as Chain, a as Asset, I as InternalAsset, b as AssetOfChain, c as ChainflipNetwork, T as TransactionOptions, d as ChainAssetMap, e as ChainMap, U as UncheckedAssetAndChain } from './contracts-Maix4eRX.js';
3
+ export { g as Assets, h as ChainflipIds, i as ChainflipNetworks, f as Chains, j as getChainflipId } from './contracts-Maix4eRX.js';
4
4
  import { z } from 'zod';
5
5
 
6
6
  declare const ccmMetadataSchema: z.ZodObject<{
@@ -109,6 +109,7 @@ interface DepositAddressRequest extends QuoteRequest {
109
109
  destAddress: string;
110
110
  ccmMetadata?: CcmMetadata;
111
111
  maxBoostFeeBps?: number;
112
+ srcAddress?: string;
112
113
  }
113
114
  interface DepositAddressResponse extends DepositAddressRequest {
114
115
  depositChannelId: string;
@@ -167,7 +168,8 @@ type CopyFields<T, U> = {
167
168
  type VaultSwapFields = CopyFields<DepositAddressFields, SwapStatusResponseCommonFields>;
168
169
  type FailedVaultSwapStatusResponse = CopyFields<DepositAddressFields, {
169
170
  depositAmount: string;
170
- depositTransactionHash: string;
171
+ depositTransactionHash: string | undefined;
172
+ depositTransactionRef: string | undefined;
171
173
  destAddress: string;
172
174
  error: {
173
175
  message: string;
@@ -186,6 +188,7 @@ type SwapState = {
186
188
  state: 'AWAITING_DEPOSIT';
187
189
  depositAmount: string | undefined;
188
190
  depositTransactionHash: string | undefined;
191
+ depositTransactionRef: string | undefined;
189
192
  depositTransactionConfirmations: number | undefined;
190
193
  } | {
191
194
  state: 'DEPOSIT_RECEIVED';
@@ -239,6 +242,7 @@ type SwapState = {
239
242
  };
240
243
  depositAmount: string;
241
244
  depositTransactionHash: string | undefined;
245
+ depositTransactionRef: string | undefined;
242
246
  failedAt: number;
243
247
  failedBlockIndex: string;
244
248
  } | {
@@ -262,6 +266,12 @@ type SwapState = {
262
266
  type DepositAddressStatusResponse = DepositAddressFields & SwapState;
263
267
  type VaultSwapStatusResponse = VaultSwapFields & SwapState;
264
268
  type SwapStatusResponse = DepositAddressStatusResponse | VaultSwapStatusResponse | FailedVaultSwapStatusResponse;
269
+ type BoostPoolDepth = {
270
+ feeTierBps: number;
271
+ availableAmount: bigint;
272
+ asset: Asset;
273
+ chain: Chain;
274
+ };
265
275
 
266
276
  type RequestOptions = {
267
277
  signal?: AbortSignal;
@@ -288,6 +298,7 @@ declare class SwapSDK {
288
298
  getChains(sourceChain?: Chain): Promise<ChainData[]>;
289
299
  private getStateChainEnvironment;
290
300
  private getSupportedAssets;
301
+ private getBoostPoolsDepth;
291
302
  getAssets(chain?: Chain): Promise<AssetData[]>;
292
303
  getQuote(quoteRequest: QuoteRequest, options?: RequestOptions): Promise<QuoteResponse>;
293
304
  requestDepositAddress(depositAddressRequest: DepositAddressRequest): Promise<DepositAddressResponse>;
@@ -305,6 +316,10 @@ declare class SwapSDK {
305
316
  }>;
306
317
  getRequiredBlockConfirmations(): Promise<ChainMap<number | null>>;
307
318
  getChannelOpeningFees(): Promise<ChainMap<bigint>>;
319
+ getBoostLiquidity({ chainAsset, feeTierBps, }?: {
320
+ chainAsset?: UncheckedAssetAndChain;
321
+ feeTierBps?: number;
322
+ }): Promise<BoostPoolDepth[]>;
308
323
  }
309
324
 
310
- export { Asset, type AssetData, Chain, type ChainData, InternalAsset as ChainflipId, ChainflipNetwork, type DepositAddressRequest, type DepositAddressResponse, type DepositAddressStatusResponse, type FailedVaultSwapStatusResponse, type QuoteRequest, type QuoteResponse, SwapSDK, type SwapSDKOptions, type SwapStatusRequest, type SwapStatusResponse, type VaultSwapStatusResponse };
325
+ export { Asset, type AssetData, type BoostPoolDepth, Chain, type ChainData, InternalAsset as ChainflipId, ChainflipNetwork, type DepositAddressRequest, type DepositAddressResponse, type DepositAddressStatusResponse, type FailedVaultSwapStatusResponse, type QuoteRequest, type QuoteResponse, SwapSDK, type SwapSDKOptions, type SwapStatusRequest, type SwapStatusResponse, UncheckedAssetAndChain, type VaultSwapStatusResponse };