@liberfi.io/types 0.4.73 → 0.4.75

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.
@@ -1982,7 +1982,7 @@ interface SendTxResult {
1982
1982
  /**
1983
1983
  * API client interface — read-side data + transaction broadcast.
1984
1984
  */
1985
- interface IClient {
1985
+ interface ClientMethodContracts {
1986
1986
  /**
1987
1987
  * fetch token info
1988
1988
  * @param chain chain id
@@ -2221,7 +2221,7 @@ interface IClient {
2221
2221
  /**
2222
2222
  * Subscribe client interface — push-side real-time data.
2223
2223
  */
2224
- interface ISubscribeClient {
2224
+ interface SubscribeClientMethodContracts {
2225
2225
  /**
2226
2226
  * Subscribe to a token's real-time data updates (stats, market data,
2227
2227
  * holders, liquidity, etc.). The client internally manages multiple
@@ -2368,5 +2368,49 @@ interface ISubscribeClient {
2368
2368
  */
2369
2369
  subscribeStockTokens(chain: Chain, callback: (data: Array<TokenSubscribed>) => void): ISubscription;
2370
2370
  }
2371
+ type TokenDataMethod = "getToken" | "getTokens" | "getTokenCandles" | "getTokenSecurity" | "getTokenStats" | "getTokenHolders" | "getTokenTopTraders" | "getTokenMarketData" | "getNewTokens" | "getNewPools" | "getFinalStretchTokens" | "getMigratedTokens" | "getTrendingTokens" | "getStockTokens" | "searchTokens" | "getTokensByCreator";
2372
+ type WalletDataMethod = "getWalletPortfolios" | "getWalletPnl" | "getWalletPortfolioPnls" | "getWalletPortfoliosByTokens" | "getWalletPortfolioPnlsByTokens" | "getWalletLimitOrders";
2373
+ type ActivityDataMethod = "getWalletTrades" | "getTokenTrades" | "getWalletActivities" | "getTokenActivities";
2374
+ /** Read-side token and market-data operations. */
2375
+ interface TokenDataCapability extends Pick<ClientMethodContracts, TokenDataMethod> {
2376
+ }
2377
+ /** Read-side wallet and portfolio operations. */
2378
+ interface WalletDataCapability extends Pick<ClientMethodContracts, WalletDataMethod> {
2379
+ }
2380
+ /** Read-side wallet and token activity operations. */
2381
+ interface ActivityDataCapability extends Pick<ClientMethodContracts, ActivityDataMethod> {
2382
+ }
2383
+ /** Swap route discovery operations. */
2384
+ interface TradeCapability extends Pick<ClientMethodContracts, "swapRoute"> {
2385
+ }
2386
+ /** Transaction broadcast and confirmation operations. */
2387
+ interface TransactionCapability extends Pick<ClientMethodContracts, "getLatestBlock" | "sendTx" | "checkTxSuccess"> {
2388
+ }
2389
+ /** Media upload operations. */
2390
+ interface MediaCapability extends Pick<ClientMethodContracts, "getPresignedUploadUrl"> {
2391
+ }
2392
+ type TokenSubscriptionMethod = "subscribeToken" | "subscribeTokens" | "subscribeTokenCandles" | "subscribeNewTokens" | "subscribeNewTokensMetadata" | "subscribeNewPools" | "subscribeTrendingTokens" | "subscribeMigratedTokens" | "subscribeFinalStretchTokens" | "subscribeStockTokens";
2393
+ type WalletSubscriptionMethod = "subscribeWalletPnl" | "subscribeWalletPortfolios" | "subscribeWalletPortfolioPnls";
2394
+ type ActivitySubscriptionMethod = "subscribeWalletTrades" | "subscribeTokenTrades" | "subscribeWalletActivities" | "subscribeTokenActivities";
2395
+ /** Token and market-data subscription operations. */
2396
+ interface TokenSubscriptionCapability extends Pick<SubscribeClientMethodContracts, TokenSubscriptionMethod> {
2397
+ }
2398
+ /** Wallet and portfolio subscription operations. */
2399
+ interface WalletSubscriptionCapability extends Pick<SubscribeClientMethodContracts, WalletSubscriptionMethod> {
2400
+ }
2401
+ /** Wallet and token activity subscription operations. */
2402
+ interface ActivitySubscriptionCapability extends Pick<SubscribeClientMethodContracts, ActivitySubscriptionMethod> {
2403
+ }
2404
+
2405
+ /**
2406
+ * Compatibility API client composed from domain-scoped capabilities.
2407
+ */
2408
+ interface IClient extends TokenDataCapability, WalletDataCapability, ActivityDataCapability, TradeCapability, TransactionCapability, MediaCapability {
2409
+ }
2410
+ /**
2411
+ * Compatibility subscription client composed from domain-scoped capabilities.
2412
+ */
2413
+ interface ISubscribeClient extends TokenSubscriptionCapability, WalletSubscriptionCapability, ActivitySubscriptionCapability {
2414
+ }
2371
2415
 
2372
- export { type ActivityToken as A, type ActivitiesSortBy, type ActivitiesSortDirection, type TokenSecurity as B, type BlockchainLatestBlock, Chain as C, type CursorList, type CursorListOptions, type CursorPagination, type TokenResolution as D, type TokenCandle as E, type TokenHolder as F, type TokenTopTrader as G, type GetActivitiesOptions, type GetTokenCandlesOptions, type GetTokenHoldersOptions, type GetTokenListOptions, type GetTokenTopTradersOptions, type GetTokensByCreatorOptions, type GetTradesOptions, type GetWalletLimitOrdersOptions, type GetWalletPortfolioPnlsOptions, type PortfolioPnl as H, type Portfolio as I, type IClient, type ISubscribeClient, type ISubscription, type WalletPnl as J, type WalletPortfolioPnls as K, type LimitOrderSide as L, type LatestBlockParams, type WalletPortfolios as M, type PoolDex as P, type PortfolioPnlSubscribed, type PortfolioSubscribed, type PositionState, SolanaTokenProtocol as S, type SearchTokenCursorList, type SearchTokensOptions, type SendTxParams, type SendTxResult, type SwapDex, SwapMode, type SwapParams, type SwapRoute, type SwapRoutePlan, type Trade as T, type TokenFieldOption, type TokenFilterOption, type TokenHoldersSortBy, type TokenSubscribed, type TokenTopTradersSortBy, type TokenTopTradersSortDirection, type TrendingResolution, type WalletTag as W, type WalletPnlResolution, type WalletPnlSortBy, type WalletPnlSubscribed, type ActivityDex as a, type ActivityType as b, type Activity as c, ChainNamespace as d, type LimitOrderState as e, type LimitOrder as f, type PoolBalance as g, type Pool as h, type PoolSubscribed as i, type TokenProtocol as j, SOLANA_TOKEN_PROTOCOLS as k, type Token as l, type TokenCreator as m, type TokenLaunchedFrom as n, type TokenMigratedTo as o, type TokenSocialMedias as p, type TokenStats as q, type TokenStatsByResolution as r, type TokenMarketData as s, type TokenLiquidity as t, type TokenSecurityProviderInfo as u, type TokenGoPlusSecurity as v, type TokenHoneypotSecurity as w, type TokenSerializedSecurity as x, type TokenLockInfo as y, type TokenPrivilegeInfo as z };
2416
+ export { type ActivityToken as A, type ActivitiesSortBy, type ActivitiesSortDirection, type ActivityDataCapability, type ActivitySubscriptionCapability, type TokenSecurity as B, type BlockchainLatestBlock, Chain as C, type CursorList, type CursorListOptions, type CursorPagination, type TokenResolution as D, type TokenCandle as E, type TokenHolder as F, type TokenTopTrader as G, type GetActivitiesOptions, type GetTokenCandlesOptions, type GetTokenHoldersOptions, type GetTokenListOptions, type GetTokenTopTradersOptions, type GetTokensByCreatorOptions, type GetTradesOptions, type GetWalletLimitOrdersOptions, type GetWalletPortfolioPnlsOptions, type PortfolioPnl as H, type Portfolio as I, type IClient, type ISubscribeClient, type ISubscription, type WalletPnl as J, type WalletPortfolioPnls as K, type LimitOrderSide as L, type LatestBlockParams, type WalletPortfolios as M, type MediaCapability, type PoolDex as P, type PortfolioPnlSubscribed, type PortfolioSubscribed, type PositionState, SolanaTokenProtocol as S, type SearchTokenCursorList, type SearchTokensOptions, type SendTxParams, type SendTxResult, type SwapDex, SwapMode, type SwapParams, type SwapRoute, type SwapRoutePlan, type Trade as T, type TokenDataCapability, type TokenFieldOption, type TokenFilterOption, type TokenHoldersSortBy, type TokenSubscribed, type TokenSubscriptionCapability, type TokenTopTradersSortBy, type TokenTopTradersSortDirection, type TradeCapability, type TransactionCapability, type TrendingResolution, type WalletTag as W, type WalletDataCapability, type WalletPnlResolution, type WalletPnlSortBy, type WalletPnlSubscribed, type WalletSubscriptionCapability, type ActivityDex as a, type ActivityType as b, type Activity as c, ChainNamespace as d, type LimitOrderState as e, type LimitOrder as f, type PoolBalance as g, type Pool as h, type PoolSubscribed as i, type TokenProtocol as j, SOLANA_TOKEN_PROTOCOLS as k, type Token as l, type TokenCreator as m, type TokenLaunchedFrom as n, type TokenMigratedTo as o, type TokenSocialMedias as p, type TokenStats as q, type TokenStatsByResolution as r, type TokenMarketData as s, type TokenLiquidity as t, type TokenSecurityProviderInfo as u, type TokenGoPlusSecurity as v, type TokenHoneypotSecurity as w, type TokenSerializedSecurity as x, type TokenLockInfo as y, type TokenPrivilegeInfo as z };
@@ -1982,7 +1982,7 @@ interface SendTxResult {
1982
1982
  /**
1983
1983
  * API client interface — read-side data + transaction broadcast.
1984
1984
  */
1985
- interface IClient {
1985
+ interface ClientMethodContracts {
1986
1986
  /**
1987
1987
  * fetch token info
1988
1988
  * @param chain chain id
@@ -2221,7 +2221,7 @@ interface IClient {
2221
2221
  /**
2222
2222
  * Subscribe client interface — push-side real-time data.
2223
2223
  */
2224
- interface ISubscribeClient {
2224
+ interface SubscribeClientMethodContracts {
2225
2225
  /**
2226
2226
  * Subscribe to a token's real-time data updates (stats, market data,
2227
2227
  * holders, liquidity, etc.). The client internally manages multiple
@@ -2368,5 +2368,49 @@ interface ISubscribeClient {
2368
2368
  */
2369
2369
  subscribeStockTokens(chain: Chain, callback: (data: Array<TokenSubscribed>) => void): ISubscription;
2370
2370
  }
2371
+ type TokenDataMethod = "getToken" | "getTokens" | "getTokenCandles" | "getTokenSecurity" | "getTokenStats" | "getTokenHolders" | "getTokenTopTraders" | "getTokenMarketData" | "getNewTokens" | "getNewPools" | "getFinalStretchTokens" | "getMigratedTokens" | "getTrendingTokens" | "getStockTokens" | "searchTokens" | "getTokensByCreator";
2372
+ type WalletDataMethod = "getWalletPortfolios" | "getWalletPnl" | "getWalletPortfolioPnls" | "getWalletPortfoliosByTokens" | "getWalletPortfolioPnlsByTokens" | "getWalletLimitOrders";
2373
+ type ActivityDataMethod = "getWalletTrades" | "getTokenTrades" | "getWalletActivities" | "getTokenActivities";
2374
+ /** Read-side token and market-data operations. */
2375
+ interface TokenDataCapability extends Pick<ClientMethodContracts, TokenDataMethod> {
2376
+ }
2377
+ /** Read-side wallet and portfolio operations. */
2378
+ interface WalletDataCapability extends Pick<ClientMethodContracts, WalletDataMethod> {
2379
+ }
2380
+ /** Read-side wallet and token activity operations. */
2381
+ interface ActivityDataCapability extends Pick<ClientMethodContracts, ActivityDataMethod> {
2382
+ }
2383
+ /** Swap route discovery operations. */
2384
+ interface TradeCapability extends Pick<ClientMethodContracts, "swapRoute"> {
2385
+ }
2386
+ /** Transaction broadcast and confirmation operations. */
2387
+ interface TransactionCapability extends Pick<ClientMethodContracts, "getLatestBlock" | "sendTx" | "checkTxSuccess"> {
2388
+ }
2389
+ /** Media upload operations. */
2390
+ interface MediaCapability extends Pick<ClientMethodContracts, "getPresignedUploadUrl"> {
2391
+ }
2392
+ type TokenSubscriptionMethod = "subscribeToken" | "subscribeTokens" | "subscribeTokenCandles" | "subscribeNewTokens" | "subscribeNewTokensMetadata" | "subscribeNewPools" | "subscribeTrendingTokens" | "subscribeMigratedTokens" | "subscribeFinalStretchTokens" | "subscribeStockTokens";
2393
+ type WalletSubscriptionMethod = "subscribeWalletPnl" | "subscribeWalletPortfolios" | "subscribeWalletPortfolioPnls";
2394
+ type ActivitySubscriptionMethod = "subscribeWalletTrades" | "subscribeTokenTrades" | "subscribeWalletActivities" | "subscribeTokenActivities";
2395
+ /** Token and market-data subscription operations. */
2396
+ interface TokenSubscriptionCapability extends Pick<SubscribeClientMethodContracts, TokenSubscriptionMethod> {
2397
+ }
2398
+ /** Wallet and portfolio subscription operations. */
2399
+ interface WalletSubscriptionCapability extends Pick<SubscribeClientMethodContracts, WalletSubscriptionMethod> {
2400
+ }
2401
+ /** Wallet and token activity subscription operations. */
2402
+ interface ActivitySubscriptionCapability extends Pick<SubscribeClientMethodContracts, ActivitySubscriptionMethod> {
2403
+ }
2404
+
2405
+ /**
2406
+ * Compatibility API client composed from domain-scoped capabilities.
2407
+ */
2408
+ interface IClient extends TokenDataCapability, WalletDataCapability, ActivityDataCapability, TradeCapability, TransactionCapability, MediaCapability {
2409
+ }
2410
+ /**
2411
+ * Compatibility subscription client composed from domain-scoped capabilities.
2412
+ */
2413
+ interface ISubscribeClient extends TokenSubscriptionCapability, WalletSubscriptionCapability, ActivitySubscriptionCapability {
2414
+ }
2371
2415
 
2372
- export { type ActivityToken as A, type ActivitiesSortBy, type ActivitiesSortDirection, type TokenSecurity as B, type BlockchainLatestBlock, Chain as C, type CursorList, type CursorListOptions, type CursorPagination, type TokenResolution as D, type TokenCandle as E, type TokenHolder as F, type TokenTopTrader as G, type GetActivitiesOptions, type GetTokenCandlesOptions, type GetTokenHoldersOptions, type GetTokenListOptions, type GetTokenTopTradersOptions, type GetTokensByCreatorOptions, type GetTradesOptions, type GetWalletLimitOrdersOptions, type GetWalletPortfolioPnlsOptions, type PortfolioPnl as H, type Portfolio as I, type IClient, type ISubscribeClient, type ISubscription, type WalletPnl as J, type WalletPortfolioPnls as K, type LimitOrderSide as L, type LatestBlockParams, type WalletPortfolios as M, type PoolDex as P, type PortfolioPnlSubscribed, type PortfolioSubscribed, type PositionState, SolanaTokenProtocol as S, type SearchTokenCursorList, type SearchTokensOptions, type SendTxParams, type SendTxResult, type SwapDex, SwapMode, type SwapParams, type SwapRoute, type SwapRoutePlan, type Trade as T, type TokenFieldOption, type TokenFilterOption, type TokenHoldersSortBy, type TokenSubscribed, type TokenTopTradersSortBy, type TokenTopTradersSortDirection, type TrendingResolution, type WalletTag as W, type WalletPnlResolution, type WalletPnlSortBy, type WalletPnlSubscribed, type ActivityDex as a, type ActivityType as b, type Activity as c, ChainNamespace as d, type LimitOrderState as e, type LimitOrder as f, type PoolBalance as g, type Pool as h, type PoolSubscribed as i, type TokenProtocol as j, SOLANA_TOKEN_PROTOCOLS as k, type Token as l, type TokenCreator as m, type TokenLaunchedFrom as n, type TokenMigratedTo as o, type TokenSocialMedias as p, type TokenStats as q, type TokenStatsByResolution as r, type TokenMarketData as s, type TokenLiquidity as t, type TokenSecurityProviderInfo as u, type TokenGoPlusSecurity as v, type TokenHoneypotSecurity as w, type TokenSerializedSecurity as x, type TokenLockInfo as y, type TokenPrivilegeInfo as z };
2416
+ export { type ActivityToken as A, type ActivitiesSortBy, type ActivitiesSortDirection, type ActivityDataCapability, type ActivitySubscriptionCapability, type TokenSecurity as B, type BlockchainLatestBlock, Chain as C, type CursorList, type CursorListOptions, type CursorPagination, type TokenResolution as D, type TokenCandle as E, type TokenHolder as F, type TokenTopTrader as G, type GetActivitiesOptions, type GetTokenCandlesOptions, type GetTokenHoldersOptions, type GetTokenListOptions, type GetTokenTopTradersOptions, type GetTokensByCreatorOptions, type GetTradesOptions, type GetWalletLimitOrdersOptions, type GetWalletPortfolioPnlsOptions, type PortfolioPnl as H, type Portfolio as I, type IClient, type ISubscribeClient, type ISubscription, type WalletPnl as J, type WalletPortfolioPnls as K, type LimitOrderSide as L, type LatestBlockParams, type WalletPortfolios as M, type MediaCapability, type PoolDex as P, type PortfolioPnlSubscribed, type PortfolioSubscribed, type PositionState, SolanaTokenProtocol as S, type SearchTokenCursorList, type SearchTokensOptions, type SendTxParams, type SendTxResult, type SwapDex, SwapMode, type SwapParams, type SwapRoute, type SwapRoutePlan, type Trade as T, type TokenDataCapability, type TokenFieldOption, type TokenFilterOption, type TokenHoldersSortBy, type TokenSubscribed, type TokenSubscriptionCapability, type TokenTopTradersSortBy, type TokenTopTradersSortDirection, type TradeCapability, type TransactionCapability, type TrendingResolution, type WalletTag as W, type WalletDataCapability, type WalletPnlResolution, type WalletPnlSortBy, type WalletPnlSubscribed, type WalletSubscriptionCapability, type ActivityDex as a, type ActivityType as b, type Activity as c, ChainNamespace as d, type LimitOrderState as e, type LimitOrder as f, type PoolBalance as g, type Pool as h, type PoolSubscribed as i, type TokenProtocol as j, SOLANA_TOKEN_PROTOCOLS as k, type Token as l, type TokenCreator as m, type TokenLaunchedFrom as n, type TokenMigratedTo as o, type TokenSocialMedias as p, type TokenStats as q, type TokenStatsByResolution as r, type TokenMarketData as s, type TokenLiquidity as t, type TokenSecurityProviderInfo as u, type TokenGoPlusSecurity as v, type TokenHoneypotSecurity as w, type TokenSerializedSecurity as x, type TokenLockInfo as y, type TokenPrivilegeInfo as z };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/api/index.ts","../../src/api/swap.ts"],"sourcesContent":["export * from \"./activity-options\";\nexport * from \"./client\";\nexport * from \"./cursor\";\nexport * from \"./pagination\";\nexport * from \"./subscription\";\nexport * from \"./swap\";\nexport * from \"./token-options\";\nexport * from \"./transaction\";\nexport * from \"./wallet-options\";\n","import { Chain } from \"../chains\";\n\nexport enum SwapMode {\n EXACT_IN = \"exact_in\",\n EXACT_OUT = \"exact_out\",\n}\n\n/**\n * DEX identifier used for route / mint address conversion. Open union — the\n * known values cover today's DEXes; new aggregators can be plugged in without\n * a library update.\n */\nexport type SwapDex = \"jupiter\" | \"kyberswap\" | (string & {});\n\nexport interface SwapParams {\n /** chain id */\n chain: Chain;\n /** DEX to use; if omitted, inferred from chain (Solana → jupiter, EVM → kyberswap). Mint conversion uses this. */\n dex?: SwapDex;\n /** user wallet address */\n userAddress: string;\n /** input token address */\n input: string;\n /** output token address */\n output: string;\n /** swap mode, e.g. ExactIn, ExactOut */\n mode: SwapMode;\n /** input token amount when mode is ExactIn, output token amount when mode is ExactOut */\n amount: string;\n /** slippage, range is 0-100 */\n slippage?: number;\n /** priority fee */\n priorityFee?: string;\n /** tip fee */\n tipFee?: string;\n /** whether to use anti-MEV */\n isAntiMev?: boolean;\n /** EIP-2612 permit data (EVM only, alternative to on-chain approve) */\n permit?: string;\n /** deadline timestamp in ms (EVM only) */\n deadline?: number;\n}\n\nexport interface SwapRoutePlan {\n /** protocol name / dex name etc. */\n name: string;\n /** input token address */\n input: string;\n /** input token amount */\n inputAmount: string;\n /** output token address */\n output: string;\n /** output token amount */\n outputAmount: string;\n /** fee quote token address */\n feeQuote?: string;\n /** fee amount */\n feeAmount?: string;\n /** extra infos by api provider */\n extra?: Record<string, unknown>;\n}\n\nexport interface SwapRoute {\n /** unsigned tx in base64 format */\n serializedTx: string;\n /** recent blockhash embedded in the unsigned Solana transaction */\n recentBlockhash?: string;\n /** last block height at which the embedded Solana blockhash remains valid */\n lastValidBlockHeight?: number;\n /** swap plans */\n plans: Array<SwapRoutePlan>;\n /** extra infos by api provider */\n extra?: Record<string, unknown>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAK,WAAL,kBAAKA,cAAL;AACL,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,eAAY;AAFF,SAAAA;AAAA,GAAA;","names":["SwapMode"]}
1
+ {"version":3,"sources":["../../src/api/index.ts","../../src/api/swap.ts"],"sourcesContent":["export * from \"./activity-options\";\nexport * from \"./capabilities\";\nexport * from \"./client\";\nexport * from \"./cursor\";\nexport * from \"./pagination\";\nexport * from \"./subscription\";\nexport * from \"./swap\";\nexport * from \"./token-options\";\nexport * from \"./transaction\";\nexport * from \"./wallet-options\";\n","import { Chain } from \"../chains\";\n\nexport enum SwapMode {\n EXACT_IN = \"exact_in\",\n EXACT_OUT = \"exact_out\",\n}\n\n/**\n * DEX identifier used for route / mint address conversion. Open union — the\n * known values cover today's DEXes; new aggregators can be plugged in without\n * a library update.\n */\nexport type SwapDex = \"jupiter\" | \"kyberswap\" | (string & {});\n\nexport interface SwapParams {\n /** chain id */\n chain: Chain;\n /** DEX to use; if omitted, inferred from chain (Solana → jupiter, EVM → kyberswap). Mint conversion uses this. */\n dex?: SwapDex;\n /** user wallet address */\n userAddress: string;\n /** input token address */\n input: string;\n /** output token address */\n output: string;\n /** swap mode, e.g. ExactIn, ExactOut */\n mode: SwapMode;\n /** input token amount when mode is ExactIn, output token amount when mode is ExactOut */\n amount: string;\n /** slippage, range is 0-100 */\n slippage?: number;\n /** priority fee */\n priorityFee?: string;\n /** tip fee */\n tipFee?: string;\n /** whether to use anti-MEV */\n isAntiMev?: boolean;\n /** EIP-2612 permit data (EVM only, alternative to on-chain approve) */\n permit?: string;\n /** deadline timestamp in ms (EVM only) */\n deadline?: number;\n}\n\nexport interface SwapRoutePlan {\n /** protocol name / dex name etc. */\n name: string;\n /** input token address */\n input: string;\n /** input token amount */\n inputAmount: string;\n /** output token address */\n output: string;\n /** output token amount */\n outputAmount: string;\n /** fee quote token address */\n feeQuote?: string;\n /** fee amount */\n feeAmount?: string;\n /** extra infos by api provider */\n extra?: Record<string, unknown>;\n}\n\nexport interface SwapRoute {\n /** unsigned tx in base64 format */\n serializedTx: string;\n /** recent blockhash embedded in the unsigned Solana transaction */\n recentBlockhash?: string;\n /** last block height at which the embedded Solana blockhash remains valid */\n lastValidBlockHeight?: number;\n /** swap plans */\n plans: Array<SwapRoutePlan>;\n /** extra infos by api provider */\n extra?: Record<string, unknown>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAK,WAAL,kBAAKA,cAAL;AACL,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,eAAY;AAFF,SAAAA;AAAA,GAAA;","names":["SwapMode"]}
package/dist/index.d.mts CHANGED
@@ -1 +1 @@
1
- export { ActivitiesSortBy, ActivitiesSortDirection, c as Activity, a as ActivityDex, A as ActivityToken, b as ActivityType, BlockchainLatestBlock, C as Chain, d as ChainNamespace, CursorList, CursorListOptions, CursorPagination, GetActivitiesOptions, GetTokenCandlesOptions, GetTokenHoldersOptions, GetTokenListOptions, GetTokenTopTradersOptions, GetTokensByCreatorOptions, GetTradesOptions, GetWalletLimitOrdersOptions, GetWalletPortfolioPnlsOptions, IClient, ISubscribeClient, ISubscription, LatestBlockParams, f as LimitOrder, L as LimitOrderSide, e as LimitOrderState, h as Pool, g as PoolBalance, P as PoolDex, i as PoolSubscribed, I as Portfolio, H as PortfolioPnl, PortfolioPnlSubscribed, PortfolioSubscribed, PositionState, k as SOLANA_TOKEN_PROTOCOLS, SearchTokenCursorList, SearchTokensOptions, SendTxParams, SendTxResult, S as SolanaTokenProtocol, SwapDex, SwapMode, SwapParams, SwapRoute, SwapRoutePlan, l as Token, E as TokenCandle, m as TokenCreator, TokenFieldOption, TokenFilterOption, v as TokenGoPlusSecurity, F as TokenHolder, TokenHoldersSortBy, w as TokenHoneypotSecurity, n as TokenLaunchedFrom, t as TokenLiquidity, y as TokenLockInfo, s as TokenMarketData, o as TokenMigratedTo, z as TokenPrivilegeInfo, j as TokenProtocol, D as TokenResolution, B as TokenSecurity, u as TokenSecurityProviderInfo, x as TokenSerializedSecurity, p as TokenSocialMedias, q as TokenStats, r as TokenStatsByResolution, TokenSubscribed, G as TokenTopTrader, TokenTopTradersSortBy, TokenTopTradersSortDirection, T as Trade, TrendingResolution, J as WalletPnl, WalletPnlResolution, WalletPnlSortBy, WalletPnlSubscribed, K as WalletPortfolioPnls, M as WalletPortfolios, W as WalletTag } from './api/index.mjs';
1
+ export { ActivitiesSortBy, ActivitiesSortDirection, c as Activity, ActivityDataCapability, a as ActivityDex, ActivitySubscriptionCapability, A as ActivityToken, b as ActivityType, BlockchainLatestBlock, C as Chain, d as ChainNamespace, CursorList, CursorListOptions, CursorPagination, GetActivitiesOptions, GetTokenCandlesOptions, GetTokenHoldersOptions, GetTokenListOptions, GetTokenTopTradersOptions, GetTokensByCreatorOptions, GetTradesOptions, GetWalletLimitOrdersOptions, GetWalletPortfolioPnlsOptions, IClient, ISubscribeClient, ISubscription, LatestBlockParams, f as LimitOrder, L as LimitOrderSide, e as LimitOrderState, MediaCapability, h as Pool, g as PoolBalance, P as PoolDex, i as PoolSubscribed, I as Portfolio, H as PortfolioPnl, PortfolioPnlSubscribed, PortfolioSubscribed, PositionState, k as SOLANA_TOKEN_PROTOCOLS, SearchTokenCursorList, SearchTokensOptions, SendTxParams, SendTxResult, S as SolanaTokenProtocol, SwapDex, SwapMode, SwapParams, SwapRoute, SwapRoutePlan, l as Token, E as TokenCandle, m as TokenCreator, TokenDataCapability, TokenFieldOption, TokenFilterOption, v as TokenGoPlusSecurity, F as TokenHolder, TokenHoldersSortBy, w as TokenHoneypotSecurity, n as TokenLaunchedFrom, t as TokenLiquidity, y as TokenLockInfo, s as TokenMarketData, o as TokenMigratedTo, z as TokenPrivilegeInfo, j as TokenProtocol, D as TokenResolution, B as TokenSecurity, u as TokenSecurityProviderInfo, x as TokenSerializedSecurity, p as TokenSocialMedias, q as TokenStats, r as TokenStatsByResolution, TokenSubscribed, TokenSubscriptionCapability, G as TokenTopTrader, TokenTopTradersSortBy, TokenTopTradersSortDirection, T as Trade, TradeCapability, TransactionCapability, TrendingResolution, WalletDataCapability, J as WalletPnl, WalletPnlResolution, WalletPnlSortBy, WalletPnlSubscribed, K as WalletPortfolioPnls, M as WalletPortfolios, WalletSubscriptionCapability, W as WalletTag } from './api/index.mjs';
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { ActivitiesSortBy, ActivitiesSortDirection, c as Activity, a as ActivityDex, A as ActivityToken, b as ActivityType, BlockchainLatestBlock, C as Chain, d as ChainNamespace, CursorList, CursorListOptions, CursorPagination, GetActivitiesOptions, GetTokenCandlesOptions, GetTokenHoldersOptions, GetTokenListOptions, GetTokenTopTradersOptions, GetTokensByCreatorOptions, GetTradesOptions, GetWalletLimitOrdersOptions, GetWalletPortfolioPnlsOptions, IClient, ISubscribeClient, ISubscription, LatestBlockParams, f as LimitOrder, L as LimitOrderSide, e as LimitOrderState, h as Pool, g as PoolBalance, P as PoolDex, i as PoolSubscribed, I as Portfolio, H as PortfolioPnl, PortfolioPnlSubscribed, PortfolioSubscribed, PositionState, k as SOLANA_TOKEN_PROTOCOLS, SearchTokenCursorList, SearchTokensOptions, SendTxParams, SendTxResult, S as SolanaTokenProtocol, SwapDex, SwapMode, SwapParams, SwapRoute, SwapRoutePlan, l as Token, E as TokenCandle, m as TokenCreator, TokenFieldOption, TokenFilterOption, v as TokenGoPlusSecurity, F as TokenHolder, TokenHoldersSortBy, w as TokenHoneypotSecurity, n as TokenLaunchedFrom, t as TokenLiquidity, y as TokenLockInfo, s as TokenMarketData, o as TokenMigratedTo, z as TokenPrivilegeInfo, j as TokenProtocol, D as TokenResolution, B as TokenSecurity, u as TokenSecurityProviderInfo, x as TokenSerializedSecurity, p as TokenSocialMedias, q as TokenStats, r as TokenStatsByResolution, TokenSubscribed, G as TokenTopTrader, TokenTopTradersSortBy, TokenTopTradersSortDirection, T as Trade, TrendingResolution, J as WalletPnl, WalletPnlResolution, WalletPnlSortBy, WalletPnlSubscribed, K as WalletPortfolioPnls, M as WalletPortfolios, W as WalletTag } from './api/index.js';
1
+ export { ActivitiesSortBy, ActivitiesSortDirection, c as Activity, ActivityDataCapability, a as ActivityDex, ActivitySubscriptionCapability, A as ActivityToken, b as ActivityType, BlockchainLatestBlock, C as Chain, d as ChainNamespace, CursorList, CursorListOptions, CursorPagination, GetActivitiesOptions, GetTokenCandlesOptions, GetTokenHoldersOptions, GetTokenListOptions, GetTokenTopTradersOptions, GetTokensByCreatorOptions, GetTradesOptions, GetWalletLimitOrdersOptions, GetWalletPortfolioPnlsOptions, IClient, ISubscribeClient, ISubscription, LatestBlockParams, f as LimitOrder, L as LimitOrderSide, e as LimitOrderState, MediaCapability, h as Pool, g as PoolBalance, P as PoolDex, i as PoolSubscribed, I as Portfolio, H as PortfolioPnl, PortfolioPnlSubscribed, PortfolioSubscribed, PositionState, k as SOLANA_TOKEN_PROTOCOLS, SearchTokenCursorList, SearchTokensOptions, SendTxParams, SendTxResult, S as SolanaTokenProtocol, SwapDex, SwapMode, SwapParams, SwapRoute, SwapRoutePlan, l as Token, E as TokenCandle, m as TokenCreator, TokenDataCapability, TokenFieldOption, TokenFilterOption, v as TokenGoPlusSecurity, F as TokenHolder, TokenHoldersSortBy, w as TokenHoneypotSecurity, n as TokenLaunchedFrom, t as TokenLiquidity, y as TokenLockInfo, s as TokenMarketData, o as TokenMigratedTo, z as TokenPrivilegeInfo, j as TokenProtocol, D as TokenResolution, B as TokenSecurity, u as TokenSecurityProviderInfo, x as TokenSerializedSecurity, p as TokenSocialMedias, q as TokenStats, r as TokenStatsByResolution, TokenSubscribed, TokenSubscriptionCapability, G as TokenTopTrader, TokenTopTradersSortBy, TokenTopTradersSortDirection, T as Trade, TradeCapability, TransactionCapability, TrendingResolution, WalletDataCapability, J as WalletPnl, WalletPnlResolution, WalletPnlSortBy, WalletPnlSubscribed, K as WalletPortfolioPnls, M as WalletPortfolios, WalletSubscriptionCapability, W as WalletTag } from './api/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liberfi.io/types",
3
- "version": "0.4.73",
3
+ "version": "0.4.75",
4
4
  "description": "Liberfi React SDK types",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -22,9 +22,10 @@
22
22
  "dist"
23
23
  ],
24
24
  "devDependencies": {
25
+ "jest": "^29.6.1",
25
26
  "tsup": "^8.5.0",
26
27
  "typedoc": "^0.28.12",
27
- "tsconfig": "0.1.256"
28
+ "tsconfig": "0.1.258"
28
29
  },
29
30
  "publishConfig": {
30
31
  "access": "public"
@@ -32,6 +33,10 @@
32
33
  "scripts": {
33
34
  "dev": "tsup --watch",
34
35
  "build": "tsup",
36
+ "typecheck": "tsc --noEmit -p tsconfig.json",
37
+ "lint": "eslint src",
38
+ "test": "pnpm test:types && jest --passWithNoTests --detectOpenHandles",
39
+ "test:types": "tsc --noEmit -p tsconfig.type-tests.json",
35
40
  "docs": "typedoc"
36
41
  }
37
42
  }