@augustdigital/sdk 4.15.5-alpha.0 → 4.17.0-alpha.0
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/lib/abis/AddressResolver.d.ts +28 -40
- package/lib/abis/ChainlinkV3.d.ts +83 -109
- package/lib/abis/ERC20.d.ts +137 -191
- package/lib/abis/ERC20_Bytes32.d.ts +125 -178
- package/lib/abis/ERC4626.d.ts +341 -480
- package/lib/abis/ERC721.d.ts +213 -299
- package/lib/abis/FeeOracle.d.ts +112 -149
- package/lib/abis/LendingPool.d.ts +1293 -1702
- package/lib/abis/LendingPoolV2.d.ts +37 -42
- package/lib/abis/LendingPoolV3.d.ts +25 -29
- package/lib/abis/Loan.d.ts +768 -1007
- package/lib/abis/Multicall3.d.ts +30 -43
- package/lib/abis/PoolAdapter.d.ts +35 -46
- package/lib/abis/RewardDistributor.d.ts +33 -38
- package/lib/abis/SmartAccount.d.ts +16 -23
- package/lib/abis/TextResolver.d.ts +16 -23
- package/lib/abis/TokenizedVaultV2.d.ts +1292 -1684
- package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +55 -62
- package/lib/abis/TokenizedVaultV2Receipt.d.ts +1463 -1934
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +250 -333
- package/lib/abis/UniversalResolverResolve.d.ts +69 -97
- package/lib/abis/UniversalSignatureValidator.d.ts +17 -23
- package/lib/abis/WrapperAdapter.d.ts +67 -89
- package/lib/adapters/evm/getters.d.ts +2 -8
- package/lib/adapters/evm/index.d.ts +15 -19
- package/lib/adapters/evm/utils.d.ts +2 -12
- package/lib/adapters/solana/constants.d.ts +17 -23
- package/lib/adapters/solana/getters.d.ts +1 -4
- package/lib/adapters/solana/idl/vault-idl.d.ts +279 -340
- package/lib/adapters/solana/index.d.ts +116 -212
- package/lib/adapters/solana/types.d.ts +50 -50
- package/lib/adapters/solana/utils.d.ts +78 -139
- package/lib/adapters/solana/vault.actions.d.ts +12 -37
- package/lib/adapters/sui/constants.d.ts +9 -9
- package/lib/adapters/sui/constants.js +8 -1
- package/lib/adapters/sui/constants.js.map +1 -1
- package/lib/adapters/sui/getters.d.ts +1 -3
- package/lib/adapters/sui/index.d.ts +21 -29
- package/lib/adapters/sui/transformer.d.ts +2 -6
- package/lib/adapters/sui/types.d.ts +56 -56
- package/lib/adapters/sui/utils.d.ts +1 -4
- package/lib/core/analytics/constants.d.ts +12 -0
- package/lib/core/analytics/constants.js +49 -0
- package/lib/core/analytics/constants.js.map +1 -0
- package/lib/core/analytics/index.d.ts +6 -0
- package/lib/core/analytics/index.js +31 -0
- package/lib/core/analytics/index.js.map +1 -0
- package/lib/core/analytics/instrumentation.d.ts +2 -0
- package/lib/core/analytics/instrumentation.js +150 -0
- package/lib/core/analytics/instrumentation.js.map +1 -0
- package/lib/core/analytics/metrics.d.ts +12 -0
- package/lib/core/analytics/metrics.js +133 -0
- package/lib/core/analytics/metrics.js.map +1 -0
- package/lib/core/analytics/sentry.d.ts +9 -0
- package/lib/core/analytics/sentry.js +166 -0
- package/lib/core/analytics/sentry.js.map +1 -0
- package/lib/core/analytics/types.d.ts +21 -0
- package/lib/core/analytics/types.js +3 -0
- package/lib/core/analytics/types.js.map +1 -0
- package/lib/core/analytics/user-identity.d.ts +8 -0
- package/lib/core/analytics/user-identity.js +82 -0
- package/lib/core/analytics/user-identity.js.map +1 -0
- package/lib/core/analytics/version.d.ts +1 -0
- package/lib/core/analytics/version.js +5 -0
- package/lib/core/analytics/version.js.map +1 -0
- package/lib/core/base.class.d.ts +25 -30
- package/lib/core/base.class.js +5 -1
- package/lib/core/base.class.js.map +1 -1
- package/lib/core/constants/adapters.d.ts +83 -111
- package/lib/core/constants/core.d.ts +69 -76
- package/lib/core/constants/vaults.d.ts +5 -63
- package/lib/core/constants/vaults.js +3 -3
- package/lib/core/constants/vaults.js.map +1 -1
- package/lib/core/constants/web3.d.ts +18 -19
- package/lib/core/fetcher.d.ts +17 -71
- package/lib/core/fetcher.js +20 -2
- package/lib/core/fetcher.js.map +1 -1
- package/lib/core/helpers/adapters.d.ts +2 -7
- package/lib/core/helpers/core.d.ts +8 -33
- package/lib/core/helpers/signer.d.ts +2 -6
- package/lib/core/helpers/vaults.d.ts +15 -38
- package/lib/core/helpers/web3.d.ts +19 -87
- package/lib/core/index.d.ts +1 -0
- package/lib/core/index.js +1 -0
- package/lib/core/index.js.map +1 -1
- package/lib/core/logger/index.d.ts +11 -11
- package/lib/core/logger/slack.d.ts +8 -9
- package/lib/index.d.ts +1 -61
- package/lib/main.d.ts +141 -158
- package/lib/main.js +3 -0
- package/lib/main.js.map +1 -1
- package/lib/modules/vaults/adapter.helpers.d.ts +38 -72
- package/lib/modules/vaults/fetcher.d.ts +69 -85
- package/lib/modules/vaults/getters.d.ts +100 -205
- package/lib/modules/vaults/index.d.ts +1 -6
- package/lib/modules/vaults/main.d.ts +131 -224
- package/lib/modules/vaults/main.js +8 -1
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/read.actions.d.ts +2 -8
- package/lib/modules/vaults/utils.d.ts +19 -55
- package/lib/modules/vaults/write.actions.d.ts +14 -26
- package/lib/services/coingecko/fetcher.d.ts +1 -4
- package/lib/services/debank/fetcher.d.ts +1 -4
- package/lib/services/debank/utils.d.ts +27 -38
- package/lib/services/octavfi/fetcher.d.ts +1 -3
- package/lib/services/octavfi/types.d.ts +24 -24
- package/lib/services/octavfi/utils.d.ts +2 -6
- package/lib/services/subgraph/fetcher.d.ts +2 -12
- package/lib/services/subgraph/vaults.d.ts +9 -42
- package/lib/types/points.d.ts +26 -35
- package/lib/types/pools.d.ts +112 -149
- package/lib/types/staking.d.ts +25 -25
- package/lib/types/subgraph.d.ts +33 -33
- package/lib/types/vaults.d.ts +219 -232
- package/lib/types/web3.d.ts +9 -9
- package/lib/types/webserver.d.ts +448 -466
- package/package.json +16 -13
|
@@ -1,56 +1,46 @@
|
|
|
1
1
|
import { IVaultMetadata } from '../../types';
|
|
2
|
-
export declare function fetchVaultWithFallback<T>(
|
|
3
|
-
vaultAddress: string,
|
|
4
|
-
fetchFn: () => Promise<T>,
|
|
5
|
-
options?: {
|
|
2
|
+
export declare function fetchVaultWithFallback<T>(vaultAddress: string, fetchFn: () => Promise<T>, options?: {
|
|
6
3
|
maxRetries?: number;
|
|
7
4
|
baseDelay?: number;
|
|
8
5
|
fallbackStrategies?: Array<() => Promise<T>>;
|
|
9
6
|
timeout?: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
strategy: string;
|
|
7
|
+
}): Promise<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
data?: T;
|
|
10
|
+
error?: Error;
|
|
11
|
+
strategy: string;
|
|
16
12
|
}>;
|
|
17
|
-
export declare function fetchVaultsBatch<T>(
|
|
18
|
-
vaults: Array<{
|
|
13
|
+
export declare function fetchVaultsBatch<T>(vaults: Array<{
|
|
19
14
|
address: string;
|
|
20
15
|
fetchFn: () => Promise<T>;
|
|
21
|
-
|
|
22
|
-
options?: {
|
|
16
|
+
}>, options?: {
|
|
23
17
|
maxRetries?: number;
|
|
24
18
|
baseDelay?: number;
|
|
25
19
|
batchSize?: number;
|
|
26
20
|
parallelLimit?: number;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
successRate: number;
|
|
21
|
+
}): Promise<{
|
|
22
|
+
successful: Array<{
|
|
23
|
+
index: number;
|
|
24
|
+
data: T;
|
|
25
|
+
strategy: string;
|
|
26
|
+
}>;
|
|
27
|
+
failed: Array<{
|
|
28
|
+
index: number;
|
|
29
|
+
error: Error;
|
|
30
|
+
address: string;
|
|
31
|
+
}>;
|
|
32
|
+
totalAttempted: number;
|
|
33
|
+
successRate: number;
|
|
41
34
|
}>;
|
|
42
|
-
export declare function fetchVaultsComprehensive<T>(
|
|
43
|
-
vaults: Array<{
|
|
35
|
+
export declare function fetchVaultsComprehensive<T>(vaults: Array<{
|
|
44
36
|
address: string;
|
|
45
37
|
chain: number;
|
|
46
|
-
|
|
47
|
-
fetchFn: (vault: {
|
|
38
|
+
}>, fetchFn: (vault: {
|
|
48
39
|
address: string;
|
|
49
40
|
chain: number;
|
|
50
41
|
fallbackRpc?: string;
|
|
51
42
|
minimal?: boolean;
|
|
52
|
-
|
|
53
|
-
options?: {
|
|
43
|
+
}) => Promise<T>, options?: {
|
|
54
44
|
maxRetries?: number;
|
|
55
45
|
baseDelay?: number;
|
|
56
46
|
batchSize?: number;
|
|
@@ -59,65 +49,59 @@ export declare function fetchVaultsComprehensive<T>(
|
|
|
59
49
|
includeInvisible?: boolean;
|
|
60
50
|
fallbackRpcUrls?: Record<number, string[]>;
|
|
61
51
|
timeout?: number;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
};
|
|
52
|
+
}): Promise<{
|
|
53
|
+
successful: Array<{
|
|
54
|
+
index: number;
|
|
55
|
+
data: T;
|
|
56
|
+
strategy: string;
|
|
57
|
+
attempts: number;
|
|
58
|
+
}>;
|
|
59
|
+
failed: Array<{
|
|
60
|
+
index: number;
|
|
61
|
+
error: Error;
|
|
62
|
+
address: string;
|
|
63
|
+
chain: number;
|
|
64
|
+
attempts: number;
|
|
65
|
+
}>;
|
|
66
|
+
totalAttempted: number;
|
|
67
|
+
successRate: number;
|
|
68
|
+
coverageReport: {
|
|
69
|
+
totalVaults: number;
|
|
70
|
+
successfulVaults: number;
|
|
71
|
+
failedVaults: number;
|
|
72
|
+
closedVaults: number;
|
|
73
|
+
invisibleVaults: number;
|
|
74
|
+
rpcFailures: Record<number, number>;
|
|
75
|
+
};
|
|
87
76
|
}>;
|
|
88
|
-
export declare function filterVaultsIntelligently<
|
|
89
|
-
T extends {
|
|
77
|
+
export declare function filterVaultsIntelligently<T extends {
|
|
90
78
|
status?: string;
|
|
91
79
|
isVisible?: boolean;
|
|
92
80
|
is_visible?: boolean;
|
|
93
|
-
|
|
94
|
-
>(
|
|
95
|
-
vaults: (T | null)[],
|
|
96
|
-
options?: {
|
|
81
|
+
}>(vaults: (T | null)[], options?: {
|
|
97
82
|
includeClosed?: boolean;
|
|
98
83
|
includeInvisible?: boolean;
|
|
99
84
|
includeNull?: boolean;
|
|
100
85
|
minStatus?: string[];
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
};
|
|
86
|
+
}): {
|
|
87
|
+
active: T[];
|
|
88
|
+
closed: T[];
|
|
89
|
+
invisible: T[];
|
|
90
|
+
failed: Array<{
|
|
91
|
+
index: number;
|
|
92
|
+
reason: string;
|
|
93
|
+
}>;
|
|
94
|
+
summary: {
|
|
95
|
+
total: number;
|
|
96
|
+
active: number;
|
|
97
|
+
closed: number;
|
|
98
|
+
invisible: number;
|
|
99
|
+
failed: number;
|
|
100
|
+
successRate: number;
|
|
101
|
+
};
|
|
118
102
|
};
|
|
119
103
|
export declare function fetchVaultMetadata(opts?: {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
104
|
+
options?: {
|
|
105
|
+
headers?: Record<string, string>;
|
|
106
|
+
};
|
|
123
107
|
}): Promise<IVaultMetadata>;
|
|
@@ -1,232 +1,127 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IAddress,
|
|
3
|
-
IHistoricalTimeseriesResponse,
|
|
4
|
-
INormalizedNumber,
|
|
5
|
-
ISubgraphWithdrawProccessed,
|
|
6
|
-
IVault,
|
|
7
|
-
IVaultAllocations,
|
|
8
|
-
IVaultAnnualizedApy,
|
|
9
|
-
IVaultAvailableRedemption,
|
|
10
|
-
IVaultLoan,
|
|
11
|
-
IVaultPosition,
|
|
12
|
-
IVaultRedemptionHistoryItem,
|
|
13
|
-
IVaultSummary,
|
|
14
|
-
IVaultWithdrawals,
|
|
15
|
-
IActiveStakingPosition,
|
|
16
|
-
IVaultHistoricalParams,
|
|
17
|
-
IVaultUserLifetimePnl,
|
|
18
|
-
IVaultPnl,
|
|
19
|
-
} from '../../types';
|
|
1
|
+
import { IAddress, IHistoricalTimeseriesResponse, INormalizedNumber, ISubgraphWithdrawProccessed, IVault, IVaultAllocations, IVaultAnnualizedApy, IVaultAvailableRedemption, IVaultLoan, IVaultPosition, IVaultRedemptionHistoryItem, IVaultSummary, IVaultWithdrawals, IActiveStakingPosition, IVaultHistoricalParams, IVaultUserLifetimePnl, IVaultPnl } from '../../types';
|
|
20
2
|
import { IVaultBaseOptions } from '.';
|
|
21
|
-
export declare function getVault({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}: {
|
|
29
|
-
vault: IAddress;
|
|
30
|
-
loans?: boolean;
|
|
31
|
-
allocations?: boolean;
|
|
32
|
-
options: IVaultBaseOptions;
|
|
33
|
-
loadSubaccounts?: boolean;
|
|
34
|
-
loadSnapshots?: boolean;
|
|
3
|
+
export declare function getVault({ vault, loans, allocations, options, loadSubaccounts, loadSnapshots, }: {
|
|
4
|
+
vault: IAddress;
|
|
5
|
+
loans?: boolean;
|
|
6
|
+
allocations?: boolean;
|
|
7
|
+
options: IVaultBaseOptions;
|
|
8
|
+
loadSubaccounts?: boolean;
|
|
9
|
+
loadSnapshots?: boolean;
|
|
35
10
|
}): Promise<IVault>;
|
|
36
|
-
export declare function getVaultLoans(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export declare function getVaultAvailableRedemptions({
|
|
45
|
-
vault,
|
|
46
|
-
wallet,
|
|
47
|
-
options,
|
|
48
|
-
}: {
|
|
49
|
-
vault: IAddress;
|
|
50
|
-
wallet?: IAddress;
|
|
51
|
-
options: IVaultBaseOptions & {
|
|
52
|
-
verbose?: boolean;
|
|
53
|
-
};
|
|
11
|
+
export declare function getVaultLoans(vault: IAddress | IVault, options: IVaultBaseOptions): Promise<IVaultLoan[]>;
|
|
12
|
+
export declare function getVaultAllocations(vault: IAddress, options: IVaultBaseOptions): Promise<IVaultAllocations>;
|
|
13
|
+
export declare function getVaultAvailableRedemptions({ vault, wallet, options, }: {
|
|
14
|
+
vault: IAddress;
|
|
15
|
+
wallet?: IAddress;
|
|
16
|
+
options: IVaultBaseOptions & {
|
|
17
|
+
verbose?: boolean;
|
|
18
|
+
};
|
|
54
19
|
}): Promise<{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
20
|
+
processedWithdrawals: ISubgraphWithdrawProccessed[];
|
|
21
|
+
requestedWithdrawals: import("../../types").ISubgraphWithdrawRequest[];
|
|
22
|
+
availableRedemptions: IVaultAvailableRedemption[];
|
|
23
|
+
pendingRedemptions: IVaultAvailableRedemption[];
|
|
59
24
|
}>;
|
|
60
|
-
export declare function getVaultRedemptionHistory({
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}: {
|
|
65
|
-
vault: IAddress;
|
|
66
|
-
wallet?: IAddress;
|
|
67
|
-
options: IVaultBaseOptions;
|
|
25
|
+
export declare function getVaultRedemptionHistory({ vault, wallet, options, }: {
|
|
26
|
+
vault: IAddress;
|
|
27
|
+
wallet?: IAddress;
|
|
28
|
+
options: IVaultBaseOptions;
|
|
68
29
|
}): Promise<IVaultRedemptionHistoryItem[]>;
|
|
69
|
-
export declare function getVaultPositions({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}: {
|
|
75
|
-
vault: IAddress;
|
|
76
|
-
wallet?: IAddress;
|
|
77
|
-
solanaWallet?: string;
|
|
78
|
-
options: IVaultBaseOptions;
|
|
30
|
+
export declare function getVaultPositions({ vault, wallet, solanaWallet, options, }: {
|
|
31
|
+
vault: IAddress;
|
|
32
|
+
wallet?: IAddress;
|
|
33
|
+
solanaWallet?: string;
|
|
34
|
+
options: IVaultBaseOptions;
|
|
79
35
|
}): Promise<IVaultPosition[]>;
|
|
80
|
-
export declare function getVaultApy({
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}: {
|
|
85
|
-
vault: IAddress;
|
|
86
|
-
options?: IVaultBaseOptions;
|
|
87
|
-
historical?: IVaultHistoricalParams;
|
|
88
|
-
}): Promise<
|
|
89
|
-
{
|
|
36
|
+
export declare function getVaultApy({ vault, options, historical, }: {
|
|
37
|
+
vault: IAddress;
|
|
38
|
+
options?: IVaultBaseOptions;
|
|
39
|
+
historical?: IVaultHistoricalParams;
|
|
40
|
+
}): Promise<{
|
|
90
41
|
value: number;
|
|
91
42
|
timestamp: string;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
coinGeckoKey,
|
|
98
|
-
}: {
|
|
99
|
-
wallet?: IAddress;
|
|
100
|
-
rpcUrl: string;
|
|
101
|
-
coinGeckoKey?: string;
|
|
43
|
+
}[]>;
|
|
44
|
+
export declare function getRewardsStakingPositions({ rpcUrl, wallet, coinGeckoKey, }: {
|
|
45
|
+
wallet?: IAddress;
|
|
46
|
+
rpcUrl: string;
|
|
47
|
+
coinGeckoKey?: string;
|
|
102
48
|
}): Promise<IActiveStakingPosition[]>;
|
|
103
|
-
export declare function getVaultTvl({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}: {
|
|
108
|
-
vault: IAddress;
|
|
109
|
-
options: IVaultBaseOptions;
|
|
110
|
-
historical?: IVaultHistoricalParams;
|
|
111
|
-
}): Promise<
|
|
112
|
-
{
|
|
49
|
+
export declare function getVaultTvl({ vault, options, historical, }: {
|
|
50
|
+
vault: IAddress;
|
|
51
|
+
options: IVaultBaseOptions;
|
|
52
|
+
historical?: IVaultHistoricalParams;
|
|
53
|
+
}): Promise<{
|
|
113
54
|
value: INormalizedNumber;
|
|
114
55
|
timestamp: string;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}: {
|
|
121
|
-
vault: IAddress;
|
|
122
|
-
options: IVaultBaseOptions;
|
|
123
|
-
}): Promise<
|
|
124
|
-
{
|
|
56
|
+
}[]>;
|
|
57
|
+
export declare function getVaultBorrowerHealthFactor({ vault, options, }: {
|
|
58
|
+
vault: IAddress;
|
|
59
|
+
options: IVaultBaseOptions;
|
|
60
|
+
}): Promise<{
|
|
125
61
|
borrower: IAddress;
|
|
126
62
|
loan: IAddress;
|
|
127
63
|
health_factor?: {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
64
|
+
datetime: string;
|
|
65
|
+
health_factor: number;
|
|
66
|
+
id: string;
|
|
67
|
+
total_collateral_value: number;
|
|
68
|
+
total_loan_value: number;
|
|
133
69
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
options,
|
|
138
|
-
}: {
|
|
139
|
-
options: IVaultBaseOptions;
|
|
70
|
+
}[]>;
|
|
71
|
+
export declare function getHealthFactorOfBorrowersByVault({ options, }: {
|
|
72
|
+
options: IVaultBaseOptions;
|
|
140
73
|
}): Promise<{}>;
|
|
141
|
-
export declare function getUserPoints({
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}: {
|
|
145
|
-
userAddress: IAddress;
|
|
146
|
-
options?: IVaultBaseOptions;
|
|
74
|
+
export declare function getUserPoints({ userAddress, options, }: {
|
|
75
|
+
userAddress: IAddress;
|
|
76
|
+
options?: IVaultBaseOptions;
|
|
147
77
|
}): Promise<any>;
|
|
148
|
-
export declare function registerUserForPoints({
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}: {
|
|
153
|
-
userAddress: IAddress;
|
|
154
|
-
referrerAddress?: IAddress;
|
|
155
|
-
options?: IVaultBaseOptions;
|
|
78
|
+
export declare function registerUserForPoints({ userAddress, referrerAddress, options, }: {
|
|
79
|
+
userAddress: IAddress;
|
|
80
|
+
referrerAddress?: IAddress;
|
|
81
|
+
options?: IVaultBaseOptions;
|
|
156
82
|
}): Promise<Response>;
|
|
157
|
-
export declare function fetchPointsLeaderboard({
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
sortBy?: 'streakDays' | 'totalPoints';
|
|
165
|
-
};
|
|
166
|
-
options?: IVaultBaseOptions;
|
|
83
|
+
export declare function fetchPointsLeaderboard({ params, options, }: {
|
|
84
|
+
params?: {
|
|
85
|
+
page?: number;
|
|
86
|
+
perPage?: number;
|
|
87
|
+
sortBy?: 'streakDays' | 'totalPoints';
|
|
88
|
+
};
|
|
89
|
+
options?: IVaultBaseOptions;
|
|
167
90
|
}): Promise<any>;
|
|
168
|
-
export declare function getYieldLastRealizedOn({
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}: {
|
|
172
|
-
vault: IAddress;
|
|
173
|
-
options: IVaultBaseOptions;
|
|
91
|
+
export declare function getYieldLastRealizedOn({ vault, options, }: {
|
|
92
|
+
vault: IAddress;
|
|
93
|
+
options: IVaultBaseOptions;
|
|
174
94
|
}): Promise<number>;
|
|
175
|
-
export declare function getVaultUserLifetimePnl({
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
vault: IAddress;
|
|
181
|
-
wallet: IAddress;
|
|
182
|
-
options: IVaultBaseOptions;
|
|
183
|
-
coingeckoKey?: string;
|
|
95
|
+
export declare function getVaultUserLifetimePnl({ vault, wallet, options, }: {
|
|
96
|
+
vault: IAddress;
|
|
97
|
+
wallet: IAddress;
|
|
98
|
+
options: IVaultBaseOptions;
|
|
99
|
+
coingeckoKey?: string;
|
|
184
100
|
}): Promise<IVaultUserLifetimePnl>;
|
|
185
|
-
export declare function getVaultPnl({
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}: {
|
|
189
|
-
vault: IAddress;
|
|
190
|
-
options: IVaultBaseOptions;
|
|
101
|
+
export declare function getVaultPnl({ vault, options, }: {
|
|
102
|
+
vault: IAddress;
|
|
103
|
+
options: IVaultBaseOptions;
|
|
191
104
|
}): Promise<IVaultPnl>;
|
|
192
|
-
export declare function getVaultHistoricalTimeseries({
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}: {
|
|
197
|
-
vault: IAddress;
|
|
198
|
-
nDays?: number;
|
|
199
|
-
options?: IVaultBaseOptions;
|
|
105
|
+
export declare function getVaultHistoricalTimeseries({ vault, nDays, options, }: {
|
|
106
|
+
vault: IAddress;
|
|
107
|
+
nDays?: number;
|
|
108
|
+
options?: IVaultBaseOptions;
|
|
200
109
|
}): Promise<IHistoricalTimeseriesResponse>;
|
|
201
|
-
export declare function getVaultAnnualizedApy({
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}: {
|
|
205
|
-
vault: IAddress;
|
|
206
|
-
options?: IVaultBaseOptions;
|
|
110
|
+
export declare function getVaultAnnualizedApy({ vault, options, }: {
|
|
111
|
+
vault: IAddress;
|
|
112
|
+
options?: IVaultBaseOptions;
|
|
207
113
|
}): Promise<IVaultAnnualizedApy>;
|
|
208
|
-
export declare function getVaultSummary({
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}: {
|
|
212
|
-
vault: IAddress;
|
|
213
|
-
options?: IVaultBaseOptions;
|
|
114
|
+
export declare function getVaultSummary({ vault, options, }: {
|
|
115
|
+
vault: IAddress;
|
|
116
|
+
options?: IVaultBaseOptions;
|
|
214
117
|
}): Promise<IVaultSummary>;
|
|
215
|
-
export declare function getVaultWithdrawals({
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}: {
|
|
220
|
-
vault: IAddress;
|
|
221
|
-
chain: string;
|
|
222
|
-
options?: IVaultBaseOptions;
|
|
118
|
+
export declare function getVaultWithdrawals({ vault, chain, options, }: {
|
|
119
|
+
vault: IAddress;
|
|
120
|
+
chain: string;
|
|
121
|
+
options?: IVaultBaseOptions;
|
|
223
122
|
}): Promise<IVaultWithdrawals>;
|
|
224
|
-
export declare function getPreviewRedemption({
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}: {
|
|
229
|
-
vault: IAddress;
|
|
230
|
-
sharesAmount: string | bigint | number;
|
|
231
|
-
options: IVaultBaseOptions;
|
|
123
|
+
export declare function getPreviewRedemption({ vault, sharesAmount, options, }: {
|
|
124
|
+
vault: IAddress;
|
|
125
|
+
sharesAmount: string | bigint | number;
|
|
126
|
+
options: IVaultBaseOptions;
|
|
232
127
|
}): Promise<INormalizedNumber>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
export * from './getters';
|
|
2
2
|
export * from './utils';
|
|
3
3
|
export * from './main';
|
|
4
|
-
export {
|
|
5
|
-
getUserPoints,
|
|
6
|
-
registerUserForPoints,
|
|
7
|
-
fetchPointsLeaderboard,
|
|
8
|
-
getYieldLastRealizedOn,
|
|
9
|
-
} from './getters';
|
|
4
|
+
export { getUserPoints, registerUserForPoints, fetchPointsLeaderboard, getYieldLastRealizedOn, } from './getters';
|
|
10
5
|
export { fetchVaultMetadata } from './fetcher';
|
|
11
6
|
export { getRewardMultiplierByTimestamp } from './utils';
|
|
12
7
|
export * from './write.actions';
|