@helium/idls 0.9.23 → 0.10.0-alpha.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.
Files changed (115) hide show
  1. package/lib/cjs/circuit_breaker.js +0 -548
  2. package/lib/cjs/circuit_breaker.js.map +1 -1
  3. package/lib/cjs/conversion_escrow.js +369 -0
  4. package/lib/cjs/conversion_escrow.js.map +1 -0
  5. package/lib/cjs/data_credits.js +0 -1233
  6. package/lib/cjs/data_credits.js.map +1 -1
  7. package/lib/cjs/dc_conversion_escrow.js +280 -0
  8. package/lib/cjs/dc_conversion_escrow.js.map +1 -0
  9. package/lib/cjs/dc_convesion_escrow.js +269 -0
  10. package/lib/cjs/dc_convesion_escrow.js.map +1 -0
  11. package/lib/cjs/fanout.js +0 -734
  12. package/lib/cjs/fanout.js.map +1 -1
  13. package/lib/cjs/helium_entity_manager.js +0 -4600
  14. package/lib/cjs/helium_entity_manager.js.map +1 -1
  15. package/lib/cjs/helium_sub_daos.js +0 -3305
  16. package/lib/cjs/helium_sub_daos.js.map +1 -1
  17. package/lib/cjs/hexboosting.js +0 -649
  18. package/lib/cjs/hexboosting.js.map +1 -1
  19. package/lib/cjs/iot_routing_manager.js +987 -0
  20. package/lib/cjs/iot_routing_manager.js.map +1 -0
  21. package/lib/cjs/lazy_distributor.js +0 -1303
  22. package/lib/cjs/lazy_distributor.js.map +1 -1
  23. package/lib/cjs/lazy_transactions.js +0 -536
  24. package/lib/cjs/lazy_transactions.js.map +1 -1
  25. package/lib/cjs/mobile_entity_manager.js +0 -1372
  26. package/lib/cjs/mobile_entity_manager.js.map +1 -1
  27. package/lib/cjs/no_emit.js +0 -90
  28. package/lib/cjs/no_emit.js.map +1 -1
  29. package/lib/cjs/position_voting_rewards.js +1051 -0
  30. package/lib/cjs/position_voting_rewards.js.map +1 -0
  31. package/lib/cjs/price_oracle.js +0 -254
  32. package/lib/cjs/price_oracle.js.map +1 -1
  33. package/lib/cjs/rewards_oracle.js +0 -165
  34. package/lib/cjs/rewards_oracle.js.map +1 -1
  35. package/lib/cjs/treasury_management.js +0 -421
  36. package/lib/cjs/treasury_management.js.map +1 -1
  37. package/lib/cjs/voter_stake_registry.js +0 -2222
  38. package/lib/cjs/voter_stake_registry.js.map +1 -1
  39. package/lib/esm/circuit_breaker.js +1 -547
  40. package/lib/esm/circuit_breaker.js.map +1 -1
  41. package/lib/esm/conversion_escrow.js +366 -0
  42. package/lib/esm/conversion_escrow.js.map +1 -0
  43. package/lib/esm/data_credits.js +1 -1232
  44. package/lib/esm/data_credits.js.map +1 -1
  45. package/lib/esm/dc_conversion_escrow.js +277 -0
  46. package/lib/esm/dc_conversion_escrow.js.map +1 -0
  47. package/lib/esm/dc_convesion_escrow.js +266 -0
  48. package/lib/esm/dc_convesion_escrow.js.map +1 -0
  49. package/lib/esm/fanout.js +1 -733
  50. package/lib/esm/fanout.js.map +1 -1
  51. package/lib/esm/helium_entity_manager.js +1 -4599
  52. package/lib/esm/helium_entity_manager.js.map +1 -1
  53. package/lib/esm/helium_sub_daos.js +1 -3304
  54. package/lib/esm/helium_sub_daos.js.map +1 -1
  55. package/lib/esm/hexboosting.js +1 -648
  56. package/lib/esm/hexboosting.js.map +1 -1
  57. package/lib/esm/iot_routing_manager.js +984 -0
  58. package/lib/esm/iot_routing_manager.js.map +1 -0
  59. package/lib/esm/lazy_distributor.js +1 -1302
  60. package/lib/esm/lazy_distributor.js.map +1 -1
  61. package/lib/esm/lazy_transactions.js +1 -535
  62. package/lib/esm/lazy_transactions.js.map +1 -1
  63. package/lib/esm/mobile_entity_manager.js +1 -1371
  64. package/lib/esm/mobile_entity_manager.js.map +1 -1
  65. package/lib/esm/no_emit.js +1 -89
  66. package/lib/esm/no_emit.js.map +1 -1
  67. package/lib/esm/position_voting_rewards.js +1048 -0
  68. package/lib/esm/position_voting_rewards.js.map +1 -0
  69. package/lib/esm/price_oracle.js +1 -253
  70. package/lib/esm/price_oracle.js.map +1 -1
  71. package/lib/esm/rewards_oracle.js +1 -164
  72. package/lib/esm/rewards_oracle.js.map +1 -1
  73. package/lib/esm/treasury_management.js +1 -420
  74. package/lib/esm/treasury_management.js.map +1 -1
  75. package/lib/esm/voter_stake_registry.js +1 -2221
  76. package/lib/esm/voter_stake_registry.js.map +1 -1
  77. package/lib/types/circuit_breaker.d.ts +370 -184
  78. package/lib/types/circuit_breaker.d.ts.map +1 -1
  79. package/lib/types/conversion_escrow.d.ts +367 -0
  80. package/lib/types/conversion_escrow.d.ts.map +1 -0
  81. package/lib/types/data_credits.d.ts +1794 -612
  82. package/lib/types/data_credits.d.ts.map +1 -1
  83. package/lib/types/dc_conversion_escrow.d.ts +278 -0
  84. package/lib/types/dc_conversion_escrow.d.ts.map +1 -0
  85. package/lib/types/dc_convesion_escrow.d.ts +267 -0
  86. package/lib/types/dc_convesion_escrow.d.ts.map +1 -0
  87. package/lib/types/fanout.d.ts +1094 -291
  88. package/lib/types/fanout.d.ts.map +1 -1
  89. package/lib/types/helium_entity_manager.d.ts +4468 -2372
  90. package/lib/types/helium_entity_manager.d.ts.map +1 -1
  91. package/lib/types/helium_sub_daos.d.ts +3817 -1938
  92. package/lib/types/helium_sub_daos.d.ts.map +1 -1
  93. package/lib/types/hexboosting.d.ts +812 -233
  94. package/lib/types/hexboosting.d.ts.map +1 -1
  95. package/lib/types/iot_routing_manager.d.ts +985 -0
  96. package/lib/types/iot_routing_manager.d.ts.map +1 -0
  97. package/lib/types/lazy_distributor.d.ts +1599 -753
  98. package/lib/types/lazy_distributor.d.ts.map +1 -1
  99. package/lib/types/lazy_transactions.d.ts +339 -227
  100. package/lib/types/lazy_transactions.d.ts.map +1 -1
  101. package/lib/types/mobile_entity_manager.d.ts +1963 -541
  102. package/lib/types/mobile_entity_manager.d.ts.map +1 -1
  103. package/lib/types/no_emit.d.ts +165 -23
  104. package/lib/types/no_emit.d.ts.map +1 -1
  105. package/lib/types/position_voting_rewards.d.ts +1049 -0
  106. package/lib/types/position_voting_rewards.d.ts.map +1 -0
  107. package/lib/types/price_oracle.d.ts +178 -109
  108. package/lib/types/price_oracle.d.ts.map +1 -1
  109. package/lib/types/rewards_oracle.d.ts +364 -43
  110. package/lib/types/rewards_oracle.d.ts.map +1 -1
  111. package/lib/types/treasury_management.d.ts +487 -171
  112. package/lib/types/treasury_management.d.ts.map +1 -1
  113. package/lib/types/voter_stake_registry.d.ts +2919 -1295
  114. package/lib/types/voter_stake_registry.d.ts.map +1 -1
  115. package/package.json +3 -3
@@ -1,149 +1,1059 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/lazy_distributor.json`.
6
+ */
1
7
  export type LazyDistributor = {
2
- "version": "0.2.1";
3
- "name": "lazy_distributor";
8
+ "address": "1azyuavdMyvsivtNxPoz6SucD18eDHeXzFCUPq5XU7w";
9
+ "metadata": {
10
+ "name": "lazyDistributor";
11
+ "version": "0.2.2";
12
+ "spec": "0.1.0";
13
+ "description": "Created with Anchor";
14
+ };
4
15
  "instructions": [
16
+ {
17
+ "name": "distributeCompressionRewardsV0";
18
+ "discriminator": [
19
+ 160,
20
+ 48,
21
+ 184,
22
+ 57,
23
+ 5,
24
+ 105,
25
+ 233,
26
+ 71
27
+ ];
28
+ "accounts": [
29
+ {
30
+ "name": "common";
31
+ "accounts": [
32
+ {
33
+ "name": "payer";
34
+ "writable": true;
35
+ "signer": true;
36
+ },
37
+ {
38
+ "name": "lazyDistributor";
39
+ "relations": [
40
+ "recipient"
41
+ ];
42
+ },
43
+ {
44
+ "name": "recipient";
45
+ "writable": true;
46
+ },
47
+ {
48
+ "name": "rewardsMint";
49
+ "relations": [
50
+ "lazyDistributor"
51
+ ];
52
+ },
53
+ {
54
+ "name": "rewardsEscrow";
55
+ "writable": true;
56
+ "relations": [
57
+ "lazyDistributor"
58
+ ];
59
+ },
60
+ {
61
+ "name": "circuitBreaker";
62
+ "writable": true;
63
+ "pda": {
64
+ "seeds": [
65
+ {
66
+ "kind": "const";
67
+ "value": [
68
+ 97,
69
+ 99,
70
+ 99,
71
+ 111,
72
+ 117,
73
+ 110,
74
+ 116,
75
+ 95,
76
+ 119,
77
+ 105,
78
+ 110,
79
+ 100,
80
+ 111,
81
+ 119,
82
+ 101,
83
+ 100,
84
+ 95,
85
+ 98,
86
+ 114,
87
+ 101,
88
+ 97,
89
+ 107,
90
+ 101,
91
+ 114
92
+ ];
93
+ },
94
+ {
95
+ "kind": "account";
96
+ "path": "rewardsEscrow";
97
+ }
98
+ ];
99
+ "program": {
100
+ "kind": "account";
101
+ "path": "circuitBreakerProgram";
102
+ };
103
+ };
104
+ },
105
+ {
106
+ "name": "owner";
107
+ "docs": [
108
+ "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
109
+ ];
110
+ "writable": true;
111
+ },
112
+ {
113
+ "name": "destinationAccount";
114
+ "writable": true;
115
+ "pda": {
116
+ "seeds": [
117
+ {
118
+ "kind": "account";
119
+ "path": "owner";
120
+ },
121
+ {
122
+ "kind": "const";
123
+ "value": [
124
+ 6,
125
+ 221,
126
+ 246,
127
+ 225,
128
+ 215,
129
+ 101,
130
+ 161,
131
+ 147,
132
+ 217,
133
+ 203,
134
+ 225,
135
+ 70,
136
+ 206,
137
+ 235,
138
+ 121,
139
+ 172,
140
+ 28,
141
+ 180,
142
+ 133,
143
+ 237,
144
+ 95,
145
+ 91,
146
+ 55,
147
+ 145,
148
+ 58,
149
+ 140,
150
+ 245,
151
+ 133,
152
+ 126,
153
+ 255,
154
+ 0,
155
+ 169
156
+ ];
157
+ },
158
+ {
159
+ "kind": "account";
160
+ "path": "rewardsMint";
161
+ }
162
+ ];
163
+ "program": {
164
+ "kind": "const";
165
+ "value": [
166
+ 140,
167
+ 151,
168
+ 37,
169
+ 143,
170
+ 78,
171
+ 36,
172
+ 137,
173
+ 241,
174
+ 187,
175
+ 61,
176
+ 16,
177
+ 41,
178
+ 20,
179
+ 142,
180
+ 13,
181
+ 131,
182
+ 11,
183
+ 90,
184
+ 19,
185
+ 153,
186
+ 218,
187
+ 255,
188
+ 16,
189
+ 132,
190
+ 4,
191
+ 142,
192
+ 123,
193
+ 216,
194
+ 219,
195
+ 233,
196
+ 248,
197
+ 89
198
+ ];
199
+ };
200
+ };
201
+ },
202
+ {
203
+ "name": "associatedTokenProgram";
204
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
205
+ },
206
+ {
207
+ "name": "circuitBreakerProgram";
208
+ "address": "circAbx64bbsscPbQzZAUvuXpHqrCe6fLMzc2uKXz9g";
209
+ },
210
+ {
211
+ "name": "systemProgram";
212
+ "address": "11111111111111111111111111111111";
213
+ },
214
+ {
215
+ "name": "tokenProgram";
216
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
217
+ }
218
+ ];
219
+ },
220
+ {
221
+ "name": "merkleTree";
222
+ },
223
+ {
224
+ "name": "compressionProgram";
225
+ "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK";
226
+ }
227
+ ];
228
+ "args": [
229
+ {
230
+ "name": "args";
231
+ "type": {
232
+ "defined": {
233
+ "name": "distributeCompressionRewardsArgsV0";
234
+ };
235
+ };
236
+ }
237
+ ];
238
+ },
239
+ {
240
+ "name": "distributeCustomDestinationV0";
241
+ "discriminator": [
242
+ 82,
243
+ 38,
244
+ 138,
245
+ 203,
246
+ 54,
247
+ 95,
248
+ 240,
249
+ 182
250
+ ];
251
+ "accounts": [
252
+ {
253
+ "name": "common";
254
+ "accounts": [
255
+ {
256
+ "name": "payer";
257
+ "writable": true;
258
+ "signer": true;
259
+ },
260
+ {
261
+ "name": "lazyDistributor";
262
+ "relations": [
263
+ "recipient"
264
+ ];
265
+ },
266
+ {
267
+ "name": "recipient";
268
+ "writable": true;
269
+ },
270
+ {
271
+ "name": "rewardsMint";
272
+ "relations": [
273
+ "lazyDistributor"
274
+ ];
275
+ },
276
+ {
277
+ "name": "rewardsEscrow";
278
+ "writable": true;
279
+ "relations": [
280
+ "lazyDistributor"
281
+ ];
282
+ },
283
+ {
284
+ "name": "circuitBreaker";
285
+ "writable": true;
286
+ "pda": {
287
+ "seeds": [
288
+ {
289
+ "kind": "const";
290
+ "value": [
291
+ 97,
292
+ 99,
293
+ 99,
294
+ 111,
295
+ 117,
296
+ 110,
297
+ 116,
298
+ 95,
299
+ 119,
300
+ 105,
301
+ 110,
302
+ 100,
303
+ 111,
304
+ 119,
305
+ 101,
306
+ 100,
307
+ 95,
308
+ 98,
309
+ 114,
310
+ 101,
311
+ 97,
312
+ 107,
313
+ 101,
314
+ 114
315
+ ];
316
+ },
317
+ {
318
+ "kind": "account";
319
+ "path": "rewardsEscrow";
320
+ }
321
+ ];
322
+ "program": {
323
+ "kind": "account";
324
+ "path": "circuitBreakerProgram";
325
+ };
326
+ };
327
+ },
328
+ {
329
+ "name": "owner";
330
+ "docs": [
331
+ "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
332
+ ];
333
+ "writable": true;
334
+ },
335
+ {
336
+ "name": "destinationAccount";
337
+ "writable": true;
338
+ "pda": {
339
+ "seeds": [
340
+ {
341
+ "kind": "account";
342
+ "path": "owner";
343
+ },
344
+ {
345
+ "kind": "const";
346
+ "value": [
347
+ 6,
348
+ 221,
349
+ 246,
350
+ 225,
351
+ 215,
352
+ 101,
353
+ 161,
354
+ 147,
355
+ 217,
356
+ 203,
357
+ 225,
358
+ 70,
359
+ 206,
360
+ 235,
361
+ 121,
362
+ 172,
363
+ 28,
364
+ 180,
365
+ 133,
366
+ 237,
367
+ 95,
368
+ 91,
369
+ 55,
370
+ 145,
371
+ 58,
372
+ 140,
373
+ 245,
374
+ 133,
375
+ 126,
376
+ 255,
377
+ 0,
378
+ 169
379
+ ];
380
+ },
381
+ {
382
+ "kind": "account";
383
+ "path": "rewardsMint";
384
+ }
385
+ ];
386
+ "program": {
387
+ "kind": "const";
388
+ "value": [
389
+ 140,
390
+ 151,
391
+ 37,
392
+ 143,
393
+ 78,
394
+ 36,
395
+ 137,
396
+ 241,
397
+ 187,
398
+ 61,
399
+ 16,
400
+ 41,
401
+ 20,
402
+ 142,
403
+ 13,
404
+ 131,
405
+ 11,
406
+ 90,
407
+ 19,
408
+ 153,
409
+ 218,
410
+ 255,
411
+ 16,
412
+ 132,
413
+ 4,
414
+ 142,
415
+ 123,
416
+ 216,
417
+ 219,
418
+ 233,
419
+ 248,
420
+ 89
421
+ ];
422
+ };
423
+ };
424
+ },
425
+ {
426
+ "name": "associatedTokenProgram";
427
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
428
+ },
429
+ {
430
+ "name": "circuitBreakerProgram";
431
+ "address": "circAbx64bbsscPbQzZAUvuXpHqrCe6fLMzc2uKXz9g";
432
+ },
433
+ {
434
+ "name": "systemProgram";
435
+ "address": "11111111111111111111111111111111";
436
+ },
437
+ {
438
+ "name": "tokenProgram";
439
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
440
+ }
441
+ ];
442
+ }
443
+ ];
444
+ "args": [];
445
+ },
446
+ {
447
+ "name": "distributeRewardsV0";
448
+ "discriminator": [
449
+ 235,
450
+ 19,
451
+ 42,
452
+ 12,
453
+ 113,
454
+ 98,
455
+ 214,
456
+ 117
457
+ ];
458
+ "accounts": [
459
+ {
460
+ "name": "common";
461
+ "accounts": [
462
+ {
463
+ "name": "payer";
464
+ "writable": true;
465
+ "signer": true;
466
+ },
467
+ {
468
+ "name": "lazyDistributor";
469
+ "relations": [
470
+ "recipient"
471
+ ];
472
+ },
473
+ {
474
+ "name": "recipient";
475
+ "writable": true;
476
+ },
477
+ {
478
+ "name": "rewardsMint";
479
+ "relations": [
480
+ "lazyDistributor"
481
+ ];
482
+ },
483
+ {
484
+ "name": "rewardsEscrow";
485
+ "writable": true;
486
+ "relations": [
487
+ "lazyDistributor"
488
+ ];
489
+ },
490
+ {
491
+ "name": "circuitBreaker";
492
+ "writable": true;
493
+ "pda": {
494
+ "seeds": [
495
+ {
496
+ "kind": "const";
497
+ "value": [
498
+ 97,
499
+ 99,
500
+ 99,
501
+ 111,
502
+ 117,
503
+ 110,
504
+ 116,
505
+ 95,
506
+ 119,
507
+ 105,
508
+ 110,
509
+ 100,
510
+ 111,
511
+ 119,
512
+ 101,
513
+ 100,
514
+ 95,
515
+ 98,
516
+ 114,
517
+ 101,
518
+ 97,
519
+ 107,
520
+ 101,
521
+ 114
522
+ ];
523
+ },
524
+ {
525
+ "kind": "account";
526
+ "path": "rewardsEscrow";
527
+ }
528
+ ];
529
+ "program": {
530
+ "kind": "account";
531
+ "path": "circuitBreakerProgram";
532
+ };
533
+ };
534
+ },
535
+ {
536
+ "name": "owner";
537
+ "docs": [
538
+ "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
539
+ ];
540
+ "writable": true;
541
+ },
542
+ {
543
+ "name": "destinationAccount";
544
+ "writable": true;
545
+ "pda": {
546
+ "seeds": [
547
+ {
548
+ "kind": "account";
549
+ "path": "owner";
550
+ },
551
+ {
552
+ "kind": "const";
553
+ "value": [
554
+ 6,
555
+ 221,
556
+ 246,
557
+ 225,
558
+ 215,
559
+ 101,
560
+ 161,
561
+ 147,
562
+ 217,
563
+ 203,
564
+ 225,
565
+ 70,
566
+ 206,
567
+ 235,
568
+ 121,
569
+ 172,
570
+ 28,
571
+ 180,
572
+ 133,
573
+ 237,
574
+ 95,
575
+ 91,
576
+ 55,
577
+ 145,
578
+ 58,
579
+ 140,
580
+ 245,
581
+ 133,
582
+ 126,
583
+ 255,
584
+ 0,
585
+ 169
586
+ ];
587
+ },
588
+ {
589
+ "kind": "account";
590
+ "path": "rewardsMint";
591
+ }
592
+ ];
593
+ "program": {
594
+ "kind": "const";
595
+ "value": [
596
+ 140,
597
+ 151,
598
+ 37,
599
+ 143,
600
+ 78,
601
+ 36,
602
+ 137,
603
+ 241,
604
+ 187,
605
+ 61,
606
+ 16,
607
+ 41,
608
+ 20,
609
+ 142,
610
+ 13,
611
+ 131,
612
+ 11,
613
+ 90,
614
+ 19,
615
+ 153,
616
+ 218,
617
+ 255,
618
+ 16,
619
+ 132,
620
+ 4,
621
+ 142,
622
+ 123,
623
+ 216,
624
+ 219,
625
+ 233,
626
+ 248,
627
+ 89
628
+ ];
629
+ };
630
+ };
631
+ },
632
+ {
633
+ "name": "associatedTokenProgram";
634
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
635
+ },
636
+ {
637
+ "name": "circuitBreakerProgram";
638
+ "address": "circAbx64bbsscPbQzZAUvuXpHqrCe6fLMzc2uKXz9g";
639
+ },
640
+ {
641
+ "name": "systemProgram";
642
+ "address": "11111111111111111111111111111111";
643
+ },
644
+ {
645
+ "name": "tokenProgram";
646
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
647
+ }
648
+ ];
649
+ },
650
+ {
651
+ "name": "recipientMintAccount";
652
+ }
653
+ ];
654
+ "args": [];
655
+ },
656
+ {
657
+ "name": "dummyIx";
658
+ "discriminator": [
659
+ 234,
660
+ 95,
661
+ 176,
662
+ 185,
663
+ 7,
664
+ 42,
665
+ 35,
666
+ 159
667
+ ];
668
+ "accounts": [
669
+ {
670
+ "name": "dummy";
671
+ "writable": true;
672
+ },
673
+ {
674
+ "name": "dummy2";
675
+ }
676
+ ];
677
+ "args": [];
678
+ },
679
+ {
680
+ "name": "initializeCompressionRecipientV0";
681
+ "discriminator": [
682
+ 80,
683
+ 144,
684
+ 151,
685
+ 21,
686
+ 26,
687
+ 144,
688
+ 218,
689
+ 174
690
+ ];
691
+ "accounts": [
692
+ {
693
+ "name": "payer";
694
+ "writable": true;
695
+ "signer": true;
696
+ },
697
+ {
698
+ "name": "lazyDistributor";
699
+ "pda": {
700
+ "seeds": [
701
+ {
702
+ "kind": "const";
703
+ "value": [
704
+ 108,
705
+ 97,
706
+ 122,
707
+ 121,
708
+ 95,
709
+ 100,
710
+ 105,
711
+ 115,
712
+ 116,
713
+ 114,
714
+ 105,
715
+ 98,
716
+ 117,
717
+ 116,
718
+ 111,
719
+ 114
720
+ ];
721
+ },
722
+ {
723
+ "kind": "account";
724
+ "path": "lazy_distributor.rewards_mint";
725
+ "account": "lazyDistributorV0";
726
+ }
727
+ ];
728
+ };
729
+ },
730
+ {
731
+ "name": "recipient";
732
+ "writable": true;
733
+ },
734
+ {
735
+ "name": "merkleTree";
736
+ },
737
+ {
738
+ "name": "owner";
739
+ },
740
+ {
741
+ "name": "delegate";
742
+ },
743
+ {
744
+ "name": "compressionProgram";
745
+ "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK";
746
+ },
747
+ {
748
+ "name": "systemProgram";
749
+ "address": "11111111111111111111111111111111";
750
+ }
751
+ ];
752
+ "args": [
753
+ {
754
+ "name": "args";
755
+ "type": {
756
+ "defined": {
757
+ "name": "initializeCompressionRecipientArgsV0";
758
+ };
759
+ };
760
+ }
761
+ ];
762
+ },
5
763
  {
6
764
  "name": "initializeLazyDistributorV0";
765
+ "discriminator": [
766
+ 82,
767
+ 55,
768
+ 202,
769
+ 203,
770
+ 158,
771
+ 198,
772
+ 240,
773
+ 103
774
+ ];
7
775
  "accounts": [
8
776
  {
9
777
  "name": "payer";
10
- "isMut": true;
11
- "isSigner": true;
778
+ "writable": true;
779
+ "signer": true;
12
780
  },
13
781
  {
14
782
  "name": "lazyDistributor";
15
- "isMut": true;
16
- "isSigner": false;
783
+ "writable": true;
17
784
  "pda": {
18
785
  "seeds": [
19
786
  {
20
787
  "kind": "const";
21
- "type": "string";
22
- "value": "lazy_distributor";
788
+ "value": [
789
+ 108,
790
+ 97,
791
+ 122,
792
+ 121,
793
+ 95,
794
+ 100,
795
+ 105,
796
+ 115,
797
+ 116,
798
+ 114,
799
+ 105,
800
+ 98,
801
+ 117,
802
+ 116,
803
+ 111,
804
+ 114
805
+ ];
23
806
  },
24
807
  {
25
808
  "kind": "account";
26
- "type": "publicKey";
27
- "account": "Mint";
28
- "path": "rewards_mint";
809
+ "path": "rewardsMint";
29
810
  }
30
811
  ];
31
812
  };
32
813
  },
33
814
  {
34
815
  "name": "rewardsMint";
35
- "isMut": true;
36
- "isSigner": false;
816
+ "writable": true;
37
817
  },
38
818
  {
39
819
  "name": "rewardsEscrow";
40
- "isMut": true;
41
- "isSigner": false;
820
+ "writable": true;
821
+ "pda": {
822
+ "seeds": [
823
+ {
824
+ "kind": "account";
825
+ "path": "lazyDistributor";
826
+ },
827
+ {
828
+ "kind": "const";
829
+ "value": [
830
+ 6,
831
+ 221,
832
+ 246,
833
+ 225,
834
+ 215,
835
+ 101,
836
+ 161,
837
+ 147,
838
+ 217,
839
+ 203,
840
+ 225,
841
+ 70,
842
+ 206,
843
+ 235,
844
+ 121,
845
+ 172,
846
+ 28,
847
+ 180,
848
+ 133,
849
+ 237,
850
+ 95,
851
+ 91,
852
+ 55,
853
+ 145,
854
+ 58,
855
+ 140,
856
+ 245,
857
+ 133,
858
+ 126,
859
+ 255,
860
+ 0,
861
+ 169
862
+ ];
863
+ },
864
+ {
865
+ "kind": "account";
866
+ "path": "rewardsMint";
867
+ }
868
+ ];
869
+ "program": {
870
+ "kind": "const";
871
+ "value": [
872
+ 140,
873
+ 151,
874
+ 37,
875
+ 143,
876
+ 78,
877
+ 36,
878
+ 137,
879
+ 241,
880
+ 187,
881
+ 61,
882
+ 16,
883
+ 41,
884
+ 20,
885
+ 142,
886
+ 13,
887
+ 131,
888
+ 11,
889
+ 90,
890
+ 19,
891
+ 153,
892
+ 218,
893
+ 255,
894
+ 16,
895
+ 132,
896
+ 4,
897
+ 142,
898
+ 123,
899
+ 216,
900
+ 219,
901
+ 233,
902
+ 248,
903
+ 89
904
+ ];
905
+ };
906
+ };
42
907
  },
43
908
  {
44
909
  "name": "circuitBreaker";
45
- "isMut": true;
46
- "isSigner": false;
910
+ "writable": true;
47
911
  "pda": {
48
912
  "seeds": [
49
913
  {
50
914
  "kind": "const";
51
- "type": "string";
52
- "value": "account_windowed_breaker";
915
+ "value": [
916
+ 97,
917
+ 99,
918
+ 99,
919
+ 111,
920
+ 117,
921
+ 110,
922
+ 116,
923
+ 95,
924
+ 119,
925
+ 105,
926
+ 110,
927
+ 100,
928
+ 111,
929
+ 119,
930
+ 101,
931
+ 100,
932
+ 95,
933
+ 98,
934
+ 114,
935
+ 101,
936
+ 97,
937
+ 107,
938
+ 101,
939
+ 114
940
+ ];
53
941
  },
54
942
  {
55
943
  "kind": "account";
56
- "type": "publicKey";
57
- "account": "TokenAccount";
58
- "path": "rewards_escrow";
944
+ "path": "rewardsEscrow";
59
945
  }
60
946
  ];
61
- "programId": {
947
+ "program": {
62
948
  "kind": "account";
63
- "type": "publicKey";
64
- "path": "circuit_breaker_program";
949
+ "path": "circuitBreakerProgram";
65
950
  };
66
951
  };
67
952
  },
68
953
  {
69
954
  "name": "systemProgram";
70
- "isMut": false;
71
- "isSigner": false;
955
+ "address": "11111111111111111111111111111111";
72
956
  },
73
957
  {
74
958
  "name": "associatedTokenProgram";
75
- "isMut": false;
76
- "isSigner": false;
959
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
77
960
  },
78
961
  {
79
962
  "name": "circuitBreakerProgram";
80
- "isMut": false;
81
- "isSigner": false;
963
+ "address": "circAbx64bbsscPbQzZAUvuXpHqrCe6fLMzc2uKXz9g";
82
964
  },
83
965
  {
84
966
  "name": "tokenProgram";
85
- "isMut": false;
86
- "isSigner": false;
967
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
87
968
  }
88
969
  ];
89
970
  "args": [
90
971
  {
91
972
  "name": "args";
92
973
  "type": {
93
- "defined": "InitializeLazyDistributorArgsV0";
974
+ "defined": {
975
+ "name": "initializeLazyDistributorArgsV0";
976
+ };
94
977
  };
95
978
  }
96
979
  ];
97
980
  },
98
981
  {
99
982
  "name": "initializeRecipientV0";
983
+ "discriminator": [
984
+ 216,
985
+ 35,
986
+ 51,
987
+ 171,
988
+ 152,
989
+ 41,
990
+ 62,
991
+ 106
992
+ ];
100
993
  "accounts": [
101
994
  {
102
995
  "name": "payer";
103
- "isMut": true;
104
- "isSigner": true;
996
+ "writable": true;
997
+ "signer": true;
105
998
  },
106
999
  {
107
1000
  "name": "lazyDistributor";
108
- "isMut": false;
109
- "isSigner": false;
110
1001
  "pda": {
111
1002
  "seeds": [
112
1003
  {
113
1004
  "kind": "const";
114
- "type": "string";
115
- "value": "lazy_distributor";
1005
+ "value": [
1006
+ 108,
1007
+ 97,
1008
+ 122,
1009
+ 121,
1010
+ 95,
1011
+ 100,
1012
+ 105,
1013
+ 115,
1014
+ 116,
1015
+ 114,
1016
+ 105,
1017
+ 98,
1018
+ 117,
1019
+ 116,
1020
+ 111,
1021
+ 114
1022
+ ];
116
1023
  },
117
1024
  {
118
1025
  "kind": "account";
119
- "type": "publicKey";
120
- "account": "LazyDistributorV0";
121
1026
  "path": "lazy_distributor.rewards_mint";
1027
+ "account": "lazyDistributorV0";
122
1028
  }
123
1029
  ];
124
1030
  };
125
1031
  },
126
1032
  {
127
1033
  "name": "recipient";
128
- "isMut": true;
129
- "isSigner": false;
1034
+ "writable": true;
130
1035
  "pda": {
131
1036
  "seeds": [
132
1037
  {
133
1038
  "kind": "const";
134
- "type": "string";
135
- "value": "recipient";
1039
+ "value": [
1040
+ 114,
1041
+ 101,
1042
+ 99,
1043
+ 105,
1044
+ 112,
1045
+ 105,
1046
+ 101,
1047
+ 110,
1048
+ 116
1049
+ ];
136
1050
  },
137
1051
  {
138
1052
  "kind": "account";
139
- "type": "publicKey";
140
- "account": "LazyDistributorV0";
141
- "path": "lazy_distributor";
1053
+ "path": "lazyDistributor";
142
1054
  },
143
1055
  {
144
1056
  "kind": "account";
145
- "type": "publicKey";
146
- "account": "Mint";
147
1057
  "path": "mint";
148
1058
  }
149
1059
  ];
@@ -151,687 +1061,641 @@ export type LazyDistributor = {
151
1061
  },
152
1062
  {
153
1063
  "name": "mint";
154
- "isMut": false;
155
- "isSigner": false;
156
- },
157
- {
158
- "name": "targetMetadata";
159
- "isMut": false;
160
- "isSigner": false;
161
1064
  "relations": [
162
- "mint"
1065
+ "targetMetadata"
163
1066
  ];
164
1067
  },
165
1068
  {
166
- "name": "systemProgram";
167
- "isMut": false;
168
- "isSigner": false;
169
- }
170
- ];
171
- "args": [];
172
- },
173
- {
174
- "name": "initializeCompressionRecipientV0";
175
- "accounts": [
176
- {
177
- "name": "payer";
178
- "isMut": true;
179
- "isSigner": true;
180
- },
181
- {
182
- "name": "lazyDistributor";
183
- "isMut": false;
184
- "isSigner": false;
1069
+ "name": "targetMetadata";
185
1070
  "pda": {
186
1071
  "seeds": [
187
1072
  {
188
1073
  "kind": "const";
189
- "type": "string";
190
- "value": "lazy_distributor";
1074
+ "value": [
1075
+ 109,
1076
+ 101,
1077
+ 116,
1078
+ 97,
1079
+ 100,
1080
+ 97,
1081
+ 116,
1082
+ 97
1083
+ ];
1084
+ },
1085
+ {
1086
+ "kind": "const";
1087
+ "value": [
1088
+ 11,
1089
+ 112,
1090
+ 101,
1091
+ 177,
1092
+ 227,
1093
+ 209,
1094
+ 124,
1095
+ 69,
1096
+ 56,
1097
+ 157,
1098
+ 82,
1099
+ 127,
1100
+ 107,
1101
+ 4,
1102
+ 195,
1103
+ 205,
1104
+ 88,
1105
+ 184,
1106
+ 108,
1107
+ 115,
1108
+ 26,
1109
+ 160,
1110
+ 253,
1111
+ 181,
1112
+ 73,
1113
+ 182,
1114
+ 209,
1115
+ 188,
1116
+ 3,
1117
+ 248,
1118
+ 41,
1119
+ 70
1120
+ ];
191
1121
  },
192
1122
  {
193
1123
  "kind": "account";
194
- "type": "publicKey";
195
- "account": "LazyDistributorV0";
196
- "path": "lazy_distributor.rewards_mint";
1124
+ "path": "mint";
197
1125
  }
198
1126
  ];
1127
+ "program": {
1128
+ "kind": "const";
1129
+ "value": [
1130
+ 11,
1131
+ 112,
1132
+ 101,
1133
+ 177,
1134
+ 227,
1135
+ 209,
1136
+ 124,
1137
+ 69,
1138
+ 56,
1139
+ 157,
1140
+ 82,
1141
+ 127,
1142
+ 107,
1143
+ 4,
1144
+ 195,
1145
+ 205,
1146
+ 88,
1147
+ 184,
1148
+ 108,
1149
+ 115,
1150
+ 26,
1151
+ 160,
1152
+ 253,
1153
+ 181,
1154
+ 73,
1155
+ 182,
1156
+ 209,
1157
+ 188,
1158
+ 3,
1159
+ 248,
1160
+ 41,
1161
+ 70
1162
+ ];
1163
+ };
199
1164
  };
200
1165
  },
201
- {
202
- "name": "recipient";
203
- "isMut": true;
204
- "isSigner": false;
205
- },
206
- {
207
- "name": "merkleTree";
208
- "isMut": false;
209
- "isSigner": false;
210
- },
211
- {
212
- "name": "owner";
213
- "isMut": false;
214
- "isSigner": false;
215
- },
216
- {
217
- "name": "delegate";
218
- "isMut": false;
219
- "isSigner": false;
220
- },
221
- {
222
- "name": "compressionProgram";
223
- "isMut": false;
224
- "isSigner": false;
225
- },
226
1166
  {
227
1167
  "name": "systemProgram";
228
- "isMut": false;
229
- "isSigner": false;
230
- }
231
- ];
232
- "args": [
233
- {
234
- "name": "args";
235
- "type": {
236
- "defined": "InitializeCompressionRecipientArgsV0";
237
- };
1168
+ "address": "11111111111111111111111111111111";
238
1169
  }
239
1170
  ];
1171
+ "args": [];
240
1172
  },
241
1173
  {
242
1174
  "name": "setCurrentRewardsV0";
1175
+ "discriminator": [
1176
+ 251,
1177
+ 237,
1178
+ 190,
1179
+ 128,
1180
+ 228,
1181
+ 195,
1182
+ 93,
1183
+ 239
1184
+ ];
243
1185
  "accounts": [
244
1186
  {
245
1187
  "name": "payer";
246
- "isMut": true;
247
- "isSigner": true;
1188
+ "writable": true;
1189
+ "signer": true;
248
1190
  },
249
1191
  {
250
1192
  "name": "lazyDistributor";
251
- "isMut": false;
252
- "isSigner": false;
253
- },
254
- {
255
- "name": "recipient";
256
- "isMut": true;
257
- "isSigner": false;
258
1193
  "relations": [
259
- "lazy_distributor"
260
- ];
261
- },
262
- {
263
- "name": "oracle";
264
- "isMut": false;
265
- "isSigner": true;
266
- },
267
- {
268
- "name": "systemProgram";
269
- "isMut": false;
270
- "isSigner": false;
271
- }
272
- ];
273
- "args": [
274
- {
275
- "name": "args";
276
- "type": {
277
- "defined": "SetCurrentRewardsArgsV0";
278
- };
279
- }
280
- ];
281
- },
282
- {
283
- "name": "distributeRewardsV0";
284
- "accounts": [
285
- {
286
- "name": "common";
287
- "accounts": [
288
- {
289
- "name": "payer";
290
- "isMut": true;
291
- "isSigner": true;
292
- },
293
- {
294
- "name": "lazyDistributor";
295
- "isMut": false;
296
- "isSigner": false;
297
- "relations": [
298
- "rewards_mint",
299
- "rewards_escrow"
300
- ];
301
- },
302
- {
303
- "name": "recipient";
304
- "isMut": true;
305
- "isSigner": false;
306
- "relations": [
307
- "lazy_distributor"
308
- ];
309
- },
310
- {
311
- "name": "rewardsMint";
312
- "isMut": false;
313
- "isSigner": false;
314
- },
315
- {
316
- "name": "rewardsEscrow";
317
- "isMut": true;
318
- "isSigner": false;
319
- },
320
- {
321
- "name": "circuitBreaker";
322
- "isMut": true;
323
- "isSigner": false;
324
- "pda": {
325
- "seeds": [
326
- {
327
- "kind": "const";
328
- "type": "string";
329
- "value": "account_windowed_breaker";
330
- },
331
- {
332
- "kind": "account";
333
- "type": "publicKey";
334
- "account": "TokenAccount";
335
- "path": "rewards_escrow";
336
- }
337
- ];
338
- "programId": {
339
- "kind": "account";
340
- "type": "publicKey";
341
- "path": "circuit_breaker_program";
342
- };
343
- };
344
- },
345
- {
346
- "name": "owner";
347
- "isMut": true;
348
- "isSigner": false;
349
- "docs": [
350
- "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
351
- ];
352
- },
353
- {
354
- "name": "destinationAccount";
355
- "isMut": true;
356
- "isSigner": false;
357
- },
358
- {
359
- "name": "associatedTokenProgram";
360
- "isMut": false;
361
- "isSigner": false;
362
- },
363
- {
364
- "name": "circuitBreakerProgram";
365
- "isMut": false;
366
- "isSigner": false;
367
- },
368
- {
369
- "name": "systemProgram";
370
- "isMut": false;
371
- "isSigner": false;
372
- },
373
- {
374
- "name": "tokenProgram";
375
- "isMut": false;
376
- "isSigner": false;
377
- }
1194
+ "recipient"
378
1195
  ];
379
1196
  },
380
- {
381
- "name": "recipientMintAccount";
382
- "isMut": false;
383
- "isSigner": false;
384
- }
385
- ];
386
- "args": [];
387
- },
388
- {
389
- "name": "distributeCompressionRewardsV0";
390
- "accounts": [
391
- {
392
- "name": "common";
393
- "accounts": [
394
- {
395
- "name": "payer";
396
- "isMut": true;
397
- "isSigner": true;
398
- },
399
- {
400
- "name": "lazyDistributor";
401
- "isMut": false;
402
- "isSigner": false;
403
- "relations": [
404
- "rewards_mint",
405
- "rewards_escrow"
406
- ];
407
- },
408
- {
409
- "name": "recipient";
410
- "isMut": true;
411
- "isSigner": false;
412
- "relations": [
413
- "lazy_distributor"
414
- ];
415
- },
416
- {
417
- "name": "rewardsMint";
418
- "isMut": false;
419
- "isSigner": false;
420
- },
421
- {
422
- "name": "rewardsEscrow";
423
- "isMut": true;
424
- "isSigner": false;
425
- },
426
- {
427
- "name": "circuitBreaker";
428
- "isMut": true;
429
- "isSigner": false;
430
- "pda": {
431
- "seeds": [
432
- {
433
- "kind": "const";
434
- "type": "string";
435
- "value": "account_windowed_breaker";
436
- },
437
- {
438
- "kind": "account";
439
- "type": "publicKey";
440
- "account": "TokenAccount";
441
- "path": "rewards_escrow";
442
- }
443
- ];
444
- "programId": {
445
- "kind": "account";
446
- "type": "publicKey";
447
- "path": "circuit_breaker_program";
448
- };
449
- };
450
- },
451
- {
452
- "name": "owner";
453
- "isMut": true;
454
- "isSigner": false;
455
- "docs": [
456
- "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
457
- ];
458
- },
459
- {
460
- "name": "destinationAccount";
461
- "isMut": true;
462
- "isSigner": false;
463
- },
464
- {
465
- "name": "associatedTokenProgram";
466
- "isMut": false;
467
- "isSigner": false;
468
- },
469
- {
470
- "name": "circuitBreakerProgram";
471
- "isMut": false;
472
- "isSigner": false;
473
- },
474
- {
475
- "name": "systemProgram";
476
- "isMut": false;
477
- "isSigner": false;
478
- },
479
- {
480
- "name": "tokenProgram";
481
- "isMut": false;
482
- "isSigner": false;
483
- }
484
- ];
1197
+ {
1198
+ "name": "recipient";
1199
+ "writable": true;
485
1200
  },
486
1201
  {
487
- "name": "merkleTree";
488
- "isMut": false;
489
- "isSigner": false;
1202
+ "name": "oracle";
1203
+ "signer": true;
490
1204
  },
491
1205
  {
492
- "name": "compressionProgram";
493
- "isMut": false;
494
- "isSigner": false;
1206
+ "name": "systemProgram";
1207
+ "address": "11111111111111111111111111111111";
495
1208
  }
496
1209
  ];
497
1210
  "args": [
498
1211
  {
499
1212
  "name": "args";
500
1213
  "type": {
501
- "defined": "DistributeCompressionRewardsArgsV0";
1214
+ "defined": {
1215
+ "name": "setCurrentRewardsArgsV0";
1216
+ };
502
1217
  };
503
1218
  }
504
1219
  ];
505
1220
  },
506
1221
  {
507
- "name": "updateLazyDistributorV0";
1222
+ "name": "setCurrentRewardsV1";
1223
+ "discriminator": [
1224
+ 62,
1225
+ 50,
1226
+ 93,
1227
+ 41,
1228
+ 153,
1229
+ 202,
1230
+ 13,
1231
+ 209
1232
+ ];
508
1233
  "accounts": [
1234
+ {
1235
+ "name": "payer";
1236
+ "writable": true;
1237
+ "signer": true;
1238
+ },
509
1239
  {
510
1240
  "name": "lazyDistributor";
511
- "isMut": true;
512
- "isSigner": false;
513
- "pda": {
514
- "seeds": [
515
- {
516
- "kind": "const";
517
- "type": "string";
518
- "value": "lazy_distributor";
519
- },
520
- {
521
- "kind": "account";
522
- "type": "publicKey";
523
- "account": "Mint";
524
- "path": "rewards_mint";
525
- }
526
- ];
527
- };
528
1241
  "relations": [
529
- "authority",
530
- "rewards_mint"
1242
+ "recipient"
531
1243
  ];
532
1244
  },
533
1245
  {
534
- "name": "rewardsMint";
535
- "isMut": false;
536
- "isSigner": false;
1246
+ "name": "recipient";
1247
+ "writable": true;
537
1248
  },
538
1249
  {
539
- "name": "authority";
540
- "isMut": false;
541
- "isSigner": true;
1250
+ "name": "sysvarInstructions";
1251
+ "docs": [
1252
+ "the supplied Sysvar could be anything else.",
1253
+ "The Instruction Sysvar has not been implemented",
1254
+ "in the Anchor framework yet, so this is the safe approach."
1255
+ ];
1256
+ "address": "Sysvar1nstructions1111111111111111111111111";
1257
+ },
1258
+ {
1259
+ "name": "systemProgram";
1260
+ "address": "11111111111111111111111111111111";
542
1261
  }
543
1262
  ];
544
1263
  "args": [
545
1264
  {
546
1265
  "name": "args";
547
1266
  "type": {
548
- "defined": "UpdateLazyDistributorArgsV0";
1267
+ "defined": {
1268
+ "name": "setCurrentRewardsArgsV0";
1269
+ };
549
1270
  };
550
1271
  }
551
1272
  ];
552
1273
  },
1274
+ {
1275
+ "name": "tempUpdateMatchingDestination";
1276
+ "discriminator": [
1277
+ 190,
1278
+ 245,
1279
+ 242,
1280
+ 31,
1281
+ 223,
1282
+ 18,
1283
+ 229,
1284
+ 223
1285
+ ];
1286
+ "accounts": [
1287
+ {
1288
+ "name": "authority";
1289
+ "signer": true;
1290
+ "address": "hprdnjkbziK8NqhThmAn5Gu4XqrBbctX8du4PfJdgvW";
1291
+ },
1292
+ {
1293
+ "name": "originalRecipient";
1294
+ },
1295
+ {
1296
+ "name": "recipient";
1297
+ "writable": true;
1298
+ }
1299
+ ];
1300
+ "args": [];
1301
+ },
553
1302
  {
554
1303
  "name": "updateCompressionDestinationV0";
1304
+ "discriminator": [
1305
+ 117,
1306
+ 200,
1307
+ 55,
1308
+ 44,
1309
+ 62,
1310
+ 195,
1311
+ 201,
1312
+ 81
1313
+ ];
555
1314
  "accounts": [
556
1315
  {
557
1316
  "name": "recipient";
558
- "isMut": true;
559
- "isSigner": false;
1317
+ "writable": true;
560
1318
  },
561
1319
  {
562
1320
  "name": "owner";
563
- "isMut": false;
564
- "isSigner": true;
1321
+ "signer": true;
565
1322
  },
566
1323
  {
567
1324
  "name": "destination";
568
- "isMut": false;
569
- "isSigner": false;
570
1325
  },
571
1326
  {
572
1327
  "name": "merkleTree";
573
- "isMut": false;
574
- "isSigner": false;
575
1328
  },
576
1329
  {
577
1330
  "name": "compressionProgram";
578
- "isMut": false;
579
- "isSigner": false;
1331
+ "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK";
580
1332
  }
581
1333
  ];
582
1334
  "args": [
583
1335
  {
584
1336
  "name": "args";
585
1337
  "type": {
586
- "defined": "UpdateCompressionDestinationArgsV0";
1338
+ "defined": {
1339
+ "name": "updateCompressionDestinationArgsV0";
1340
+ };
587
1341
  };
588
1342
  }
589
1343
  ];
590
1344
  },
591
1345
  {
592
1346
  "name": "updateDestinationV0";
1347
+ "discriminator": [
1348
+ 196,
1349
+ 237,
1350
+ 208,
1351
+ 178,
1352
+ 104,
1353
+ 7,
1354
+ 36,
1355
+ 14
1356
+ ];
593
1357
  "accounts": [
594
1358
  {
595
1359
  "name": "recipient";
596
- "isMut": true;
597
- "isSigner": false;
1360
+ "writable": true;
598
1361
  },
599
1362
  {
600
1363
  "name": "owner";
601
- "isMut": false;
602
- "isSigner": true;
1364
+ "signer": true;
603
1365
  },
604
1366
  {
605
1367
  "name": "destination";
606
- "isMut": false;
607
- "isSigner": false;
608
1368
  },
609
1369
  {
610
1370
  "name": "recipientMintAccount";
611
- "isMut": false;
612
- "isSigner": false;
613
1371
  }
614
1372
  ];
615
1373
  "args": [];
616
1374
  },
617
1375
  {
618
- "name": "distributeCustomDestinationV0";
1376
+ "name": "updateLazyDistributorV0";
1377
+ "discriminator": [
1378
+ 73,
1379
+ 118,
1380
+ 167,
1381
+ 236,
1382
+ 211,
1383
+ 213,
1384
+ 158,
1385
+ 214
1386
+ ];
619
1387
  "accounts": [
620
1388
  {
621
- "name": "common";
622
- "accounts": [
623
- {
624
- "name": "payer";
625
- "isMut": true;
626
- "isSigner": true;
627
- },
628
- {
629
- "name": "lazyDistributor";
630
- "isMut": false;
631
- "isSigner": false;
632
- "relations": [
633
- "rewards_mint",
634
- "rewards_escrow"
635
- ];
636
- },
637
- {
638
- "name": "recipient";
639
- "isMut": true;
640
- "isSigner": false;
641
- "relations": [
642
- "lazy_distributor"
643
- ];
644
- },
645
- {
646
- "name": "rewardsMint";
647
- "isMut": false;
648
- "isSigner": false;
649
- },
650
- {
651
- "name": "rewardsEscrow";
652
- "isMut": true;
653
- "isSigner": false;
654
- },
655
- {
656
- "name": "circuitBreaker";
657
- "isMut": true;
658
- "isSigner": false;
659
- "pda": {
660
- "seeds": [
661
- {
662
- "kind": "const";
663
- "type": "string";
664
- "value": "account_windowed_breaker";
665
- },
666
- {
667
- "kind": "account";
668
- "type": "publicKey";
669
- "account": "TokenAccount";
670
- "path": "rewards_escrow";
671
- }
1389
+ "name": "lazyDistributor";
1390
+ "writable": true;
1391
+ "pda": {
1392
+ "seeds": [
1393
+ {
1394
+ "kind": "const";
1395
+ "value": [
1396
+ 108,
1397
+ 97,
1398
+ 122,
1399
+ 121,
1400
+ 95,
1401
+ 100,
1402
+ 105,
1403
+ 115,
1404
+ 116,
1405
+ 114,
1406
+ 105,
1407
+ 98,
1408
+ 117,
1409
+ 116,
1410
+ 111,
1411
+ 114
672
1412
  ];
673
- "programId": {
674
- "kind": "account";
675
- "type": "publicKey";
676
- "path": "circuit_breaker_program";
677
- };
678
- };
679
- },
680
- {
681
- "name": "owner";
682
- "isMut": true;
683
- "isSigner": false;
684
- "docs": [
685
- "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
686
- ];
687
- },
688
- {
689
- "name": "destinationAccount";
690
- "isMut": true;
691
- "isSigner": false;
692
- },
693
- {
694
- "name": "associatedTokenProgram";
695
- "isMut": false;
696
- "isSigner": false;
697
- },
698
- {
699
- "name": "circuitBreakerProgram";
700
- "isMut": false;
701
- "isSigner": false;
702
- },
703
- {
704
- "name": "systemProgram";
705
- "isMut": false;
706
- "isSigner": false;
707
- },
708
- {
709
- "name": "tokenProgram";
710
- "isMut": false;
711
- "isSigner": false;
712
- }
1413
+ },
1414
+ {
1415
+ "kind": "account";
1416
+ "path": "rewardsMint";
1417
+ }
1418
+ ];
1419
+ };
1420
+ },
1421
+ {
1422
+ "name": "rewardsMint";
1423
+ "relations": [
1424
+ "lazyDistributor"
1425
+ ];
1426
+ },
1427
+ {
1428
+ "name": "authority";
1429
+ "signer": true;
1430
+ "relations": [
1431
+ "lazyDistributor"
713
1432
  ];
714
1433
  }
715
1434
  ];
716
- "args": [];
1435
+ "args": [
1436
+ {
1437
+ "name": "args";
1438
+ "type": {
1439
+ "defined": {
1440
+ "name": "updateLazyDistributorArgsV0";
1441
+ };
1442
+ };
1443
+ }
1444
+ ];
717
1445
  }
718
1446
  ];
719
1447
  "accounts": [
1448
+ {
1449
+ "name": "accountWindowedCircuitBreakerV0";
1450
+ "discriminator": [
1451
+ 134,
1452
+ 11,
1453
+ 69,
1454
+ 100,
1455
+ 90,
1456
+ 132,
1457
+ 174,
1458
+ 187
1459
+ ];
1460
+ },
720
1461
  {
721
1462
  "name": "lazyDistributorV0";
1463
+ "discriminator": [
1464
+ 135,
1465
+ 186,
1466
+ 185,
1467
+ 252,
1468
+ 10,
1469
+ 77,
1470
+ 99,
1471
+ 167
1472
+ ];
1473
+ },
1474
+ {
1475
+ "name": "recipientV0";
1476
+ "discriminator": [
1477
+ 174,
1478
+ 14,
1479
+ 199,
1480
+ 217,
1481
+ 206,
1482
+ 108,
1483
+ 154,
1484
+ 50
1485
+ ];
1486
+ },
1487
+ {
1488
+ "name": "remoteTaskTransactionV0";
1489
+ "discriminator": [
1490
+ 244,
1491
+ 225,
1492
+ 238,
1493
+ 116,
1494
+ 199,
1495
+ 12,
1496
+ 9,
1497
+ 191
1498
+ ];
1499
+ },
1500
+ {
1501
+ "name": "setCurrentRewardsTransactionV0";
1502
+ "discriminator": [
1503
+ 49,
1504
+ 213,
1505
+ 97,
1506
+ 190,
1507
+ 211,
1508
+ 21,
1509
+ 239,
1510
+ 202
1511
+ ];
1512
+ }
1513
+ ];
1514
+ "errors": [
1515
+ {
1516
+ "code": 6000;
1517
+ "name": "invalidDataIncrease";
1518
+ "msg": "The realloc increase was too large";
1519
+ },
1520
+ {
1521
+ "code": 6001;
1522
+ "name": "arithmeticError";
1523
+ "msg": "Error in arithmetic";
1524
+ },
1525
+ {
1526
+ "code": 6002;
1527
+ "name": "invalidAsset";
1528
+ "msg": "Provided asset was invalid";
1529
+ },
1530
+ {
1531
+ "code": 6003;
1532
+ "name": "invalidOracleIndex";
1533
+ "msg": "Oracle index was out of range";
1534
+ },
1535
+ {
1536
+ "code": 6004;
1537
+ "name": "invalidApproverSignature";
1538
+ "msg": "Approver signature required";
1539
+ },
1540
+ {
1541
+ "code": 6005;
1542
+ "name": "customDestination";
1543
+ "msg": "This recipient uses a custom destination. Use distribute_custom_destination_v0";
1544
+ },
1545
+ {
1546
+ "code": 6006;
1547
+ "name": "invalidOracle";
1548
+ "msg": "Invalid oracle";
1549
+ },
1550
+ {
1551
+ "code": 6007;
1552
+ "name": "invalidLazyDistributor";
1553
+ "msg": "Invalid lazy distributor";
1554
+ },
1555
+ {
1556
+ "code": 6008;
1557
+ "name": "invalidCurrentRewards";
1558
+ "msg": "Invalid current rewards";
1559
+ },
1560
+ {
1561
+ "code": 6009;
1562
+ "name": "invalidDiscriminator";
1563
+ "msg": "Invalid discriminator";
1564
+ },
1565
+ {
1566
+ "code": 6010;
1567
+ "name": "sigVerificationFailed";
1568
+ "msg": "Signature verification failed";
1569
+ },
1570
+ {
1571
+ "code": 6011;
1572
+ "name": "dummyInstruction";
1573
+ "msg": "Don't use the dummy instruction";
1574
+ }
1575
+ ];
1576
+ "types": [
1577
+ {
1578
+ "name": "accountWindowedCircuitBreakerV0";
722
1579
  "type": {
723
1580
  "kind": "struct";
724
1581
  "fields": [
725
1582
  {
726
- "name": "version";
727
- "type": "u16";
1583
+ "name": "tokenAccount";
1584
+ "type": "pubkey";
728
1585
  },
729
1586
  {
730
- "name": "rewardsMint";
731
- "type": "publicKey";
1587
+ "name": "authority";
1588
+ "type": "pubkey";
732
1589
  },
733
1590
  {
734
- "name": "rewardsEscrow";
735
- "type": "publicKey";
1591
+ "name": "owner";
1592
+ "type": "pubkey";
736
1593
  },
737
1594
  {
738
- "name": "authority";
739
- "type": "publicKey";
1595
+ "name": "config";
1596
+ "type": {
1597
+ "defined": {
1598
+ "name": "circuit_breaker::state::WindowedCircuitBreakerConfigV0";
1599
+ };
1600
+ };
740
1601
  },
741
1602
  {
742
- "name": "oracles";
1603
+ "name": "lastWindow";
743
1604
  "type": {
744
- "vec": {
745
- "defined": "OracleConfigV0";
1605
+ "defined": {
1606
+ "name": "windowV0";
746
1607
  };
747
1608
  };
748
1609
  },
749
1610
  {
750
1611
  "name": "bumpSeed";
751
1612
  "type": "u8";
752
- },
753
- {
754
- "name": "approver";
755
- "type": {
756
- "option": "publicKey";
757
- };
758
1613
  }
759
1614
  ];
760
1615
  };
761
1616
  },
762
1617
  {
763
- "name": "recipientV0";
1618
+ "name": "compiledInstructionV0";
764
1619
  "type": {
765
1620
  "kind": "struct";
766
1621
  "fields": [
767
1622
  {
768
- "name": "lazyDistributor";
769
- "type": "publicKey";
770
- },
771
- {
772
- "name": "asset";
773
- "type": "publicKey";
774
- },
775
- {
776
- "name": "totalRewards";
777
- "type": "u64";
778
- },
779
- {
780
- "name": "currentConfigVersion";
781
- "type": "u16";
782
- },
783
- {
784
- "name": "currentRewards";
785
- "type": {
786
- "vec": {
787
- "option": "u64";
788
- };
789
- };
790
- },
791
- {
792
- "name": "bumpSeed";
1623
+ "name": "programIdIndex";
1624
+ "docs": [
1625
+ "Index into the transaction keys array indicating the program account that executes this instruction."
1626
+ ];
793
1627
  "type": "u8";
794
1628
  },
795
1629
  {
796
- "name": "reserved";
797
- "type": "u64";
1630
+ "name": "accounts";
1631
+ "docs": [
1632
+ "Ordered indices into the transaction keys array indicating which accounts to pass to the program."
1633
+ ];
1634
+ "type": "bytes";
798
1635
  },
799
1636
  {
800
- "name": "destination";
1637
+ "name": "data";
801
1638
  "docs": [
802
- "Pubkey::Default if not being used."
1639
+ "The program input data."
803
1640
  ];
804
- "type": "publicKey";
1641
+ "type": "bytes";
805
1642
  }
806
1643
  ];
807
1644
  };
808
- }
809
- ];
810
- "types": [
1645
+ },
811
1646
  {
812
- "name": "WindowedCircuitBreakerConfigV0";
1647
+ "name": "compiledTransactionV0";
813
1648
  "type": {
814
1649
  "kind": "struct";
815
1650
  "fields": [
816
1651
  {
817
- "name": "windowSizeSeconds";
818
- "type": "u64";
1652
+ "name": "numRwSigners";
1653
+ "type": "u8";
1654
+ },
1655
+ {
1656
+ "name": "numRoSigners";
1657
+ "type": "u8";
1658
+ },
1659
+ {
1660
+ "name": "numRw";
1661
+ "type": "u8";
1662
+ },
1663
+ {
1664
+ "name": "accounts";
1665
+ "type": {
1666
+ "vec": "pubkey";
1667
+ };
819
1668
  },
820
1669
  {
821
- "name": "thresholdType";
1670
+ "name": "instructions";
822
1671
  "type": {
823
- "defined": "ThresholdType";
1672
+ "vec": {
1673
+ "defined": {
1674
+ "name": "compiledInstructionV0";
1675
+ };
1676
+ };
824
1677
  };
825
1678
  },
826
1679
  {
827
- "name": "threshold";
828
- "type": "u64";
1680
+ "name": "signerSeeds";
1681
+ "docs": [
1682
+ "Additional signer seeds. Should include bump. Useful for things like initializing a mint where",
1683
+ "you cannot pass a keypair.",
1684
+ "Note that these seeds will be prefixed with \"custom\", task_queue.key",
1685
+ "and the bump you pass and account should be consistent with this. But to save space",
1686
+ "in the instruction, they should be ommitted here. See tests for examples"
1687
+ ];
1688
+ "type": {
1689
+ "vec": {
1690
+ "vec": "bytes";
1691
+ };
1692
+ };
829
1693
  }
830
1694
  ];
831
1695
  };
832
1696
  },
833
1697
  {
834
- "name": "DistributeCompressionRewardsArgsV0";
1698
+ "name": "distributeCompressionRewardsArgsV0";
835
1699
  "type": {
836
1700
  "kind": "struct";
837
1701
  "fields": [
@@ -870,7 +1734,7 @@ export type LazyDistributor = {
870
1734
  };
871
1735
  },
872
1736
  {
873
- "name": "InitializeCompressionRecipientArgsV0";
1737
+ "name": "initializeCompressionRecipientArgsV0";
874
1738
  "type": {
875
1739
  "kind": "struct";
876
1740
  "fields": [
@@ -909,7 +1773,7 @@ export type LazyDistributor = {
909
1773
  };
910
1774
  },
911
1775
  {
912
- "name": "InitializeLazyDistributorArgsV0";
1776
+ "name": "initializeLazyDistributorArgsV0";
913
1777
  "type": {
914
1778
  "kind": "struct";
915
1779
  "fields": [
@@ -917,124 +1781,85 @@ export type LazyDistributor = {
917
1781
  "name": "oracles";
918
1782
  "type": {
919
1783
  "vec": {
920
- "defined": "OracleConfigV0";
1784
+ "defined": {
1785
+ "name": "oracleConfigV0";
1786
+ };
921
1787
  };
922
1788
  };
923
1789
  },
924
1790
  {
925
1791
  "name": "authority";
926
- "type": "publicKey";
1792
+ "type": "pubkey";
927
1793
  },
928
1794
  {
929
1795
  "name": "windowConfig";
930
1796
  "type": {
931
- "defined": "WindowedCircuitBreakerConfigV0";
1797
+ "defined": {
1798
+ "name": "lazy_distributor::circuit_breaker::WindowedCircuitBreakerConfigV0";
1799
+ };
932
1800
  };
933
1801
  },
934
1802
  {
935
1803
  "name": "approver";
936
1804
  "type": {
937
- "option": "publicKey";
1805
+ "option": "pubkey";
938
1806
  };
939
1807
  }
940
1808
  ];
941
1809
  };
942
1810
  },
943
1811
  {
944
- "name": "SetCurrentRewardsArgsV0";
1812
+ "name": "lazyDistributorV0";
945
1813
  "type": {
946
1814
  "kind": "struct";
947
1815
  "fields": [
948
1816
  {
949
- "name": "oracleIndex";
1817
+ "name": "version";
950
1818
  "type": "u16";
951
1819
  },
952
1820
  {
953
- "name": "currentRewards";
954
- "type": "u64";
955
- }
956
- ];
957
- };
958
- },
959
- {
960
- "name": "UpdateCompressionDestinationArgsV0";
961
- "type": {
962
- "kind": "struct";
963
- "fields": [
964
- {
965
- "name": "dataHash";
966
- "type": {
967
- "array": [
968
- "u8",
969
- 32
970
- ];
971
- };
1821
+ "name": "rewardsMint";
1822
+ "type": "pubkey";
972
1823
  },
973
1824
  {
974
- "name": "creatorHash";
975
- "type": {
976
- "array": [
977
- "u8",
978
- 32
979
- ];
980
- };
1825
+ "name": "rewardsEscrow";
1826
+ "type": "pubkey";
981
1827
  },
982
1828
  {
983
- "name": "root";
984
- "type": {
985
- "array": [
986
- "u8",
987
- 32
988
- ];
989
- };
1829
+ "name": "authority";
1830
+ "type": "pubkey";
990
1831
  },
991
- {
992
- "name": "index";
993
- "type": "u32";
994
- }
995
- ];
996
- };
997
- },
998
- {
999
- "name": "UpdateLazyDistributorArgsV0";
1000
- "type": {
1001
- "kind": "struct";
1002
- "fields": [
1003
1832
  {
1004
1833
  "name": "oracles";
1005
1834
  "type": {
1006
- "option": {
1007
- "vec": {
1008
- "defined": "OracleConfigV0";
1835
+ "vec": {
1836
+ "defined": {
1837
+ "name": "oracleConfigV0";
1009
1838
  };
1010
1839
  };
1011
1840
  };
1012
1841
  },
1013
1842
  {
1014
- "name": "authority";
1015
- "type": {
1016
- "option": "publicKey";
1017
- };
1843
+ "name": "bumpSeed";
1844
+ "type": "u8";
1018
1845
  },
1019
1846
  {
1020
1847
  "name": "approver";
1021
1848
  "type": {
1022
- "option": {
1023
- "option": "publicKey";
1024
- };
1849
+ "option": "pubkey";
1025
1850
  };
1026
1851
  }
1027
1852
  ];
1028
1853
  };
1029
1854
  },
1030
1855
  {
1031
- "name": "OracleConfigV0";
1856
+ "name": "oracleConfigV0";
1032
1857
  "type": {
1033
1858
  "kind": "struct";
1034
1859
  "fields": [
1035
1860
  {
1036
1861
  "name": "oracle";
1037
- "type": "publicKey";
1862
+ "type": "pubkey";
1038
1863
  },
1039
1864
  {
1040
1865
  "name": "url";
@@ -1044,157 +1869,184 @@ export type LazyDistributor = {
1044
1869
  };
1045
1870
  },
1046
1871
  {
1047
- "name": "Creator";
1872
+ "name": "recipientV0";
1048
1873
  "type": {
1049
1874
  "kind": "struct";
1050
1875
  "fields": [
1051
1876
  {
1052
- "name": "address";
1053
- "type": "publicKey";
1877
+ "name": "lazyDistributor";
1878
+ "type": "pubkey";
1879
+ },
1880
+ {
1881
+ "name": "asset";
1882
+ "type": "pubkey";
1883
+ },
1884
+ {
1885
+ "name": "totalRewards";
1886
+ "type": "u64";
1887
+ },
1888
+ {
1889
+ "name": "currentConfigVersion";
1890
+ "type": "u16";
1054
1891
  },
1055
1892
  {
1056
- "name": "verified";
1057
- "type": "bool";
1893
+ "name": "currentRewards";
1894
+ "type": {
1895
+ "vec": {
1896
+ "option": "u64";
1897
+ };
1898
+ };
1058
1899
  },
1059
1900
  {
1060
- "name": "share";
1901
+ "name": "bumpSeed";
1061
1902
  "type": "u8";
1903
+ },
1904
+ {
1905
+ "name": "reserved";
1906
+ "type": "u64";
1907
+ },
1908
+ {
1909
+ "name": "destination";
1910
+ "docs": [
1911
+ "Pubkey::Default if not being used."
1912
+ ];
1913
+ "type": "pubkey";
1062
1914
  }
1063
1915
  ];
1064
1916
  };
1065
1917
  },
1066
1918
  {
1067
- "name": "Uses";
1919
+ "name": "remoteTaskTransactionV0";
1068
1920
  "type": {
1069
1921
  "kind": "struct";
1070
1922
  "fields": [
1071
1923
  {
1072
- "name": "useMethod";
1924
+ "name": "verificationHash";
1073
1925
  "type": {
1074
- "defined": "UseMethod";
1926
+ "array": [
1927
+ "u8",
1928
+ 32
1929
+ ];
1075
1930
  };
1076
1931
  },
1077
1932
  {
1078
- "name": "remaining";
1079
- "type": "u64";
1080
- },
1081
- {
1082
- "name": "total";
1083
- "type": "u64";
1933
+ "name": "transaction";
1934
+ "type": {
1935
+ "defined": {
1936
+ "name": "compiledTransactionV0";
1937
+ };
1938
+ };
1084
1939
  }
1085
1940
  ];
1086
1941
  };
1087
1942
  },
1088
1943
  {
1089
- "name": "Collection";
1944
+ "name": "setCurrentRewardsArgsV0";
1090
1945
  "type": {
1091
1946
  "kind": "struct";
1092
1947
  "fields": [
1093
1948
  {
1094
- "name": "verified";
1095
- "type": "bool";
1949
+ "name": "oracleIndex";
1950
+ "type": "u16";
1096
1951
  },
1097
1952
  {
1098
- "name": "key";
1099
- "type": "publicKey";
1953
+ "name": "currentRewards";
1954
+ "type": "u64";
1100
1955
  }
1101
1956
  ];
1102
1957
  };
1103
1958
  },
1104
1959
  {
1105
- "name": "MetadataArgs";
1960
+ "name": "setCurrentRewardsTransactionV0";
1106
1961
  "type": {
1107
1962
  "kind": "struct";
1108
1963
  "fields": [
1109
1964
  {
1110
- "name": "name";
1111
- "docs": [
1112
- "The name of the asset"
1113
- ];
1114
- "type": "string";
1115
- },
1116
- {
1117
- "name": "symbol";
1118
- "docs": [
1119
- "The symbol for the asset"
1120
- ];
1121
- "type": "string";
1122
- },
1123
- {
1124
- "name": "uri";
1125
- "docs": [
1126
- "URI pointing to JSON representing the asset"
1127
- ];
1128
- "type": "string";
1965
+ "name": "lazyDistributor";
1966
+ "type": "pubkey";
1129
1967
  },
1130
1968
  {
1131
- "name": "sellerFeeBasisPoints";
1132
- "docs": [
1133
- "Royalty basis points that goes to creators in secondary sales (0-10000)"
1134
- ];
1969
+ "name": "oracleIndex";
1135
1970
  "type": "u16";
1136
1971
  },
1137
1972
  {
1138
- "name": "primarySaleHappened";
1139
- "type": "bool";
1973
+ "name": "currentRewards";
1974
+ "type": "u64";
1140
1975
  },
1141
1976
  {
1142
- "name": "isMutable";
1143
- "type": "bool";
1144
- },
1977
+ "name": "asset";
1978
+ "type": "pubkey";
1979
+ }
1980
+ ];
1981
+ };
1982
+ },
1983
+ {
1984
+ "name": "updateCompressionDestinationArgsV0";
1985
+ "type": {
1986
+ "kind": "struct";
1987
+ "fields": [
1145
1988
  {
1146
- "name": "editionNonce";
1147
- "docs": [
1148
- "nonce for easy calculation of editions, if present"
1149
- ];
1989
+ "name": "dataHash";
1150
1990
  "type": {
1151
- "option": "u8";
1991
+ "array": [
1992
+ "u8",
1993
+ 32
1994
+ ];
1152
1995
  };
1153
1996
  },
1154
1997
  {
1155
- "name": "tokenStandard";
1156
- "docs": [
1157
- "Since we cannot easily change Metadata, we add the new DataV2 fields here at the end."
1158
- ];
1998
+ "name": "creatorHash";
1159
1999
  "type": {
1160
- "option": {
1161
- "defined": "TokenStandard";
1162
- };
2000
+ "array": [
2001
+ "u8",
2002
+ 32
2003
+ ];
1163
2004
  };
1164
2005
  },
1165
2006
  {
1166
- "name": "collection";
1167
- "docs": [
1168
- "Collection"
1169
- ];
2007
+ "name": "root";
1170
2008
  "type": {
1171
- "option": {
1172
- "defined": "Collection";
1173
- };
2009
+ "array": [
2010
+ "u8",
2011
+ 32
2012
+ ];
1174
2013
  };
1175
2014
  },
1176
2015
  {
1177
- "name": "uses";
1178
- "docs": [
1179
- "Uses"
1180
- ];
2016
+ "name": "index";
2017
+ "type": "u32";
2018
+ }
2019
+ ];
2020
+ };
2021
+ },
2022
+ {
2023
+ "name": "updateLazyDistributorArgsV0";
2024
+ "type": {
2025
+ "kind": "struct";
2026
+ "fields": [
2027
+ {
2028
+ "name": "oracles";
1181
2029
  "type": {
1182
2030
  "option": {
1183
- "defined": "Uses";
2031
+ "vec": {
2032
+ "defined": {
2033
+ "name": "oracleConfigV0";
2034
+ };
2035
+ };
1184
2036
  };
1185
2037
  };
1186
2038
  },
1187
2039
  {
1188
- "name": "tokenProgramVersion";
2040
+ "name": "authority";
1189
2041
  "type": {
1190
- "defined": "TokenProgramVersion";
2042
+ "option": "pubkey";
1191
2043
  };
1192
2044
  },
1193
2045
  {
1194
- "name": "creators";
2046
+ "name": "approver";
1195
2047
  "type": {
1196
- "vec": {
1197
- "defined": "Creator";
2048
+ "option": {
2049
+ "option": "pubkey";
1198
2050
  };
1199
2051
  };
1200
2052
  }
@@ -1202,103 +2054,97 @@ export type LazyDistributor = {
1202
2054
  };
1203
2055
  },
1204
2056
  {
1205
- "name": "ThresholdType";
2057
+ "name": "windowV0";
1206
2058
  "type": {
1207
- "kind": "enum";
1208
- "variants": [
2059
+ "kind": "struct";
2060
+ "fields": [
1209
2061
  {
1210
- "name": "Percent";
2062
+ "name": "lastAggregatedValue";
2063
+ "type": "u64";
1211
2064
  },
1212
2065
  {
1213
- "name": "Absolute";
2066
+ "name": "lastUnixTimestamp";
2067
+ "type": "i64";
1214
2068
  }
1215
2069
  ];
1216
2070
  };
1217
2071
  },
1218
2072
  {
1219
- "name": "TokenProgramVersion";
2073
+ "name": "circuit_breaker::state::ThresholdType";
1220
2074
  "type": {
1221
2075
  "kind": "enum";
1222
2076
  "variants": [
1223
2077
  {
1224
- "name": "Original";
2078
+ "name": "percent";
1225
2079
  },
1226
2080
  {
1227
- "name": "Token2022";
2081
+ "name": "absolute";
1228
2082
  }
1229
2083
  ];
1230
2084
  };
1231
2085
  },
1232
2086
  {
1233
- "name": "TokenStandard";
2087
+ "name": "circuit_breaker::state::WindowedCircuitBreakerConfigV0";
1234
2088
  "type": {
1235
- "kind": "enum";
1236
- "variants": [
1237
- {
1238
- "name": "NonFungible";
1239
- },
2089
+ "kind": "struct";
2090
+ "fields": [
1240
2091
  {
1241
- "name": "FungibleAsset";
2092
+ "name": "windowSizeSeconds";
2093
+ "type": "u64";
1242
2094
  },
1243
2095
  {
1244
- "name": "Fungible";
2096
+ "name": "thresholdType";
2097
+ "type": {
2098
+ "defined": {
2099
+ "name": "circuit_breaker::state::ThresholdType";
2100
+ };
2101
+ };
1245
2102
  },
1246
2103
  {
1247
- "name": "NonFungibleEdition";
2104
+ "name": "threshold";
2105
+ "type": "u64";
1248
2106
  }
1249
2107
  ];
1250
2108
  };
1251
2109
  },
1252
2110
  {
1253
- "name": "UseMethod";
2111
+ "name": "lazy_distributor::circuit_breaker::ThresholdType";
1254
2112
  "type": {
1255
2113
  "kind": "enum";
1256
2114
  "variants": [
1257
2115
  {
1258
- "name": "Burn";
1259
- },
1260
- {
1261
- "name": "Multiple";
2116
+ "name": "percent";
1262
2117
  },
1263
2118
  {
1264
- "name": "Single";
2119
+ "name": "absolute";
1265
2120
  }
1266
2121
  ];
1267
2122
  };
1268
- }
1269
- ];
1270
- "errors": [
1271
- {
1272
- "code": 6000;
1273
- "name": "InvalidDataIncrease";
1274
- "msg": "The realloc increase was too large";
1275
- },
1276
- {
1277
- "code": 6001;
1278
- "name": "ArithmeticError";
1279
- "msg": "Error in arithmetic";
1280
- },
1281
- {
1282
- "code": 6002;
1283
- "name": "InvalidAsset";
1284
- "msg": "Provided asset was invalid";
1285
- },
1286
- {
1287
- "code": 6003;
1288
- "name": "InvalidOracleIndex";
1289
- "msg": "Oracle index was out of range";
1290
- },
1291
- {
1292
- "code": 6004;
1293
- "name": "InvalidApproverSignature";
1294
- "msg": "Approver signature required";
1295
2123
  },
1296
2124
  {
1297
- "code": 6005;
1298
- "name": "CustomDestination";
1299
- "msg": "This recipient uses a custom destination. Use distribute_custom_destination_v0";
2125
+ "name": "lazy_distributor::circuit_breaker::WindowedCircuitBreakerConfigV0";
2126
+ "type": {
2127
+ "kind": "struct";
2128
+ "fields": [
2129
+ {
2130
+ "name": "windowSizeSeconds";
2131
+ "type": "u64";
2132
+ },
2133
+ {
2134
+ "name": "thresholdType";
2135
+ "type": {
2136
+ "defined": {
2137
+ "name": "lazy_distributor::circuit_breaker::ThresholdType";
2138
+ };
2139
+ };
2140
+ },
2141
+ {
2142
+ "name": "threshold";
2143
+ "type": "u64";
2144
+ }
2145
+ ];
2146
+ };
1300
2147
  }
1301
2148
  ];
1302
2149
  };
1303
- export declare const IDL: LazyDistributor;
1304
2150
  //# sourceMappingURL=lazy_distributor.d.ts.map