@helium/spl-utils 0.9.24-alpha.0 → 0.10.0-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.
Files changed (36) hide show
  1. package/lib/cjs/fetchBackwardsCompatibleIdl.js +1 -1
  2. package/lib/cjs/fetchBackwardsCompatibleIdl.js.map +1 -1
  3. package/lib/cjs/idl/circuit_breaker.json +388 -210
  4. package/lib/cjs/idl/data_credits.json +1847 -673
  5. package/lib/cjs/idl/fanout.json +1123 -328
  6. package/lib/cjs/idl/helium_entity_manager.json +4611 -2523
  7. package/lib/cjs/idl/helium_sub_daos.json +3863 -1971
  8. package/lib/cjs/idl/hexboosting.json +853 -282
  9. package/lib/cjs/idl/lazy_distributor.json +1640 -736
  10. package/lib/cjs/idl/lazy_transactions.json +341 -237
  11. package/lib/cjs/idl/mobile_entity_manager.json +2016 -602
  12. package/lib/cjs/idl/no_emit.json +168 -34
  13. package/lib/cjs/idl/price_oracle.json +179 -118
  14. package/lib/cjs/idl/rewards_oracle.json +374 -61
  15. package/lib/cjs/idl/treasury_management.json +495 -187
  16. package/lib/cjs/idl/voter_stake_registry.json +2955 -1339
  17. package/lib/cjs/transaction.js +1 -1
  18. package/lib/esm/src/fetchBackwardsCompatibleIdl.js +1 -1
  19. package/lib/esm/src/fetchBackwardsCompatibleIdl.js.map +1 -1
  20. package/lib/esm/src/idl/circuit_breaker.json +388 -210
  21. package/lib/esm/src/idl/data_credits.json +1847 -673
  22. package/lib/esm/src/idl/fanout.json +1123 -328
  23. package/lib/esm/src/idl/helium_entity_manager.json +4611 -2523
  24. package/lib/esm/src/idl/helium_sub_daos.json +3863 -1971
  25. package/lib/esm/src/idl/hexboosting.json +853 -282
  26. package/lib/esm/src/idl/lazy_distributor.json +1640 -736
  27. package/lib/esm/src/idl/lazy_transactions.json +341 -237
  28. package/lib/esm/src/idl/mobile_entity_manager.json +2016 -602
  29. package/lib/esm/src/idl/no_emit.json +168 -34
  30. package/lib/esm/src/idl/price_oracle.json +179 -118
  31. package/lib/esm/src/idl/rewards_oracle.json +374 -61
  32. package/lib/esm/src/idl/treasury_management.json +495 -187
  33. package/lib/esm/src/idl/voter_stake_registry.json +2955 -1339
  34. package/lib/esm/src/transaction.js +1 -1
  35. package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
  36. package/package.json +5 -5
@@ -1,364 +1,455 @@
1
1
  {
2
- "version": "0.2.0",
3
- "name": "lazy_transactions",
2
+ "address": "1atrmQs3eq1N2FEYWu6tyTXbCjP4uQwExpjtnhXtS8h",
3
+ "metadata": {
4
+ "name": "lazy_transactions",
5
+ "version": "0.2.0",
6
+ "spec": "0.1.0",
7
+ "description": "Created with Anchor"
8
+ },
4
9
  "instructions": [
5
10
  {
6
- "name": "initializeLazyTransactionsV0",
11
+ "name": "close_canopy_v0",
12
+ "discriminator": [
13
+ 92,
14
+ 189,
15
+ 176,
16
+ 245,
17
+ 129,
18
+ 173,
19
+ 166,
20
+ 169
21
+ ],
7
22
  "accounts": [
8
23
  {
9
- "name": "payer",
10
- "isMut": true,
11
- "isSigner": true
24
+ "name": "refund",
25
+ "writable": true
26
+ },
27
+ {
28
+ "name": "authority",
29
+ "signer": true,
30
+ "relations": [
31
+ "lazy_transactions"
32
+ ]
33
+ },
34
+ {
35
+ "name": "lazy_transactions",
36
+ "writable": true
37
+ },
38
+ {
39
+ "name": "canopy",
40
+ "writable": true,
41
+ "relations": [
42
+ "lazy_transactions"
43
+ ]
44
+ }
45
+ ],
46
+ "args": []
47
+ },
48
+ {
49
+ "name": "close_marker_v0",
50
+ "discriminator": [
51
+ 202,
52
+ 88,
53
+ 149,
54
+ 144,
55
+ 81,
56
+ 215,
57
+ 1,
58
+ 175
59
+ ],
60
+ "accounts": [
61
+ {
62
+ "name": "refund",
63
+ "writable": true
64
+ },
65
+ {
66
+ "name": "lazy_transactions",
67
+ "writable": true
68
+ },
69
+ {
70
+ "name": "authority",
71
+ "signer": true,
72
+ "relations": [
73
+ "lazy_transactions"
74
+ ]
12
75
  },
13
76
  {
14
- "name": "lazyTransactions",
15
- "isMut": true,
16
- "isSigner": false,
77
+ "name": "block",
78
+ "writable": true,
17
79
  "pda": {
18
80
  "seeds": [
19
81
  {
20
82
  "kind": "const",
21
- "type": "string",
22
- "value": "lazy_transactions"
83
+ "value": [
84
+ 98,
85
+ 108,
86
+ 111,
87
+ 99,
88
+ 107
89
+ ]
90
+ },
91
+ {
92
+ "kind": "account",
93
+ "path": "lazy_transactions"
23
94
  },
24
95
  {
25
96
  "kind": "arg",
26
- "type": {
27
- "defined": "InitializeLazyTransactionsArgsV0"
28
- },
29
- "path": "args.name"
97
+ "path": "args.index"
30
98
  }
31
99
  ]
32
100
  }
33
101
  },
34
102
  {
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
103
+ "name": "executed_transactions",
104
+ "writable": true,
105
+ "relations": [
106
+ "lazy_transactions"
107
+ ]
48
108
  }
49
109
  ],
50
110
  "args": [
51
111
  {
52
112
  "name": "args",
53
113
  "type": {
54
- "defined": "InitializeLazyTransactionsArgsV0"
114
+ "defined": {
115
+ "name": "CloseMarkerArgsV0"
116
+ }
55
117
  }
56
118
  }
57
119
  ]
58
120
  },
59
121
  {
60
- "name": "executeTransactionV0",
122
+ "name": "execute_transaction_v0",
123
+ "discriminator": [
124
+ 217,
125
+ 93,
126
+ 174,
127
+ 97,
128
+ 130,
129
+ 183,
130
+ 126,
131
+ 44
132
+ ],
61
133
  "accounts": [
62
134
  {
63
135
  "name": "payer",
64
- "isMut": true,
65
- "isSigner": true
136
+ "writable": true,
137
+ "signer": true
66
138
  },
67
139
  {
68
- "name": "lazyTransactions",
69
- "isMut": true,
70
- "isSigner": false,
71
- "relations": [
72
- "canopy",
73
- "executed_transactions"
74
- ]
140
+ "name": "lazy_transactions",
141
+ "writable": true
75
142
  },
76
143
  {
77
144
  "name": "canopy",
78
- "isMut": false,
79
- "isSigner": false
145
+ "relations": [
146
+ "lazy_transactions"
147
+ ]
80
148
  },
81
149
  {
82
- "name": "lazySigner",
83
- "isMut": true,
84
- "isSigner": false,
150
+ "name": "lazy_signer",
151
+ "writable": true,
85
152
  "pda": {
86
153
  "seeds": [
87
154
  {
88
155
  "kind": "const",
89
- "type": "string",
90
- "value": "lazy_signer"
156
+ "value": [
157
+ 108,
158
+ 97,
159
+ 122,
160
+ 121,
161
+ 95,
162
+ 115,
163
+ 105,
164
+ 103,
165
+ 110,
166
+ 101,
167
+ 114
168
+ ]
91
169
  },
92
170
  {
93
171
  "kind": "account",
94
- "type": "string",
95
- "account": "LazyTransactionsV0",
96
- "path": "lazy_transactions.name"
172
+ "path": "lazy_transactions.name",
173
+ "account": "LazyTransactionsV0"
97
174
  }
98
175
  ]
99
176
  }
100
177
  },
101
178
  {
102
179
  "name": "block",
103
- "isMut": false,
104
- "isSigner": false,
105
180
  "pda": {
106
181
  "seeds": [
107
182
  {
108
183
  "kind": "const",
109
- "type": "string",
110
- "value": "block"
184
+ "value": [
185
+ 98,
186
+ 108,
187
+ 111,
188
+ 99,
189
+ 107
190
+ ]
111
191
  },
112
192
  {
113
193
  "kind": "account",
114
- "type": "publicKey",
115
- "account": "LazyTransactionsV0",
116
194
  "path": "lazy_transactions"
117
195
  },
118
196
  {
119
197
  "kind": "arg",
120
- "type": {
121
- "defined": "ExecuteTransactionArgsV0"
122
- },
123
198
  "path": "args.index"
124
199
  }
125
200
  ]
126
201
  }
127
202
  },
128
203
  {
129
- "name": "systemProgram",
130
- "isMut": false,
131
- "isSigner": false
204
+ "name": "system_program",
205
+ "address": "11111111111111111111111111111111"
132
206
  },
133
207
  {
134
- "name": "executedTransactions",
135
- "isMut": true,
136
- "isSigner": false
208
+ "name": "executed_transactions",
209
+ "writable": true,
210
+ "relations": [
211
+ "lazy_transactions"
212
+ ]
137
213
  }
138
214
  ],
139
215
  "args": [
140
216
  {
141
217
  "name": "args",
142
218
  "type": {
143
- "defined": "ExecuteTransactionArgsV0"
219
+ "defined": {
220
+ "name": "ExecuteTransactionArgsV0"
221
+ }
144
222
  }
145
223
  }
146
224
  ]
147
225
  },
148
226
  {
149
- "name": "closeMarkerV0",
227
+ "name": "initialize_lazy_transactions_v0",
228
+ "discriminator": [
229
+ 32,
230
+ 227,
231
+ 207,
232
+ 127,
233
+ 112,
234
+ 50,
235
+ 31,
236
+ 157
237
+ ],
150
238
  "accounts": [
151
239
  {
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
240
+ "name": "payer",
241
+ "writable": true,
242
+ "signer": true
169
243
  },
170
244
  {
171
- "name": "block",
172
- "isMut": true,
173
- "isSigner": false,
245
+ "name": "lazy_transactions",
246
+ "writable": true,
174
247
  "pda": {
175
248
  "seeds": [
176
249
  {
177
250
  "kind": "const",
178
- "type": "string",
179
- "value": "block"
180
- },
181
- {
182
- "kind": "account",
183
- "type": "publicKey",
184
- "account": "LazyTransactionsV0",
185
- "path": "lazy_transactions"
251
+ "value": [
252
+ 108,
253
+ 97,
254
+ 122,
255
+ 121,
256
+ 95,
257
+ 116,
258
+ 114,
259
+ 97,
260
+ 110,
261
+ 115,
262
+ 97,
263
+ 99,
264
+ 116,
265
+ 105,
266
+ 111,
267
+ 110,
268
+ 115
269
+ ]
186
270
  },
187
271
  {
188
272
  "kind": "arg",
189
- "type": {
190
- "defined": "CloseMarkerArgsV0"
191
- },
192
- "path": "args.index"
273
+ "path": "args.name"
193
274
  }
194
275
  ]
195
276
  }
196
277
  },
197
278
  {
198
- "name": "executedTransactions",
199
- "isMut": true,
200
- "isSigner": false
279
+ "name": "canopy",
280
+ "writable": true
281
+ },
282
+ {
283
+ "name": "executed_transactions",
284
+ "writable": true
285
+ },
286
+ {
287
+ "name": "system_program",
288
+ "address": "11111111111111111111111111111111"
201
289
  }
202
290
  ],
203
291
  "args": [
204
292
  {
205
293
  "name": "args",
206
294
  "type": {
207
- "defined": "CloseMarkerArgsV0"
295
+ "defined": {
296
+ "name": "InitializeLazyTransactionsArgsV0"
297
+ }
208
298
  }
209
299
  }
210
300
  ]
211
301
  },
212
302
  {
213
- "name": "closeCanopyV0",
303
+ "name": "set_canopy_v0",
304
+ "discriminator": [
305
+ 25,
306
+ 86,
307
+ 129,
308
+ 124,
309
+ 184,
310
+ 195,
311
+ 134,
312
+ 89
313
+ ],
214
314
  "accounts": [
215
- {
216
- "name": "refund",
217
- "isMut": true,
218
- "isSigner": false
219
- },
220
315
  {
221
316
  "name": "authority",
222
- "isMut": false,
223
- "isSigner": true
224
- },
225
- {
226
- "name": "lazyTransactions",
227
- "isMut": true,
228
- "isSigner": false,
317
+ "signer": true,
229
318
  "relations": [
230
- "authority",
231
- "canopy"
319
+ "lazy_transactions"
232
320
  ]
233
321
  },
234
322
  {
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
323
+ "name": "lazy_transactions",
324
+ "writable": true
249
325
  },
250
326
  {
251
- "name": "lazyTransactions",
252
- "isMut": true,
253
- "isSigner": false,
327
+ "name": "canopy",
328
+ "writable": true,
254
329
  "relations": [
255
- "authority"
330
+ "lazy_transactions"
256
331
  ]
257
- },
258
- {
259
- "name": "canopy",
260
- "isMut": true,
261
- "isSigner": false
262
- },
263
- {
264
- "name": "executedTransactions",
265
- "isMut": true,
266
- "isSigner": false
267
332
  }
268
333
  ],
269
334
  "args": [
270
335
  {
271
336
  "name": "args",
272
337
  "type": {
273
- "defined": "UpdateLazyTransactionsArgsV0"
338
+ "defined": {
339
+ "name": "SetCanopyArgsV0"
340
+ }
274
341
  }
275
342
  }
276
343
  ]
277
344
  },
278
345
  {
279
- "name": "setCanopyV0",
346
+ "name": "update_lazy_transactions_v0",
347
+ "discriminator": [
348
+ 56,
349
+ 223,
350
+ 165,
351
+ 245,
352
+ 150,
353
+ 236,
354
+ 173,
355
+ 37
356
+ ],
280
357
  "accounts": [
281
358
  {
282
359
  "name": "authority",
283
- "isMut": false,
284
- "isSigner": true
285
- },
286
- {
287
- "name": "lazyTransactions",
288
- "isMut": true,
289
- "isSigner": false,
360
+ "signer": true,
290
361
  "relations": [
291
- "authority",
292
- "canopy"
362
+ "lazy_transactions"
293
363
  ]
294
364
  },
365
+ {
366
+ "name": "lazy_transactions",
367
+ "writable": true
368
+ },
295
369
  {
296
370
  "name": "canopy",
297
- "isMut": true,
298
- "isSigner": false
371
+ "writable": true
372
+ },
373
+ {
374
+ "name": "executed_transactions",
375
+ "writable": true
299
376
  }
300
377
  ],
301
378
  "args": [
302
379
  {
303
380
  "name": "args",
304
381
  "type": {
305
- "defined": "SetCanopyArgsV0"
382
+ "defined": {
383
+ "name": "UpdateLazyTransactionsArgsV0"
384
+ }
306
385
  }
307
386
  }
308
387
  ]
309
388
  }
310
389
  ],
311
390
  "accounts": [
391
+ {
392
+ "name": "Block",
393
+ "discriminator": [
394
+ 12,
395
+ 72,
396
+ 207,
397
+ 108,
398
+ 1,
399
+ 228,
400
+ 167,
401
+ 221
402
+ ]
403
+ },
312
404
  {
313
405
  "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
- }
406
+ "discriminator": [
407
+ 51,
408
+ 89,
409
+ 224,
410
+ 39,
411
+ 73,
412
+ 173,
413
+ 229,
414
+ 141
415
+ ]
416
+ }
417
+ ],
418
+ "errors": [
419
+ {
420
+ "code": 6000,
421
+ "name": "InvalidData",
422
+ "msg": "The data did not match the root verification"
423
+ },
424
+ {
425
+ "code": 6001,
426
+ "name": "InstructionSerializeFailed",
427
+ "msg": "Failed to serialize instruction"
428
+ },
429
+ {
430
+ "code": 6002,
431
+ "name": "ToCreateSerializeFailed",
432
+ "msg": "Failed to serialize ToCreate"
352
433
  },
434
+ {
435
+ "code": 6003,
436
+ "name": "CanopyLengthMismatch",
437
+ "msg": "Invalid canopy length"
438
+ },
439
+ {
440
+ "code": 6004,
441
+ "name": "TransactionAlreadyExecuted",
442
+ "msg": "Transaction has already been executed"
443
+ }
444
+ ],
445
+ "types": [
353
446
  {
354
447
  "name": "Block",
355
448
  "type": {
356
449
  "kind": "struct",
357
450
  "fields": []
358
451
  }
359
- }
360
- ],
361
- "types": [
452
+ },
362
453
  {
363
454
  "name": "CloseMarkerArgsV0",
364
455
  "type": {
@@ -377,7 +468,7 @@
377
468
  "kind": "struct",
378
469
  "fields": [
379
470
  {
380
- "name": "programIdIndex",
471
+ "name": "program_id_index",
381
472
  "docs": [
382
473
  "Index into the transaction keys array indicating the program account that executes this instruction."
383
474
  ],
@@ -409,12 +500,14 @@
409
500
  "name": "instructions",
410
501
  "type": {
411
502
  "vec": {
412
- "defined": "CompiledInstruction"
503
+ "defined": {
504
+ "name": "CompiledInstruction"
505
+ }
413
506
  }
414
507
  }
415
508
  },
416
509
  {
417
- "name": "signerSeeds",
510
+ "name": "signer_seeds",
418
511
  "docs": [
419
512
  "Additional signer seeds. Should include bump",
420
513
  "Note that these seeds will be prefixed with \"user\", lazy_transactions.name",
@@ -454,15 +547,56 @@
454
547
  },
455
548
  {
456
549
  "name": "authority",
457
- "type": "publicKey"
550
+ "type": "pubkey"
458
551
  },
459
552
  {
460
- "name": "maxDepth",
553
+ "name": "max_depth",
461
554
  "type": "u32"
462
555
  }
463
556
  ]
464
557
  }
465
558
  },
559
+ {
560
+ "name": "LazyTransactionsV0",
561
+ "type": {
562
+ "kind": "struct",
563
+ "fields": [
564
+ {
565
+ "name": "root",
566
+ "type": {
567
+ "array": [
568
+ "u8",
569
+ 32
570
+ ]
571
+ }
572
+ },
573
+ {
574
+ "name": "name",
575
+ "type": "string"
576
+ },
577
+ {
578
+ "name": "max_depth",
579
+ "type": "u32"
580
+ },
581
+ {
582
+ "name": "authority",
583
+ "type": "pubkey"
584
+ },
585
+ {
586
+ "name": "canopy",
587
+ "type": "pubkey"
588
+ },
589
+ {
590
+ "name": "bump_seed",
591
+ "type": "u8"
592
+ },
593
+ {
594
+ "name": "executed_transactions",
595
+ "type": "pubkey"
596
+ }
597
+ ]
598
+ }
599
+ },
466
600
  {
467
601
  "name": "SetCanopyArgsV0",
468
602
  "type": {
@@ -498,41 +632,11 @@
498
632
  {
499
633
  "name": "authority",
500
634
  "type": {
501
- "option": "publicKey"
635
+ "option": "pubkey"
502
636
  }
503
637
  }
504
638
  ]
505
639
  }
506
640
  }
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
- }
641
+ ]
538
642
  }