@lightprotocol/stateless.js 0.17.1 → 0.17.2-alpha.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/README.md +8 -0
- package/dist/cjs/browser/actions/compress.d.ts +1 -1
- package/dist/cjs/browser/actions/create-account.d.ts +1 -1
- package/dist/cjs/browser/actions/decompress.d.ts +1 -1
- package/dist/cjs/browser/actions/transfer.d.ts +1 -1
- package/dist/cjs/browser/constants.d.ts +1 -1
- package/dist/cjs/browser/index.cjs +1 -12991
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/index.d.ts +0 -2
- package/dist/cjs/browser/programs/index.d.ts +1 -0
- package/dist/cjs/browser/programs/layout.d.ts +25 -0
- package/dist/cjs/browser/programs/system.d.ts +1 -8
- package/dist/cjs/browser/rpc-interface.d.ts +167 -160
- package/dist/cjs/browser/rpc.d.ts +4 -2
- package/dist/cjs/browser/state/BN254.d.ts +1 -1
- package/dist/cjs/browser/state/compressed-account.d.ts +1 -1
- package/dist/cjs/browser/state/types.d.ts +1 -25
- package/dist/cjs/browser/test-helpers/merkle-tree/indexed-array.d.ts +1 -1
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +1 -1
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +3 -1
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +2 -1
- package/dist/cjs/browser/utils/conversion.d.ts +1 -1
- package/dist/cjs/browser/utils/validation.d.ts +1 -1
- package/dist/cjs/node/actions/compress.d.ts +1 -1
- package/dist/cjs/node/actions/create-account.d.ts +1 -1
- package/dist/cjs/node/actions/decompress.d.ts +1 -1
- package/dist/cjs/node/actions/transfer.d.ts +1 -1
- package/dist/cjs/node/constants.d.ts +1 -1
- package/dist/cjs/node/index.cjs +1 -10036
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/index.d.ts +0 -2
- package/dist/cjs/node/programs/index.d.ts +1 -0
- package/dist/cjs/node/programs/layout.d.ts +25 -0
- package/dist/cjs/node/programs/system.d.ts +1 -8
- package/dist/cjs/node/rpc-interface.d.ts +167 -160
- package/dist/cjs/node/rpc.d.ts +4 -2
- package/dist/cjs/node/state/BN254.d.ts +1 -1
- package/dist/cjs/node/state/compressed-account.d.ts +1 -1
- package/dist/cjs/node/state/types.d.ts +1 -25
- package/dist/cjs/node/test-helpers/merkle-tree/indexed-array.d.ts +1 -1
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-accounts.d.ts +1 -1
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +3 -1
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +2 -1
- package/dist/cjs/node/utils/conversion.d.ts +1 -1
- package/dist/cjs/node/utils/validation.d.ts +1 -1
- package/dist/es/browser/actions/compress.d.ts +1 -1
- package/dist/es/browser/actions/create-account.d.ts +1 -1
- package/dist/es/browser/actions/decompress.d.ts +1 -1
- package/dist/es/browser/actions/transfer.d.ts +1 -1
- package/dist/es/browser/constants.d.ts +1 -1
- package/dist/es/browser/index.d.ts +0 -2
- package/dist/es/browser/index.js +1 -12911
- package/dist/es/browser/index.js.map +1 -1
- package/dist/es/browser/programs/index.d.ts +1 -0
- package/dist/es/browser/programs/layout.d.ts +25 -0
- package/dist/es/browser/programs/system.d.ts +1 -8
- package/dist/es/browser/rpc-interface.d.ts +167 -160
- package/dist/es/browser/rpc.d.ts +4 -2
- package/dist/es/browser/state/BN254.d.ts +1 -1
- package/dist/es/browser/state/compressed-account.d.ts +1 -1
- package/dist/es/browser/state/types.d.ts +1 -25
- package/dist/es/browser/test-helpers/merkle-tree/indexed-array.d.ts +1 -1
- package/dist/es/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +1 -1
- package/dist/es/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +3 -1
- package/dist/es/browser/test-helpers/test-rpc/test-rpc.d.ts +2 -1
- package/dist/es/browser/utils/conversion.d.ts +1 -1
- package/dist/es/browser/utils/validation.d.ts +1 -1
- package/dist/types/index.d.ts +1073 -6401
- package/package.json +17 -10
- package/dist/cjs/browser/idls/account_compression.d.ts +0 -1170
- package/dist/cjs/browser/idls/index.d.ts +0 -5
- package/dist/cjs/browser/idls/light_compressed_token.d.ts +0 -1792
- package/dist/cjs/browser/idls/light_registry.d.ts +0 -1293
- package/dist/cjs/browser/idls/light_system_program.d.ts +0 -1065
- package/dist/cjs/browser/wallet/index.d.ts +0 -1
- package/dist/cjs/browser/wallet/interface.d.ts +0 -25
- package/dist/cjs/browser/wallet/use-wallet.d.ts +0 -9
- package/dist/cjs/node/idls/account_compression.d.ts +0 -1170
- package/dist/cjs/node/idls/index.d.ts +0 -5
- package/dist/cjs/node/idls/light_compressed_token.d.ts +0 -1792
- package/dist/cjs/node/idls/light_registry.d.ts +0 -1293
- package/dist/cjs/node/idls/light_system_program.d.ts +0 -1065
- package/dist/cjs/node/wallet/index.d.ts +0 -1
- package/dist/cjs/node/wallet/interface.d.ts +0 -25
- package/dist/cjs/node/wallet/use-wallet.d.ts +0 -9
- package/dist/es/browser/idls/account_compression.d.ts +0 -1170
- package/dist/es/browser/idls/index.d.ts +0 -5
- package/dist/es/browser/idls/light_compressed_token.d.ts +0 -1792
- package/dist/es/browser/idls/light_registry.d.ts +0 -1293
- package/dist/es/browser/idls/light_system_program.d.ts +0 -1065
- package/dist/es/browser/wallet/index.d.ts +0 -1
- package/dist/es/browser/wallet/interface.d.ts +0 -25
- package/dist/es/browser/wallet/use-wallet.d.ts +0 -9
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { PublicKey, MemcmpFilter, DataSlice } from '@solana/web3.js';
|
|
2
2
|
import { Struct } from 'superstruct';
|
|
3
3
|
import { BN254, CompressedProof, CompressedAccountWithMerkleContext, MerkleContextWithMerkleProof, TokenData } from './state';
|
|
4
|
-
import
|
|
4
|
+
import BN from 'bn.js';
|
|
5
|
+
export declare class BaseRpc {
|
|
6
|
+
private getCancellationPromise;
|
|
7
|
+
private getTransactionConfirmationPromise;
|
|
8
|
+
private confirmTransactionUsingBlockHeightExceedanceStrategy;
|
|
9
|
+
private confirmTransactionUsingDurableNonceStrategy;
|
|
10
|
+
private confirmTransactionUsingLegacyTimeoutStrategy;
|
|
11
|
+
}
|
|
5
12
|
export interface LatestNonVotingSignatures {
|
|
6
13
|
context: {
|
|
7
14
|
slot: number;
|
|
@@ -165,24 +172,24 @@ export declare function jsonRpcResultAndContext<T, U>(value: Struct<T, U>): Stru
|
|
|
165
172
|
export declare const CompressedAccountResult: Struct<{
|
|
166
173
|
data: {
|
|
167
174
|
data: string;
|
|
168
|
-
discriminator: BN;
|
|
169
175
|
dataHash: BN;
|
|
176
|
+
discriminator: BN;
|
|
170
177
|
} | null;
|
|
171
|
-
owner: PublicKey;
|
|
172
178
|
lamports: BN;
|
|
173
179
|
address: number[] | null;
|
|
174
|
-
leafIndex: number;
|
|
175
|
-
seq: BN | null;
|
|
176
180
|
hash: BN;
|
|
181
|
+
owner: PublicKey;
|
|
182
|
+
leafIndex: number;
|
|
177
183
|
tree: PublicKey;
|
|
184
|
+
seq: BN | null;
|
|
178
185
|
slotCreated: BN;
|
|
179
186
|
}, {
|
|
180
187
|
address: Struct<number[] | null, null>;
|
|
181
188
|
hash: Struct<BN, null>;
|
|
182
189
|
data: Struct<{
|
|
183
190
|
data: string;
|
|
184
|
-
discriminator: BN;
|
|
185
191
|
dataHash: BN;
|
|
192
|
+
discriminator: BN;
|
|
186
193
|
} | null, {
|
|
187
194
|
data: Struct<string, null>;
|
|
188
195
|
dataHash: Struct<BN, null>;
|
|
@@ -196,11 +203,11 @@ export declare const CompressedAccountResult: Struct<{
|
|
|
196
203
|
slotCreated: Struct<BN, null>;
|
|
197
204
|
}>;
|
|
198
205
|
export declare const TokenDataResult: Struct<{
|
|
199
|
-
mint: PublicKey;
|
|
200
206
|
owner: PublicKey;
|
|
201
|
-
|
|
207
|
+
mint: PublicKey;
|
|
202
208
|
amount: BN;
|
|
203
209
|
delegate: PublicKey | null;
|
|
210
|
+
state: string;
|
|
204
211
|
}, {
|
|
205
212
|
mint: Struct<PublicKey, null>;
|
|
206
213
|
owner: Struct<PublicKey, null>;
|
|
@@ -212,35 +219,35 @@ export declare const TokenDataResult: Struct<{
|
|
|
212
219
|
* @internal
|
|
213
220
|
*/
|
|
214
221
|
export declare const CompressedTokenAccountResult: Struct<{
|
|
222
|
+
tokenData: {
|
|
223
|
+
owner: PublicKey;
|
|
224
|
+
mint: PublicKey;
|
|
225
|
+
amount: BN;
|
|
226
|
+
delegate: PublicKey | null;
|
|
227
|
+
state: string;
|
|
228
|
+
};
|
|
215
229
|
account: {
|
|
216
230
|
data: {
|
|
217
231
|
data: string;
|
|
218
|
-
discriminator: BN;
|
|
219
232
|
dataHash: BN;
|
|
233
|
+
discriminator: BN;
|
|
220
234
|
} | null;
|
|
221
|
-
owner: PublicKey;
|
|
222
235
|
lamports: BN;
|
|
223
236
|
address: number[] | null;
|
|
224
|
-
leafIndex: number;
|
|
225
|
-
seq: BN | null;
|
|
226
237
|
hash: BN;
|
|
238
|
+
owner: PublicKey;
|
|
239
|
+
leafIndex: number;
|
|
227
240
|
tree: PublicKey;
|
|
241
|
+
seq: BN | null;
|
|
228
242
|
slotCreated: BN;
|
|
229
243
|
};
|
|
230
|
-
tokenData: {
|
|
231
|
-
mint: PublicKey;
|
|
232
|
-
owner: PublicKey;
|
|
233
|
-
state: string;
|
|
234
|
-
amount: BN;
|
|
235
|
-
delegate: PublicKey | null;
|
|
236
|
-
};
|
|
237
244
|
}, {
|
|
238
245
|
tokenData: Struct<{
|
|
239
|
-
mint: PublicKey;
|
|
240
246
|
owner: PublicKey;
|
|
241
|
-
|
|
247
|
+
mint: PublicKey;
|
|
242
248
|
amount: BN;
|
|
243
249
|
delegate: PublicKey | null;
|
|
250
|
+
state: string;
|
|
244
251
|
}, {
|
|
245
252
|
mint: Struct<PublicKey, null>;
|
|
246
253
|
owner: Struct<PublicKey, null>;
|
|
@@ -251,24 +258,24 @@ export declare const CompressedTokenAccountResult: Struct<{
|
|
|
251
258
|
account: Struct<{
|
|
252
259
|
data: {
|
|
253
260
|
data: string;
|
|
254
|
-
discriminator: BN;
|
|
255
261
|
dataHash: BN;
|
|
262
|
+
discriminator: BN;
|
|
256
263
|
} | null;
|
|
257
|
-
owner: PublicKey;
|
|
258
264
|
lamports: BN;
|
|
259
265
|
address: number[] | null;
|
|
260
|
-
leafIndex: number;
|
|
261
|
-
seq: BN | null;
|
|
262
266
|
hash: BN;
|
|
267
|
+
owner: PublicKey;
|
|
268
|
+
leafIndex: number;
|
|
263
269
|
tree: PublicKey;
|
|
270
|
+
seq: BN | null;
|
|
264
271
|
slotCreated: BN;
|
|
265
272
|
}, {
|
|
266
273
|
address: Struct<number[] | null, null>;
|
|
267
274
|
hash: Struct<BN, null>;
|
|
268
275
|
data: Struct<{
|
|
269
276
|
data: string;
|
|
270
|
-
discriminator: BN;
|
|
271
277
|
dataHash: BN;
|
|
278
|
+
discriminator: BN;
|
|
272
279
|
} | null, {
|
|
273
280
|
data: Struct<string, null>;
|
|
274
281
|
dataHash: Struct<BN, null>;
|
|
@@ -289,54 +296,54 @@ export declare const MultipleCompressedAccountsResult: Struct<{
|
|
|
289
296
|
items: {
|
|
290
297
|
data: {
|
|
291
298
|
data: string;
|
|
292
|
-
discriminator: BN;
|
|
293
299
|
dataHash: BN;
|
|
300
|
+
discriminator: BN;
|
|
294
301
|
} | null;
|
|
295
|
-
owner: PublicKey;
|
|
296
302
|
lamports: BN;
|
|
297
303
|
address: number[] | null;
|
|
298
|
-
leafIndex: number;
|
|
299
|
-
seq: BN | null;
|
|
300
304
|
hash: BN;
|
|
305
|
+
owner: PublicKey;
|
|
306
|
+
leafIndex: number;
|
|
301
307
|
tree: PublicKey;
|
|
308
|
+
seq: BN | null;
|
|
302
309
|
slotCreated: BN;
|
|
303
310
|
}[];
|
|
304
311
|
}, {
|
|
305
312
|
items: Struct<{
|
|
306
313
|
data: {
|
|
307
314
|
data: string;
|
|
308
|
-
discriminator: BN;
|
|
309
315
|
dataHash: BN;
|
|
316
|
+
discriminator: BN;
|
|
310
317
|
} | null;
|
|
311
|
-
owner: PublicKey;
|
|
312
318
|
lamports: BN;
|
|
313
319
|
address: number[] | null;
|
|
314
|
-
leafIndex: number;
|
|
315
|
-
seq: BN | null;
|
|
316
320
|
hash: BN;
|
|
321
|
+
owner: PublicKey;
|
|
322
|
+
leafIndex: number;
|
|
317
323
|
tree: PublicKey;
|
|
324
|
+
seq: BN | null;
|
|
318
325
|
slotCreated: BN;
|
|
319
326
|
}[], Struct<{
|
|
320
327
|
data: {
|
|
321
328
|
data: string;
|
|
322
|
-
discriminator: BN;
|
|
323
329
|
dataHash: BN;
|
|
330
|
+
discriminator: BN;
|
|
324
331
|
} | null;
|
|
325
|
-
owner: PublicKey;
|
|
326
332
|
lamports: BN;
|
|
327
333
|
address: number[] | null;
|
|
328
|
-
leafIndex: number;
|
|
329
|
-
seq: BN | null;
|
|
330
334
|
hash: BN;
|
|
335
|
+
owner: PublicKey;
|
|
336
|
+
leafIndex: number;
|
|
331
337
|
tree: PublicKey;
|
|
338
|
+
seq: BN | null;
|
|
332
339
|
slotCreated: BN;
|
|
333
340
|
}, {
|
|
334
341
|
address: Struct<number[] | null, null>;
|
|
335
342
|
hash: Struct<BN, null>;
|
|
336
343
|
data: Struct<{
|
|
337
344
|
data: string;
|
|
338
|
-
discriminator: BN;
|
|
339
345
|
dataHash: BN;
|
|
346
|
+
discriminator: BN;
|
|
340
347
|
} | null, {
|
|
341
348
|
data: Struct<string, null>;
|
|
342
349
|
dataHash: Struct<BN, null>;
|
|
@@ -357,16 +364,16 @@ export declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
357
364
|
items: {
|
|
358
365
|
data: {
|
|
359
366
|
data: string;
|
|
360
|
-
discriminator: BN;
|
|
361
367
|
dataHash: BN;
|
|
368
|
+
discriminator: BN;
|
|
362
369
|
} | null;
|
|
363
|
-
owner: PublicKey;
|
|
364
370
|
lamports: BN;
|
|
365
371
|
address: number[] | null;
|
|
366
|
-
leafIndex: number;
|
|
367
|
-
seq: BN | null;
|
|
368
372
|
hash: BN;
|
|
373
|
+
owner: PublicKey;
|
|
374
|
+
leafIndex: number;
|
|
369
375
|
tree: PublicKey;
|
|
376
|
+
seq: BN | null;
|
|
370
377
|
slotCreated: BN;
|
|
371
378
|
}[];
|
|
372
379
|
cursor: string | null;
|
|
@@ -374,38 +381,38 @@ export declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
374
381
|
items: Struct<{
|
|
375
382
|
data: {
|
|
376
383
|
data: string;
|
|
377
|
-
discriminator: BN;
|
|
378
384
|
dataHash: BN;
|
|
385
|
+
discriminator: BN;
|
|
379
386
|
} | null;
|
|
380
|
-
owner: PublicKey;
|
|
381
387
|
lamports: BN;
|
|
382
388
|
address: number[] | null;
|
|
383
|
-
leafIndex: number;
|
|
384
|
-
seq: BN | null;
|
|
385
389
|
hash: BN;
|
|
390
|
+
owner: PublicKey;
|
|
391
|
+
leafIndex: number;
|
|
386
392
|
tree: PublicKey;
|
|
393
|
+
seq: BN | null;
|
|
387
394
|
slotCreated: BN;
|
|
388
395
|
}[], Struct<{
|
|
389
396
|
data: {
|
|
390
397
|
data: string;
|
|
391
|
-
discriminator: BN;
|
|
392
398
|
dataHash: BN;
|
|
399
|
+
discriminator: BN;
|
|
393
400
|
} | null;
|
|
394
|
-
owner: PublicKey;
|
|
395
401
|
lamports: BN;
|
|
396
402
|
address: number[] | null;
|
|
397
|
-
leafIndex: number;
|
|
398
|
-
seq: BN | null;
|
|
399
403
|
hash: BN;
|
|
404
|
+
owner: PublicKey;
|
|
405
|
+
leafIndex: number;
|
|
400
406
|
tree: PublicKey;
|
|
407
|
+
seq: BN | null;
|
|
401
408
|
slotCreated: BN;
|
|
402
409
|
}, {
|
|
403
410
|
address: Struct<number[] | null, null>;
|
|
404
411
|
hash: Struct<BN, null>;
|
|
405
412
|
data: Struct<{
|
|
406
413
|
data: string;
|
|
407
|
-
discriminator: BN;
|
|
408
414
|
dataHash: BN;
|
|
415
|
+
discriminator: BN;
|
|
409
416
|
} | null, {
|
|
410
417
|
data: Struct<string, null>;
|
|
411
418
|
dataHash: Struct<BN, null>;
|
|
@@ -425,84 +432,84 @@ export declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
425
432
|
*/
|
|
426
433
|
export declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
427
434
|
items: {
|
|
435
|
+
tokenData: {
|
|
436
|
+
owner: PublicKey;
|
|
437
|
+
mint: PublicKey;
|
|
438
|
+
amount: BN;
|
|
439
|
+
delegate: PublicKey | null;
|
|
440
|
+
state: string;
|
|
441
|
+
};
|
|
428
442
|
account: {
|
|
429
443
|
data: {
|
|
430
444
|
data: string;
|
|
431
|
-
discriminator: BN;
|
|
432
445
|
dataHash: BN;
|
|
446
|
+
discriminator: BN;
|
|
433
447
|
} | null;
|
|
434
|
-
owner: PublicKey;
|
|
435
448
|
lamports: BN;
|
|
436
449
|
address: number[] | null;
|
|
437
|
-
leafIndex: number;
|
|
438
|
-
seq: BN | null;
|
|
439
450
|
hash: BN;
|
|
451
|
+
owner: PublicKey;
|
|
452
|
+
leafIndex: number;
|
|
440
453
|
tree: PublicKey;
|
|
454
|
+
seq: BN | null;
|
|
441
455
|
slotCreated: BN;
|
|
442
456
|
};
|
|
457
|
+
}[];
|
|
458
|
+
cursor: string | null;
|
|
459
|
+
}, {
|
|
460
|
+
items: Struct<{
|
|
443
461
|
tokenData: {
|
|
444
|
-
mint: PublicKey;
|
|
445
462
|
owner: PublicKey;
|
|
446
|
-
|
|
463
|
+
mint: PublicKey;
|
|
447
464
|
amount: BN;
|
|
448
465
|
delegate: PublicKey | null;
|
|
466
|
+
state: string;
|
|
449
467
|
};
|
|
450
|
-
}[];
|
|
451
|
-
cursor: string | null;
|
|
452
|
-
}, {
|
|
453
|
-
items: Struct<{
|
|
454
468
|
account: {
|
|
455
469
|
data: {
|
|
456
470
|
data: string;
|
|
457
|
-
discriminator: BN;
|
|
458
471
|
dataHash: BN;
|
|
472
|
+
discriminator: BN;
|
|
459
473
|
} | null;
|
|
460
|
-
owner: PublicKey;
|
|
461
474
|
lamports: BN;
|
|
462
475
|
address: number[] | null;
|
|
463
|
-
leafIndex: number;
|
|
464
|
-
seq: BN | null;
|
|
465
476
|
hash: BN;
|
|
477
|
+
owner: PublicKey;
|
|
478
|
+
leafIndex: number;
|
|
466
479
|
tree: PublicKey;
|
|
480
|
+
seq: BN | null;
|
|
467
481
|
slotCreated: BN;
|
|
468
482
|
};
|
|
483
|
+
}[], Struct<{
|
|
469
484
|
tokenData: {
|
|
470
|
-
mint: PublicKey;
|
|
471
485
|
owner: PublicKey;
|
|
472
|
-
|
|
486
|
+
mint: PublicKey;
|
|
473
487
|
amount: BN;
|
|
474
488
|
delegate: PublicKey | null;
|
|
489
|
+
state: string;
|
|
475
490
|
};
|
|
476
|
-
}[], Struct<{
|
|
477
491
|
account: {
|
|
478
492
|
data: {
|
|
479
493
|
data: string;
|
|
480
|
-
discriminator: BN;
|
|
481
494
|
dataHash: BN;
|
|
495
|
+
discriminator: BN;
|
|
482
496
|
} | null;
|
|
483
|
-
owner: PublicKey;
|
|
484
497
|
lamports: BN;
|
|
485
498
|
address: number[] | null;
|
|
486
|
-
leafIndex: number;
|
|
487
|
-
seq: BN | null;
|
|
488
499
|
hash: BN;
|
|
500
|
+
owner: PublicKey;
|
|
501
|
+
leafIndex: number;
|
|
489
502
|
tree: PublicKey;
|
|
503
|
+
seq: BN | null;
|
|
490
504
|
slotCreated: BN;
|
|
491
505
|
};
|
|
492
|
-
tokenData: {
|
|
493
|
-
mint: PublicKey;
|
|
494
|
-
owner: PublicKey;
|
|
495
|
-
state: string;
|
|
496
|
-
amount: BN;
|
|
497
|
-
delegate: PublicKey | null;
|
|
498
|
-
};
|
|
499
506
|
}, {
|
|
500
507
|
tokenData: Struct<{
|
|
501
|
-
mint: PublicKey;
|
|
502
508
|
owner: PublicKey;
|
|
503
|
-
|
|
509
|
+
mint: PublicKey;
|
|
504
510
|
amount: BN;
|
|
505
511
|
delegate: PublicKey | null;
|
|
512
|
+
state: string;
|
|
506
513
|
}, {
|
|
507
514
|
mint: Struct<PublicKey, null>;
|
|
508
515
|
owner: Struct<PublicKey, null>;
|
|
@@ -513,24 +520,24 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
513
520
|
account: Struct<{
|
|
514
521
|
data: {
|
|
515
522
|
data: string;
|
|
516
|
-
discriminator: BN;
|
|
517
523
|
dataHash: BN;
|
|
524
|
+
discriminator: BN;
|
|
518
525
|
} | null;
|
|
519
|
-
owner: PublicKey;
|
|
520
526
|
lamports: BN;
|
|
521
527
|
address: number[] | null;
|
|
522
|
-
leafIndex: number;
|
|
523
|
-
seq: BN | null;
|
|
524
528
|
hash: BN;
|
|
529
|
+
owner: PublicKey;
|
|
530
|
+
leafIndex: number;
|
|
525
531
|
tree: PublicKey;
|
|
532
|
+
seq: BN | null;
|
|
526
533
|
slotCreated: BN;
|
|
527
534
|
}, {
|
|
528
535
|
address: Struct<number[] | null, null>;
|
|
529
536
|
hash: Struct<BN, null>;
|
|
530
537
|
data: Struct<{
|
|
531
538
|
data: string;
|
|
532
|
-
discriminator: BN;
|
|
533
539
|
dataHash: BN;
|
|
540
|
+
discriminator: BN;
|
|
534
541
|
} | null, {
|
|
535
542
|
data: Struct<string, null>;
|
|
536
543
|
dataHash: Struct<BN, null>;
|
|
@@ -559,21 +566,21 @@ export declare const HealthResult: Struct<string, null>;
|
|
|
559
566
|
*/
|
|
560
567
|
export declare const LatestNonVotingSignaturesResult: Struct<{
|
|
561
568
|
items: {
|
|
569
|
+
error: string | null;
|
|
562
570
|
blockTime: number;
|
|
563
571
|
signature: string;
|
|
564
|
-
error: string | null;
|
|
565
572
|
slot: number;
|
|
566
573
|
}[];
|
|
567
574
|
}, {
|
|
568
575
|
items: Struct<{
|
|
576
|
+
error: string | null;
|
|
569
577
|
blockTime: number;
|
|
570
578
|
signature: string;
|
|
571
|
-
error: string | null;
|
|
572
579
|
slot: number;
|
|
573
580
|
}[], Struct<{
|
|
581
|
+
error: string | null;
|
|
574
582
|
blockTime: number;
|
|
575
583
|
signature: string;
|
|
576
|
-
error: string | null;
|
|
577
584
|
slot: number;
|
|
578
585
|
}, {
|
|
579
586
|
signature: Struct<string, null>;
|
|
@@ -613,10 +620,10 @@ export declare const LatestNonVotingSignaturesResultPaginated: Struct<{
|
|
|
613
620
|
*/
|
|
614
621
|
export declare const MerkeProofResult: Struct<{
|
|
615
622
|
root: BN;
|
|
616
|
-
proof: BN[];
|
|
617
|
-
leafIndex: number;
|
|
618
623
|
hash: BN;
|
|
624
|
+
leafIndex: number;
|
|
619
625
|
merkleTree: PublicKey;
|
|
626
|
+
proof: BN[];
|
|
620
627
|
rootSeq: number;
|
|
621
628
|
}, {
|
|
622
629
|
hash: Struct<BN, null>;
|
|
@@ -631,9 +638,9 @@ export declare const MerkeProofResult: Struct<{
|
|
|
631
638
|
*/
|
|
632
639
|
export declare const NewAddressProofResult: Struct<{
|
|
633
640
|
root: BN;
|
|
634
|
-
proof: BN[];
|
|
635
641
|
address: BN;
|
|
636
642
|
merkleTree: PublicKey;
|
|
643
|
+
proof: BN[];
|
|
637
644
|
rootSeq: number;
|
|
638
645
|
nextIndex: number;
|
|
639
646
|
lowerRangeAddress: BN;
|
|
@@ -685,17 +692,17 @@ export declare const ValidityProofResult: Struct<{
|
|
|
685
692
|
*/
|
|
686
693
|
export declare const MultipleMerkleProofsResult: Struct<{
|
|
687
694
|
root: BN;
|
|
688
|
-
proof: BN[];
|
|
689
|
-
leafIndex: number;
|
|
690
695
|
hash: BN;
|
|
696
|
+
leafIndex: number;
|
|
691
697
|
merkleTree: PublicKey;
|
|
698
|
+
proof: BN[];
|
|
692
699
|
rootSeq: number;
|
|
693
700
|
}[], Struct<{
|
|
694
701
|
root: BN;
|
|
695
|
-
proof: BN[];
|
|
696
|
-
leafIndex: number;
|
|
697
702
|
hash: BN;
|
|
703
|
+
leafIndex: number;
|
|
698
704
|
merkleTree: PublicKey;
|
|
705
|
+
proof: BN[];
|
|
699
706
|
rootSeq: number;
|
|
700
707
|
}, {
|
|
701
708
|
hash: Struct<BN, null>;
|
|
@@ -780,8 +787,8 @@ export declare const CompressedMintTokenHoldersResult: Struct<{
|
|
|
780
787
|
}>;
|
|
781
788
|
export declare const AccountProofResult: Struct<{
|
|
782
789
|
root: number[];
|
|
783
|
-
proof: number[][];
|
|
784
790
|
hash: number[];
|
|
791
|
+
proof: number[][];
|
|
785
792
|
}, {
|
|
786
793
|
hash: Struct<number[], Struct<number, null>>;
|
|
787
794
|
root: Struct<number[], Struct<number, null>>;
|
|
@@ -838,48 +845,48 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
838
845
|
account: {
|
|
839
846
|
data: {
|
|
840
847
|
data: string;
|
|
841
|
-
discriminator: BN;
|
|
842
848
|
dataHash: BN;
|
|
849
|
+
discriminator: BN;
|
|
843
850
|
} | null;
|
|
844
|
-
owner: PublicKey;
|
|
845
851
|
lamports: BN;
|
|
846
852
|
address: number[] | null;
|
|
847
|
-
leafIndex: number;
|
|
848
|
-
seq: BN | null;
|
|
849
853
|
hash: BN;
|
|
854
|
+
owner: PublicKey;
|
|
855
|
+
leafIndex: number;
|
|
850
856
|
tree: PublicKey;
|
|
857
|
+
seq: BN | null;
|
|
851
858
|
slotCreated: BN;
|
|
852
859
|
};
|
|
853
860
|
optionalTokenData: {
|
|
854
|
-
mint: PublicKey;
|
|
855
861
|
owner: PublicKey;
|
|
856
|
-
|
|
862
|
+
mint: PublicKey;
|
|
857
863
|
amount: BN;
|
|
858
864
|
delegate: PublicKey | null;
|
|
865
|
+
state: string;
|
|
859
866
|
} | null;
|
|
860
867
|
}[];
|
|
861
868
|
openedAccounts: {
|
|
862
869
|
account: {
|
|
863
870
|
data: {
|
|
864
871
|
data: string;
|
|
865
|
-
discriminator: BN;
|
|
866
872
|
dataHash: BN;
|
|
873
|
+
discriminator: BN;
|
|
867
874
|
} | null;
|
|
868
|
-
owner: PublicKey;
|
|
869
875
|
lamports: BN;
|
|
870
876
|
address: number[] | null;
|
|
871
|
-
leafIndex: number;
|
|
872
|
-
seq: BN | null;
|
|
873
877
|
hash: BN;
|
|
878
|
+
owner: PublicKey;
|
|
879
|
+
leafIndex: number;
|
|
874
880
|
tree: PublicKey;
|
|
881
|
+
seq: BN | null;
|
|
875
882
|
slotCreated: BN;
|
|
876
883
|
};
|
|
877
884
|
optionalTokenData: {
|
|
878
|
-
mint: PublicKey;
|
|
879
885
|
owner: PublicKey;
|
|
880
|
-
|
|
886
|
+
mint: PublicKey;
|
|
881
887
|
amount: BN;
|
|
882
888
|
delegate: PublicKey | null;
|
|
889
|
+
state: string;
|
|
883
890
|
} | null;
|
|
884
891
|
}[];
|
|
885
892
|
};
|
|
@@ -890,48 +897,48 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
890
897
|
account: {
|
|
891
898
|
data: {
|
|
892
899
|
data: string;
|
|
893
|
-
discriminator: BN;
|
|
894
900
|
dataHash: BN;
|
|
901
|
+
discriminator: BN;
|
|
895
902
|
} | null;
|
|
896
|
-
owner: PublicKey;
|
|
897
903
|
lamports: BN;
|
|
898
904
|
address: number[] | null;
|
|
899
|
-
leafIndex: number;
|
|
900
|
-
seq: BN | null;
|
|
901
905
|
hash: BN;
|
|
906
|
+
owner: PublicKey;
|
|
907
|
+
leafIndex: number;
|
|
902
908
|
tree: PublicKey;
|
|
909
|
+
seq: BN | null;
|
|
903
910
|
slotCreated: BN;
|
|
904
911
|
};
|
|
905
912
|
optionalTokenData: {
|
|
906
|
-
mint: PublicKey;
|
|
907
913
|
owner: PublicKey;
|
|
908
|
-
|
|
914
|
+
mint: PublicKey;
|
|
909
915
|
amount: BN;
|
|
910
916
|
delegate: PublicKey | null;
|
|
917
|
+
state: string;
|
|
911
918
|
} | null;
|
|
912
919
|
}[];
|
|
913
920
|
openedAccounts: {
|
|
914
921
|
account: {
|
|
915
922
|
data: {
|
|
916
923
|
data: string;
|
|
917
|
-
discriminator: BN;
|
|
918
924
|
dataHash: BN;
|
|
925
|
+
discriminator: BN;
|
|
919
926
|
} | null;
|
|
920
|
-
owner: PublicKey;
|
|
921
927
|
lamports: BN;
|
|
922
928
|
address: number[] | null;
|
|
923
|
-
leafIndex: number;
|
|
924
|
-
seq: BN | null;
|
|
925
929
|
hash: BN;
|
|
930
|
+
owner: PublicKey;
|
|
931
|
+
leafIndex: number;
|
|
926
932
|
tree: PublicKey;
|
|
933
|
+
seq: BN | null;
|
|
927
934
|
slotCreated: BN;
|
|
928
935
|
};
|
|
929
936
|
optionalTokenData: {
|
|
930
|
-
mint: PublicKey;
|
|
931
937
|
owner: PublicKey;
|
|
932
|
-
|
|
938
|
+
mint: PublicKey;
|
|
933
939
|
amount: BN;
|
|
934
940
|
delegate: PublicKey | null;
|
|
941
|
+
state: string;
|
|
935
942
|
} | null;
|
|
936
943
|
}[];
|
|
937
944
|
}, {
|
|
@@ -939,70 +946,70 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
939
946
|
account: {
|
|
940
947
|
data: {
|
|
941
948
|
data: string;
|
|
942
|
-
discriminator: BN;
|
|
943
949
|
dataHash: BN;
|
|
950
|
+
discriminator: BN;
|
|
944
951
|
} | null;
|
|
945
|
-
owner: PublicKey;
|
|
946
952
|
lamports: BN;
|
|
947
953
|
address: number[] | null;
|
|
948
|
-
leafIndex: number;
|
|
949
|
-
seq: BN | null;
|
|
950
954
|
hash: BN;
|
|
955
|
+
owner: PublicKey;
|
|
956
|
+
leafIndex: number;
|
|
951
957
|
tree: PublicKey;
|
|
958
|
+
seq: BN | null;
|
|
952
959
|
slotCreated: BN;
|
|
953
960
|
};
|
|
954
961
|
optionalTokenData: {
|
|
955
|
-
mint: PublicKey;
|
|
956
962
|
owner: PublicKey;
|
|
957
|
-
|
|
963
|
+
mint: PublicKey;
|
|
958
964
|
amount: BN;
|
|
959
965
|
delegate: PublicKey | null;
|
|
966
|
+
state: string;
|
|
960
967
|
} | null;
|
|
961
968
|
}[], Struct<{
|
|
962
969
|
account: {
|
|
963
970
|
data: {
|
|
964
971
|
data: string;
|
|
965
|
-
discriminator: BN;
|
|
966
972
|
dataHash: BN;
|
|
973
|
+
discriminator: BN;
|
|
967
974
|
} | null;
|
|
968
|
-
owner: PublicKey;
|
|
969
975
|
lamports: BN;
|
|
970
976
|
address: number[] | null;
|
|
971
|
-
leafIndex: number;
|
|
972
|
-
seq: BN | null;
|
|
973
977
|
hash: BN;
|
|
978
|
+
owner: PublicKey;
|
|
979
|
+
leafIndex: number;
|
|
974
980
|
tree: PublicKey;
|
|
981
|
+
seq: BN | null;
|
|
975
982
|
slotCreated: BN;
|
|
976
983
|
};
|
|
977
984
|
optionalTokenData: {
|
|
978
|
-
mint: PublicKey;
|
|
979
985
|
owner: PublicKey;
|
|
980
|
-
|
|
986
|
+
mint: PublicKey;
|
|
981
987
|
amount: BN;
|
|
982
988
|
delegate: PublicKey | null;
|
|
989
|
+
state: string;
|
|
983
990
|
} | null;
|
|
984
991
|
}, {
|
|
985
992
|
account: Struct<{
|
|
986
993
|
data: {
|
|
987
994
|
data: string;
|
|
988
|
-
discriminator: BN;
|
|
989
995
|
dataHash: BN;
|
|
996
|
+
discriminator: BN;
|
|
990
997
|
} | null;
|
|
991
|
-
owner: PublicKey;
|
|
992
998
|
lamports: BN;
|
|
993
999
|
address: number[] | null;
|
|
994
|
-
leafIndex: number;
|
|
995
|
-
seq: BN | null;
|
|
996
1000
|
hash: BN;
|
|
1001
|
+
owner: PublicKey;
|
|
1002
|
+
leafIndex: number;
|
|
997
1003
|
tree: PublicKey;
|
|
1004
|
+
seq: BN | null;
|
|
998
1005
|
slotCreated: BN;
|
|
999
1006
|
}, {
|
|
1000
1007
|
address: Struct<number[] | null, null>;
|
|
1001
1008
|
hash: Struct<BN, null>;
|
|
1002
1009
|
data: Struct<{
|
|
1003
1010
|
data: string;
|
|
1004
|
-
discriminator: BN;
|
|
1005
1011
|
dataHash: BN;
|
|
1012
|
+
discriminator: BN;
|
|
1006
1013
|
} | null, {
|
|
1007
1014
|
data: Struct<string, null>;
|
|
1008
1015
|
dataHash: Struct<BN, null>;
|
|
@@ -1016,11 +1023,11 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
1016
1023
|
slotCreated: Struct<BN, null>;
|
|
1017
1024
|
}>;
|
|
1018
1025
|
optionalTokenData: Struct<{
|
|
1019
|
-
mint: PublicKey;
|
|
1020
1026
|
owner: PublicKey;
|
|
1021
|
-
|
|
1027
|
+
mint: PublicKey;
|
|
1022
1028
|
amount: BN;
|
|
1023
1029
|
delegate: PublicKey | null;
|
|
1030
|
+
state: string;
|
|
1024
1031
|
} | null, {
|
|
1025
1032
|
mint: Struct<PublicKey, null>;
|
|
1026
1033
|
owner: Struct<PublicKey, null>;
|
|
@@ -1033,70 +1040,70 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
1033
1040
|
account: {
|
|
1034
1041
|
data: {
|
|
1035
1042
|
data: string;
|
|
1036
|
-
discriminator: BN;
|
|
1037
1043
|
dataHash: BN;
|
|
1044
|
+
discriminator: BN;
|
|
1038
1045
|
} | null;
|
|
1039
|
-
owner: PublicKey;
|
|
1040
1046
|
lamports: BN;
|
|
1041
1047
|
address: number[] | null;
|
|
1042
|
-
leafIndex: number;
|
|
1043
|
-
seq: BN | null;
|
|
1044
1048
|
hash: BN;
|
|
1049
|
+
owner: PublicKey;
|
|
1050
|
+
leafIndex: number;
|
|
1045
1051
|
tree: PublicKey;
|
|
1052
|
+
seq: BN | null;
|
|
1046
1053
|
slotCreated: BN;
|
|
1047
1054
|
};
|
|
1048
1055
|
optionalTokenData: {
|
|
1049
|
-
mint: PublicKey;
|
|
1050
1056
|
owner: PublicKey;
|
|
1051
|
-
|
|
1057
|
+
mint: PublicKey;
|
|
1052
1058
|
amount: BN;
|
|
1053
1059
|
delegate: PublicKey | null;
|
|
1060
|
+
state: string;
|
|
1054
1061
|
} | null;
|
|
1055
1062
|
}[], Struct<{
|
|
1056
1063
|
account: {
|
|
1057
1064
|
data: {
|
|
1058
1065
|
data: string;
|
|
1059
|
-
discriminator: BN;
|
|
1060
1066
|
dataHash: BN;
|
|
1067
|
+
discriminator: BN;
|
|
1061
1068
|
} | null;
|
|
1062
|
-
owner: PublicKey;
|
|
1063
1069
|
lamports: BN;
|
|
1064
1070
|
address: number[] | null;
|
|
1065
|
-
leafIndex: number;
|
|
1066
|
-
seq: BN | null;
|
|
1067
1071
|
hash: BN;
|
|
1072
|
+
owner: PublicKey;
|
|
1073
|
+
leafIndex: number;
|
|
1068
1074
|
tree: PublicKey;
|
|
1075
|
+
seq: BN | null;
|
|
1069
1076
|
slotCreated: BN;
|
|
1070
1077
|
};
|
|
1071
1078
|
optionalTokenData: {
|
|
1072
|
-
mint: PublicKey;
|
|
1073
1079
|
owner: PublicKey;
|
|
1074
|
-
|
|
1080
|
+
mint: PublicKey;
|
|
1075
1081
|
amount: BN;
|
|
1076
1082
|
delegate: PublicKey | null;
|
|
1083
|
+
state: string;
|
|
1077
1084
|
} | null;
|
|
1078
1085
|
}, {
|
|
1079
1086
|
account: Struct<{
|
|
1080
1087
|
data: {
|
|
1081
1088
|
data: string;
|
|
1082
|
-
discriminator: BN;
|
|
1083
1089
|
dataHash: BN;
|
|
1090
|
+
discriminator: BN;
|
|
1084
1091
|
} | null;
|
|
1085
|
-
owner: PublicKey;
|
|
1086
1092
|
lamports: BN;
|
|
1087
1093
|
address: number[] | null;
|
|
1088
|
-
leafIndex: number;
|
|
1089
|
-
seq: BN | null;
|
|
1090
1094
|
hash: BN;
|
|
1095
|
+
owner: PublicKey;
|
|
1096
|
+
leafIndex: number;
|
|
1091
1097
|
tree: PublicKey;
|
|
1098
|
+
seq: BN | null;
|
|
1092
1099
|
slotCreated: BN;
|
|
1093
1100
|
}, {
|
|
1094
1101
|
address: Struct<number[] | null, null>;
|
|
1095
1102
|
hash: Struct<BN, null>;
|
|
1096
1103
|
data: Struct<{
|
|
1097
1104
|
data: string;
|
|
1098
|
-
discriminator: BN;
|
|
1099
1105
|
dataHash: BN;
|
|
1106
|
+
discriminator: BN;
|
|
1100
1107
|
} | null, {
|
|
1101
1108
|
data: Struct<string, null>;
|
|
1102
1109
|
dataHash: Struct<BN, null>;
|
|
@@ -1110,11 +1117,11 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
1110
1117
|
slotCreated: Struct<BN, null>;
|
|
1111
1118
|
}>;
|
|
1112
1119
|
optionalTokenData: Struct<{
|
|
1113
|
-
mint: PublicKey;
|
|
1114
1120
|
owner: PublicKey;
|
|
1115
|
-
|
|
1121
|
+
mint: PublicKey;
|
|
1116
1122
|
amount: BN;
|
|
1117
1123
|
delegate: PublicKey | null;
|
|
1124
|
+
state: string;
|
|
1118
1125
|
} | null, {
|
|
1119
1126
|
mint: Struct<PublicKey, null>;
|
|
1120
1127
|
owner: Struct<PublicKey, null>;
|