@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
|
@@ -6,220 +6,124 @@ import { Connection, PublicKey, Transaction } from '@solana/web3.js';
|
|
|
6
6
|
import { ISolanaNetwork, ISolanaRpcEndpoint } from './types';
|
|
7
7
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
8
8
|
export declare const Solana: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
getTokenSymbol: ({
|
|
89
|
-
endpoint,
|
|
90
|
-
mintAddress,
|
|
91
|
-
}: {
|
|
92
|
-
mintAddress: string | PublicKey;
|
|
93
|
-
} & import('./types').ISolanaConnectionOptions) => Promise<string | null>;
|
|
94
|
-
fetchUserTokenBalance: ({
|
|
95
|
-
connection,
|
|
96
|
-
publicKey,
|
|
97
|
-
depositMint,
|
|
98
|
-
}: {
|
|
99
|
-
publicKey: PublicKey | string;
|
|
100
|
-
depositMint?: PublicKey | string;
|
|
101
|
-
} & import('./types').ISolanaConnectionOptions) => Promise<any>;
|
|
102
|
-
fetchUserShareBalance: ({
|
|
103
|
-
connection,
|
|
104
|
-
publicKey,
|
|
105
|
-
shareMint,
|
|
106
|
-
network,
|
|
107
|
-
}: {
|
|
108
|
-
publicKey: PublicKey | string;
|
|
109
|
-
shareMint?: PublicKey | string;
|
|
110
|
-
} & import('./types').ISolanaConnectionOptions) => Promise<number>;
|
|
111
|
-
getBestRpcEndpoint: ({
|
|
112
|
-
endpoint,
|
|
113
|
-
network,
|
|
114
|
-
connection,
|
|
115
|
-
}: import('./types').ISolanaConnectionOptions) => Promise<
|
|
116
|
-
'http://127.0.0.1:8899' | `https://${string}`
|
|
117
|
-
>;
|
|
118
|
-
fallbackDecimals: number;
|
|
119
|
-
fallbackNetwork: import('../..').ISolanaNetwork;
|
|
120
|
-
programIds: {
|
|
121
|
-
devnet: {
|
|
122
|
-
vault: string;
|
|
123
|
-
};
|
|
124
|
-
'mainnet-beta': {
|
|
125
|
-
vault: string;
|
|
126
|
-
};
|
|
127
|
-
testnet: {
|
|
128
|
-
vault: string;
|
|
129
|
-
};
|
|
130
|
-
localnet: {
|
|
131
|
-
vault: string;
|
|
132
|
-
};
|
|
9
|
+
utils: {
|
|
10
|
+
getExplorerLink: ({ signature, type, network, }: {
|
|
11
|
+
signature: string;
|
|
12
|
+
type: "tx" | "address" | "token";
|
|
13
|
+
} & import("./types").ISolanaConnectionOptions) => string;
|
|
14
|
+
isSolanaAddress: (address: string) => boolean;
|
|
15
|
+
isSolana: (signature: string) => boolean;
|
|
16
|
+
getProgram: ({ provider, idl, programId, network, }: {
|
|
17
|
+
idl: any;
|
|
18
|
+
programId?: string;
|
|
19
|
+
} & import("./types").ISolanaConnectionOptions) => import("@coral-xyz/anchor").Program<any>;
|
|
20
|
+
getProvider: ({ connection, publicKey, signTransaction, }: {
|
|
21
|
+
publicKey: PublicKey;
|
|
22
|
+
signTransaction: (<T extends Transaction | web3.VersionedTransaction>(transaction: T) => Promise<T>) | undefined;
|
|
23
|
+
} & import("./types").ISolanaConnectionOptions) => AnchorProvider;
|
|
24
|
+
getReadOnlyProvider: ({ connection }: import("./types").ISolanaConnectionOptions) => AnchorProvider;
|
|
25
|
+
deriveShareMintPda: (vaultProgramId: PublicKey | string) => web3.PublicKey;
|
|
26
|
+
deriveVaultStatePda: (vaultProgramId: PublicKey | string) => web3.PublicKey;
|
|
27
|
+
deriveVaultTokenAtaPda: (vaultProgramId: PublicKey | string, depositMint: PublicKey) => web3.PublicKey;
|
|
28
|
+
getVaultState: ({ provider, connection, vaultProgramId, idl, }: {
|
|
29
|
+
vaultProgramId: PublicKey | string;
|
|
30
|
+
idl: any;
|
|
31
|
+
} & import("./types").ISolanaConnectionOptions) => Promise<{
|
|
32
|
+
vaultState: unknown | null;
|
|
33
|
+
depositMintDecimals: number | null;
|
|
34
|
+
vaultToken: import("./types").ISolanaTokenBalance;
|
|
35
|
+
}>;
|
|
36
|
+
getVaultStateReadOnly: ({ vaultProgramId, connection, idl, }: {
|
|
37
|
+
vaultProgramId: PublicKey | string;
|
|
38
|
+
idl: any;
|
|
39
|
+
} & import("./types").ISolanaConnectionOptions) => Promise<{
|
|
40
|
+
vaultState: unknown | null;
|
|
41
|
+
depositMintDecimals: number | null;
|
|
42
|
+
vaultToken: import("./types").ISolanaTokenBalance;
|
|
43
|
+
}>;
|
|
44
|
+
getToken: ({ mintAddress, endpoint, connection, }: {
|
|
45
|
+
mintAddress: string | PublicKey;
|
|
46
|
+
} & import("./types").ISolanaConnectionOptions) => Promise<{
|
|
47
|
+
address: string;
|
|
48
|
+
symbol: string;
|
|
49
|
+
decimals: number;
|
|
50
|
+
name: string;
|
|
51
|
+
image: string;
|
|
52
|
+
} | null>;
|
|
53
|
+
getTokenSymbol: ({ endpoint, mintAddress, }: {
|
|
54
|
+
mintAddress: string | PublicKey;
|
|
55
|
+
} & import("./types").ISolanaConnectionOptions) => Promise<string | null>;
|
|
56
|
+
fetchUserTokenBalance: ({ connection, publicKey, depositMint, }: {
|
|
57
|
+
publicKey: PublicKey | string;
|
|
58
|
+
depositMint?: PublicKey | string;
|
|
59
|
+
} & import("./types").ISolanaConnectionOptions) => Promise<any>;
|
|
60
|
+
fetchUserShareBalance: ({ connection, publicKey, shareMint, network, }: {
|
|
61
|
+
publicKey: PublicKey | string;
|
|
62
|
+
shareMint?: PublicKey | string;
|
|
63
|
+
} & import("./types").ISolanaConnectionOptions) => Promise<number>;
|
|
64
|
+
getBestRpcEndpoint: ({ endpoint, network, connection, }: import("./types").ISolanaConnectionOptions) => Promise<"http://127.0.0.1:8899" | `https://${string}`>;
|
|
65
|
+
fallbackDecimals: number;
|
|
66
|
+
fallbackNetwork: import("../..").ISolanaNetwork;
|
|
67
|
+
programIds: {
|
|
68
|
+
devnet: {
|
|
69
|
+
vault: string;
|
|
70
|
+
};
|
|
71
|
+
"mainnet-beta": {
|
|
72
|
+
vault: string;
|
|
73
|
+
};
|
|
74
|
+
testnet: {
|
|
75
|
+
vault: string;
|
|
76
|
+
};
|
|
77
|
+
localnet: {
|
|
78
|
+
vault: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
getVaultMints: ({ vaultProgramId, connection, idl, }: {
|
|
82
|
+
vaultProgramId: PublicKey | string;
|
|
83
|
+
idl: any;
|
|
84
|
+
} & import("./types").ISolanaConnectionOptions) => Promise<{
|
|
85
|
+
depositMint: string;
|
|
86
|
+
shareMint: string;
|
|
87
|
+
}>;
|
|
133
88
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
idl,
|
|
138
|
-
}: {
|
|
139
|
-
vaultProgramId: PublicKey | string;
|
|
140
|
-
idl: any;
|
|
141
|
-
} & import('./types').ISolanaConnectionOptions) => Promise<{
|
|
142
|
-
depositMint: string;
|
|
143
|
-
shareMint: string;
|
|
144
|
-
}>;
|
|
145
|
-
};
|
|
146
|
-
constants: typeof SolanaConstants;
|
|
147
|
-
actions: typeof SolanaActions;
|
|
148
|
-
getters: typeof SolanaGetters;
|
|
89
|
+
constants: typeof SolanaConstants;
|
|
90
|
+
actions: typeof SolanaActions;
|
|
91
|
+
getters: typeof SolanaGetters;
|
|
149
92
|
};
|
|
150
93
|
declare class SolanaAdapter {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
getToken(mintAddress: string | PublicKey): Promise<{
|
|
186
|
-
address: string;
|
|
187
|
-
symbol: string;
|
|
188
|
-
decimals: number;
|
|
189
|
-
name: string;
|
|
190
|
-
image: string;
|
|
191
|
-
}>;
|
|
192
|
-
getTokenSymbol(mintAddress: string | PublicKey): Promise<string>;
|
|
193
|
-
fetchUserTokenBalance(
|
|
194
|
-
publicKey: PublicKey | string,
|
|
195
|
-
depositMint: PublicKey | string,
|
|
196
|
-
): Promise<any>;
|
|
197
|
-
fetchUserShareBalance(
|
|
198
|
-
publicKey: PublicKey | string,
|
|
199
|
-
shareMint: PublicKey | string,
|
|
200
|
-
): Promise<number>;
|
|
201
|
-
vaultDeposit(
|
|
202
|
-
vaultProgramId: PublicKey | string,
|
|
203
|
-
idl: any,
|
|
204
|
-
publicKey: PublicKey | string,
|
|
205
|
-
depositAmount: number,
|
|
206
|
-
sendTransaction: (
|
|
207
|
-
transaction: Transaction | web3.VersionedTransaction,
|
|
208
|
-
connection: Connection,
|
|
209
|
-
options?: SendTransactionOptions,
|
|
210
|
-
) => Promise<web3.TransactionSignature>,
|
|
211
|
-
): Promise<any>;
|
|
212
|
-
vaultRedeem(
|
|
213
|
-
vaultProgramId: PublicKey | string,
|
|
214
|
-
idl: any,
|
|
215
|
-
publicKey: PublicKey | string,
|
|
216
|
-
redeemShares: number,
|
|
217
|
-
sendTransaction: (
|
|
218
|
-
transaction: Transaction | web3.VersionedTransaction,
|
|
219
|
-
connection: Connection,
|
|
220
|
-
options?: SendTransactionOptions,
|
|
221
|
-
) => Promise<web3.TransactionSignature>,
|
|
222
|
-
): Promise<any>;
|
|
223
|
-
getProgramId(type: 'vault'): string;
|
|
94
|
+
private _endpoint;
|
|
95
|
+
private _network;
|
|
96
|
+
private _connection;
|
|
97
|
+
private _provider;
|
|
98
|
+
constructor(endpoint: ISolanaRpcEndpoint, network?: ISolanaNetwork);
|
|
99
|
+
get endpoint(): `https://${string}`;
|
|
100
|
+
get network(): ISolanaNetwork;
|
|
101
|
+
get connection(): web3.Connection;
|
|
102
|
+
get provider(): AnchorProvider;
|
|
103
|
+
setWalletProvider(_publicKey: PublicKey | string, signTransaction: (<T extends Transaction | web3.VersionedTransaction>(transaction: T) => Promise<T>) | undefined): void;
|
|
104
|
+
getProgram(programIdl: any): import("@coral-xyz/anchor").Program<any>;
|
|
105
|
+
getVaultState(vaultProgramId: PublicKey | string, idl: any): Promise<{
|
|
106
|
+
vaultState: unknown | null;
|
|
107
|
+
depositMintDecimals: number | null;
|
|
108
|
+
vaultToken: import("./types").ISolanaTokenBalance;
|
|
109
|
+
}>;
|
|
110
|
+
getVaultStateReadOnly(vaultProgramId: PublicKey | string, idl: any): Promise<{
|
|
111
|
+
vaultState: unknown | null;
|
|
112
|
+
depositMintDecimals: number | null;
|
|
113
|
+
vaultToken: import("./types").ISolanaTokenBalance;
|
|
114
|
+
}>;
|
|
115
|
+
getToken(mintAddress: string | PublicKey): Promise<{
|
|
116
|
+
address: string;
|
|
117
|
+
symbol: string;
|
|
118
|
+
decimals: number;
|
|
119
|
+
name: string;
|
|
120
|
+
image: string;
|
|
121
|
+
}>;
|
|
122
|
+
getTokenSymbol(mintAddress: string | PublicKey): Promise<string>;
|
|
123
|
+
fetchUserTokenBalance(publicKey: PublicKey | string, depositMint: PublicKey | string): Promise<any>;
|
|
124
|
+
fetchUserShareBalance(publicKey: PublicKey | string, shareMint: PublicKey | string): Promise<number>;
|
|
125
|
+
vaultDeposit(vaultProgramId: PublicKey | string, idl: any, publicKey: PublicKey | string, depositAmount: number, sendTransaction: (transaction: Transaction | web3.VersionedTransaction, connection: Connection, options?: SendTransactionOptions) => Promise<web3.TransactionSignature>): Promise<any>;
|
|
126
|
+
vaultRedeem(vaultProgramId: PublicKey | string, idl: any, publicKey: PublicKey | string, redeemShares: number, sendTransaction: (transaction: Transaction | web3.VersionedTransaction, connection: Connection, options?: SendTransactionOptions) => Promise<web3.TransactionSignature>): Promise<any>;
|
|
127
|
+
getProgramId(type: 'vault'): string;
|
|
224
128
|
}
|
|
225
129
|
export default SolanaAdapter;
|
|
@@ -3,68 +3,68 @@ import type { Connection, PublicKey } from '@solana/web3.js';
|
|
|
3
3
|
export type ISolanaRpcEndpoint = `https://${string}`;
|
|
4
4
|
export type ISolanaNetwork = 'devnet' | 'mainnet-beta' | 'testnet' | 'localnet';
|
|
5
5
|
export interface ISolanaConnectionOptions {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
endpoint?: ISolanaRpcEndpoint;
|
|
7
|
+
connection?: Connection;
|
|
8
|
+
provider?: AnchorProvider;
|
|
9
|
+
network?: ISolanaNetwork;
|
|
10
10
|
}
|
|
11
11
|
export interface ISolanaVaultState {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
operator: PublicKey | null;
|
|
13
|
+
admin: PublicKey | null;
|
|
14
|
+
shareMint: PublicKey | null;
|
|
15
|
+
depositMint: PublicKey | null;
|
|
16
|
+
feeRecipient: PublicKey | null;
|
|
17
|
+
withdrawalFee: number | null;
|
|
18
|
+
deployedAum: number | null;
|
|
19
|
+
pdaBump: number[] | null;
|
|
20
|
+
paused: boolean | null;
|
|
21
21
|
}
|
|
22
22
|
export interface ISolanaToken {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
address: string;
|
|
24
|
+
symbol: any;
|
|
25
|
+
decimals: number;
|
|
26
|
+
name: any;
|
|
27
|
+
image: any;
|
|
28
|
+
program: any;
|
|
29
|
+
mintAuthority: any;
|
|
30
|
+
freezeAuthority: any;
|
|
31
|
+
supply: string;
|
|
32
|
+
shareMintAddress: string;
|
|
33
33
|
}
|
|
34
34
|
export interface ISolanaVaultConfig {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
programId: string;
|
|
36
|
+
vaultState: string;
|
|
37
|
+
shareMint: string;
|
|
38
|
+
vaultTokenAta: string;
|
|
39
|
+
depositMint: string;
|
|
40
|
+
network: ISolanaNetwork;
|
|
41
41
|
}
|
|
42
42
|
export interface ISolanaTokenBalance {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
balance: number;
|
|
44
|
+
decimals: number;
|
|
45
|
+
rawAmount: string;
|
|
46
|
+
symbol?: string;
|
|
47
|
+
name?: string;
|
|
48
48
|
}
|
|
49
49
|
export interface ISolanaDepositResult {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
success: boolean;
|
|
51
|
+
signature?: string;
|
|
52
|
+
sharesMinted?: number;
|
|
53
|
+
error?: string;
|
|
54
54
|
}
|
|
55
55
|
export interface ISolanaWithdrawResult {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
success: boolean;
|
|
57
|
+
signature?: string;
|
|
58
|
+
tokensWithdrawn?: number;
|
|
59
|
+
error?: string;
|
|
60
60
|
}
|
|
61
61
|
export interface ISolanaVaultStats {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
totalAssets: number;
|
|
63
|
+
totalShares: number;
|
|
64
|
+
isPaused: boolean;
|
|
65
|
+
withdrawalFee: number;
|
|
66
|
+
admin: string;
|
|
67
|
+
operator: string;
|
|
68
|
+
feeRecipient: string;
|
|
69
|
+
lastUpdated: Date;
|
|
70
70
|
}
|