@alphafi/alphafi-sdk 0.0.12 → 0.0.13
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/common/alphaTypes.d.ts +109 -0
- package/dist/common/cetus_mainnet_config.d.ts +2 -0
- package/dist/common/coins.d.ts +4 -0
- package/dist/common/constants.d.ts +401 -0
- package/dist/common/maps.d.ts +56 -0
- package/dist/common/pyth.d.ts +6 -0
- package/dist/common/types.d.ts +412 -0
- package/dist/example.d.ts +2 -0
- package/dist/getAirdropShare.d.ts +1 -0
- package/dist/getAllVaults.d.ts +3 -0
- package/dist/getAlphaUnlocks.d.ts +13 -0
- package/dist/getAprs.d.ts +5 -0
- package/dist/getHoldersFromTransactions.d.ts +8 -0
- package/dist/getLastAutoCompoundTime.d.ts +2 -0
- package/dist/getRebalanceHistory.d.ts +3 -0
- package/dist/getVaultBalances.d.ts +8 -0
- package/dist/getVaults.d.ts +4 -0
- package/dist/graphql/client.d.ts +3 -0
- package/dist/graphql/executeMutations.d.ts +3 -0
- package/dist/graphql/fetchAutoCompoundingEventsGql.d.ts +26 -0
- package/dist/graphql/fetchData.d.ts +10 -0
- package/dist/graphql/fetchNftHolders.d.ts +2 -0
- package/dist/graphql/fetchReceipts.d.ts +2 -0
- package/dist/graphql/mutations.d.ts +3 -0
- package/dist/graphql/parseData.d.ts +1 -0
- package/dist/graphql/parseLockedTableId.d.ts +6 -0
- package/dist/graphql/queries.d.ts +14 -0
- package/dist/graphql/types.d.ts +69 -0
- package/dist/index.d.ts +18 -0
- package/dist/sui-sdk/client.d.ts +3 -0
- package/dist/sui-sdk/events/fetchAutoCompoundingEvents.d.ts +5 -0
- package/dist/sui-sdk/events/fetchEvents.d.ts +2 -0
- package/dist/sui-sdk/events/fetchLiquidityChangeEvents.d.ts +2 -0
- package/dist/sui-sdk/events/fetchRebalanceEvents.d.ts +4 -0
- package/dist/sui-sdk/events/parseData.d.ts +3 -0
- package/dist/sui-sdk/events/types.d.ts +93 -0
- package/dist/sui-sdk/functions/fetchTableData.d.ts +49 -0
- package/dist/sui-sdk/functions/fetchUserVaultBalances.d.ts +2 -0
- package/dist/sui-sdk/functions/fetchUserVaults.d.ts +2 -0
- package/dist/sui-sdk/functions/getPortfolioAmounts.d.ts +32 -0
- package/dist/sui-sdk/functions/getReceipts.d.ts +8 -0
- package/dist/sui-sdk/transactions/constants.d.ts +3 -0
- package/dist/sui-sdk/transactions/fetchTransactions.d.ts +3 -0
- package/dist/sui-sdk/transactions/types.d.ts +7 -0
- package/dist/types.d.ts +212 -0
- package/dist/utils/clmm/prices.d.ts +19 -0
- package/dist/utils/clmm/tokenAmountFromLiquidity.d.ts +10 -0
- package/dist/utils/clmm/types.d.ts +24 -0
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/getHoldersFromTransactionsUtils.d.ts +5 -0
- package/dist/utils/getReceipts.d.ts +3 -0
- package/dist/utils/hop.d.ts +15 -0
- package/dist/utils/prices.d.ts +6 -0
- package/dist/utils/simpleCache.d.ts +9 -0
- package/dist/utils/types.d.ts +4 -0
- package/dist/utils/userHoldings.d.ts +5 -0
- package/dist/vaultFunctions.d.ts +4 -0
- package/package.json +4 -1
- package/.envrc +0 -1
- package/.eslintrc.json +0 -21
- package/.github/workflows/static.yml +0 -51
- package/.prettierrc.json +0 -27
- package/.prettierrc.json~ +0 -30
- package/__tests__/getAprs.test.ts~ +0 -9
- package/__tests__/getRebalanceHistory.test.ts~ +0 -19
- package/apr.org +0 -11
- package/babel.config.json +0 -11
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -78
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1448
- package/docs/functions/alphaLpBreakdown.html +0 -1
- package/docs/functions/cetusLpBreakdown.html +0 -1
- package/docs/functions/collectRewards.html +0 -1
- package/docs/functions/deposit.html +0 -1
- package/docs/functions/fetchAutoCompoundingEventsGql.html +0 -1
- package/docs/functions/fetchCetusPools.html +0 -1
- package/docs/functions/fetchChainIdentifier.html +0 -1
- package/docs/functions/fetchNftHolders.html +0 -1
- package/docs/functions/fetchPools.html +0 -1
- package/docs/functions/fetchPortfolioData.html +0 -1
- package/docs/functions/fetchProtocolData.html +0 -1
- package/docs/functions/fetchUserVaultBalances.html +0 -1
- package/docs/functions/fetchUserVaults.html +0 -1
- package/docs/functions/fetchUserWalletData.html +0 -1
- package/docs/functions/getAirdropShare.html +0 -1
- package/docs/functions/getAllDoubleAssetVaults.html +0 -1
- package/docs/functions/getAllSingleAssetVaults.html +0 -1
- package/docs/functions/getAllVaults.html +0 -1
- package/docs/functions/getAlphaVaultBalance.html +0 -1
- package/docs/functions/getApr.html +0 -1
- package/docs/functions/getAprs.html +0 -1
- package/docs/functions/getApy.html +0 -1
- package/docs/functions/getApys.html +0 -1
- package/docs/functions/getDoubleAssetVaultBalance.html +0 -1
- package/docs/functions/getDoubleAssetVaults.html +0 -1
- package/docs/functions/getRebalanceHistories.html +0 -1
- package/docs/functions/getRebalanceHistory.html +0 -1
- package/docs/functions/getSingleAssetVaultBalance.html +0 -1
- package/docs/functions/getSingleAssetVaults.html +0 -1
- package/docs/functions/getVaultBalance.html +0 -1
- package/docs/functions/getVaults.html +0 -1
- package/docs/functions/lastAutocompoundTime.html +0 -1
- package/docs/functions/parseUserWalletData.html +0 -1
- package/docs/functions/withdraw.html +0 -1
- package/docs/index.html +0 -40
- package/docs/interfaces/Coin.html +0 -5
- package/docs/interfaces/CoinPair.html +0 -3
- package/docs/interfaces/RebalanceHistoryType.html +0 -5
- package/docs/modules.html +0 -66
- package/docs/types/AlphaFiDoubleAssetVault.html +0 -1
- package/docs/types/AlphaFiSingleAssetVault.html +0 -1
- package/docs/types/AlphaFiVault.html +0 -1
- package/docs/types/AlphaFiVaultBalance.html +0 -1
- package/docs/types/AlphaPoolType.html +0 -1
- package/docs/types/AlphaReceipt.html +0 -1
- package/docs/types/AlphaVaultBalance.html +0 -1
- package/docs/types/AutoCompoundingEventNode.html +0 -1
- package/docs/types/CetusInvestor.html +0 -1
- package/docs/types/CetusPoolType.html +0 -1
- package/docs/types/CetusSwapOptions.html +0 -1
- package/docs/types/CoinAmounts.html +0 -1
- package/docs/types/CoinName.html +0 -1
- package/docs/types/CoinType.html +0 -1
- package/docs/types/CreatePoolOptions.html +0 -1
- package/docs/types/DoubleAssetVaultBalance.html +0 -1
- package/docs/types/Icon.html +0 -1
- package/docs/types/LpBreakdownType.html +0 -1
- package/docs/types/ParentProtocolName.html +0 -1
- package/docs/types/PoolName.html +0 -1
- package/docs/types/PoolReceipt.html +0 -1
- package/docs/types/PoolType.html +0 -1
- package/docs/types/Receipt.html +0 -1
- package/docs/types/SingleAssetVaultBalance.html +0 -1
- package/docs/types/SuiNetwork.html +0 -1
- package/docs/types/SwapOptions.html +0 -1
- package/docs/types/TickSpacing.html +0 -1
- package/docs/types/TransactionBlockType.html +0 -1
- package/events.csv +0 -61
- package/events.csv~ +0 -71
- package/jest.config.js +0 -5
- package/package.json~ +0 -56
- package/tsconfig.json~ +0 -16
- package/tsconfig.test.json~ +0 -17
- package/typedoc.json +0 -8
- package/webpack.config.cjs~ +0 -63
- package/webpack.config.js +0 -54
- package/webpack.config.js~ +0 -50
- package/webpack.config.ts~ +0 -64
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import BN from "bn.js";
|
|
2
|
+
export type SuiNetwork = "mainnet" | "testnet" | "devnet" | "localnet";
|
|
3
|
+
export type ParentProtocolName = "ALPHAFI" | "CETUS" | "NAVI";
|
|
4
|
+
export type PoolName = "ALPHA" | "HASUI-SUI" | "USDY-USDC" | "ALPHA-SUI" | "USDT-USDC" | "USDC-SUI" | "USDC-WBTC" | "WETH-USDC" | "NAVI-SUI" | "NAVI-VSUI" | "NAVX-SUI" | "NAVI-WETH" | "NAVI-USDT" | "NAVI-USDC" | "NAVI-HASUI" | "BUCK-USDC" | "CETUS-SUI" | "NAVI-LOOP-SUI-VSUI" | "NAVI-LOOP-USDT-USDC" | "ALPHA-USDC" | "WSOL-USDC" | "FUD-SUI" | "BLUB-SUI" | "SCA-SUI";
|
|
5
|
+
export type SingleAssetPoolNames = "ALPHA" | "NAVI-SUI" | "NAVI-VSUI" | "NAVI-WETH" | "NAVI-USDT" | "NAVI-USDC" | "NAVI-HASUI" | "NAVI-LOOP-SUI-VSUI" | "NAVI-LOOP-USDT-USDC";
|
|
6
|
+
export type DoubleAssetPoolNames = "HASUI-SUI" | "USDY-USDC" | "ALPHA-SUI" | "ALPHA-USDC" | "USDT-USDC" | "USDC-SUI" | "USDC-WBTC" | "WETH-USDC" | "NAVX-SUI" | "BUCK-USDC" | "CETUS-SUI" | "WSOL-USDC" | "FUD-SUI" | "BLUB-SUI" | "SCA-SUI";
|
|
7
|
+
export type CoinName = "ALPHA" | "SUI" | "USDC" | "USDT" | "VSUI" | "NAVX" | "SCA" | "CETUS" | "AFSUI" | "WETH" | "APT" | "WSOL" | "SLP" | "WBTC" | "CELO" | "TURBOS" | "HASUI" | "USDY" | "BUCK" | "FUD" | "BLUB";
|
|
8
|
+
/**
|
|
9
|
+
* Represents a coin with its name, type, icon, and exponent.
|
|
10
|
+
*/
|
|
11
|
+
export interface Coin {
|
|
12
|
+
/**
|
|
13
|
+
* The name of the coin (e.g., SUI, ALPHA, USDC, USDT).
|
|
14
|
+
*/
|
|
15
|
+
name: CoinName;
|
|
16
|
+
/**
|
|
17
|
+
* The type of the coin object on the Sui blockchain.
|
|
18
|
+
*/
|
|
19
|
+
type: CoinType;
|
|
20
|
+
/**
|
|
21
|
+
* The icon or logo associated with the coin.
|
|
22
|
+
*/
|
|
23
|
+
icon: Icon;
|
|
24
|
+
/**
|
|
25
|
+
* The exponent used to scale the coin's value.
|
|
26
|
+
* Typically used to convert between the smallest unit and the base unit.
|
|
27
|
+
* For example, SUI has an exponent of 9 because 1 SUI equals 10^9 MISTs.
|
|
28
|
+
*/
|
|
29
|
+
expo: number;
|
|
30
|
+
}
|
|
31
|
+
export type Icon = "https://coinmeta.polymedia.app/img/coins/0x0000000000000000000000000000000000000000000000000000000000000002-sui-SUI.svg" | "https://coinmeta.polymedia.app/img/coins/0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf-coin-COIN.webp" | "https://coinmeta.polymedia.app/img/coins/0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c-coin-COIN.webp" | "https://coinmeta.polymedia.app/img/coins/0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55-cert-CERT.webp" | "https://coinmeta.polymedia.app/img/coins/0xa99b8952d4f7d947ea77fe0ecdcc9e5fc0bcab2841d6e2a5aa00c3044e5544b5-navx-NAVX.webp" | "https://suivision.xyz/images/coin-default.png" | "https://coinmeta.polymedia.app/img/coins/0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6-sca-SCA.webp" | "https://coinmeta.polymedia.app/img/coins/0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc-afsui-AFSUI.webp" | "https://coinmeta.polymedia.app/img/coins/0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5-coin-COIN.webp" | "https://coinmeta.polymedia.app/img/coins/0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37-coin-COIN.webp" | "https://coinmeta.polymedia.app/img/coins/0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8-coin-COIN.webp" | "https://coinmeta.polymedia.app/img/coins/0xc44d97a4bc4e5a33ca847b72b123172c88a6328196b71414f32c3070233604b2-slp-SLP.webp" | "https://coinmeta.polymedia.app/img/coins/0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881-coin-COIN.webp" | "https://coinmeta.polymedia.app/img/coins/0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f-coin-COIN.webp" | "https://coinmeta.polymedia.app/img/coins/0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b-cetus-CETUS.webp" | "https://coinmeta.polymedia.app/img/coins/0x5d1f47ea69bb0de31c313d7acf89b890dbb8991ea8e03c6c355171f84bb1ba4a-turbos-TURBOS.svg" | "https://7taj6jfau6n3dri7agspzfnva7qbj5sizz5xc3lb56nmxpsyoiba.arweave.net/_MCfJKCnm7HFHwGk_JW1B-AU9kjOe3FtYe-ay75YcgI" | "https://coinmeta.polymedia.app/img/coins/0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d-hasui-HASUI.svg" | "https://coinmeta.polymedia.app/img/coins/0x960b531667636f39e85867775f52f6b1f220a058c4de786905bdf761e06a56bb-usdy-USDY.svg" | "https://imagedelivery.net/cBNDGgkrsEA-b_ixIp9SkQ/buck.svg/public" | "" | "";
|
|
32
|
+
export type CoinType = "0xfe3afec26c59e874f3c1d60b8203cb3852d2bb2aa415df9548b8d688e6683f93::alpha::ALPHA" | "0x2::sui::SUI" | "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT" | "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN" | "0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN" | "0xa99b8952d4f7d947ea77fe0ecdcc9e5fc0bcab2841d6e2a5aa00c3044e5544b5::navx::NAVX" | "0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA" | "0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::AFSUI" | "0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN" | "0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN" | "0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN" | "0xc44d97a4bc4e5a33ca847b72b123172c88a6328196b71414f32c3070233604b2::slp::SLP" | "0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN" | "0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN" | "0x6864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS" | "0x5d1f47ea69bb0de31c313d7acf89b890dbb8991ea8e03c6c355171f84bb1ba4a::turbos::TURBOS" | "0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::hasui::HASUI" | "0x960b531667636f39e85867775f52f6b1f220a058c4de786905bdf761e06a56bb::usdy::USDY" | "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck::BUCK" | "0x76cb819b01abed502bee8a702b4c2d547532c12f25001c9dea795a5e631c26f1::fud::FUD" | "0xfa7ac3951fdca92c5200d468d31a365eb03b2be9936fde615e69f0c1274ad3a0::BLUB::BLUB";
|
|
33
|
+
declare const ALPHA_SUI_POOL_RECEIPT: string;
|
|
34
|
+
declare const USDY_USDC_POOL_RECEIPT: string;
|
|
35
|
+
declare const USDT_USDC_POOL_RECEIPT: string;
|
|
36
|
+
declare const ALPHA_POOL_RECEIPT: string;
|
|
37
|
+
declare const HASUI_SUI_POOL_RECEIPT: string;
|
|
38
|
+
declare const USDC_SUI_POOL_RECEIPT: string;
|
|
39
|
+
declare const USDC_WBTC_POOL_RECEIPT: string;
|
|
40
|
+
declare const WETH_USDC_POOL_RECEIPT: string;
|
|
41
|
+
declare const NAVI_SUI_POOL_RECEIPT: string;
|
|
42
|
+
declare const NAVI_VSUI_POOL_RECEIPT: string;
|
|
43
|
+
declare const NAVX_SUI_POOL_RECEIPT: string;
|
|
44
|
+
declare const NAVI_WETH_POOL_RECEIPT: string;
|
|
45
|
+
declare const NAVI_USDT_POOL_RECEIPT: string;
|
|
46
|
+
declare const NAVI_USDC_POOL_RECEIPT: string;
|
|
47
|
+
export type PoolReceipt = typeof ALPHA_SUI_POOL_RECEIPT | typeof USDY_USDC_POOL_RECEIPT | typeof USDT_USDC_POOL_RECEIPT | typeof ALPHA_POOL_RECEIPT | typeof HASUI_SUI_POOL_RECEIPT | typeof USDC_SUI_POOL_RECEIPT | typeof USDC_WBTC_POOL_RECEIPT | typeof WETH_USDC_POOL_RECEIPT | typeof NAVI_SUI_POOL_RECEIPT | typeof NAVI_VSUI_POOL_RECEIPT | typeof NAVX_SUI_POOL_RECEIPT | typeof NAVI_WETH_POOL_RECEIPT | typeof NAVI_USDT_POOL_RECEIPT | typeof NAVI_USDC_POOL_RECEIPT;
|
|
48
|
+
export type CoinAmounts = {
|
|
49
|
+
coinA: BN;
|
|
50
|
+
coinB: BN;
|
|
51
|
+
};
|
|
52
|
+
export type CetusInvestor = {
|
|
53
|
+
objectId: string;
|
|
54
|
+
version: string;
|
|
55
|
+
digest: string;
|
|
56
|
+
type: string;
|
|
57
|
+
content: {
|
|
58
|
+
dataType: string;
|
|
59
|
+
type: string;
|
|
60
|
+
hasPublicTransfer: boolean;
|
|
61
|
+
fields: {
|
|
62
|
+
free_balance_a: string;
|
|
63
|
+
free_balance_b: string;
|
|
64
|
+
id: {
|
|
65
|
+
id: string;
|
|
66
|
+
};
|
|
67
|
+
lower_tick: string;
|
|
68
|
+
performance_fee: string;
|
|
69
|
+
performance_fee_max_cap: string;
|
|
70
|
+
upper_tick: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export type CetusPoolType = {
|
|
75
|
+
objectId: string;
|
|
76
|
+
version: string;
|
|
77
|
+
digest: string;
|
|
78
|
+
content: {
|
|
79
|
+
dataType: string;
|
|
80
|
+
type: string;
|
|
81
|
+
hasPublicTransfer: boolean;
|
|
82
|
+
fields: {
|
|
83
|
+
xTokenSupply: string;
|
|
84
|
+
tokensInvested: string;
|
|
85
|
+
coin_a: string;
|
|
86
|
+
coin_b: string;
|
|
87
|
+
current_sqrt_price: string;
|
|
88
|
+
current_tick_index: {
|
|
89
|
+
fields: {
|
|
90
|
+
bits: number;
|
|
91
|
+
};
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
fee_growth_global_a: string;
|
|
95
|
+
fee_growth_global_b: string;
|
|
96
|
+
fee_protocol_coin_a: string;
|
|
97
|
+
fee_protocol_coin_b: string;
|
|
98
|
+
fee_rate: string;
|
|
99
|
+
id: {
|
|
100
|
+
id: string;
|
|
101
|
+
};
|
|
102
|
+
index: string;
|
|
103
|
+
is_pause: boolean;
|
|
104
|
+
liquidity: string;
|
|
105
|
+
position_manager: {
|
|
106
|
+
fields: {
|
|
107
|
+
position_index: string;
|
|
108
|
+
positions: {
|
|
109
|
+
fields: {
|
|
110
|
+
head: string;
|
|
111
|
+
id: {
|
|
112
|
+
id: string;
|
|
113
|
+
};
|
|
114
|
+
size: string;
|
|
115
|
+
tail: string;
|
|
116
|
+
};
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
tick_spacing: number;
|
|
120
|
+
};
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
tick_spacing: number;
|
|
124
|
+
url: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export type AlphaReceipt = {
|
|
129
|
+
lockedBalance: string;
|
|
130
|
+
unlockedBalance: string;
|
|
131
|
+
balance: string;
|
|
132
|
+
};
|
|
133
|
+
export type Receipt = {
|
|
134
|
+
objectId: string;
|
|
135
|
+
version: string;
|
|
136
|
+
digest: string;
|
|
137
|
+
type: string;
|
|
138
|
+
content: {
|
|
139
|
+
dataType: string;
|
|
140
|
+
type: string;
|
|
141
|
+
hasPublicTransfer: boolean;
|
|
142
|
+
fields: {
|
|
143
|
+
creator: string;
|
|
144
|
+
id: {
|
|
145
|
+
id: string;
|
|
146
|
+
};
|
|
147
|
+
image_url: string;
|
|
148
|
+
last_acc_reward_per_xtoken: {
|
|
149
|
+
type: string;
|
|
150
|
+
fields: {
|
|
151
|
+
contents: [
|
|
152
|
+
{
|
|
153
|
+
type: string;
|
|
154
|
+
fields: {
|
|
155
|
+
value: string;
|
|
156
|
+
key: {
|
|
157
|
+
type: string;
|
|
158
|
+
fields: {
|
|
159
|
+
name: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
];
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
locked_balance: {
|
|
168
|
+
type: string;
|
|
169
|
+
fields: {
|
|
170
|
+
head: string;
|
|
171
|
+
id: {
|
|
172
|
+
id: string;
|
|
173
|
+
};
|
|
174
|
+
size: string;
|
|
175
|
+
tail: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
name: string;
|
|
179
|
+
owner: string;
|
|
180
|
+
pending_rewards: {
|
|
181
|
+
type: string;
|
|
182
|
+
fields: {
|
|
183
|
+
contents: [
|
|
184
|
+
{
|
|
185
|
+
fields: {
|
|
186
|
+
key: {
|
|
187
|
+
type: string;
|
|
188
|
+
fields: {
|
|
189
|
+
name: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
value: string;
|
|
193
|
+
};
|
|
194
|
+
type: string;
|
|
195
|
+
}
|
|
196
|
+
];
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
pool_id: string;
|
|
200
|
+
xTokenBalance: string;
|
|
201
|
+
unlocked_xtokens: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
export type PoolType = {
|
|
206
|
+
objectId: string;
|
|
207
|
+
version: string;
|
|
208
|
+
digest: string;
|
|
209
|
+
content: {
|
|
210
|
+
dataType: string;
|
|
211
|
+
type: string;
|
|
212
|
+
hasPublicTransfer: boolean;
|
|
213
|
+
fields: {
|
|
214
|
+
id: {
|
|
215
|
+
id: string;
|
|
216
|
+
};
|
|
217
|
+
xTokenSupply: string;
|
|
218
|
+
tokensInvested: string;
|
|
219
|
+
acc_rewards_per_xtoken: {
|
|
220
|
+
type: string;
|
|
221
|
+
fields: {
|
|
222
|
+
contents: [
|
|
223
|
+
{
|
|
224
|
+
type: string;
|
|
225
|
+
fields: {
|
|
226
|
+
value: string;
|
|
227
|
+
key: {
|
|
228
|
+
type: string;
|
|
229
|
+
fields: {
|
|
230
|
+
name: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
];
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
locked_period_in_days: string;
|
|
239
|
+
locking_start_day: string;
|
|
240
|
+
alpha_bal: string;
|
|
241
|
+
locked_balance_withdrawal_fee: string;
|
|
242
|
+
deposit_fee: string;
|
|
243
|
+
deposit_fee_max_cap: string;
|
|
244
|
+
withdrawal_fee: string;
|
|
245
|
+
withdraw_fee_max_cap: string;
|
|
246
|
+
weight: string;
|
|
247
|
+
alphaUnlockedPerSecond: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
export type AlphaPoolType = {
|
|
252
|
+
objectId: string;
|
|
253
|
+
version: string;
|
|
254
|
+
digest: string;
|
|
255
|
+
content: {
|
|
256
|
+
dataType: string;
|
|
257
|
+
type: string;
|
|
258
|
+
hasPublicTransfer: boolean;
|
|
259
|
+
fields: {
|
|
260
|
+
alpha_bal: string;
|
|
261
|
+
deposit_fee: string;
|
|
262
|
+
deposit_fee_max_cap: string;
|
|
263
|
+
id: {
|
|
264
|
+
id: string;
|
|
265
|
+
};
|
|
266
|
+
instant_withdraw_fee: string;
|
|
267
|
+
instant_withdraw_fee_max_cap: string;
|
|
268
|
+
locked_period_in_days: string;
|
|
269
|
+
locking_start_day: string;
|
|
270
|
+
acc_rewards_per_xtoken: {
|
|
271
|
+
type: string;
|
|
272
|
+
fields: {
|
|
273
|
+
contents: [
|
|
274
|
+
{
|
|
275
|
+
type: string;
|
|
276
|
+
fields: {
|
|
277
|
+
value: string;
|
|
278
|
+
key: {
|
|
279
|
+
type: string;
|
|
280
|
+
fields: {
|
|
281
|
+
name: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
];
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
tokensInvested: string;
|
|
290
|
+
withdraw_fee_max_cap: string;
|
|
291
|
+
withdrawal_fee: string;
|
|
292
|
+
xTokenSupply: string;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
export interface CoinPair {
|
|
297
|
+
coinA: Coin;
|
|
298
|
+
coinB: Coin;
|
|
299
|
+
}
|
|
300
|
+
export type SwapOptions = {
|
|
301
|
+
pair: CoinPair;
|
|
302
|
+
senderAddress: string;
|
|
303
|
+
slippage: number;
|
|
304
|
+
} & ({
|
|
305
|
+
inAmount: BN;
|
|
306
|
+
outAmount?: never;
|
|
307
|
+
} | {
|
|
308
|
+
outAmount: BN;
|
|
309
|
+
inAmount?: never;
|
|
310
|
+
});
|
|
311
|
+
export type CetusSwapOptions = SwapOptions;
|
|
312
|
+
export type TickSpacing = 2 | 10 | 60 | 200;
|
|
313
|
+
export type CreatePoolOptions = {
|
|
314
|
+
tickSpacing: TickSpacing;
|
|
315
|
+
initializePrice: number;
|
|
316
|
+
imageUrl: string;
|
|
317
|
+
coinNameA: CoinName;
|
|
318
|
+
coinNameB: CoinName;
|
|
319
|
+
amount: number;
|
|
320
|
+
isAmountA: boolean;
|
|
321
|
+
};
|
|
322
|
+
export type AlphaFiSingleAssetVault = {
|
|
323
|
+
poolId: string;
|
|
324
|
+
poolName: PoolName;
|
|
325
|
+
receiptName: string;
|
|
326
|
+
receiptType: string;
|
|
327
|
+
coinType: CoinType;
|
|
328
|
+
coinName: CoinName;
|
|
329
|
+
};
|
|
330
|
+
export type AlphaFiDoubleAssetVault = {
|
|
331
|
+
poolId: string;
|
|
332
|
+
poolName: PoolName;
|
|
333
|
+
receiptName: string;
|
|
334
|
+
receiptType: string;
|
|
335
|
+
coinTypeA: CoinType;
|
|
336
|
+
coinTypeB: CoinType;
|
|
337
|
+
coinNameA: CoinName;
|
|
338
|
+
coinNameB: CoinName;
|
|
339
|
+
};
|
|
340
|
+
export type AlphaFiVault = AlphaFiSingleAssetVault | AlphaFiDoubleAssetVault;
|
|
341
|
+
export type AlphaVaultBalance = {
|
|
342
|
+
lockedAlphaCoins: string | null;
|
|
343
|
+
lockedAlphaCoinsInUSD: string | null;
|
|
344
|
+
unlockedAlphaCoins: string | null;
|
|
345
|
+
unlockedAlphaCoinsInUSD: string | null;
|
|
346
|
+
totalAlphaCoins: string | null;
|
|
347
|
+
totalAlphaCoinsInUSD: string | null;
|
|
348
|
+
};
|
|
349
|
+
export type DoubleAssetVaultBalance = {
|
|
350
|
+
coinA: string | null;
|
|
351
|
+
coinB: string | null;
|
|
352
|
+
valueInUSD: string | null;
|
|
353
|
+
};
|
|
354
|
+
export type SingleAssetVaultBalance = {
|
|
355
|
+
coin: string | null;
|
|
356
|
+
valueInUSD: string | null;
|
|
357
|
+
};
|
|
358
|
+
export type AlphaFiVaultBalance = AlphaVaultBalance | SingleAssetVaultBalance | DoubleAssetVaultBalance;
|
|
359
|
+
export type LpBreakdownType = {
|
|
360
|
+
coinA: string | null;
|
|
361
|
+
coinAInUsd: string | null;
|
|
362
|
+
coinB: string | null;
|
|
363
|
+
coinBInUsd: string | null;
|
|
364
|
+
liquidity: string | null;
|
|
365
|
+
};
|
|
366
|
+
export interface RebalanceHistoryType {
|
|
367
|
+
timestamp: string;
|
|
368
|
+
lower_tick: string;
|
|
369
|
+
upper_tick: string;
|
|
370
|
+
after_price: string;
|
|
371
|
+
amount_a_before: string;
|
|
372
|
+
amount_b_before: string;
|
|
373
|
+
amount_a_after: string;
|
|
374
|
+
amount_b_after: string;
|
|
375
|
+
}
|
|
376
|
+
export type TransactionBlockType = {
|
|
377
|
+
digest: string;
|
|
378
|
+
transaction: {
|
|
379
|
+
data: {
|
|
380
|
+
messageVersion: string;
|
|
381
|
+
transaction: {
|
|
382
|
+
kind: string;
|
|
383
|
+
inputs: {
|
|
384
|
+
type: string;
|
|
385
|
+
valueType: string;
|
|
386
|
+
value: number;
|
|
387
|
+
objectId: string | undefined;
|
|
388
|
+
}[];
|
|
389
|
+
transactions: {
|
|
390
|
+
MoveCall: {
|
|
391
|
+
package: string;
|
|
392
|
+
module: string;
|
|
393
|
+
function: string;
|
|
394
|
+
type_arguments: string[];
|
|
395
|
+
arguments: string[];
|
|
396
|
+
};
|
|
397
|
+
}[];
|
|
398
|
+
};
|
|
399
|
+
sender: string;
|
|
400
|
+
};
|
|
401
|
+
txSignatures: string[];
|
|
402
|
+
};
|
|
403
|
+
events: {
|
|
404
|
+
type: string;
|
|
405
|
+
parsedJson: {
|
|
406
|
+
after_sqrt_price: string;
|
|
407
|
+
};
|
|
408
|
+
}[];
|
|
409
|
+
timestampMs: string;
|
|
410
|
+
checkpoint: string;
|
|
411
|
+
};
|
|
412
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getAirdropShare(address: string): Promise<string>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AlphaUnlocks } from "./sui-sdk/functions/fetchTableData";
|
|
2
|
+
type GetAlphaUnlocksParams = {
|
|
3
|
+
address?: string;
|
|
4
|
+
timeRange?: {
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type GetAlphaUnlocksResponse = {
|
|
10
|
+
alphaUnlocks: AlphaUnlocks[];
|
|
11
|
+
};
|
|
12
|
+
export declare function getAlphaUnlocks(params: GetAlphaUnlocksParams): Promise<GetAlphaUnlocksResponse>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PoolName } from "./common/types";
|
|
2
|
+
export declare function getApr(poolName: PoolName): Promise<number>;
|
|
3
|
+
export declare function getAprs(poolNames?: PoolName[]): Promise<Record<string, number>>;
|
|
4
|
+
export declare function getApy(poolName: PoolName): Promise<number>;
|
|
5
|
+
export declare function getApys(poolNames?: PoolName[]): Promise<Record<string, number>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GetUserTokensFromTransactionsParams, GetUserTokensInUsdFromTransactionsParams, UserUsdHoldings } from "./types";
|
|
2
|
+
export declare function getHoldersFromTransactions(params?: {
|
|
3
|
+
poolNames?: string[];
|
|
4
|
+
startTime?: number;
|
|
5
|
+
endTime?: number;
|
|
6
|
+
}): Promise<string[]>;
|
|
7
|
+
export declare function getUserTokensFromTransactions(params?: GetUserTokensFromTransactionsParams): Promise<[string, string, string][]>;
|
|
8
|
+
export declare function getUserTokensInUsdFromTransactions(params?: GetUserTokensInUsdFromTransactionsParams): Promise<UserUsdHoldings[]>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PoolName, RebalanceHistoryType } from "./common/types";
|
|
2
|
+
export declare function getRebalanceHistory(poolName: PoolName): Promise<RebalanceHistoryType[]>;
|
|
3
|
+
export declare function getRebalanceHistories(poolNames?: PoolName[]): Promise<Record<string, RebalanceHistoryType[]>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AlphaVaultBalance, DoubleAssetVaultBalance, PoolName, SingleAssetVaultBalance } from "./common/types";
|
|
2
|
+
import { MultiGetVaultBalancesParams, HoldingsObj, AlphaFiMultiVaultBalance, VaultBalance, GetVaultBalanceForActiveUsersParams } from "./types";
|
|
3
|
+
export declare function getXTokenVaultBalanceForActiveUsers(params: GetVaultBalanceForActiveUsersParams): Promise<HoldingsObj[]>;
|
|
4
|
+
export declare function getVaultBalanceForActiveUsers(params: GetVaultBalanceForActiveUsersParams): Promise<AlphaFiMultiVaultBalance[]>;
|
|
5
|
+
export declare function getVaultBalance(address?: string, poolName?: PoolName, multiGet?: MultiGetVaultBalancesParams): Promise<VaultBalance>;
|
|
6
|
+
export declare function getAlphaVaultBalance(address: string): Promise<AlphaVaultBalance | undefined>;
|
|
7
|
+
export declare function getSingleAssetVaultBalance(address: string, poolName: PoolName): Promise<SingleAssetVaultBalance | undefined>;
|
|
8
|
+
export declare function getDoubleAssetVaultBalance(address: string, poolName: PoolName): Promise<DoubleAssetVaultBalance | undefined>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AlphaFiSingleAssetVault, AlphaFiDoubleAssetVault, AlphaFiVault } from "./common/types";
|
|
2
|
+
export declare function getVaults(address: string): Promise<AlphaFiVault[]>;
|
|
3
|
+
export declare function getSingleAssetVaults(address: string): Promise<AlphaFiSingleAssetVault[]>;
|
|
4
|
+
export declare function getDoubleAssetVaults(address: string): Promise<AlphaFiDoubleAssetVault[]>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface CommonAutoCompoundingEventAttributes {
|
|
2
|
+
type: string;
|
|
3
|
+
timestamp: number;
|
|
4
|
+
}
|
|
5
|
+
interface CetusAutoCompoundingEvent {
|
|
6
|
+
compound_amount_a: bigint;
|
|
7
|
+
compound_amount_b: number;
|
|
8
|
+
current_liquidity: bigint;
|
|
9
|
+
fee_collected_a: bigint;
|
|
10
|
+
fee_collected_b: bigint;
|
|
11
|
+
free_balance_a: bigint;
|
|
12
|
+
free_balance_b: bigint;
|
|
13
|
+
investor_id: string;
|
|
14
|
+
total_amount_a: bigint;
|
|
15
|
+
total_amount_b: bigint;
|
|
16
|
+
}
|
|
17
|
+
interface NaviAutoCompoundingEvent {
|
|
18
|
+
compound_amount: bigint;
|
|
19
|
+
fee_collected: bigint;
|
|
20
|
+
investor_id: string;
|
|
21
|
+
location: number;
|
|
22
|
+
total_amount: bigint;
|
|
23
|
+
}
|
|
24
|
+
export type AutoCompoundingEventNode = (CetusAutoCompoundingEvent & CommonAutoCompoundingEventAttributes) | (NaviAutoCompoundingEvent & CommonAutoCompoundingEventAttributes);
|
|
25
|
+
export declare function fetchAutoCompoundingEventsGql(eventType: string): Promise<AutoCompoundingEventNode[]>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function fetchUserWalletData(address: string): Promise<any>;
|
|
2
|
+
export declare function fetchProtocolData(): Promise<any>;
|
|
3
|
+
export declare function fetchPortfolioData(address: string): Promise<any>;
|
|
4
|
+
export declare function fetchChainIdentifier(): Promise<any>;
|
|
5
|
+
export declare function fetchUserVaults(walletAddress: string): Promise<any>;
|
|
6
|
+
export declare function fetchUserVaultBalances(walletAddress: string): Promise<any>;
|
|
7
|
+
export declare function fetchPools(): Promise<any>;
|
|
8
|
+
export declare function fetchCetusPools(): Promise<any>;
|
|
9
|
+
export { fetchAutoCompoundingEventsGql, AutoCompoundingEventNode, } from "./fetchAutoCompoundingEventsGql";
|
|
10
|
+
export { fetchNftHolders } from "./fetchNftHolders";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseUserWalletData(walletDataString: string): Promise<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const GET_USER_WALLET_DATA: import("graphql/language/ast").DocumentNode;
|
|
2
|
+
export declare const GET_PROTOCOL_DATA: import("graphql/language/ast").DocumentNode;
|
|
3
|
+
export declare const GET_PORTFOLIO_DATA: import("graphql/language/ast").DocumentNode;
|
|
4
|
+
export declare const GET_CHAIN_IDENTIFIER: import("graphql/language/ast").DocumentNode;
|
|
5
|
+
export declare const GET_USER_VAULTS: import("graphql/language/ast").DocumentNode;
|
|
6
|
+
export declare const GET_USER_VAULT_BALANCES: import("graphql/language/ast").DocumentNode;
|
|
7
|
+
export declare const GET_POOLS: import("graphql/language/ast").DocumentNode;
|
|
8
|
+
export declare const GET_CETUS_POOLS: import("graphql/language/ast").DocumentNode;
|
|
9
|
+
export declare const GET_INVESTORS: import("graphql/language/ast").DocumentNode;
|
|
10
|
+
export declare const GET_AUTOCOMPOUND_EVENTS: import("graphql/language/ast").DocumentNode;
|
|
11
|
+
export declare const GET_NFT_HOLDERS: import("graphql/language/ast").DocumentNode;
|
|
12
|
+
export declare const GET_RECEIPT_DATA: import("graphql/language/ast").DocumentNode;
|
|
13
|
+
export declare const GET_LOCKED_TABLE_DATA_FRAGMENT: import("graphql/language/ast").DocumentNode;
|
|
14
|
+
export declare const GET_LOCKED_TABLE_DATA: import("graphql/language/ast").DocumentNode;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
hasNextPage: boolean;
|
|
3
|
+
hasPreviousPage: boolean;
|
|
4
|
+
endCursor: string | null;
|
|
5
|
+
startCursor: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface KeyValue {
|
|
8
|
+
key: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LastAccRewardPerXToken {
|
|
14
|
+
contents: KeyValue[];
|
|
15
|
+
}
|
|
16
|
+
export interface LockedBalance {
|
|
17
|
+
id: string;
|
|
18
|
+
size: string;
|
|
19
|
+
head: string;
|
|
20
|
+
tail: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PendingRewards {
|
|
23
|
+
contents: KeyValue[];
|
|
24
|
+
}
|
|
25
|
+
export interface ReceiptMoveObjectContents {
|
|
26
|
+
id: string;
|
|
27
|
+
owner: string;
|
|
28
|
+
name: string;
|
|
29
|
+
image_url: string;
|
|
30
|
+
pool_id: string;
|
|
31
|
+
xTokenBalance: string;
|
|
32
|
+
last_acc_reward_per_xtoken: LastAccRewardPerXToken;
|
|
33
|
+
locked_balance: LockedBalance;
|
|
34
|
+
unlocked_xtokens: string;
|
|
35
|
+
pending_rewards: PendingRewards;
|
|
36
|
+
}
|
|
37
|
+
export interface AsReceiptMoveObject {
|
|
38
|
+
status: string;
|
|
39
|
+
contents: {
|
|
40
|
+
json: ReceiptMoveObjectContents;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface ReceiptNode {
|
|
44
|
+
asMoveObject: AsReceiptMoveObject;
|
|
45
|
+
}
|
|
46
|
+
export interface ReceiptsResponse {
|
|
47
|
+
objects: {
|
|
48
|
+
pageInfo: PageInfo;
|
|
49
|
+
nodes: ReceiptNode[];
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface LockedTableNode {
|
|
53
|
+
name: {
|
|
54
|
+
json: string;
|
|
55
|
+
};
|
|
56
|
+
value: {
|
|
57
|
+
json: {
|
|
58
|
+
prev: string | null;
|
|
59
|
+
next: string | null;
|
|
60
|
+
value: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface DynamicFieldsResponse {
|
|
65
|
+
dynamicFields: {
|
|
66
|
+
pageInfo: PageInfo;
|
|
67
|
+
nodes: LockedTableNode[];
|
|
68
|
+
};
|
|
69
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { getVaults, getSingleAssetVaults, getDoubleAssetVaults, } from "./getVaults";
|
|
2
|
+
export { getVaultBalance, getAlphaVaultBalance, getSingleAssetVaultBalance, getDoubleAssetVaultBalance, getVaultBalanceForActiveUsers, getXTokenVaultBalanceForActiveUsers, } from "./getVaultBalances";
|
|
3
|
+
export { getAllVaults, getAllDoubleAssetVaults, getAllSingleAssetVaults, } from "./getAllVaults";
|
|
4
|
+
export { getAirdropShare } from "./getAirdropShare";
|
|
5
|
+
export { alphaLpBreakdown, cetusLpBreakdown, lastAutocompoundTime, } from "./vaultFunctions";
|
|
6
|
+
export { getApr, getAprs, getApy, getApys } from "./getAprs";
|
|
7
|
+
export { getRebalanceHistory, getRebalanceHistories, } from "./getRebalanceHistory";
|
|
8
|
+
export { getHoldersFromTransactions, getUserTokensFromTransactions, getUserTokensInUsdFromTransactions, } from "./getHoldersFromTransactions";
|
|
9
|
+
export { getLastAutoCompoundTime } from "./getLastAutoCompoundTime";
|
|
10
|
+
export * from "./common/types";
|
|
11
|
+
export * from "./graphql/fetchData";
|
|
12
|
+
export * from "./graphql/parseData";
|
|
13
|
+
export * from "./graphql/executeMutations";
|
|
14
|
+
export { getReceipts, getPool } from "./sui-sdk/functions/getReceipts";
|
|
15
|
+
export { liquidityToTokens, multiTokensToUsd } from "./utils/userHoldings";
|
|
16
|
+
export { poolInfo, getCetusSqrtPriceMap, getCetusInvestorTicksMap, poolCoinMap, poolCoinPairMap, } from "./common/maps";
|
|
17
|
+
export { coins } from "./common/coins";
|
|
18
|
+
export { getAlphaUnlocks } from "./getAlphaUnlocks";
|