@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.
Files changed (117) hide show
  1. package/lib/abis/AddressResolver.d.ts +28 -40
  2. package/lib/abis/ChainlinkV3.d.ts +83 -109
  3. package/lib/abis/ERC20.d.ts +137 -191
  4. package/lib/abis/ERC20_Bytes32.d.ts +125 -178
  5. package/lib/abis/ERC4626.d.ts +341 -480
  6. package/lib/abis/ERC721.d.ts +213 -299
  7. package/lib/abis/FeeOracle.d.ts +112 -149
  8. package/lib/abis/LendingPool.d.ts +1293 -1702
  9. package/lib/abis/LendingPoolV2.d.ts +37 -42
  10. package/lib/abis/LendingPoolV3.d.ts +25 -29
  11. package/lib/abis/Loan.d.ts +768 -1007
  12. package/lib/abis/Multicall3.d.ts +30 -43
  13. package/lib/abis/PoolAdapter.d.ts +35 -46
  14. package/lib/abis/RewardDistributor.d.ts +33 -38
  15. package/lib/abis/SmartAccount.d.ts +16 -23
  16. package/lib/abis/TextResolver.d.ts +16 -23
  17. package/lib/abis/TokenizedVaultV2.d.ts +1292 -1684
  18. package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +55 -62
  19. package/lib/abis/TokenizedVaultV2Receipt.d.ts +1463 -1934
  20. package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +250 -333
  21. package/lib/abis/UniversalResolverResolve.d.ts +69 -97
  22. package/lib/abis/UniversalSignatureValidator.d.ts +17 -23
  23. package/lib/abis/WrapperAdapter.d.ts +67 -89
  24. package/lib/adapters/evm/getters.d.ts +2 -8
  25. package/lib/adapters/evm/index.d.ts +15 -19
  26. package/lib/adapters/evm/utils.d.ts +2 -12
  27. package/lib/adapters/solana/constants.d.ts +17 -23
  28. package/lib/adapters/solana/getters.d.ts +1 -4
  29. package/lib/adapters/solana/idl/vault-idl.d.ts +279 -340
  30. package/lib/adapters/solana/index.d.ts +116 -212
  31. package/lib/adapters/solana/types.d.ts +50 -50
  32. package/lib/adapters/solana/utils.d.ts +78 -139
  33. package/lib/adapters/solana/vault.actions.d.ts +12 -37
  34. package/lib/adapters/sui/constants.d.ts +9 -9
  35. package/lib/adapters/sui/constants.js +8 -1
  36. package/lib/adapters/sui/constants.js.map +1 -1
  37. package/lib/adapters/sui/getters.d.ts +1 -3
  38. package/lib/adapters/sui/index.d.ts +21 -29
  39. package/lib/adapters/sui/transformer.d.ts +2 -6
  40. package/lib/adapters/sui/types.d.ts +56 -56
  41. package/lib/adapters/sui/utils.d.ts +1 -4
  42. package/lib/core/analytics/constants.d.ts +12 -0
  43. package/lib/core/analytics/constants.js +49 -0
  44. package/lib/core/analytics/constants.js.map +1 -0
  45. package/lib/core/analytics/index.d.ts +6 -0
  46. package/lib/core/analytics/index.js +31 -0
  47. package/lib/core/analytics/index.js.map +1 -0
  48. package/lib/core/analytics/instrumentation.d.ts +2 -0
  49. package/lib/core/analytics/instrumentation.js +150 -0
  50. package/lib/core/analytics/instrumentation.js.map +1 -0
  51. package/lib/core/analytics/metrics.d.ts +12 -0
  52. package/lib/core/analytics/metrics.js +133 -0
  53. package/lib/core/analytics/metrics.js.map +1 -0
  54. package/lib/core/analytics/sentry.d.ts +9 -0
  55. package/lib/core/analytics/sentry.js +166 -0
  56. package/lib/core/analytics/sentry.js.map +1 -0
  57. package/lib/core/analytics/types.d.ts +21 -0
  58. package/lib/core/analytics/types.js +3 -0
  59. package/lib/core/analytics/types.js.map +1 -0
  60. package/lib/core/analytics/user-identity.d.ts +8 -0
  61. package/lib/core/analytics/user-identity.js +82 -0
  62. package/lib/core/analytics/user-identity.js.map +1 -0
  63. package/lib/core/analytics/version.d.ts +1 -0
  64. package/lib/core/analytics/version.js +5 -0
  65. package/lib/core/analytics/version.js.map +1 -0
  66. package/lib/core/base.class.d.ts +25 -30
  67. package/lib/core/base.class.js +5 -1
  68. package/lib/core/base.class.js.map +1 -1
  69. package/lib/core/constants/adapters.d.ts +83 -111
  70. package/lib/core/constants/core.d.ts +69 -76
  71. package/lib/core/constants/vaults.d.ts +5 -63
  72. package/lib/core/constants/vaults.js +3 -3
  73. package/lib/core/constants/vaults.js.map +1 -1
  74. package/lib/core/constants/web3.d.ts +18 -19
  75. package/lib/core/fetcher.d.ts +17 -71
  76. package/lib/core/fetcher.js +20 -2
  77. package/lib/core/fetcher.js.map +1 -1
  78. package/lib/core/helpers/adapters.d.ts +2 -7
  79. package/lib/core/helpers/core.d.ts +8 -33
  80. package/lib/core/helpers/signer.d.ts +2 -6
  81. package/lib/core/helpers/vaults.d.ts +15 -38
  82. package/lib/core/helpers/web3.d.ts +19 -87
  83. package/lib/core/index.d.ts +1 -0
  84. package/lib/core/index.js +1 -0
  85. package/lib/core/index.js.map +1 -1
  86. package/lib/core/logger/index.d.ts +11 -11
  87. package/lib/core/logger/slack.d.ts +8 -9
  88. package/lib/index.d.ts +1 -61
  89. package/lib/main.d.ts +141 -158
  90. package/lib/main.js +3 -0
  91. package/lib/main.js.map +1 -1
  92. package/lib/modules/vaults/adapter.helpers.d.ts +38 -72
  93. package/lib/modules/vaults/fetcher.d.ts +69 -85
  94. package/lib/modules/vaults/getters.d.ts +100 -205
  95. package/lib/modules/vaults/index.d.ts +1 -6
  96. package/lib/modules/vaults/main.d.ts +131 -224
  97. package/lib/modules/vaults/main.js +8 -1
  98. package/lib/modules/vaults/main.js.map +1 -1
  99. package/lib/modules/vaults/read.actions.d.ts +2 -8
  100. package/lib/modules/vaults/utils.d.ts +19 -55
  101. package/lib/modules/vaults/write.actions.d.ts +14 -26
  102. package/lib/services/coingecko/fetcher.d.ts +1 -4
  103. package/lib/services/debank/fetcher.d.ts +1 -4
  104. package/lib/services/debank/utils.d.ts +27 -38
  105. package/lib/services/octavfi/fetcher.d.ts +1 -3
  106. package/lib/services/octavfi/types.d.ts +24 -24
  107. package/lib/services/octavfi/utils.d.ts +2 -6
  108. package/lib/services/subgraph/fetcher.d.ts +2 -12
  109. package/lib/services/subgraph/vaults.d.ts +9 -42
  110. package/lib/types/points.d.ts +26 -35
  111. package/lib/types/pools.d.ts +112 -149
  112. package/lib/types/staking.d.ts +25 -25
  113. package/lib/types/subgraph.d.ts +33 -33
  114. package/lib/types/vaults.d.ts +219 -232
  115. package/lib/types/web3.d.ts +9 -9
  116. package/lib/types/webserver.d.ts +448 -466
  117. 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
- utils: {
10
- getExplorerLink: ({
11
- signature,
12
- type,
13
- network,
14
- }: {
15
- signature: string;
16
- type: 'tx' | 'address' | 'token';
17
- } & import('./types').ISolanaConnectionOptions) => string;
18
- isSolanaAddress: (address: string) => boolean;
19
- isSolana: (signature: string) => boolean;
20
- getProgram: ({
21
- provider,
22
- idl,
23
- programId,
24
- network,
25
- }: {
26
- idl: any;
27
- programId?: string;
28
- } & import('./types').ISolanaConnectionOptions) => import('@coral-xyz/anchor').Program<any>;
29
- getProvider: ({
30
- connection,
31
- publicKey,
32
- signTransaction,
33
- }: {
34
- publicKey: PublicKey;
35
- signTransaction:
36
- | (<T extends Transaction | web3.VersionedTransaction>(
37
- transaction: T,
38
- ) => Promise<T>)
39
- | undefined;
40
- } & import('./types').ISolanaConnectionOptions) => AnchorProvider;
41
- getReadOnlyProvider: ({
42
- connection,
43
- }: import('./types').ISolanaConnectionOptions) => AnchorProvider;
44
- deriveShareMintPda: (vaultProgramId: PublicKey | string) => web3.PublicKey;
45
- deriveVaultStatePda: (vaultProgramId: PublicKey | string) => web3.PublicKey;
46
- deriveVaultTokenAtaPda: (
47
- vaultProgramId: PublicKey | string,
48
- depositMint: PublicKey,
49
- ) => web3.PublicKey;
50
- getVaultState: ({
51
- provider,
52
- connection,
53
- vaultProgramId,
54
- idl,
55
- }: {
56
- vaultProgramId: PublicKey | string;
57
- idl: any;
58
- } & import('./types').ISolanaConnectionOptions) => Promise<{
59
- vaultState: unknown | null;
60
- depositMintDecimals: number | null;
61
- vaultToken: import('./types').ISolanaTokenBalance;
62
- }>;
63
- getVaultStateReadOnly: ({
64
- vaultProgramId,
65
- connection,
66
- idl,
67
- }: {
68
- vaultProgramId: PublicKey | string;
69
- idl: any;
70
- } & import('./types').ISolanaConnectionOptions) => Promise<{
71
- vaultState: unknown | null;
72
- depositMintDecimals: number | null;
73
- vaultToken: import('./types').ISolanaTokenBalance;
74
- }>;
75
- getToken: ({
76
- mintAddress,
77
- endpoint,
78
- connection,
79
- }: {
80
- mintAddress: string | PublicKey;
81
- } & import('./types').ISolanaConnectionOptions) => Promise<{
82
- address: string;
83
- symbol: string;
84
- decimals: number;
85
- name: string;
86
- image: string;
87
- } | null>;
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
- getVaultMints: ({
135
- vaultProgramId,
136
- connection,
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
- private _endpoint;
152
- private _network;
153
- private _connection;
154
- private _provider;
155
- constructor(endpoint: ISolanaRpcEndpoint, network?: ISolanaNetwork);
156
- get endpoint(): `https://${string}`;
157
- get network(): ISolanaNetwork;
158
- get connection(): web3.Connection;
159
- get provider(): AnchorProvider;
160
- setWalletProvider(
161
- _publicKey: PublicKey | string,
162
- signTransaction:
163
- | (<T extends Transaction | web3.VersionedTransaction>(
164
- transaction: T,
165
- ) => Promise<T>)
166
- | undefined,
167
- ): void;
168
- getProgram(programIdl: any): import('@coral-xyz/anchor').Program<any>;
169
- getVaultState(
170
- vaultProgramId: PublicKey | string,
171
- idl: any,
172
- ): Promise<{
173
- vaultState: unknown | null;
174
- depositMintDecimals: number | null;
175
- vaultToken: import('./types').ISolanaTokenBalance;
176
- }>;
177
- getVaultStateReadOnly(
178
- vaultProgramId: PublicKey | string,
179
- idl: any,
180
- ): Promise<{
181
- vaultState: unknown | null;
182
- depositMintDecimals: number | null;
183
- vaultToken: import('./types').ISolanaTokenBalance;
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
- endpoint?: ISolanaRpcEndpoint;
7
- connection?: Connection;
8
- provider?: AnchorProvider;
9
- network?: ISolanaNetwork;
6
+ endpoint?: ISolanaRpcEndpoint;
7
+ connection?: Connection;
8
+ provider?: AnchorProvider;
9
+ network?: ISolanaNetwork;
10
10
  }
11
11
  export interface ISolanaVaultState {
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;
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
- 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;
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
- programId: string;
36
- vaultState: string;
37
- shareMint: string;
38
- vaultTokenAta: string;
39
- depositMint: string;
40
- network: ISolanaNetwork;
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
- balance: number;
44
- decimals: number;
45
- rawAmount: string;
46
- symbol?: string;
47
- name?: string;
43
+ balance: number;
44
+ decimals: number;
45
+ rawAmount: string;
46
+ symbol?: string;
47
+ name?: string;
48
48
  }
49
49
  export interface ISolanaDepositResult {
50
- success: boolean;
51
- signature?: string;
52
- sharesMinted?: number;
53
- error?: string;
50
+ success: boolean;
51
+ signature?: string;
52
+ sharesMinted?: number;
53
+ error?: string;
54
54
  }
55
55
  export interface ISolanaWithdrawResult {
56
- success: boolean;
57
- signature?: string;
58
- tokensWithdrawn?: number;
59
- error?: string;
56
+ success: boolean;
57
+ signature?: string;
58
+ tokensWithdrawn?: number;
59
+ error?: string;
60
60
  }
61
61
  export interface ISolanaVaultStats {
62
- totalAssets: number;
63
- totalShares: number;
64
- isPaused: boolean;
65
- withdrawalFee: number;
66
- admin: string;
67
- operator: string;
68
- feeRecipient: string;
69
- lastUpdated: Date;
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
  }