@pyxisjs/chains 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
@@ -1,5 +1,5 @@
1
1
  import { Aptos, UserTransactionResponse } from '@aptos-labs/ts-sdk';
2
- import { BaseChainAdapter, MultiChainVaultAPI, Chain, TxParams, TransactionPayload, ViewParams, EventParams, TransactionResult, QueryIndexerParams, GetWithdrawRateInQuoteSafeArgs, GetDepositRateInQuoteSafeArgs, QuoteDepositArgs, QuoteWithdrawArgs, QuoteBridgeArgs, BridgeQuoteResponse, BuildBridgeTxArgs, BuildDepositTxArgs, BuildWithdrawTxArgs, BuildReclaimWithdrawalRequestTxArgs, BuildCancelWithdrawalRequestTxArgs, GetMinimumRequestAgeArgs, GetWithdrawalRequestsOfUserArgs, PyxisWithdrawalRequest, IndexerVaultActivity, VaultActivity, BaseAnalyticsClient, GetActivitiesArgs, VaultTvlArgs, HistoricalApyArgs, ExchangeRateEvent, ApyDataPoint, GetManageOperationsArgs, ManageOperation, ChainType } from '@pyxisjs/core';
2
+ import { BaseChainAdapter, MultiChainVaultAPI, Chain, TxParams, TransactionPayload, ViewParams, EventParams, TransactionResult, QueryIndexerParams, GetWithdrawRateInQuoteSafeArgs, GetDepositRateInQuoteSafeArgs, QuoteDepositArgs, QuoteWithdrawArgs, QuoteBridgeArgs, BridgeQuoteResponse, BuildBridgeTxArgs, BuildDepositTxArgs, BuildWithdrawTxArgs, BuildReclaimWithdrawalRequestTxArgs, BuildCancelWithdrawalRequestTxArgs, GetMinimumRequestAgeArgs, GetWithdrawalRequestsOfUserArgs, PyxisWithdrawalRequest, ChainType } from '@pyxisjs/core';
3
3
  export { EventParams, TxParams, ViewParams } from '@pyxisjs/core';
4
4
  import { Abi, PublicClient } from 'viem';
5
5
  export { Abi as EvmABI } from 'viem';
@@ -115,42 +115,6 @@ declare class AptosChainAdapter extends BaseChainAdapter<Aptos> implements Multi
115
115
  getUserWithdrawalRequests({ flag, userAddress, vault, matchAll, }: GetWithdrawalRequestsOfUserArgs): Promise<PyxisWithdrawalRequest[]>;
116
116
  }
117
117
 
118
- /**
119
- * Aptos analytics utility functions
120
- */
121
-
122
- /**
123
- * Maps an IndexerVaultActivity to a VaultActivity with camelCase properties
124
- */
125
- declare function mapIndexerToVaultActivity(indexerActivity: IndexerVaultActivity): VaultActivity;
126
-
127
- /**
128
- * Aptos analytics client implementation
129
- */
130
-
131
- /**
132
- * Aptos-specific analytics client implementation
133
- */
134
- declare class AptosAnalyticsClient implements BaseAnalyticsClient {
135
- private chainAdapter;
136
- private analyticsAdapter;
137
- private statsClient;
138
- constructor(chainAdapter: BaseChainAdapter<Aptos>, analyticsAdapter: BaseChainAdapter<Aptos>);
139
- /**
140
- * Get function signature using contract address from adapter
141
- */
142
- private getBaseFunctionSignature;
143
- getActivities({ vault, user, page, pageSize, }: GetActivitiesArgs): Promise<{
144
- activities: VaultActivity[];
145
- total: number;
146
- }>;
147
- getTvlInBaseAsset({ vault, asset }: VaultTvlArgs): Promise<string>;
148
- getUpdateExchangeRateEvents({ vault, startTime, endTime, }: HistoricalApyArgs): Promise<ExchangeRateEvent[]>;
149
- get30DayApy(vault: string): Promise<string>;
150
- getHistoricalApy({ vault, startTime, endTime, window, }: HistoricalApyArgs): Promise<ApyDataPoint[]>;
151
- getManageOperations(args: GetManageOperationsArgs): Promise<ManageOperation[]>;
152
- }
153
-
154
118
  declare const AccountantABI: Abi;
155
119
  declare const AtomicQueueABI: Abi;
156
120
  declare const BoringVaultABI: Abi;
@@ -248,10 +212,4 @@ declare function getFunctionSignature(type: ChainType, contractName: string, fun
248
212
  */
249
213
  declare function getContractABI(type: ChainType, contractName: string): AptosABI | Abi;
250
214
 
251
- declare class PyxisStatsClient {
252
- private readonly baseUrl;
253
- constructor(baseUrl?: string);
254
- getManageOperations({ vaultId, startTime, endTime, limit, }: GetManageOperationsArgs): Promise<ManageOperation[]>;
255
- }
256
-
257
- export { AccountantABI, AccountantAptosABI, type AptosABI, AptosAnalyticsClient, AptosChainAdapter, type AptosFunction, type AptosGenericTypeParam, type AptosStruct, AtomicQueueABI, AtomicQueueAptosABI, BoringVaultABI, CONTRACTS, type ContractConfig, type ContractsConfig, EthereumChainAdapter, MultiChainLayerZeroTellerAptosABI, PyxisStatsClient, TellerAptosABI, TellerWithMultiAssetSupportABI, VaultAptosABI, getContractABI, getFunctionSignature, mapIndexerToVaultActivity };
215
+ export { AccountantABI, AccountantAptosABI, type AptosABI, AptosChainAdapter, type AptosFunction, type AptosGenericTypeParam, type AptosStruct, AtomicQueueABI, AtomicQueueAptosABI, BoringVaultABI, CONTRACTS, type ContractConfig, type ContractsConfig, EthereumChainAdapter, MultiChainLayerZeroTellerAptosABI, TellerAptosABI, TellerWithMultiAssetSupportABI, VaultAptosABI, getContractABI, getFunctionSignature };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Aptos, UserTransactionResponse } from '@aptos-labs/ts-sdk';
2
- import { BaseChainAdapter, MultiChainVaultAPI, Chain, TxParams, TransactionPayload, ViewParams, EventParams, TransactionResult, QueryIndexerParams, GetWithdrawRateInQuoteSafeArgs, GetDepositRateInQuoteSafeArgs, QuoteDepositArgs, QuoteWithdrawArgs, QuoteBridgeArgs, BridgeQuoteResponse, BuildBridgeTxArgs, BuildDepositTxArgs, BuildWithdrawTxArgs, BuildReclaimWithdrawalRequestTxArgs, BuildCancelWithdrawalRequestTxArgs, GetMinimumRequestAgeArgs, GetWithdrawalRequestsOfUserArgs, PyxisWithdrawalRequest, IndexerVaultActivity, VaultActivity, BaseAnalyticsClient, GetActivitiesArgs, VaultTvlArgs, HistoricalApyArgs, ExchangeRateEvent, ApyDataPoint, GetManageOperationsArgs, ManageOperation, ChainType } from '@pyxisjs/core';
2
+ import { BaseChainAdapter, MultiChainVaultAPI, Chain, TxParams, TransactionPayload, ViewParams, EventParams, TransactionResult, QueryIndexerParams, GetWithdrawRateInQuoteSafeArgs, GetDepositRateInQuoteSafeArgs, QuoteDepositArgs, QuoteWithdrawArgs, QuoteBridgeArgs, BridgeQuoteResponse, BuildBridgeTxArgs, BuildDepositTxArgs, BuildWithdrawTxArgs, BuildReclaimWithdrawalRequestTxArgs, BuildCancelWithdrawalRequestTxArgs, GetMinimumRequestAgeArgs, GetWithdrawalRequestsOfUserArgs, PyxisWithdrawalRequest, ChainType } from '@pyxisjs/core';
3
3
  export { EventParams, TxParams, ViewParams } from '@pyxisjs/core';
4
4
  import { Abi, PublicClient } from 'viem';
5
5
  export { Abi as EvmABI } from 'viem';
@@ -115,42 +115,6 @@ declare class AptosChainAdapter extends BaseChainAdapter<Aptos> implements Multi
115
115
  getUserWithdrawalRequests({ flag, userAddress, vault, matchAll, }: GetWithdrawalRequestsOfUserArgs): Promise<PyxisWithdrawalRequest[]>;
116
116
  }
117
117
 
118
- /**
119
- * Aptos analytics utility functions
120
- */
121
-
122
- /**
123
- * Maps an IndexerVaultActivity to a VaultActivity with camelCase properties
124
- */
125
- declare function mapIndexerToVaultActivity(indexerActivity: IndexerVaultActivity): VaultActivity;
126
-
127
- /**
128
- * Aptos analytics client implementation
129
- */
130
-
131
- /**
132
- * Aptos-specific analytics client implementation
133
- */
134
- declare class AptosAnalyticsClient implements BaseAnalyticsClient {
135
- private chainAdapter;
136
- private analyticsAdapter;
137
- private statsClient;
138
- constructor(chainAdapter: BaseChainAdapter<Aptos>, analyticsAdapter: BaseChainAdapter<Aptos>);
139
- /**
140
- * Get function signature using contract address from adapter
141
- */
142
- private getBaseFunctionSignature;
143
- getActivities({ vault, user, page, pageSize, }: GetActivitiesArgs): Promise<{
144
- activities: VaultActivity[];
145
- total: number;
146
- }>;
147
- getTvlInBaseAsset({ vault, asset }: VaultTvlArgs): Promise<string>;
148
- getUpdateExchangeRateEvents({ vault, startTime, endTime, }: HistoricalApyArgs): Promise<ExchangeRateEvent[]>;
149
- get30DayApy(vault: string): Promise<string>;
150
- getHistoricalApy({ vault, startTime, endTime, window, }: HistoricalApyArgs): Promise<ApyDataPoint[]>;
151
- getManageOperations(args: GetManageOperationsArgs): Promise<ManageOperation[]>;
152
- }
153
-
154
118
  declare const AccountantABI: Abi;
155
119
  declare const AtomicQueueABI: Abi;
156
120
  declare const BoringVaultABI: Abi;
@@ -248,10 +212,4 @@ declare function getFunctionSignature(type: ChainType, contractName: string, fun
248
212
  */
249
213
  declare function getContractABI(type: ChainType, contractName: string): AptosABI | Abi;
250
214
 
251
- declare class PyxisStatsClient {
252
- private readonly baseUrl;
253
- constructor(baseUrl?: string);
254
- getManageOperations({ vaultId, startTime, endTime, limit, }: GetManageOperationsArgs): Promise<ManageOperation[]>;
255
- }
256
-
257
- export { AccountantABI, AccountantAptosABI, type AptosABI, AptosAnalyticsClient, AptosChainAdapter, type AptosFunction, type AptosGenericTypeParam, type AptosStruct, AtomicQueueABI, AtomicQueueAptosABI, BoringVaultABI, CONTRACTS, type ContractConfig, type ContractsConfig, EthereumChainAdapter, MultiChainLayerZeroTellerAptosABI, PyxisStatsClient, TellerAptosABI, TellerWithMultiAssetSupportABI, VaultAptosABI, getContractABI, getFunctionSignature, mapIndexerToVaultActivity };
215
+ export { AccountantABI, AccountantAptosABI, type AptosABI, AptosChainAdapter, type AptosFunction, type AptosGenericTypeParam, type AptosStruct, AtomicQueueABI, AtomicQueueAptosABI, BoringVaultABI, CONTRACTS, type ContractConfig, type ContractsConfig, EthereumChainAdapter, MultiChainLayerZeroTellerAptosABI, TellerAptosABI, TellerWithMultiAssetSupportABI, VaultAptosABI, getContractABI, getFunctionSignature };