@augustdigital/sdk 8.15.0 → 8.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/adapters/solana/constants.d.ts +12 -4
- package/lib/adapters/solana/constants.js +23 -6
- package/lib/adapters/solana/idl/vault-idl.d.ts +103 -169
- package/lib/adapters/solana/idl/vault-idl.js +461 -475
- package/lib/adapters/solana/index.d.ts +40 -5
- package/lib/adapters/solana/index.js +47 -3
- package/lib/adapters/solana/utils.d.ts +1 -4
- package/lib/adapters/solana/utils.js +24 -10
- package/lib/core/analytics/method-taxonomy.js +4 -0
- package/lib/core/analytics/version.d.ts +1 -1
- package/lib/core/analytics/version.js +1 -1
- package/lib/modules/vaults/getters.d.ts +34 -0
- package/lib/modules/vaults/getters.js +57 -41
- package/lib/modules/vaults/utils.d.ts +19 -1
- package/lib/modules/vaults/utils.js +30 -0
- package/lib/sdk.d.ts +1645 -1474
- package/lib/types/vaults.d.ts +88 -0
- package/lib/types/webserver.d.ts +47 -0
- package/package.json +2 -1
|
@@ -1,52 +1,142 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.vaultIdl = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
/**
|
|
5
|
+
* august_vault program IDL (Anchor).
|
|
6
|
+
*
|
|
7
|
+
* GENERATED — do not edit by hand. The versioned multi-vault interface the SDK
|
|
8
|
+
* targets, generated from the devnet on-chain IDL of `C8B1…` — the only
|
|
9
|
+
* deployment that publishes one matching this file. Refresh with
|
|
10
|
+
* `anchor idl fetch C8B1… -u devnet`.
|
|
11
|
+
*
|
|
12
|
+
* At runtime the SDK targets the canonical `up12…` instead, whose own published
|
|
13
|
+
* IDL is STALE (an Anchor IDL upload is not refreshed by a program upgrade), so
|
|
14
|
+
* it can't be used as the generation source. The solana-idl-drift check (CI)
|
|
15
|
+
* therefore validates `up12…` by pinning its deployed binary and by decoding
|
|
16
|
+
* live VaultState accounts against this file — see
|
|
17
|
+
* tests/vaults/solana-idl-drift.test.ts.
|
|
18
|
+
*
|
|
19
|
+
* `address` is a build stamp (the mainnet id), NOT network-aware. Never rely on
|
|
20
|
+
* it: SolanaAdapter/getProgram resolve the real program id per network from
|
|
21
|
+
* programIds, or from an explicit `programId` override.
|
|
22
|
+
*/
|
|
10
23
|
exports.vaultIdl = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
accounts: [
|
|
25
|
+
{
|
|
26
|
+
discriminator: [195, 131, 96, 55, 140, 253, 93, 195],
|
|
27
|
+
name: 'NominatedAdmin',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
discriminator: [228, 196, 82, 165, 98, 210, 235, 152],
|
|
31
|
+
name: 'VaultState',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
address: 'up12bytoZBmwofqsySf2uqKQ7zpfeKiAWwfvqzJjtRt',
|
|
35
|
+
errors: [
|
|
36
|
+
{
|
|
37
|
+
code: 6000,
|
|
38
|
+
msg: 'Signer must be the admin',
|
|
39
|
+
name: 'NotOperator',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
code: 6001,
|
|
43
|
+
msg: 'Amount must be > 0',
|
|
44
|
+
name: 'ZeroAmount',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
code: 6002,
|
|
48
|
+
msg: 'Insufficient amount for initial deposit',
|
|
49
|
+
name: 'InsufficientAmount',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
code: 6003,
|
|
53
|
+
msg: 'Over 10% aum increase ?',
|
|
54
|
+
name: 'AumIncreaseTooBig',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
code: 6004,
|
|
58
|
+
msg: 'Over 10% aum decrease ?',
|
|
59
|
+
name: 'AumDecreaseTooBig',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
code: 6005,
|
|
63
|
+
msg: 'Withdrawal fee too high',
|
|
64
|
+
name: 'WithdrawalFeeTooHigh',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
code: 6006,
|
|
68
|
+
msg: 'AUM limit exceeds maximum allowed value',
|
|
69
|
+
name: 'AumLimitTooHigh',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
code: 6007,
|
|
73
|
+
msg: 'Signer is Not Admin',
|
|
74
|
+
name: 'NotAdmin',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
code: 6008,
|
|
78
|
+
msg: 'Vault is paused',
|
|
79
|
+
name: 'VaultPaused',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
code: 6009,
|
|
83
|
+
msg: 'Nominated Admin is incorrect',
|
|
84
|
+
name: 'InvalidNominatedAdmin',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
code: 6010,
|
|
88
|
+
msg: 'Admin nomination window expired',
|
|
89
|
+
name: 'NominationExpired',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
code: 6011,
|
|
93
|
+
msg: 'Math error',
|
|
94
|
+
name: 'MathError',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
code: 6012,
|
|
98
|
+
msg: 'Number Overflow',
|
|
99
|
+
name: 'NumberOverflow',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
code: 6013,
|
|
103
|
+
msg: 'Not Enough Liquidity',
|
|
104
|
+
name: 'NotEnoughLiquidity',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
code: 6014,
|
|
108
|
+
msg: 'Unauthorized admin for metadata operation',
|
|
109
|
+
name: 'UnauthorizedAdmin',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
code: 6015,
|
|
113
|
+
msg: 'Vault must be empty to close',
|
|
114
|
+
name: 'VaultNotEmpty',
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
events: [
|
|
118
|
+
{
|
|
119
|
+
discriminator: [36, 238, 119, 15, 12, 255, 94, 79],
|
|
120
|
+
name: 'DepositEvt',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
discriminator: [6, 132, 68, 72, 106, 106, 131, 225],
|
|
124
|
+
name: 'WithdrawEvt',
|
|
125
|
+
},
|
|
126
|
+
],
|
|
18
127
|
instructions: [
|
|
19
128
|
{
|
|
20
|
-
name: 'accept_admin_nomination',
|
|
21
|
-
docs: ['New accepts the Admin Nomination', '### Parameters'],
|
|
22
|
-
discriminator: [190, 164, 198, 207, 17, 27, 152, 203],
|
|
23
129
|
accounts: [
|
|
24
130
|
{
|
|
25
131
|
name: 'vault_state',
|
|
26
132
|
writable: true,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
kind: 'const',
|
|
31
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'deposit_mint',
|
|
35
136
|
},
|
|
36
137
|
{
|
|
37
138
|
name: 'nominated_admin_pda',
|
|
38
139
|
writable: true,
|
|
39
|
-
pda: {
|
|
40
|
-
seeds: [
|
|
41
|
-
{
|
|
42
|
-
kind: 'const',
|
|
43
|
-
value: [
|
|
44
|
-
110, 111, 109, 105, 110, 97, 116, 101, 100, 95, 97, 100, 109,
|
|
45
|
-
105, 110,
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
140
|
},
|
|
51
141
|
{
|
|
52
142
|
name: 'new_admin',
|
|
@@ -57,58 +147,90 @@ exports.vaultIdl = {
|
|
|
57
147
|
writable: true,
|
|
58
148
|
},
|
|
59
149
|
{
|
|
60
|
-
name: 'system_program',
|
|
61
150
|
address: '11111111111111111111111111111111',
|
|
151
|
+
name: 'system_program',
|
|
62
152
|
},
|
|
63
153
|
],
|
|
64
154
|
args: [],
|
|
155
|
+
discriminator: [190, 164, 198, 207, 17, 27, 152, 203],
|
|
156
|
+
docs: ['New accepts the Admin Nomination', '### Parameters'],
|
|
157
|
+
name: 'accept_admin_nomination',
|
|
65
158
|
},
|
|
66
159
|
{
|
|
67
|
-
|
|
160
|
+
accounts: [
|
|
161
|
+
{
|
|
162
|
+
name: 'vault_state',
|
|
163
|
+
writable: true,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'share_mint',
|
|
167
|
+
writable: true,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'vault_token_ata',
|
|
171
|
+
writable: true,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'deposit_mint',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'admin',
|
|
178
|
+
signer: true,
|
|
179
|
+
writable: true,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'token_program',
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
args: [],
|
|
186
|
+
discriminator: [141, 103, 17, 126, 72, 75, 29, 29],
|
|
68
187
|
docs: [
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'- `symbol` - The symbol of the token',
|
|
73
|
-
'- `uri` - The URI for the token metadata',
|
|
188
|
+
'Admin Closes an empty Vault',
|
|
189
|
+
'Reclaims rent from vault_state, share_mint, and vault_token_ata',
|
|
190
|
+
'Requires vault to have zero shares outstanding and empty token account',
|
|
74
191
|
],
|
|
75
|
-
|
|
192
|
+
name: 'close_vault',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
76
195
|
accounts: [
|
|
77
196
|
{
|
|
78
197
|
name: 'payer',
|
|
79
|
-
writable: true,
|
|
80
198
|
signer: true,
|
|
199
|
+
writable: true,
|
|
81
200
|
},
|
|
82
201
|
{
|
|
83
|
-
name: 'admin',
|
|
84
202
|
docs: [
|
|
85
203
|
'The admin of the vault - only they can create/update metadata',
|
|
86
204
|
],
|
|
87
|
-
|
|
205
|
+
name: 'admin',
|
|
88
206
|
signer: true,
|
|
207
|
+
writable: true,
|
|
89
208
|
},
|
|
90
209
|
{
|
|
91
|
-
name: 'vault_state',
|
|
92
210
|
docs: ['The vault state PDA that owns the mint authority'],
|
|
211
|
+
name: 'vault_state',
|
|
93
212
|
writable: true,
|
|
94
|
-
pda: {
|
|
95
|
-
seeds: [
|
|
96
|
-
{
|
|
97
|
-
kind: 'const',
|
|
98
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
213
|
},
|
|
103
214
|
{
|
|
104
|
-
|
|
215
|
+
docs: ['The deposit mint used for PDA derivation'],
|
|
216
|
+
name: 'deposit_mint',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
105
219
|
docs: ['The share token mint'],
|
|
220
|
+
name: 'share_mint',
|
|
106
221
|
writable: true,
|
|
107
222
|
},
|
|
108
223
|
{
|
|
109
224
|
name: 'metadata_account',
|
|
110
|
-
writable: true,
|
|
111
225
|
pda: {
|
|
226
|
+
program: {
|
|
227
|
+
kind: 'const',
|
|
228
|
+
value: [
|
|
229
|
+
11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107, 4,
|
|
230
|
+
195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182, 209,
|
|
231
|
+
188, 3, 248, 41, 70,
|
|
232
|
+
],
|
|
233
|
+
},
|
|
112
234
|
seeds: [
|
|
113
235
|
{
|
|
114
236
|
kind: 'const',
|
|
@@ -127,31 +249,24 @@ exports.vaultIdl = {
|
|
|
127
249
|
path: 'share_mint',
|
|
128
250
|
},
|
|
129
251
|
],
|
|
130
|
-
program: {
|
|
131
|
-
kind: 'const',
|
|
132
|
-
value: [
|
|
133
|
-
11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107, 4,
|
|
134
|
-
195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182, 209,
|
|
135
|
-
188, 3, 248, 41, 70,
|
|
136
|
-
],
|
|
137
|
-
},
|
|
138
252
|
},
|
|
253
|
+
writable: true,
|
|
139
254
|
},
|
|
140
255
|
{
|
|
141
|
-
name: 'token_program',
|
|
142
256
|
address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
|
|
257
|
+
name: 'token_program',
|
|
143
258
|
},
|
|
144
259
|
{
|
|
145
|
-
name: 'token_metadata_program',
|
|
146
260
|
address: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
|
|
261
|
+
name: 'token_metadata_program',
|
|
147
262
|
},
|
|
148
263
|
{
|
|
149
|
-
name: 'system_program',
|
|
150
264
|
address: '11111111111111111111111111111111',
|
|
265
|
+
name: 'system_program',
|
|
151
266
|
},
|
|
152
267
|
{
|
|
153
|
-
name: 'rent',
|
|
154
268
|
address: 'SysvarRent111111111111111111111111111111111',
|
|
269
|
+
name: 'rent',
|
|
155
270
|
},
|
|
156
271
|
],
|
|
157
272
|
args: [
|
|
@@ -168,45 +283,25 @@ exports.vaultIdl = {
|
|
|
168
283
|
type: 'string',
|
|
169
284
|
},
|
|
170
285
|
],
|
|
171
|
-
|
|
172
|
-
{
|
|
173
|
-
name: 'deposit',
|
|
286
|
+
discriminator: [54, 182, 66, 108, 197, 135, 53, 117],
|
|
174
287
|
docs: [
|
|
175
|
-
'
|
|
176
|
-
'Mint Vault shares',
|
|
177
|
-
'',
|
|
288
|
+
'Create metadata for the share token',
|
|
178
289
|
'### Parameters',
|
|
179
|
-
'- `
|
|
290
|
+
'- `name` - The name of the token',
|
|
291
|
+
'- `symbol` - The symbol of the token',
|
|
292
|
+
'- `uri` - The URI for the token metadata',
|
|
180
293
|
],
|
|
181
|
-
|
|
294
|
+
name: 'create_share_token_metadata',
|
|
295
|
+
},
|
|
296
|
+
{
|
|
182
297
|
accounts: [
|
|
183
298
|
{
|
|
184
299
|
name: 'vault_state',
|
|
185
300
|
writable: true,
|
|
186
|
-
pda: {
|
|
187
|
-
seeds: [
|
|
188
|
-
{
|
|
189
|
-
kind: 'const',
|
|
190
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
},
|
|
194
301
|
},
|
|
195
302
|
{
|
|
196
303
|
name: 'vault_token_ata',
|
|
197
304
|
writable: true,
|
|
198
|
-
pda: {
|
|
199
|
-
seeds: [
|
|
200
|
-
{
|
|
201
|
-
kind: 'const',
|
|
202
|
-
value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116],
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
kind: 'account',
|
|
206
|
-
path: 'deposit_mint',
|
|
207
|
-
},
|
|
208
|
-
],
|
|
209
|
-
},
|
|
210
305
|
},
|
|
211
306
|
{
|
|
212
307
|
name: 'sender_token_account',
|
|
@@ -219,14 +314,6 @@ exports.vaultIdl = {
|
|
|
219
314
|
{
|
|
220
315
|
name: 'share_mint',
|
|
221
316
|
writable: true,
|
|
222
|
-
pda: {
|
|
223
|
-
seeds: [
|
|
224
|
-
{
|
|
225
|
-
kind: 'const',
|
|
226
|
-
value: [109, 105, 110, 116],
|
|
227
|
-
},
|
|
228
|
-
],
|
|
229
|
-
},
|
|
230
317
|
},
|
|
231
318
|
{
|
|
232
319
|
name: 'deposit_mint',
|
|
@@ -234,8 +321,8 @@ exports.vaultIdl = {
|
|
|
234
321
|
},
|
|
235
322
|
{
|
|
236
323
|
name: 'signer',
|
|
237
|
-
writable: true,
|
|
238
324
|
signer: true,
|
|
325
|
+
writable: true,
|
|
239
326
|
},
|
|
240
327
|
{
|
|
241
328
|
name: 'token_program',
|
|
@@ -247,78 +334,48 @@ exports.vaultIdl = {
|
|
|
247
334
|
type: 'u64',
|
|
248
335
|
},
|
|
249
336
|
],
|
|
250
|
-
|
|
251
|
-
{
|
|
252
|
-
name: 'initialize',
|
|
337
|
+
discriminator: [242, 35, 198, 137, 82, 225, 242, 182],
|
|
253
338
|
docs: [
|
|
254
|
-
'
|
|
339
|
+
'Deposit funds in the Vault',
|
|
255
340
|
'Mint Vault shares',
|
|
256
341
|
'',
|
|
257
342
|
'### Parameters',
|
|
258
|
-
'- `
|
|
259
|
-
'- `operator` - The Operator of the Vault',
|
|
260
|
-
'- `fee_recipient` - The Fee recipient of the Vault',
|
|
343
|
+
'- `amount` - The amount to deposit',
|
|
261
344
|
],
|
|
262
|
-
|
|
345
|
+
name: 'deposit',
|
|
346
|
+
},
|
|
347
|
+
{
|
|
263
348
|
accounts: [
|
|
264
349
|
{
|
|
265
350
|
name: 'vault_state',
|
|
266
351
|
writable: true,
|
|
267
|
-
pda: {
|
|
268
|
-
seeds: [
|
|
269
|
-
{
|
|
270
|
-
kind: 'const',
|
|
271
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
272
|
-
},
|
|
273
|
-
],
|
|
274
|
-
},
|
|
275
352
|
},
|
|
276
353
|
{
|
|
277
354
|
name: 'share_mint',
|
|
278
355
|
writable: true,
|
|
279
|
-
pda: {
|
|
280
|
-
seeds: [
|
|
281
|
-
{
|
|
282
|
-
kind: 'const',
|
|
283
|
-
value: [109, 105, 110, 116],
|
|
284
|
-
},
|
|
285
|
-
],
|
|
286
|
-
},
|
|
287
356
|
},
|
|
288
357
|
{
|
|
289
358
|
name: 'vault_token_ata',
|
|
290
359
|
writable: true,
|
|
291
|
-
pda: {
|
|
292
|
-
seeds: [
|
|
293
|
-
{
|
|
294
|
-
kind: 'const',
|
|
295
|
-
value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116],
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
kind: 'account',
|
|
299
|
-
path: 'deposit_mint',
|
|
300
|
-
},
|
|
301
|
-
],
|
|
302
|
-
},
|
|
303
360
|
},
|
|
304
361
|
{
|
|
305
362
|
name: 'deposit_mint',
|
|
306
363
|
},
|
|
307
364
|
{
|
|
308
365
|
name: 'signer',
|
|
309
|
-
writable: true,
|
|
310
366
|
signer: true,
|
|
367
|
+
writable: true,
|
|
311
368
|
},
|
|
312
369
|
{
|
|
313
|
-
name: 'system_program',
|
|
314
370
|
address: '11111111111111111111111111111111',
|
|
371
|
+
name: 'system_program',
|
|
315
372
|
},
|
|
316
373
|
{
|
|
317
374
|
name: 'token_program',
|
|
318
375
|
},
|
|
319
376
|
{
|
|
320
|
-
name: 'rent',
|
|
321
377
|
address: 'SysvarRent111111111111111111111111111111111',
|
|
378
|
+
name: 'rent',
|
|
322
379
|
},
|
|
323
380
|
],
|
|
324
381
|
args: [
|
|
@@ -334,43 +391,36 @@ exports.vaultIdl = {
|
|
|
334
391
|
name: 'fee_recipient',
|
|
335
392
|
type: 'pubkey',
|
|
336
393
|
},
|
|
394
|
+
{
|
|
395
|
+
name: 'vault_version',
|
|
396
|
+
type: 'u8',
|
|
397
|
+
},
|
|
337
398
|
],
|
|
338
|
-
|
|
339
|
-
{
|
|
340
|
-
name: 'nominate_admin',
|
|
399
|
+
discriminator: [175, 175, 109, 31, 13, 152, 155, 237],
|
|
341
400
|
docs: [
|
|
342
|
-
'
|
|
401
|
+
'Initialize the Vault state',
|
|
402
|
+
'Mint Vault shares',
|
|
403
|
+
'',
|
|
343
404
|
'### Parameters',
|
|
344
|
-
'- `
|
|
405
|
+
'- `admin` - The Admin of the Vault',
|
|
406
|
+
'- `operator` - The Operator of the Vault',
|
|
407
|
+
'- `fee_recipient` - The Fee recipient of the Vault',
|
|
408
|
+
'- `vault_version` - Version number for the vault (allows multiple vaults per deposit mint)',
|
|
345
409
|
],
|
|
346
|
-
|
|
410
|
+
name: 'initialize',
|
|
411
|
+
},
|
|
412
|
+
{
|
|
347
413
|
accounts: [
|
|
348
414
|
{
|
|
349
415
|
name: 'vault_state',
|
|
350
416
|
writable: true,
|
|
351
|
-
pda: {
|
|
352
|
-
seeds: [
|
|
353
|
-
{
|
|
354
|
-
kind: 'const',
|
|
355
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
356
|
-
},
|
|
357
|
-
],
|
|
358
|
-
},
|
|
359
417
|
},
|
|
360
|
-
{
|
|
361
|
-
name: '
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
kind: 'const',
|
|
367
|
-
value: [
|
|
368
|
-
110, 111, 109, 105, 110, 97, 116, 101, 100, 95, 97, 100, 109,
|
|
369
|
-
105, 110,
|
|
370
|
-
],
|
|
371
|
-
},
|
|
372
|
-
],
|
|
373
|
-
},
|
|
418
|
+
{
|
|
419
|
+
name: 'deposit_mint',
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
name: 'nominated_admin_pda',
|
|
423
|
+
writable: true,
|
|
374
424
|
},
|
|
375
425
|
{
|
|
376
426
|
name: 'admin',
|
|
@@ -378,12 +428,12 @@ exports.vaultIdl = {
|
|
|
378
428
|
},
|
|
379
429
|
{
|
|
380
430
|
name: 'payer',
|
|
381
|
-
writable: true,
|
|
382
431
|
signer: true,
|
|
432
|
+
writable: true,
|
|
383
433
|
},
|
|
384
434
|
{
|
|
385
|
-
name: 'system_program',
|
|
386
435
|
address: '11111111111111111111111111111111',
|
|
436
|
+
name: 'system_program',
|
|
387
437
|
},
|
|
388
438
|
],
|
|
389
439
|
args: [
|
|
@@ -392,50 +442,35 @@ exports.vaultIdl = {
|
|
|
392
442
|
type: 'pubkey',
|
|
393
443
|
},
|
|
394
444
|
],
|
|
395
|
-
|
|
396
|
-
{
|
|
397
|
-
name: 'operator_deposit',
|
|
445
|
+
discriminator: [134, 11, 31, 244, 20, 77, 138, 121],
|
|
398
446
|
docs: [
|
|
399
|
-
'
|
|
400
|
-
'',
|
|
401
|
-
'Get tokens in',
|
|
447
|
+
'Admin Nominates a new Admin',
|
|
402
448
|
'### Parameters',
|
|
403
|
-
'- `
|
|
449
|
+
'- `new_admin` - The new admin',
|
|
404
450
|
],
|
|
405
|
-
|
|
451
|
+
name: 'nominate_admin',
|
|
452
|
+
},
|
|
453
|
+
{
|
|
406
454
|
accounts: [
|
|
407
455
|
{
|
|
408
456
|
name: 'vault_state',
|
|
409
457
|
writable: true,
|
|
410
|
-
pda: {
|
|
411
|
-
seeds: [
|
|
412
|
-
{
|
|
413
|
-
kind: 'const',
|
|
414
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
415
|
-
},
|
|
416
|
-
],
|
|
417
|
-
},
|
|
418
458
|
},
|
|
419
459
|
{
|
|
420
460
|
name: 'vault_deposit_ata',
|
|
421
461
|
writable: true,
|
|
422
|
-
pda: {
|
|
423
|
-
seeds: [
|
|
424
|
-
{
|
|
425
|
-
kind: 'const',
|
|
426
|
-
value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116],
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
kind: 'account',
|
|
430
|
-
path: 'deposit_mint',
|
|
431
|
-
},
|
|
432
|
-
],
|
|
433
|
-
},
|
|
434
462
|
},
|
|
435
463
|
{
|
|
436
464
|
name: 'operator_token_account',
|
|
437
|
-
writable: true,
|
|
438
465
|
pda: {
|
|
466
|
+
program: {
|
|
467
|
+
kind: 'const',
|
|
468
|
+
value: [
|
|
469
|
+
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
470
|
+
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
471
|
+
219, 233, 248, 89,
|
|
472
|
+
],
|
|
473
|
+
},
|
|
439
474
|
seeds: [
|
|
440
475
|
{
|
|
441
476
|
kind: 'account',
|
|
@@ -454,15 +489,8 @@ exports.vaultIdl = {
|
|
|
454
489
|
path: 'deposit_mint',
|
|
455
490
|
},
|
|
456
491
|
],
|
|
457
|
-
program: {
|
|
458
|
-
kind: 'const',
|
|
459
|
-
value: [
|
|
460
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
461
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
462
|
-
219, 233, 248, 89,
|
|
463
|
-
],
|
|
464
|
-
},
|
|
465
492
|
},
|
|
493
|
+
writable: true,
|
|
466
494
|
},
|
|
467
495
|
{
|
|
468
496
|
name: 'deposit_mint',
|
|
@@ -482,30 +510,24 @@ exports.vaultIdl = {
|
|
|
482
510
|
type: 'u64',
|
|
483
511
|
},
|
|
484
512
|
],
|
|
485
|
-
|
|
486
|
-
{
|
|
487
|
-
name: 'operator_update_aum',
|
|
513
|
+
discriminator: [30, 228, 53, 180, 222, 19, 226, 158],
|
|
488
514
|
docs: [
|
|
489
|
-
'Operator
|
|
515
|
+
'Operator deposit funds in the Vault',
|
|
490
516
|
'',
|
|
491
|
-
'
|
|
492
|
-
'Any update will increase / decrease the shares value',
|
|
517
|
+
'Get tokens in',
|
|
493
518
|
'### Parameters',
|
|
494
|
-
'- `
|
|
519
|
+
'- `amount` - The amount of tokens to get in the Vault',
|
|
495
520
|
],
|
|
496
|
-
|
|
521
|
+
name: 'operator_deposit',
|
|
522
|
+
},
|
|
523
|
+
{
|
|
497
524
|
accounts: [
|
|
498
525
|
{
|
|
499
526
|
name: 'vault_state',
|
|
500
527
|
writable: true,
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
kind: 'const',
|
|
505
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
506
|
-
},
|
|
507
|
-
],
|
|
508
|
-
},
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
name: 'deposit_mint',
|
|
509
531
|
},
|
|
510
532
|
{
|
|
511
533
|
name: 'operator',
|
|
@@ -518,50 +540,38 @@ exports.vaultIdl = {
|
|
|
518
540
|
type: 'u64',
|
|
519
541
|
},
|
|
520
542
|
],
|
|
521
|
-
|
|
522
|
-
{
|
|
523
|
-
name: 'operator_withdraw',
|
|
543
|
+
discriminator: [101, 222, 179, 164, 219, 110, 161, 98],
|
|
524
544
|
docs: [
|
|
525
|
-
'Operator
|
|
545
|
+
'Operator Updates the Deployed AUM',
|
|
526
546
|
'',
|
|
527
|
-
'
|
|
547
|
+
'Update must be within a +/- 10% bounderies of current deployed AUM',
|
|
548
|
+
'Any update will increase / decrease the shares value',
|
|
528
549
|
'### Parameters',
|
|
529
|
-
'- `
|
|
550
|
+
'- `new_aum` - The new deployed AUM value',
|
|
530
551
|
],
|
|
531
|
-
|
|
552
|
+
name: 'operator_update_aum',
|
|
553
|
+
},
|
|
554
|
+
{
|
|
532
555
|
accounts: [
|
|
533
556
|
{
|
|
534
557
|
name: 'vault_state',
|
|
535
558
|
writable: true,
|
|
536
|
-
pda: {
|
|
537
|
-
seeds: [
|
|
538
|
-
{
|
|
539
|
-
kind: 'const',
|
|
540
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
541
|
-
},
|
|
542
|
-
],
|
|
543
|
-
},
|
|
544
559
|
},
|
|
545
560
|
{
|
|
546
561
|
name: 'vault_deposit_ata',
|
|
547
562
|
writable: true,
|
|
548
|
-
pda: {
|
|
549
|
-
seeds: [
|
|
550
|
-
{
|
|
551
|
-
kind: 'const',
|
|
552
|
-
value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116],
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
kind: 'account',
|
|
556
|
-
path: 'deposit_mint',
|
|
557
|
-
},
|
|
558
|
-
],
|
|
559
|
-
},
|
|
560
563
|
},
|
|
561
564
|
{
|
|
562
565
|
name: 'operator_token_account',
|
|
563
|
-
writable: true,
|
|
564
566
|
pda: {
|
|
567
|
+
program: {
|
|
568
|
+
kind: 'const',
|
|
569
|
+
value: [
|
|
570
|
+
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
571
|
+
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
572
|
+
219, 233, 248, 89,
|
|
573
|
+
],
|
|
574
|
+
},
|
|
565
575
|
seeds: [
|
|
566
576
|
{
|
|
567
577
|
kind: 'account',
|
|
@@ -580,15 +590,8 @@ exports.vaultIdl = {
|
|
|
580
590
|
path: 'deposit_mint',
|
|
581
591
|
},
|
|
582
592
|
],
|
|
583
|
-
program: {
|
|
584
|
-
kind: 'const',
|
|
585
|
-
value: [
|
|
586
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
587
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
588
|
-
219, 233, 248, 89,
|
|
589
|
-
],
|
|
590
|
-
},
|
|
591
593
|
},
|
|
594
|
+
writable: true,
|
|
592
595
|
},
|
|
593
596
|
{
|
|
594
597
|
name: 'deposit_mint',
|
|
@@ -608,27 +611,24 @@ exports.vaultIdl = {
|
|
|
608
611
|
type: 'u64',
|
|
609
612
|
},
|
|
610
613
|
],
|
|
611
|
-
|
|
612
|
-
{
|
|
613
|
-
name: 'pause',
|
|
614
|
+
discriminator: [204, 93, 227, 34, 168, 109, 25, 130],
|
|
614
615
|
docs: [
|
|
615
|
-
'
|
|
616
|
+
'Operator withdraw funds from the Vault',
|
|
617
|
+
'',
|
|
618
|
+
'Get tokens out',
|
|
616
619
|
'### Parameters',
|
|
617
|
-
'- `
|
|
620
|
+
'- `amount` - The amount of tokens to get out of the Vault',
|
|
618
621
|
],
|
|
619
|
-
|
|
622
|
+
name: 'operator_withdraw',
|
|
623
|
+
},
|
|
624
|
+
{
|
|
620
625
|
accounts: [
|
|
621
626
|
{
|
|
622
627
|
name: 'vault_state',
|
|
623
628
|
writable: true,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
kind: 'const',
|
|
628
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
629
|
-
},
|
|
630
|
-
],
|
|
631
|
-
},
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
name: 'deposit_mint',
|
|
632
632
|
},
|
|
633
633
|
{
|
|
634
634
|
name: 'admin',
|
|
@@ -636,45 +636,23 @@ exports.vaultIdl = {
|
|
|
636
636
|
},
|
|
637
637
|
],
|
|
638
638
|
args: [],
|
|
639
|
-
|
|
640
|
-
{
|
|
641
|
-
name: 'redeem',
|
|
639
|
+
discriminator: [211, 22, 221, 251, 74, 121, 193, 47],
|
|
642
640
|
docs: [
|
|
643
|
-
'
|
|
644
|
-
'Burn shared',
|
|
645
|
-
'Get tokens out',
|
|
641
|
+
'Admin Pauses the Vault',
|
|
646
642
|
'### Parameters',
|
|
647
|
-
'- `
|
|
643
|
+
'- `new_fee_recipient` - The new fee recipient',
|
|
648
644
|
],
|
|
649
|
-
|
|
645
|
+
name: 'pause',
|
|
646
|
+
},
|
|
647
|
+
{
|
|
650
648
|
accounts: [
|
|
651
649
|
{
|
|
652
650
|
name: 'vault_state',
|
|
653
651
|
writable: true,
|
|
654
|
-
pda: {
|
|
655
|
-
seeds: [
|
|
656
|
-
{
|
|
657
|
-
kind: 'const',
|
|
658
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
659
|
-
},
|
|
660
|
-
],
|
|
661
|
-
},
|
|
662
652
|
},
|
|
663
653
|
{
|
|
664
654
|
name: 'vault_deposit_ata',
|
|
665
655
|
writable: true,
|
|
666
|
-
pda: {
|
|
667
|
-
seeds: [
|
|
668
|
-
{
|
|
669
|
-
kind: 'const',
|
|
670
|
-
value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116],
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
kind: 'account',
|
|
674
|
-
path: 'deposit_mint',
|
|
675
|
-
},
|
|
676
|
-
],
|
|
677
|
-
},
|
|
678
656
|
},
|
|
679
657
|
{
|
|
680
658
|
name: 'sender_token_account',
|
|
@@ -691,14 +669,6 @@ exports.vaultIdl = {
|
|
|
691
669
|
{
|
|
692
670
|
name: 'share_mint',
|
|
693
671
|
writable: true,
|
|
694
|
-
pda: {
|
|
695
|
-
seeds: [
|
|
696
|
-
{
|
|
697
|
-
kind: 'const',
|
|
698
|
-
value: [109, 105, 110, 116],
|
|
699
|
-
},
|
|
700
|
-
],
|
|
701
|
-
},
|
|
702
672
|
},
|
|
703
673
|
{
|
|
704
674
|
name: 'deposit_mint',
|
|
@@ -706,8 +676,8 @@ exports.vaultIdl = {
|
|
|
706
676
|
},
|
|
707
677
|
{
|
|
708
678
|
name: 'signer',
|
|
709
|
-
writable: true,
|
|
710
679
|
signer: true,
|
|
680
|
+
writable: true,
|
|
711
681
|
},
|
|
712
682
|
{
|
|
713
683
|
name: 'token_program',
|
|
@@ -715,31 +685,90 @@ exports.vaultIdl = {
|
|
|
715
685
|
],
|
|
716
686
|
args: [
|
|
717
687
|
{
|
|
718
|
-
name: 'shares',
|
|
719
|
-
type: 'u64',
|
|
688
|
+
name: 'shares',
|
|
689
|
+
type: 'u64',
|
|
690
|
+
},
|
|
691
|
+
],
|
|
692
|
+
discriminator: [184, 12, 86, 149, 70, 196, 97, 225],
|
|
693
|
+
docs: [
|
|
694
|
+
'Redeem funds from the Vault',
|
|
695
|
+
'Burn shared',
|
|
696
|
+
'Get tokens out',
|
|
697
|
+
'### Parameters',
|
|
698
|
+
'- `shares` - The amount of shares to burn',
|
|
699
|
+
],
|
|
700
|
+
name: 'redeem',
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
accounts: [
|
|
704
|
+
{
|
|
705
|
+
name: 'vault_state',
|
|
706
|
+
writable: true,
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
name: 'deposit_mint',
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
name: 'admin',
|
|
713
|
+
signer: true,
|
|
714
|
+
writable: true,
|
|
715
|
+
},
|
|
716
|
+
],
|
|
717
|
+
args: [
|
|
718
|
+
{
|
|
719
|
+
name: 'increase_limit',
|
|
720
|
+
type: 'u32',
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
name: 'decrease_limit',
|
|
724
|
+
type: 'u32',
|
|
725
|
+
},
|
|
726
|
+
],
|
|
727
|
+
discriminator: [215, 97, 244, 184, 210, 255, 129, 225],
|
|
728
|
+
docs: [
|
|
729
|
+
'Admin Updates the AUM Change Limits',
|
|
730
|
+
'### Parameters',
|
|
731
|
+
'- `increase_limit` - Max increase in basis points (e.g., 20 = 0.2%, 100 = 1%)',
|
|
732
|
+
'- `decrease_limit` - Max decrease in basis points (e.g., 20 = 0.2%, 100 = 1%)',
|
|
733
|
+
],
|
|
734
|
+
name: 'set_aum_limits',
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
accounts: [
|
|
738
|
+
{
|
|
739
|
+
name: 'vault_state',
|
|
740
|
+
writable: true,
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
name: 'deposit_mint',
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
name: 'admin',
|
|
747
|
+
signer: true,
|
|
748
|
+
},
|
|
749
|
+
],
|
|
750
|
+
args: [
|
|
751
|
+
{
|
|
752
|
+
name: 'new_fee_recipient',
|
|
753
|
+
type: 'pubkey',
|
|
720
754
|
},
|
|
721
755
|
],
|
|
722
|
-
|
|
723
|
-
{
|
|
724
|
-
name: 'set_fee_recipient',
|
|
756
|
+
discriminator: [227, 18, 215, 42, 237, 246, 151, 66],
|
|
725
757
|
docs: [
|
|
726
758
|
'Admin Updates the Fee recipient',
|
|
727
759
|
'### Parameters',
|
|
728
760
|
'- `new_fee_recipient` - The new fee recipient',
|
|
729
761
|
],
|
|
730
|
-
|
|
762
|
+
name: 'set_fee_recipient',
|
|
763
|
+
},
|
|
764
|
+
{
|
|
731
765
|
accounts: [
|
|
732
766
|
{
|
|
733
767
|
name: 'vault_state',
|
|
734
768
|
writable: true,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
kind: 'const',
|
|
739
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
740
|
-
},
|
|
741
|
-
],
|
|
742
|
-
},
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
name: 'deposit_mint',
|
|
743
772
|
},
|
|
744
773
|
{
|
|
745
774
|
name: 'admin',
|
|
@@ -748,31 +777,26 @@ exports.vaultIdl = {
|
|
|
748
777
|
],
|
|
749
778
|
args: [
|
|
750
779
|
{
|
|
751
|
-
name: '
|
|
780
|
+
name: 'new_operator',
|
|
752
781
|
type: 'pubkey',
|
|
753
782
|
},
|
|
754
783
|
],
|
|
755
|
-
|
|
756
|
-
{
|
|
757
|
-
name: 'set_operator',
|
|
784
|
+
discriminator: [238, 153, 101, 169, 243, 131, 36, 1],
|
|
758
785
|
docs: [
|
|
759
786
|
'Admin Updates the Operator',
|
|
760
787
|
'### Parameters',
|
|
761
788
|
'- `new_operator` - The new operator',
|
|
762
789
|
],
|
|
763
|
-
|
|
790
|
+
name: 'set_operator',
|
|
791
|
+
},
|
|
792
|
+
{
|
|
764
793
|
accounts: [
|
|
765
794
|
{
|
|
766
795
|
name: 'vault_state',
|
|
767
796
|
writable: true,
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
kind: 'const',
|
|
772
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
773
|
-
},
|
|
774
|
-
],
|
|
775
|
-
},
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
name: 'deposit_mint',
|
|
776
800
|
},
|
|
777
801
|
{
|
|
778
802
|
name: 'admin',
|
|
@@ -781,13 +805,11 @@ exports.vaultIdl = {
|
|
|
781
805
|
],
|
|
782
806
|
args: [
|
|
783
807
|
{
|
|
784
|
-
name: '
|
|
785
|
-
type: '
|
|
808
|
+
name: 'new_fee',
|
|
809
|
+
type: 'u32',
|
|
786
810
|
},
|
|
787
811
|
],
|
|
788
|
-
|
|
789
|
-
{
|
|
790
|
-
name: 'set_withdrawal_fee',
|
|
812
|
+
discriminator: [202, 235, 196, 76, 230, 68, 57, 150],
|
|
791
813
|
docs: [
|
|
792
814
|
'Admin Updates the Withdrawal Fee',
|
|
793
815
|
'',
|
|
@@ -795,163 +817,129 @@ exports.vaultIdl = {
|
|
|
795
817
|
'### Parameters',
|
|
796
818
|
'- `new_fee` - Max value 100% is 1_000_000',
|
|
797
819
|
],
|
|
798
|
-
|
|
820
|
+
name: 'set_withdrawal_fee',
|
|
821
|
+
},
|
|
822
|
+
{
|
|
799
823
|
accounts: [
|
|
800
824
|
{
|
|
801
825
|
name: 'vault_state',
|
|
802
826
|
writable: true,
|
|
803
|
-
pda: {
|
|
804
|
-
seeds: [
|
|
805
|
-
{
|
|
806
|
-
kind: 'const',
|
|
807
|
-
value: [86, 65, 85, 76, 84, 95, 83, 84, 65, 84, 69],
|
|
808
|
-
},
|
|
809
|
-
],
|
|
810
|
-
},
|
|
811
827
|
},
|
|
812
828
|
{
|
|
813
|
-
name: '
|
|
814
|
-
signer: true,
|
|
829
|
+
name: 'deposit_mint',
|
|
815
830
|
},
|
|
816
|
-
],
|
|
817
|
-
args: [
|
|
818
831
|
{
|
|
819
|
-
name: '
|
|
820
|
-
|
|
832
|
+
name: 'admin',
|
|
833
|
+
signer: true,
|
|
821
834
|
},
|
|
822
835
|
],
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
name: 'unpause',
|
|
836
|
+
args: [],
|
|
837
|
+
discriminator: [169, 144, 4, 38, 10, 141, 188, 255],
|
|
826
838
|
docs: [
|
|
827
839
|
'Admin Unpauses the Vault',
|
|
828
840
|
'### Parameters',
|
|
829
841
|
'- `new_fee_recipient` - The new fee recipient',
|
|
830
842
|
],
|
|
831
|
-
|
|
843
|
+
name: 'unpause',
|
|
844
|
+
},
|
|
845
|
+
{
|
|
832
846
|
accounts: [
|
|
833
847
|
{
|
|
848
|
+
docs: ['The admin of the vault - only they can update metadata'],
|
|
849
|
+
name: 'admin',
|
|
850
|
+
signer: true,
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
docs: [
|
|
854
|
+
'The vault state PDA that owns the mint authority and is the update authority',
|
|
855
|
+
],
|
|
834
856
|
name: 'vault_state',
|
|
835
857
|
writable: true,
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
docs: ['The deposit mint used for PDA derivation'],
|
|
861
|
+
name: 'deposit_mint',
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
docs: ['The share token mint'],
|
|
865
|
+
name: 'share_mint',
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
name: 'metadata_account',
|
|
836
869
|
pda: {
|
|
870
|
+
program: {
|
|
871
|
+
kind: 'const',
|
|
872
|
+
value: [
|
|
873
|
+
11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107, 4,
|
|
874
|
+
195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182, 209,
|
|
875
|
+
188, 3, 248, 41, 70,
|
|
876
|
+
],
|
|
877
|
+
},
|
|
837
878
|
seeds: [
|
|
838
879
|
{
|
|
839
880
|
kind: 'const',
|
|
840
|
-
value: [
|
|
881
|
+
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
kind: 'const',
|
|
885
|
+
value: [
|
|
886
|
+
11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107,
|
|
887
|
+
4, 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182,
|
|
888
|
+
209, 188, 3, 248, 41, 70,
|
|
889
|
+
],
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
kind: 'account',
|
|
893
|
+
path: 'share_mint',
|
|
841
894
|
},
|
|
842
895
|
],
|
|
843
896
|
},
|
|
897
|
+
writable: true,
|
|
844
898
|
},
|
|
845
899
|
{
|
|
846
|
-
|
|
847
|
-
|
|
900
|
+
address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
|
|
901
|
+
name: 'token_program',
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
address: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
|
|
905
|
+
name: 'token_metadata_program',
|
|
848
906
|
},
|
|
849
907
|
],
|
|
850
|
-
args: [
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
errors: [
|
|
874
|
-
{
|
|
875
|
-
code: 6000,
|
|
876
|
-
name: 'NotOperator',
|
|
877
|
-
msg: 'Signer must be the admin',
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
code: 6001,
|
|
881
|
-
name: 'ZeroAmount',
|
|
882
|
-
msg: 'Amount must be > 0',
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
code: 6002,
|
|
886
|
-
name: 'InsufficientAmount',
|
|
887
|
-
msg: 'Insufficient amount for initial deposit',
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
code: 6003,
|
|
891
|
-
name: 'AumIncreaseTooBig',
|
|
892
|
-
msg: 'Over 10% aum increase ?',
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
code: 6004,
|
|
896
|
-
name: 'AumDecreaseTooBig',
|
|
897
|
-
msg: 'Over 10% aum decrease ?',
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
code: 6005,
|
|
901
|
-
name: 'WithdrawalFeeTooHigh',
|
|
902
|
-
msg: 'Withdrawal fee too high',
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
code: 6006,
|
|
906
|
-
name: 'NotAdmin',
|
|
907
|
-
msg: 'Signer is Not Admin',
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
code: 6007,
|
|
911
|
-
name: 'WrongMint',
|
|
912
|
-
msg: 'Deposit Mint is incorrect',
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
code: 6008,
|
|
916
|
-
name: 'VaultPaused',
|
|
917
|
-
msg: 'Vault is paused',
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
code: 6009,
|
|
921
|
-
name: 'InvalidNominatedAdmin',
|
|
922
|
-
msg: 'Nominated Admin is incorrect',
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
code: 6010,
|
|
926
|
-
name: 'NominationExpired',
|
|
927
|
-
msg: 'Admin nomination window expired',
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
code: 6011,
|
|
931
|
-
name: 'MathError',
|
|
932
|
-
msg: 'Math error',
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
code: 6012,
|
|
936
|
-
name: 'NumberOverflow',
|
|
937
|
-
msg: 'Number Overflow',
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
code: 6013,
|
|
941
|
-
name: 'NotEnoughLiquidity',
|
|
942
|
-
msg: 'Not Enough Liquidity',
|
|
943
|
-
},
|
|
944
|
-
{
|
|
945
|
-
code: 6014,
|
|
946
|
-
name: 'UnauthorizedAdmin',
|
|
947
|
-
msg: 'Unauthorized admin for metadata operation',
|
|
908
|
+
args: [
|
|
909
|
+
{
|
|
910
|
+
name: 'name',
|
|
911
|
+
type: 'string',
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
name: 'symbol',
|
|
915
|
+
type: 'string',
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
name: 'uri',
|
|
919
|
+
type: 'string',
|
|
920
|
+
},
|
|
921
|
+
],
|
|
922
|
+
discriminator: [33, 144, 157, 164, 161, 4, 219, 121],
|
|
923
|
+
docs: [
|
|
924
|
+
'Update metadata for the share token',
|
|
925
|
+
'### Parameters',
|
|
926
|
+
'- `name` - The new name of the token',
|
|
927
|
+
'- `symbol` - The new symbol of the token',
|
|
928
|
+
'- `uri` - The new URI for the token metadata',
|
|
929
|
+
],
|
|
930
|
+
name: 'update_share_token_metadata',
|
|
948
931
|
},
|
|
949
932
|
],
|
|
933
|
+
metadata: {
|
|
934
|
+
description: 'Created with Anchor',
|
|
935
|
+
name: 'august_vault',
|
|
936
|
+
spec: '0.1.0',
|
|
937
|
+
version: '0.1.0',
|
|
938
|
+
},
|
|
950
939
|
types: [
|
|
951
940
|
{
|
|
952
941
|
name: 'DepositEvt',
|
|
953
942
|
type: {
|
|
954
|
-
kind: 'struct',
|
|
955
943
|
fields: [
|
|
956
944
|
{
|
|
957
945
|
name: 'caller',
|
|
@@ -970,16 +958,16 @@ exports.vaultIdl = {
|
|
|
970
958
|
type: 'u64',
|
|
971
959
|
},
|
|
972
960
|
],
|
|
961
|
+
kind: 'struct',
|
|
973
962
|
},
|
|
974
963
|
},
|
|
975
964
|
{
|
|
976
965
|
name: 'NominatedAdmin',
|
|
977
|
-
serialization: 'bytemuck',
|
|
978
966
|
repr: {
|
|
979
967
|
kind: 'c',
|
|
980
968
|
},
|
|
969
|
+
serialization: 'bytemuck',
|
|
981
970
|
type: {
|
|
982
|
-
kind: 'struct',
|
|
983
971
|
fields: [
|
|
984
972
|
{
|
|
985
973
|
name: 'nominated_admin',
|
|
@@ -990,15 +978,12 @@ exports.vaultIdl = {
|
|
|
990
978
|
type: 'i64',
|
|
991
979
|
},
|
|
992
980
|
],
|
|
981
|
+
kind: 'struct',
|
|
993
982
|
},
|
|
994
983
|
},
|
|
995
984
|
{
|
|
996
985
|
name: 'VaultState',
|
|
997
986
|
type: {
|
|
998
|
-
kind: 'struct',
|
|
999
|
-
// Field order MUST match programs/august-vault/src/state/vault.rs:36
|
|
1000
|
-
// exactly. Borsh deserialization is positional; any reorder, addition,
|
|
1001
|
-
// or omission silently corrupts every field after the drift point.
|
|
1002
987
|
fields: [
|
|
1003
988
|
{
|
|
1004
989
|
name: 'operator',
|
|
@@ -1063,12 +1048,12 @@ exports.vaultIdl = {
|
|
|
1063
1048
|
},
|
|
1064
1049
|
},
|
|
1065
1050
|
],
|
|
1051
|
+
kind: 'struct',
|
|
1066
1052
|
},
|
|
1067
1053
|
},
|
|
1068
1054
|
{
|
|
1069
1055
|
name: 'WithdrawEvt',
|
|
1070
1056
|
type: {
|
|
1071
|
-
kind: 'struct',
|
|
1072
1057
|
fields: [
|
|
1073
1058
|
{
|
|
1074
1059
|
name: 'caller',
|
|
@@ -1091,6 +1076,7 @@ exports.vaultIdl = {
|
|
|
1091
1076
|
type: 'u64',
|
|
1092
1077
|
},
|
|
1093
1078
|
],
|
|
1079
|
+
kind: 'struct',
|
|
1094
1080
|
},
|
|
1095
1081
|
},
|
|
1096
1082
|
],
|