@pyxisjs/core 0.3.0 → 0.3.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Pyxis Team
3
+ Copyright (c) 2026 Pyxis Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.mts CHANGED
@@ -765,57 +765,6 @@ declare abstract class BaseChainAdapter<TClient> {
765
765
  abstract queryIndexer<T extends {}>(params: QueryIndexerParams): Promise<T>;
766
766
  }
767
767
 
768
- /**
769
- * Base interface for analytics client implementations
770
- * Chain-specific analytics clients should implement this interface
771
- */
772
-
773
- /**
774
- * Base interface defining the analytics API contract
775
- * All chain-specific analytics clients must implement this interface
776
- */
777
- interface BaseAnalyticsClient {
778
- /**
779
- * Get vault activities with pagination
780
- * @param args - Arguments for filtering and pagination
781
- * @returns Promise with activities array and total count
782
- */
783
- getActivities(args: GetActivitiesArgs): Promise<{
784
- activities: VaultActivity[];
785
- total: number;
786
- }>;
787
- /**
788
- * Get total value locked in base asset
789
- * @param args - Vault and asset information
790
- * @returns Promise with TVL as string
791
- */
792
- getTvlInBaseAsset(args: VaultTvlArgs): Promise<string>;
793
- /**
794
- * Get exchange rate update events within a time range
795
- * @param args - Vault address and time range
796
- * @returns Promise with array of exchange rate events
797
- */
798
- getUpdateExchangeRateEvents(args: HistoricalApyArgs): Promise<ExchangeRateEvent[]>;
799
- /**
800
- * Get 30-day APY for a vault
801
- * @param vault - Vault address
802
- * @returns Promise with APY as string percentage
803
- */
804
- get30DayApy(vault: string): Promise<string>;
805
- /**
806
- * Get historical APY data points
807
- * @param args - Vault, time range, and optional window
808
- * @returns Promise with array of APY data points
809
- */
810
- getHistoricalApy(args: HistoricalApyArgs): Promise<ApyDataPoint[]>;
811
- /**
812
- * Get vault manage operations (protocol interactions)
813
- * @param args - Vault ID, time range, and limit
814
- * @returns Promise with array of manage operations
815
- */
816
- getManageOperations(args: GetManageOperationsArgs): Promise<ManageOperation[]>;
817
- }
818
-
819
768
  /**
820
769
  * Base API interfaces
821
770
  */
@@ -982,4 +931,4 @@ declare namespace index {
982
931
  export { index_FLAG_BITS as FLAG_BITS, type index_FlagBitKey as FlagBitKey, index_SamplingStrategy as SamplingStrategy, index_amountWithSlippage as amountWithSlippage, index_buildRequestFlags as buildRequestFlags, index_calculateApy as calculateApy, index_calculateMinimumReceiveAmount as calculateMinimumReceiveAmount, index_calculateWithdrawalAmount as calculateWithdrawalAmount, index_getActiveFlags as getActiveFlags, index_hasFlag as hasFlag, index_mapIndexerToExchangeRateEvent as mapIndexerToExchangeRateEvent, index_mapIndexerToVaultActivity as mapIndexerToVaultActivity, index_mapOnchainToWithdrawalRequest as mapOnchainToWithdrawalRequest, index_normalizeAddress as normalizeAddress, index_parseRequestFlags as parseRequestFlags, index_sampleEventsByDay as sampleEventsByDay };
983
932
  }
984
933
 
985
- export { type AnyTransaction, type AptosTransaction, type AptosTransactionPayload, type ApyDataPoint, type ApyWindow, type BaseAPI, type BaseAnalyticsClient, BaseChainAdapter, type BaseTransaction, BridgeMethod, type BridgeQuoteResponse, type BuildBridgeTxArgs, type BuildCancelWithdrawalRequestTxArgs, type BuildDepositTxArgs, type BuildReclaimWithdrawalRequestTxArgs, type BuildWithdrawTxArgs, CHAIN_CONFIGS, type Chain, type ChainConfig, ChainId, ChainType, ConfigError, ContractError, type Currency, ESTIMATED_BRIDGE_TIME, ErrorCodes, type EthereumContractCall, type EthereumTokenApprove, type EthereumTransaction, type EthereumTransactionMetadata, type EventParams, type ExchangeRateEvent, type GetActivitiesArgs, type GetDepositRateInQuoteSafeArgs, type GetManageOperationsArgs, type GetMinimumRequestAgeArgs, type GetWithdrawRateInQuoteSafeArgs, type GetWithdrawalRequestsOfUserArgs, type HistoricalApyArgs, type IndexerExchangeRateEvent, type IndexerVaultActivity, InsufficientFundsError, LAYERZERO_ENDPOINT_IDS, type ManageOperation, type ManageOperationsResponse, type MultiChainVaultAPI, NetworkError, NetworkType, PyxisError, type PyxisOnchainWithdrawalRequest, type PyxisRequestFlagState, type PyxisToken, index as PyxisUtils, type PyxisWithdrawalRequest, type QueryIndexerParams, type QuoteBridgeArgs, type QuoteDepositArgs, type QuoteWithdrawArgs, RateLimitError, type SDKConfig, type SignedTransaction, StrategyError, type TokenTransfer, TransactionError, type TransactionPayload, type TransactionResult, type TxParams, ValidationError, type VaultActivity, type VaultContractAddressConfig, VaultError, type VaultTvlArgs, type ViewParams, type WalletAccount, type WalletAdapter, WalletError, createError, getChainConfig, getEstimatedBridgeTime, getLayerZeroEndpointId, getLayerZeroGasLimit };
934
+ export { type AnyTransaction, type AptosTransaction, type AptosTransactionPayload, type ApyDataPoint, type ApyWindow, type BaseAPI, BaseChainAdapter, type BaseTransaction, BridgeMethod, type BridgeQuoteResponse, type BuildBridgeTxArgs, type BuildCancelWithdrawalRequestTxArgs, type BuildDepositTxArgs, type BuildReclaimWithdrawalRequestTxArgs, type BuildWithdrawTxArgs, CHAIN_CONFIGS, type Chain, type ChainConfig, ChainId, ChainType, ConfigError, ContractError, type Currency, ESTIMATED_BRIDGE_TIME, ErrorCodes, type EthereumContractCall, type EthereumTokenApprove, type EthereumTransaction, type EthereumTransactionMetadata, type EventParams, type ExchangeRateEvent, type GetActivitiesArgs, type GetDepositRateInQuoteSafeArgs, type GetManageOperationsArgs, type GetMinimumRequestAgeArgs, type GetWithdrawRateInQuoteSafeArgs, type GetWithdrawalRequestsOfUserArgs, type HistoricalApyArgs, type IndexerExchangeRateEvent, type IndexerVaultActivity, InsufficientFundsError, LAYERZERO_ENDPOINT_IDS, type ManageOperation, type ManageOperationsResponse, type MultiChainVaultAPI, NetworkError, NetworkType, PyxisError, type PyxisOnchainWithdrawalRequest, type PyxisRequestFlagState, type PyxisToken, index as PyxisUtils, type PyxisWithdrawalRequest, type QueryIndexerParams, type QuoteBridgeArgs, type QuoteDepositArgs, type QuoteWithdrawArgs, RateLimitError, type SDKConfig, type SignedTransaction, StrategyError, type TokenTransfer, TransactionError, type TransactionPayload, type TransactionResult, type TxParams, ValidationError, type VaultActivity, type VaultContractAddressConfig, VaultError, type VaultTvlArgs, type ViewParams, type WalletAccount, type WalletAdapter, WalletError, createError, getChainConfig, getEstimatedBridgeTime, getLayerZeroEndpointId, getLayerZeroGasLimit };
package/dist/index.d.ts CHANGED
@@ -765,57 +765,6 @@ declare abstract class BaseChainAdapter<TClient> {
765
765
  abstract queryIndexer<T extends {}>(params: QueryIndexerParams): Promise<T>;
766
766
  }
767
767
 
768
- /**
769
- * Base interface for analytics client implementations
770
- * Chain-specific analytics clients should implement this interface
771
- */
772
-
773
- /**
774
- * Base interface defining the analytics API contract
775
- * All chain-specific analytics clients must implement this interface
776
- */
777
- interface BaseAnalyticsClient {
778
- /**
779
- * Get vault activities with pagination
780
- * @param args - Arguments for filtering and pagination
781
- * @returns Promise with activities array and total count
782
- */
783
- getActivities(args: GetActivitiesArgs): Promise<{
784
- activities: VaultActivity[];
785
- total: number;
786
- }>;
787
- /**
788
- * Get total value locked in base asset
789
- * @param args - Vault and asset information
790
- * @returns Promise with TVL as string
791
- */
792
- getTvlInBaseAsset(args: VaultTvlArgs): Promise<string>;
793
- /**
794
- * Get exchange rate update events within a time range
795
- * @param args - Vault address and time range
796
- * @returns Promise with array of exchange rate events
797
- */
798
- getUpdateExchangeRateEvents(args: HistoricalApyArgs): Promise<ExchangeRateEvent[]>;
799
- /**
800
- * Get 30-day APY for a vault
801
- * @param vault - Vault address
802
- * @returns Promise with APY as string percentage
803
- */
804
- get30DayApy(vault: string): Promise<string>;
805
- /**
806
- * Get historical APY data points
807
- * @param args - Vault, time range, and optional window
808
- * @returns Promise with array of APY data points
809
- */
810
- getHistoricalApy(args: HistoricalApyArgs): Promise<ApyDataPoint[]>;
811
- /**
812
- * Get vault manage operations (protocol interactions)
813
- * @param args - Vault ID, time range, and limit
814
- * @returns Promise with array of manage operations
815
- */
816
- getManageOperations(args: GetManageOperationsArgs): Promise<ManageOperation[]>;
817
- }
818
-
819
768
  /**
820
769
  * Base API interfaces
821
770
  */
@@ -982,4 +931,4 @@ declare namespace index {
982
931
  export { index_FLAG_BITS as FLAG_BITS, type index_FlagBitKey as FlagBitKey, index_SamplingStrategy as SamplingStrategy, index_amountWithSlippage as amountWithSlippage, index_buildRequestFlags as buildRequestFlags, index_calculateApy as calculateApy, index_calculateMinimumReceiveAmount as calculateMinimumReceiveAmount, index_calculateWithdrawalAmount as calculateWithdrawalAmount, index_getActiveFlags as getActiveFlags, index_hasFlag as hasFlag, index_mapIndexerToExchangeRateEvent as mapIndexerToExchangeRateEvent, index_mapIndexerToVaultActivity as mapIndexerToVaultActivity, index_mapOnchainToWithdrawalRequest as mapOnchainToWithdrawalRequest, index_normalizeAddress as normalizeAddress, index_parseRequestFlags as parseRequestFlags, index_sampleEventsByDay as sampleEventsByDay };
983
932
  }
984
933
 
985
- export { type AnyTransaction, type AptosTransaction, type AptosTransactionPayload, type ApyDataPoint, type ApyWindow, type BaseAPI, type BaseAnalyticsClient, BaseChainAdapter, type BaseTransaction, BridgeMethod, type BridgeQuoteResponse, type BuildBridgeTxArgs, type BuildCancelWithdrawalRequestTxArgs, type BuildDepositTxArgs, type BuildReclaimWithdrawalRequestTxArgs, type BuildWithdrawTxArgs, CHAIN_CONFIGS, type Chain, type ChainConfig, ChainId, ChainType, ConfigError, ContractError, type Currency, ESTIMATED_BRIDGE_TIME, ErrorCodes, type EthereumContractCall, type EthereumTokenApprove, type EthereumTransaction, type EthereumTransactionMetadata, type EventParams, type ExchangeRateEvent, type GetActivitiesArgs, type GetDepositRateInQuoteSafeArgs, type GetManageOperationsArgs, type GetMinimumRequestAgeArgs, type GetWithdrawRateInQuoteSafeArgs, type GetWithdrawalRequestsOfUserArgs, type HistoricalApyArgs, type IndexerExchangeRateEvent, type IndexerVaultActivity, InsufficientFundsError, LAYERZERO_ENDPOINT_IDS, type ManageOperation, type ManageOperationsResponse, type MultiChainVaultAPI, NetworkError, NetworkType, PyxisError, type PyxisOnchainWithdrawalRequest, type PyxisRequestFlagState, type PyxisToken, index as PyxisUtils, type PyxisWithdrawalRequest, type QueryIndexerParams, type QuoteBridgeArgs, type QuoteDepositArgs, type QuoteWithdrawArgs, RateLimitError, type SDKConfig, type SignedTransaction, StrategyError, type TokenTransfer, TransactionError, type TransactionPayload, type TransactionResult, type TxParams, ValidationError, type VaultActivity, type VaultContractAddressConfig, VaultError, type VaultTvlArgs, type ViewParams, type WalletAccount, type WalletAdapter, WalletError, createError, getChainConfig, getEstimatedBridgeTime, getLayerZeroEndpointId, getLayerZeroGasLimit };
934
+ export { type AnyTransaction, type AptosTransaction, type AptosTransactionPayload, type ApyDataPoint, type ApyWindow, type BaseAPI, BaseChainAdapter, type BaseTransaction, BridgeMethod, type BridgeQuoteResponse, type BuildBridgeTxArgs, type BuildCancelWithdrawalRequestTxArgs, type BuildDepositTxArgs, type BuildReclaimWithdrawalRequestTxArgs, type BuildWithdrawTxArgs, CHAIN_CONFIGS, type Chain, type ChainConfig, ChainId, ChainType, ConfigError, ContractError, type Currency, ESTIMATED_BRIDGE_TIME, ErrorCodes, type EthereumContractCall, type EthereumTokenApprove, type EthereumTransaction, type EthereumTransactionMetadata, type EventParams, type ExchangeRateEvent, type GetActivitiesArgs, type GetDepositRateInQuoteSafeArgs, type GetManageOperationsArgs, type GetMinimumRequestAgeArgs, type GetWithdrawRateInQuoteSafeArgs, type GetWithdrawalRequestsOfUserArgs, type HistoricalApyArgs, type IndexerExchangeRateEvent, type IndexerVaultActivity, InsufficientFundsError, LAYERZERO_ENDPOINT_IDS, type ManageOperation, type ManageOperationsResponse, type MultiChainVaultAPI, NetworkError, NetworkType, PyxisError, type PyxisOnchainWithdrawalRequest, type PyxisRequestFlagState, type PyxisToken, index as PyxisUtils, type PyxisWithdrawalRequest, type QueryIndexerParams, type QuoteBridgeArgs, type QuoteDepositArgs, type QuoteWithdrawArgs, RateLimitError, type SDKConfig, type SignedTransaction, StrategyError, type TokenTransfer, TransactionError, type TransactionPayload, type TransactionResult, type TxParams, ValidationError, type VaultActivity, type VaultContractAddressConfig, VaultError, type VaultTvlArgs, type ViewParams, type WalletAccount, type WalletAdapter, WalletError, createError, getChainConfig, getEstimatedBridgeTime, getLayerZeroEndpointId, getLayerZeroGasLimit };