@helium/spl-utils 0.9.19 → 0.9.20

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 (47) hide show
  1. package/lib/cjs/fetchBackwardsCompatibleIdl.js +31 -15475
  2. package/lib/cjs/fetchBackwardsCompatibleIdl.js.map +1 -1
  3. package/lib/cjs/idl/circuit_breaker.json +550 -0
  4. package/lib/cjs/idl/data_credits.json +1235 -0
  5. package/lib/cjs/idl/fanout.json +736 -0
  6. package/lib/cjs/idl/helium_entity_manager.json +4602 -0
  7. package/lib/cjs/idl/helium_sub_daos.json +3286 -0
  8. package/lib/cjs/idl/hexboosting.json +651 -0
  9. package/lib/cjs/idl/lazy_distributor.json +1239 -0
  10. package/lib/cjs/idl/lazy_transactions.json +538 -0
  11. package/lib/cjs/idl/mobile_entity_manager.json +1374 -0
  12. package/lib/cjs/idl/no_emit.json +92 -0
  13. package/lib/cjs/idl/price_oracle.json +256 -0
  14. package/lib/cjs/idl/rewards_oracle.json +167 -0
  15. package/lib/cjs/idl/treasury_management.json +423 -0
  16. package/lib/cjs/idl/voter_stake_registry.json +2224 -0
  17. package/lib/cjs/priorityFees.js +9 -6
  18. package/lib/cjs/priorityFees.js.map +1 -1
  19. package/lib/cjs/transaction.js +2 -2
  20. package/lib/cjs/transaction.js.map +1 -1
  21. package/lib/esm/src/fetchBackwardsCompatibleIdl.js +28 -15475
  22. package/lib/esm/src/fetchBackwardsCompatibleIdl.js.map +1 -1
  23. package/lib/esm/src/idl/circuit_breaker.json +550 -0
  24. package/lib/esm/src/idl/data_credits.json +1235 -0
  25. package/lib/esm/src/idl/fanout.json +736 -0
  26. package/lib/esm/src/idl/helium_entity_manager.json +4602 -0
  27. package/lib/esm/src/idl/helium_sub_daos.json +3286 -0
  28. package/lib/esm/src/idl/hexboosting.json +651 -0
  29. package/lib/esm/src/idl/lazy_distributor.json +1239 -0
  30. package/lib/esm/src/idl/lazy_transactions.json +538 -0
  31. package/lib/esm/src/idl/mobile_entity_manager.json +1374 -0
  32. package/lib/esm/src/idl/no_emit.json +92 -0
  33. package/lib/esm/src/idl/price_oracle.json +256 -0
  34. package/lib/esm/src/idl/rewards_oracle.json +167 -0
  35. package/lib/esm/src/idl/treasury_management.json +423 -0
  36. package/lib/esm/src/idl/voter_stake_registry.json +2224 -0
  37. package/lib/esm/src/priorityFees.js +12 -5
  38. package/lib/esm/src/priorityFees.js.map +1 -1
  39. package/lib/esm/src/transaction.js +3 -3
  40. package/lib/esm/src/transaction.js.map +1 -1
  41. package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
  42. package/lib/types/src/fetchBackwardsCompatibleIdl.d.ts.map +1 -1
  43. package/lib/types/src/priorityFees.d.ts +5 -2
  44. package/lib/types/src/priorityFees.d.ts.map +1 -1
  45. package/lib/types/src/transaction.d.ts +3 -1
  46. package/lib/types/src/transaction.d.ts.map +1 -1
  47. package/package.json +4 -4
@@ -0,0 +1,538 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "name": "lazy_transactions",
4
+ "instructions": [
5
+ {
6
+ "name": "initializeLazyTransactionsV0",
7
+ "accounts": [
8
+ {
9
+ "name": "payer",
10
+ "isMut": true,
11
+ "isSigner": true
12
+ },
13
+ {
14
+ "name": "lazyTransactions",
15
+ "isMut": true,
16
+ "isSigner": false,
17
+ "pda": {
18
+ "seeds": [
19
+ {
20
+ "kind": "const",
21
+ "type": "string",
22
+ "value": "lazy_transactions"
23
+ },
24
+ {
25
+ "kind": "arg",
26
+ "type": {
27
+ "defined": "InitializeLazyTransactionsArgsV0"
28
+ },
29
+ "path": "args.name"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "name": "canopy",
36
+ "isMut": true,
37
+ "isSigner": false
38
+ },
39
+ {
40
+ "name": "executedTransactions",
41
+ "isMut": true,
42
+ "isSigner": false
43
+ },
44
+ {
45
+ "name": "systemProgram",
46
+ "isMut": false,
47
+ "isSigner": false
48
+ }
49
+ ],
50
+ "args": [
51
+ {
52
+ "name": "args",
53
+ "type": {
54
+ "defined": "InitializeLazyTransactionsArgsV0"
55
+ }
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "name": "executeTransactionV0",
61
+ "accounts": [
62
+ {
63
+ "name": "payer",
64
+ "isMut": true,
65
+ "isSigner": true
66
+ },
67
+ {
68
+ "name": "lazyTransactions",
69
+ "isMut": true,
70
+ "isSigner": false,
71
+ "relations": [
72
+ "canopy",
73
+ "executed_transactions"
74
+ ]
75
+ },
76
+ {
77
+ "name": "canopy",
78
+ "isMut": false,
79
+ "isSigner": false
80
+ },
81
+ {
82
+ "name": "lazySigner",
83
+ "isMut": true,
84
+ "isSigner": false,
85
+ "pda": {
86
+ "seeds": [
87
+ {
88
+ "kind": "const",
89
+ "type": "string",
90
+ "value": "lazy_signer"
91
+ },
92
+ {
93
+ "kind": "account",
94
+ "type": "string",
95
+ "account": "LazyTransactionsV0",
96
+ "path": "lazy_transactions.name"
97
+ }
98
+ ]
99
+ }
100
+ },
101
+ {
102
+ "name": "block",
103
+ "isMut": false,
104
+ "isSigner": false,
105
+ "pda": {
106
+ "seeds": [
107
+ {
108
+ "kind": "const",
109
+ "type": "string",
110
+ "value": "block"
111
+ },
112
+ {
113
+ "kind": "account",
114
+ "type": "publicKey",
115
+ "account": "LazyTransactionsV0",
116
+ "path": "lazy_transactions"
117
+ },
118
+ {
119
+ "kind": "arg",
120
+ "type": {
121
+ "defined": "ExecuteTransactionArgsV0"
122
+ },
123
+ "path": "args.index"
124
+ }
125
+ ]
126
+ }
127
+ },
128
+ {
129
+ "name": "systemProgram",
130
+ "isMut": false,
131
+ "isSigner": false
132
+ },
133
+ {
134
+ "name": "executedTransactions",
135
+ "isMut": true,
136
+ "isSigner": false
137
+ }
138
+ ],
139
+ "args": [
140
+ {
141
+ "name": "args",
142
+ "type": {
143
+ "defined": "ExecuteTransactionArgsV0"
144
+ }
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "closeMarkerV0",
150
+ "accounts": [
151
+ {
152
+ "name": "refund",
153
+ "isMut": true,
154
+ "isSigner": false
155
+ },
156
+ {
157
+ "name": "lazyTransactions",
158
+ "isMut": true,
159
+ "isSigner": false,
160
+ "relations": [
161
+ "authority",
162
+ "executed_transactions"
163
+ ]
164
+ },
165
+ {
166
+ "name": "authority",
167
+ "isMut": false,
168
+ "isSigner": true
169
+ },
170
+ {
171
+ "name": "block",
172
+ "isMut": true,
173
+ "isSigner": false,
174
+ "pda": {
175
+ "seeds": [
176
+ {
177
+ "kind": "const",
178
+ "type": "string",
179
+ "value": "block"
180
+ },
181
+ {
182
+ "kind": "account",
183
+ "type": "publicKey",
184
+ "account": "LazyTransactionsV0",
185
+ "path": "lazy_transactions"
186
+ },
187
+ {
188
+ "kind": "arg",
189
+ "type": {
190
+ "defined": "CloseMarkerArgsV0"
191
+ },
192
+ "path": "args.index"
193
+ }
194
+ ]
195
+ }
196
+ },
197
+ {
198
+ "name": "executedTransactions",
199
+ "isMut": true,
200
+ "isSigner": false
201
+ }
202
+ ],
203
+ "args": [
204
+ {
205
+ "name": "args",
206
+ "type": {
207
+ "defined": "CloseMarkerArgsV0"
208
+ }
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "name": "closeCanopyV0",
214
+ "accounts": [
215
+ {
216
+ "name": "refund",
217
+ "isMut": true,
218
+ "isSigner": false
219
+ },
220
+ {
221
+ "name": "authority",
222
+ "isMut": false,
223
+ "isSigner": true
224
+ },
225
+ {
226
+ "name": "lazyTransactions",
227
+ "isMut": true,
228
+ "isSigner": false,
229
+ "relations": [
230
+ "authority",
231
+ "canopy"
232
+ ]
233
+ },
234
+ {
235
+ "name": "canopy",
236
+ "isMut": true,
237
+ "isSigner": false
238
+ }
239
+ ],
240
+ "args": []
241
+ },
242
+ {
243
+ "name": "updateLazyTransactionsV0",
244
+ "accounts": [
245
+ {
246
+ "name": "authority",
247
+ "isMut": false,
248
+ "isSigner": true
249
+ },
250
+ {
251
+ "name": "lazyTransactions",
252
+ "isMut": true,
253
+ "isSigner": false,
254
+ "relations": [
255
+ "authority"
256
+ ]
257
+ },
258
+ {
259
+ "name": "canopy",
260
+ "isMut": true,
261
+ "isSigner": false
262
+ },
263
+ {
264
+ "name": "executedTransactions",
265
+ "isMut": true,
266
+ "isSigner": false
267
+ }
268
+ ],
269
+ "args": [
270
+ {
271
+ "name": "args",
272
+ "type": {
273
+ "defined": "UpdateLazyTransactionsArgsV0"
274
+ }
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "name": "setCanopyV0",
280
+ "accounts": [
281
+ {
282
+ "name": "authority",
283
+ "isMut": false,
284
+ "isSigner": true
285
+ },
286
+ {
287
+ "name": "lazyTransactions",
288
+ "isMut": true,
289
+ "isSigner": false,
290
+ "relations": [
291
+ "authority",
292
+ "canopy"
293
+ ]
294
+ },
295
+ {
296
+ "name": "canopy",
297
+ "isMut": true,
298
+ "isSigner": false
299
+ }
300
+ ],
301
+ "args": [
302
+ {
303
+ "name": "args",
304
+ "type": {
305
+ "defined": "SetCanopyArgsV0"
306
+ }
307
+ }
308
+ ]
309
+ }
310
+ ],
311
+ "accounts": [
312
+ {
313
+ "name": "LazyTransactionsV0",
314
+ "type": {
315
+ "kind": "struct",
316
+ "fields": [
317
+ {
318
+ "name": "root",
319
+ "type": {
320
+ "array": [
321
+ "u8",
322
+ 32
323
+ ]
324
+ }
325
+ },
326
+ {
327
+ "name": "name",
328
+ "type": "string"
329
+ },
330
+ {
331
+ "name": "maxDepth",
332
+ "type": "u32"
333
+ },
334
+ {
335
+ "name": "authority",
336
+ "type": "publicKey"
337
+ },
338
+ {
339
+ "name": "canopy",
340
+ "type": "publicKey"
341
+ },
342
+ {
343
+ "name": "bumpSeed",
344
+ "type": "u8"
345
+ },
346
+ {
347
+ "name": "executedTransactions",
348
+ "type": "publicKey"
349
+ }
350
+ ]
351
+ }
352
+ },
353
+ {
354
+ "name": "Block",
355
+ "type": {
356
+ "kind": "struct",
357
+ "fields": []
358
+ }
359
+ }
360
+ ],
361
+ "types": [
362
+ {
363
+ "name": "CloseMarkerArgsV0",
364
+ "type": {
365
+ "kind": "struct",
366
+ "fields": [
367
+ {
368
+ "name": "index",
369
+ "type": "u32"
370
+ }
371
+ ]
372
+ }
373
+ },
374
+ {
375
+ "name": "CompiledInstruction",
376
+ "type": {
377
+ "kind": "struct",
378
+ "fields": [
379
+ {
380
+ "name": "programIdIndex",
381
+ "docs": [
382
+ "Index into the transaction keys array indicating the program account that executes this instruction."
383
+ ],
384
+ "type": "u8"
385
+ },
386
+ {
387
+ "name": "accounts",
388
+ "docs": [
389
+ "Ordered indices into the transaction keys array indicating which accounts to pass to the program."
390
+ ],
391
+ "type": "bytes"
392
+ },
393
+ {
394
+ "name": "data",
395
+ "docs": [
396
+ "The program input data."
397
+ ],
398
+ "type": "bytes"
399
+ }
400
+ ]
401
+ }
402
+ },
403
+ {
404
+ "name": "ExecuteTransactionArgsV0",
405
+ "type": {
406
+ "kind": "struct",
407
+ "fields": [
408
+ {
409
+ "name": "instructions",
410
+ "type": {
411
+ "vec": {
412
+ "defined": "CompiledInstruction"
413
+ }
414
+ }
415
+ },
416
+ {
417
+ "name": "signerSeeds",
418
+ "docs": [
419
+ "Additional signer seeds. Should include bump",
420
+ "Note that these seeds will be prefixed with \"user\", lazy_transactions.name",
421
+ "and the bump you pass and account should be consistent with this. But to save space",
422
+ "in the instruction, they should be ommitted here. See tests for examples"
423
+ ],
424
+ "type": {
425
+ "vec": {
426
+ "vec": "bytes"
427
+ }
428
+ }
429
+ },
430
+ {
431
+ "name": "index",
432
+ "type": "u32"
433
+ }
434
+ ]
435
+ }
436
+ },
437
+ {
438
+ "name": "InitializeLazyTransactionsArgsV0",
439
+ "type": {
440
+ "kind": "struct",
441
+ "fields": [
442
+ {
443
+ "name": "root",
444
+ "type": {
445
+ "array": [
446
+ "u8",
447
+ 32
448
+ ]
449
+ }
450
+ },
451
+ {
452
+ "name": "name",
453
+ "type": "string"
454
+ },
455
+ {
456
+ "name": "authority",
457
+ "type": "publicKey"
458
+ },
459
+ {
460
+ "name": "maxDepth",
461
+ "type": "u32"
462
+ }
463
+ ]
464
+ }
465
+ },
466
+ {
467
+ "name": "SetCanopyArgsV0",
468
+ "type": {
469
+ "kind": "struct",
470
+ "fields": [
471
+ {
472
+ "name": "offset",
473
+ "type": "u32"
474
+ },
475
+ {
476
+ "name": "bytes",
477
+ "type": "bytes"
478
+ }
479
+ ]
480
+ }
481
+ },
482
+ {
483
+ "name": "UpdateLazyTransactionsArgsV0",
484
+ "type": {
485
+ "kind": "struct",
486
+ "fields": [
487
+ {
488
+ "name": "root",
489
+ "type": {
490
+ "option": {
491
+ "array": [
492
+ "u8",
493
+ 32
494
+ ]
495
+ }
496
+ }
497
+ },
498
+ {
499
+ "name": "authority",
500
+ "type": {
501
+ "option": "publicKey"
502
+ }
503
+ }
504
+ ]
505
+ }
506
+ }
507
+ ],
508
+ "errors": [
509
+ {
510
+ "code": 6000,
511
+ "name": "InvalidData",
512
+ "msg": "The data did not match the root verification"
513
+ },
514
+ {
515
+ "code": 6001,
516
+ "name": "InstructionSerializeFailed",
517
+ "msg": "Failed to serialize instruction"
518
+ },
519
+ {
520
+ "code": 6002,
521
+ "name": "ToCreateSerializeFailed",
522
+ "msg": "Failed to serialize ToCreate"
523
+ },
524
+ {
525
+ "code": 6003,
526
+ "name": "CanopyLengthMismatch",
527
+ "msg": "Invalid canopy length"
528
+ },
529
+ {
530
+ "code": 6004,
531
+ "name": "TransactionAlreadyExecuted",
532
+ "msg": "Transaction has already been executed"
533
+ }
534
+ ],
535
+ "metadata": {
536
+ "address": "1atrmQs3eq1N2FEYWu6tyTXbCjP4uQwExpjtnhXtS8h"
537
+ }
538
+ }