@augustdigital/sdk 8.24.0 → 8.25.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/adapters/solana/idl/vault-idl.d.ts +185 -18
- package/lib/adapters/solana/idl/vault-idl.js +521 -28
- package/lib/core/analytics/method-taxonomy.js +10 -0
- package/lib/core/analytics/version.d.ts +1 -1
- package/lib/core/analytics/version.js +1 -1
- package/lib/core/constants/core.d.ts +11 -0
- package/lib/core/constants/core.js +54 -0
- package/lib/main.d.ts +22 -2
- package/lib/main.js +22 -2
- package/lib/modules/api/fetcher.d.ts +27 -1
- package/lib/modules/api/fetcher.js +38 -1
- package/lib/modules/api/main.d.ts +288 -14
- package/lib/modules/api/main.js +439 -13
- package/lib/modules/vaults/write.actions.d.ts +4 -0
- package/lib/modules/vaults/write.actions.js +9 -1
- package/lib/sdk.d.ts +11579 -10862
- package/lib/types/api.d.ts +218 -0
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* august_vault program IDL (Anchor).
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit by hand.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `anchor idl fetch
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* it can't be used as the generation source. The solana-idl-drift check (CI)
|
|
12
|
-
* therefore validates `up12…` by pinning its deployed binary and by decoding
|
|
13
|
-
* live VaultState accounts against this file — see
|
|
14
|
-
* tests/vaults/solana-idl-drift.test.ts.
|
|
4
|
+
* GENERATED — do not edit by hand. Source of truth is the program repo's build
|
|
5
|
+
* artifact: solana-vaults `frontend/idl/august_vault.json` (synced from the
|
|
6
|
+
* vendored program by `scripts/sync-idl.sh`). Regenerate from there, NOT with
|
|
7
|
+
* `anchor idl fetch`: an Anchor IDL upload is not refreshed by a program
|
|
8
|
+
* upgrade, so every IDL published for this program lineage is stale — both
|
|
9
|
+
* `up12…` on mainnet (last written 2026-01-21) and the `C8B1…` devnet reference
|
|
10
|
+
* (2026-01-23) predate the ProgramConfig build deployed on 2026-08-06.
|
|
15
11
|
*
|
|
16
12
|
* `address` is a build stamp (the mainnet id), NOT network-aware. Never rely on
|
|
17
13
|
* it: SolanaAdapter/getProgram resolve the real program id per network from
|
|
18
14
|
* programIds, or from an explicit `programId` override.
|
|
15
|
+
*
|
|
16
|
+
* Drift is guarded by tests/vaults/solana-idl-drift.test.ts: the deployed binary
|
|
17
|
+
* is pinned, every discriminator declared here must appear in that binary, and
|
|
18
|
+
* live VaultState accounts must decode against this file.
|
|
19
19
|
*/
|
|
20
20
|
export declare const vaultIdl: {
|
|
21
21
|
accounts: {
|
|
@@ -97,6 +97,121 @@ export declare const vaultIdl: {
|
|
|
97
97
|
discriminator: number[];
|
|
98
98
|
docs: string[];
|
|
99
99
|
name: string;
|
|
100
|
+
} | {
|
|
101
|
+
accounts: ({
|
|
102
|
+
docs: string[];
|
|
103
|
+
name: string;
|
|
104
|
+
pda: {
|
|
105
|
+
seeds: {
|
|
106
|
+
kind: string;
|
|
107
|
+
value: number[];
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
110
|
+
signer?: undefined;
|
|
111
|
+
writable?: undefined;
|
|
112
|
+
address?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
docs: string[];
|
|
115
|
+
name: string;
|
|
116
|
+
signer: boolean;
|
|
117
|
+
pda?: undefined;
|
|
118
|
+
writable?: undefined;
|
|
119
|
+
address?: undefined;
|
|
120
|
+
} | {
|
|
121
|
+
docs: string[];
|
|
122
|
+
name: string;
|
|
123
|
+
signer: boolean;
|
|
124
|
+
writable: boolean;
|
|
125
|
+
pda?: undefined;
|
|
126
|
+
address?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
name: string;
|
|
129
|
+
docs?: undefined;
|
|
130
|
+
pda?: undefined;
|
|
131
|
+
signer?: undefined;
|
|
132
|
+
writable?: undefined;
|
|
133
|
+
address?: undefined;
|
|
134
|
+
} | {
|
|
135
|
+
name: string;
|
|
136
|
+
writable: boolean;
|
|
137
|
+
docs?: undefined;
|
|
138
|
+
pda?: undefined;
|
|
139
|
+
signer?: undefined;
|
|
140
|
+
address?: undefined;
|
|
141
|
+
} | {
|
|
142
|
+
address: string;
|
|
143
|
+
name: string;
|
|
144
|
+
docs?: undefined;
|
|
145
|
+
pda?: undefined;
|
|
146
|
+
signer?: undefined;
|
|
147
|
+
writable?: undefined;
|
|
148
|
+
})[];
|
|
149
|
+
args: {
|
|
150
|
+
name: string;
|
|
151
|
+
type: string;
|
|
152
|
+
}[];
|
|
153
|
+
discriminator: number[];
|
|
154
|
+
docs: string[];
|
|
155
|
+
name: string;
|
|
156
|
+
} | {
|
|
157
|
+
accounts: ({
|
|
158
|
+
docs: string[];
|
|
159
|
+
name: string;
|
|
160
|
+
signer: boolean;
|
|
161
|
+
pda?: undefined;
|
|
162
|
+
writable?: undefined;
|
|
163
|
+
address?: undefined;
|
|
164
|
+
} | {
|
|
165
|
+
docs: string[];
|
|
166
|
+
name: string;
|
|
167
|
+
pda: {
|
|
168
|
+
program: {
|
|
169
|
+
kind: string;
|
|
170
|
+
value: number[];
|
|
171
|
+
};
|
|
172
|
+
seeds: {
|
|
173
|
+
kind: string;
|
|
174
|
+
value: number[];
|
|
175
|
+
}[];
|
|
176
|
+
};
|
|
177
|
+
signer?: undefined;
|
|
178
|
+
writable?: undefined;
|
|
179
|
+
address?: undefined;
|
|
180
|
+
} | {
|
|
181
|
+
name: string;
|
|
182
|
+
signer: boolean;
|
|
183
|
+
writable: boolean;
|
|
184
|
+
docs?: undefined;
|
|
185
|
+
pda?: undefined;
|
|
186
|
+
address?: undefined;
|
|
187
|
+
} | {
|
|
188
|
+
name: string;
|
|
189
|
+
pda: {
|
|
190
|
+
seeds: {
|
|
191
|
+
kind: string;
|
|
192
|
+
value: number[];
|
|
193
|
+
}[];
|
|
194
|
+
program?: undefined;
|
|
195
|
+
};
|
|
196
|
+
writable: boolean;
|
|
197
|
+
docs?: undefined;
|
|
198
|
+
signer?: undefined;
|
|
199
|
+
address?: undefined;
|
|
200
|
+
} | {
|
|
201
|
+
address: string;
|
|
202
|
+
name: string;
|
|
203
|
+
docs?: undefined;
|
|
204
|
+
signer?: undefined;
|
|
205
|
+
pda?: undefined;
|
|
206
|
+
writable?: undefined;
|
|
207
|
+
})[];
|
|
208
|
+
args: {
|
|
209
|
+
name: string;
|
|
210
|
+
type: string;
|
|
211
|
+
}[];
|
|
212
|
+
discriminator: number[];
|
|
213
|
+
docs: string[];
|
|
214
|
+
name: string;
|
|
100
215
|
} | {
|
|
101
216
|
accounts: ({
|
|
102
217
|
name: string;
|
|
@@ -144,15 +259,10 @@ export declare const vaultIdl: {
|
|
|
144
259
|
kind: string;
|
|
145
260
|
value: number[];
|
|
146
261
|
};
|
|
147
|
-
seeds:
|
|
262
|
+
seeds: {
|
|
148
263
|
kind: string;
|
|
149
264
|
path: string;
|
|
150
|
-
|
|
151
|
-
} | {
|
|
152
|
-
kind: string;
|
|
153
|
-
value: number[];
|
|
154
|
-
path?: undefined;
|
|
155
|
-
})[];
|
|
265
|
+
}[];
|
|
156
266
|
};
|
|
157
267
|
writable: boolean;
|
|
158
268
|
signer?: undefined;
|
|
@@ -174,6 +284,30 @@ export declare const vaultIdl: {
|
|
|
174
284
|
discriminator: number[];
|
|
175
285
|
docs: string[];
|
|
176
286
|
name: string;
|
|
287
|
+
} | {
|
|
288
|
+
accounts: ({
|
|
289
|
+
name: string;
|
|
290
|
+
pda: {
|
|
291
|
+
seeds: {
|
|
292
|
+
kind: string;
|
|
293
|
+
value: number[];
|
|
294
|
+
}[];
|
|
295
|
+
};
|
|
296
|
+
writable: boolean;
|
|
297
|
+
signer?: undefined;
|
|
298
|
+
} | {
|
|
299
|
+
name: string;
|
|
300
|
+
signer: boolean;
|
|
301
|
+
pda?: undefined;
|
|
302
|
+
writable?: undefined;
|
|
303
|
+
})[];
|
|
304
|
+
args: {
|
|
305
|
+
name: string;
|
|
306
|
+
type: string;
|
|
307
|
+
}[];
|
|
308
|
+
discriminator: number[];
|
|
309
|
+
docs: string[];
|
|
310
|
+
name: string;
|
|
177
311
|
} | {
|
|
178
312
|
accounts: ({
|
|
179
313
|
docs: string[];
|
|
@@ -252,13 +386,45 @@ export declare const vaultIdl: {
|
|
|
252
386
|
}[];
|
|
253
387
|
kind: string;
|
|
254
388
|
};
|
|
389
|
+
docs?: undefined;
|
|
255
390
|
} | {
|
|
391
|
+
docs: string[];
|
|
256
392
|
name: string;
|
|
257
393
|
type: {
|
|
258
394
|
fields: ({
|
|
395
|
+
docs: string[];
|
|
396
|
+
name: string;
|
|
397
|
+
type: string;
|
|
398
|
+
} | {
|
|
399
|
+
docs: string[];
|
|
400
|
+
name: string;
|
|
401
|
+
type: {
|
|
402
|
+
array: (string | number)[];
|
|
403
|
+
};
|
|
404
|
+
})[];
|
|
405
|
+
kind: string;
|
|
406
|
+
};
|
|
407
|
+
repr?: undefined;
|
|
408
|
+
serialization?: undefined;
|
|
409
|
+
} | {
|
|
410
|
+
name: string;
|
|
411
|
+
type: {
|
|
412
|
+
fields: ({
|
|
413
|
+
name: string;
|
|
414
|
+
type: string;
|
|
415
|
+
docs?: undefined;
|
|
416
|
+
} | {
|
|
417
|
+
name: string;
|
|
418
|
+
type: {
|
|
419
|
+
array: (string | number)[];
|
|
420
|
+
};
|
|
421
|
+
docs?: undefined;
|
|
422
|
+
} | {
|
|
423
|
+
docs: string[];
|
|
259
424
|
name: string;
|
|
260
425
|
type: string;
|
|
261
426
|
} | {
|
|
427
|
+
docs: string[];
|
|
262
428
|
name: string;
|
|
263
429
|
type: {
|
|
264
430
|
array: (string | number)[];
|
|
@@ -268,5 +434,6 @@ export declare const vaultIdl: {
|
|
|
268
434
|
};
|
|
269
435
|
repr?: undefined;
|
|
270
436
|
serialization?: undefined;
|
|
437
|
+
docs?: undefined;
|
|
271
438
|
})[];
|
|
272
439
|
};
|