hyperstack-stacks 0.5.4 → 0.5.6

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/dist/index.cjs CHANGED
@@ -26,6 +26,10 @@ module.exports = __toCommonJS(src_exports);
26
26
 
27
27
  // src/ore/index.ts
28
28
  var import_zod = require("zod");
29
+ var SlotHashBytesSchema = import_zod.z.object({
30
+ bytes: import_zod.z.array(import_zod.z.number().int().min(0).max(255)).length(32)
31
+ });
32
+ var KeccakRngValueSchema = import_zod.z.string();
29
33
  var TokenMetadataSchema = import_zod.z.object({
30
34
  mint: import_zod.z.string(),
31
35
  name: import_zod.z.string().nullable().optional(),
@@ -53,8 +57,11 @@ var OreRoundMetricsSchema = import_zod.z.object({
53
57
  });
54
58
  var OreRoundResultsSchema = import_zod.z.object({
55
59
  did_hit_motherlode: import_zod.z.boolean().nullable().optional(),
60
+ expires_at_slot_hash: SlotHashBytesSchema.nullable().optional(),
61
+ pre_reveal_rng: KeccakRngValueSchema.nullable().optional(),
62
+ pre_reveal_winning_square: import_zod.z.number().nullable().optional(),
56
63
  rent_payer: import_zod.z.string().nullable().optional(),
57
- rng: import_zod.z.number().nullable().optional(),
64
+ rng: KeccakRngValueSchema.nullable().optional(),
58
65
  slot_hash: import_zod.z.string().nullable().optional(),
59
66
  top_miner: import_zod.z.string().nullable().optional(),
60
67
  top_miner_reward: import_zod.z.number().nullable().optional(),
package/dist/index.js CHANGED
@@ -1,5 +1,9 @@
1
1
  // src/ore/index.ts
2
2
  import { z } from "zod";
3
+ var SlotHashBytesSchema = z.object({
4
+ bytes: z.array(z.number().int().min(0).max(255)).length(32)
5
+ });
6
+ var KeccakRngValueSchema = z.string();
3
7
  var TokenMetadataSchema = z.object({
4
8
  mint: z.string(),
5
9
  name: z.string().nullable().optional(),
@@ -27,8 +31,11 @@ var OreRoundMetricsSchema = z.object({
27
31
  });
28
32
  var OreRoundResultsSchema = z.object({
29
33
  did_hit_motherlode: z.boolean().nullable().optional(),
34
+ expires_at_slot_hash: SlotHashBytesSchema.nullable().optional(),
35
+ pre_reveal_rng: KeccakRngValueSchema.nullable().optional(),
36
+ pre_reveal_winning_square: z.number().nullable().optional(),
30
37
  rent_payer: z.string().nullable().optional(),
31
- rng: z.number().nullable().optional(),
38
+ rng: KeccakRngValueSchema.nullable().optional(),
32
39
  slot_hash: z.string().nullable().optional(),
33
40
  top_miner: z.string().nullable().optional(),
34
41
  top_miner_reward: z.number().nullable().optional(),
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var ore_exports = {};
22
22
  __export(ore_exports, {
23
23
  AutomationSchema: () => AutomationSchema,
24
+ KeccakRngValueSchema: () => KeccakRngValueSchema,
24
25
  MinerSchema: () => MinerSchema,
25
26
  ORE_STREAM_STACK: () => ORE_STREAM_STACK,
26
27
  OreMinerAutomationSchema: () => OreMinerAutomationSchema,
@@ -41,12 +42,17 @@ __export(ore_exports, {
41
42
  OreTreasuryIdSchema: () => OreTreasuryIdSchema,
42
43
  OreTreasurySchema: () => OreTreasurySchema,
43
44
  OreTreasuryStateSchema: () => OreTreasuryStateSchema,
45
+ SlotHashBytesSchema: () => SlotHashBytesSchema,
44
46
  TokenMetadataSchema: () => TokenMetadataSchema,
45
47
  TreasurySchema: () => TreasurySchema,
46
48
  default: () => ore_default
47
49
  });
48
50
  module.exports = __toCommonJS(ore_exports);
49
51
  var import_zod = require("zod");
52
+ var SlotHashBytesSchema = import_zod.z.object({
53
+ bytes: import_zod.z.array(import_zod.z.number().int().min(0).max(255)).length(32)
54
+ });
55
+ var KeccakRngValueSchema = import_zod.z.string();
50
56
  var TokenMetadataSchema = import_zod.z.object({
51
57
  mint: import_zod.z.string(),
52
58
  name: import_zod.z.string().nullable().optional(),
@@ -74,8 +80,11 @@ var OreRoundMetricsSchema = import_zod.z.object({
74
80
  });
75
81
  var OreRoundResultsSchema = import_zod.z.object({
76
82
  did_hit_motherlode: import_zod.z.boolean().nullable().optional(),
83
+ expires_at_slot_hash: SlotHashBytesSchema.nullable().optional(),
84
+ pre_reveal_rng: KeccakRngValueSchema.nullable().optional(),
85
+ pre_reveal_winning_square: import_zod.z.number().nullable().optional(),
77
86
  rent_payer: import_zod.z.string().nullable().optional(),
78
- rng: import_zod.z.number().nullable().optional(),
87
+ rng: KeccakRngValueSchema.nullable().optional(),
79
88
  slot_hash: import_zod.z.string().nullable().optional(),
80
89
  top_miner: import_zod.z.string().nullable().optional(),
81
90
  top_miner_reward: import_zod.z.number().nullable().optional(),
@@ -270,6 +279,7 @@ var ore_default = ORE_STREAM_STACK;
270
279
  // Annotate the CommonJS export names for ESM import in node:
271
280
  0 && (module.exports = {
272
281
  AutomationSchema,
282
+ KeccakRngValueSchema,
273
283
  MinerSchema,
274
284
  ORE_STREAM_STACK,
275
285
  OreMinerAutomationSchema,
@@ -290,6 +300,7 @@ var ore_default = ORE_STREAM_STACK;
290
300
  OreTreasuryIdSchema,
291
301
  OreTreasurySchema,
292
302
  OreTreasuryStateSchema,
303
+ SlotHashBytesSchema,
293
304
  TokenMetadataSchema,
294
305
  TreasurySchema
295
306
  });
@@ -20,8 +20,11 @@ interface OreRoundMetrics {
20
20
  }
21
21
  interface OreRoundResults {
22
22
  did_hit_motherlode?: boolean | null;
23
+ expires_at_slot_hash?: SlotHashBytes | null;
24
+ pre_reveal_rng?: KeccakRngValue | null;
25
+ pre_reveal_winning_square?: number | null;
23
26
  rent_payer?: string | null;
24
- rng?: number | null;
27
+ rng?: KeccakRngValue | null;
25
28
  slot_hash?: string | null;
26
29
  top_miner?: string | null;
27
30
  top_miner_reward?: number | null;
@@ -51,6 +54,11 @@ interface OreRound {
51
54
  treasury?: OreRoundTreasury;
52
55
  ore_metadata?: TokenMetadata | null;
53
56
  }
57
+ interface SlotHashBytes {
58
+ /** 32-byte slot hash as array of numbers (0-255) */
59
+ bytes: number[];
60
+ }
61
+ type KeccakRngValue = string;
54
62
  interface TokenMetadata {
55
63
  mint: string;
56
64
  name?: string | null;
@@ -58,6 +66,14 @@ interface TokenMetadata {
58
66
  decimals?: number | null;
59
67
  logo_uri?: string | null;
60
68
  }
69
+ declare const SlotHashBytesSchema: z.ZodObject<{
70
+ bytes: z.ZodArray<z.ZodNumber, "many">;
71
+ }, "strip", z.ZodTypeAny, {
72
+ bytes: number[];
73
+ }, {
74
+ bytes: number[];
75
+ }>;
76
+ declare const KeccakRngValueSchema: z.ZodString;
61
77
  declare const TokenMetadataSchema: z.ZodObject<{
62
78
  mint: z.ZodString;
63
79
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -127,24 +143,43 @@ declare const OreRoundMetricsSchema: z.ZodObject<{
127
143
  }>;
128
144
  declare const OreRoundResultsSchema: z.ZodObject<{
129
145
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
146
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
147
+ bytes: z.ZodArray<z.ZodNumber, "many">;
148
+ }, "strip", z.ZodTypeAny, {
149
+ bytes: number[];
150
+ }, {
151
+ bytes: number[];
152
+ }>>>;
153
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
130
155
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
156
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
157
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
158
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
159
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
135
160
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
136
161
  }, "strip", z.ZodTypeAny, {
137
162
  did_hit_motherlode?: boolean | null | undefined;
163
+ expires_at_slot_hash?: {
164
+ bytes: number[];
165
+ } | null | undefined;
166
+ pre_reveal_rng?: string | null | undefined;
167
+ pre_reveal_winning_square?: number | null | undefined;
138
168
  rent_payer?: string | null | undefined;
139
- rng?: number | null | undefined;
169
+ rng?: string | null | undefined;
140
170
  slot_hash?: string | null | undefined;
141
171
  top_miner?: string | null | undefined;
142
172
  top_miner_reward?: number | null | undefined;
143
173
  winning_square?: number | null | undefined;
144
174
  }, {
145
175
  did_hit_motherlode?: boolean | null | undefined;
176
+ expires_at_slot_hash?: {
177
+ bytes: number[];
178
+ } | null | undefined;
179
+ pre_reveal_rng?: string | null | undefined;
180
+ pre_reveal_winning_square?: number | null | undefined;
146
181
  rent_payer?: string | null | undefined;
147
- rng?: number | null | undefined;
182
+ rng?: string | null | undefined;
148
183
  slot_hash?: string | null | undefined;
149
184
  top_miner?: string | null | undefined;
150
185
  top_miner_reward?: number | null | undefined;
@@ -242,24 +277,43 @@ declare const OreRoundSchema: z.ZodObject<{
242
277
  }>>;
243
278
  results: z.ZodOptional<z.ZodObject<{
244
279
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
280
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
281
+ bytes: z.ZodArray<z.ZodNumber, "many">;
282
+ }, "strip", z.ZodTypeAny, {
283
+ bytes: number[];
284
+ }, {
285
+ bytes: number[];
286
+ }>>>;
287
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
245
289
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
290
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
291
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
292
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
293
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
250
294
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
251
295
  }, "strip", z.ZodTypeAny, {
252
296
  did_hit_motherlode?: boolean | null | undefined;
297
+ expires_at_slot_hash?: {
298
+ bytes: number[];
299
+ } | null | undefined;
300
+ pre_reveal_rng?: string | null | undefined;
301
+ pre_reveal_winning_square?: number | null | undefined;
253
302
  rent_payer?: string | null | undefined;
254
- rng?: number | null | undefined;
303
+ rng?: string | null | undefined;
255
304
  slot_hash?: string | null | undefined;
256
305
  top_miner?: string | null | undefined;
257
306
  top_miner_reward?: number | null | undefined;
258
307
  winning_square?: number | null | undefined;
259
308
  }, {
260
309
  did_hit_motherlode?: boolean | null | undefined;
310
+ expires_at_slot_hash?: {
311
+ bytes: number[];
312
+ } | null | undefined;
313
+ pre_reveal_rng?: string | null | undefined;
314
+ pre_reveal_winning_square?: number | null | undefined;
261
315
  rent_payer?: string | null | undefined;
262
- rng?: number | null | undefined;
316
+ rng?: string | null | undefined;
263
317
  slot_hash?: string | null | undefined;
264
318
  top_miner?: string | null | undefined;
265
319
  top_miner_reward?: number | null | undefined;
@@ -346,8 +400,13 @@ declare const OreRoundSchema: z.ZodObject<{
346
400
  } | undefined;
347
401
  results?: {
348
402
  did_hit_motherlode?: boolean | null | undefined;
403
+ expires_at_slot_hash?: {
404
+ bytes: number[];
405
+ } | null | undefined;
406
+ pre_reveal_rng?: string | null | undefined;
407
+ pre_reveal_winning_square?: number | null | undefined;
349
408
  rent_payer?: string | null | undefined;
350
- rng?: number | null | undefined;
409
+ rng?: string | null | undefined;
351
410
  slot_hash?: string | null | undefined;
352
411
  top_miner?: string | null | undefined;
353
412
  top_miner_reward?: number | null | undefined;
@@ -396,8 +455,13 @@ declare const OreRoundSchema: z.ZodObject<{
396
455
  } | undefined;
397
456
  results?: {
398
457
  did_hit_motherlode?: boolean | null | undefined;
458
+ expires_at_slot_hash?: {
459
+ bytes: number[];
460
+ } | null | undefined;
461
+ pre_reveal_rng?: string | null | undefined;
462
+ pre_reveal_winning_square?: number | null | undefined;
399
463
  rent_payer?: string | null | undefined;
400
- rng?: number | null | undefined;
464
+ rng?: string | null | undefined;
401
465
  slot_hash?: string | null | undefined;
402
466
  top_miner?: string | null | undefined;
403
467
  top_miner_reward?: number | null | undefined;
@@ -477,24 +541,43 @@ declare const OreRoundCompletedSchema: z.ZodObject<{
477
541
  }>;
478
542
  results: z.ZodObject<{
479
543
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
544
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
545
+ bytes: z.ZodArray<z.ZodNumber, "many">;
546
+ }, "strip", z.ZodTypeAny, {
547
+ bytes: number[];
548
+ }, {
549
+ bytes: number[];
550
+ }>>>;
551
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
480
553
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
554
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
555
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
556
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
557
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
485
558
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
486
559
  }, "strip", z.ZodTypeAny, {
487
560
  did_hit_motherlode?: boolean | null | undefined;
561
+ expires_at_slot_hash?: {
562
+ bytes: number[];
563
+ } | null | undefined;
564
+ pre_reveal_rng?: string | null | undefined;
565
+ pre_reveal_winning_square?: number | null | undefined;
488
566
  rent_payer?: string | null | undefined;
489
- rng?: number | null | undefined;
567
+ rng?: string | null | undefined;
490
568
  slot_hash?: string | null | undefined;
491
569
  top_miner?: string | null | undefined;
492
570
  top_miner_reward?: number | null | undefined;
493
571
  winning_square?: number | null | undefined;
494
572
  }, {
495
573
  did_hit_motherlode?: boolean | null | undefined;
574
+ expires_at_slot_hash?: {
575
+ bytes: number[];
576
+ } | null | undefined;
577
+ pre_reveal_rng?: string | null | undefined;
578
+ pre_reveal_winning_square?: number | null | undefined;
496
579
  rent_payer?: string | null | undefined;
497
- rng?: number | null | undefined;
580
+ rng?: string | null | undefined;
498
581
  slot_hash?: string | null | undefined;
499
582
  top_miner?: string | null | undefined;
500
583
  top_miner_reward?: number | null | undefined;
@@ -581,8 +664,13 @@ declare const OreRoundCompletedSchema: z.ZodObject<{
581
664
  };
582
665
  results: {
583
666
  did_hit_motherlode?: boolean | null | undefined;
667
+ expires_at_slot_hash?: {
668
+ bytes: number[];
669
+ } | null | undefined;
670
+ pre_reveal_rng?: string | null | undefined;
671
+ pre_reveal_winning_square?: number | null | undefined;
584
672
  rent_payer?: string | null | undefined;
585
- rng?: number | null | undefined;
673
+ rng?: string | null | undefined;
586
674
  slot_hash?: string | null | undefined;
587
675
  top_miner?: string | null | undefined;
588
676
  top_miner_reward?: number | null | undefined;
@@ -631,8 +719,13 @@ declare const OreRoundCompletedSchema: z.ZodObject<{
631
719
  };
632
720
  results: {
633
721
  did_hit_motherlode?: boolean | null | undefined;
722
+ expires_at_slot_hash?: {
723
+ bytes: number[];
724
+ } | null | undefined;
725
+ pre_reveal_rng?: string | null | undefined;
726
+ pre_reveal_winning_square?: number | null | undefined;
634
727
  rent_payer?: string | null | undefined;
635
- rng?: number | null | undefined;
728
+ rng?: string | null | undefined;
636
729
  slot_hash?: string | null | undefined;
637
730
  top_miner?: string | null | undefined;
638
731
  top_miner_reward?: number | null | undefined;
@@ -2492,24 +2585,43 @@ declare const ORE_STREAM_STACK: {
2492
2585
  }>;
2493
2586
  results: z.ZodObject<{
2494
2587
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2588
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2589
+ bytes: z.ZodArray<z.ZodNumber, "many">;
2590
+ }, "strip", z.ZodTypeAny, {
2591
+ bytes: number[];
2592
+ }, {
2593
+ bytes: number[];
2594
+ }>>>;
2595
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2596
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2495
2597
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2496
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2598
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2497
2599
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2498
2600
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2499
2601
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2500
2602
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2501
2603
  }, "strip", z.ZodTypeAny, {
2502
2604
  did_hit_motherlode?: boolean | null | undefined;
2605
+ expires_at_slot_hash?: {
2606
+ bytes: number[];
2607
+ } | null | undefined;
2608
+ pre_reveal_rng?: string | null | undefined;
2609
+ pre_reveal_winning_square?: number | null | undefined;
2503
2610
  rent_payer?: string | null | undefined;
2504
- rng?: number | null | undefined;
2611
+ rng?: string | null | undefined;
2505
2612
  slot_hash?: string | null | undefined;
2506
2613
  top_miner?: string | null | undefined;
2507
2614
  top_miner_reward?: number | null | undefined;
2508
2615
  winning_square?: number | null | undefined;
2509
2616
  }, {
2510
2617
  did_hit_motherlode?: boolean | null | undefined;
2618
+ expires_at_slot_hash?: {
2619
+ bytes: number[];
2620
+ } | null | undefined;
2621
+ pre_reveal_rng?: string | null | undefined;
2622
+ pre_reveal_winning_square?: number | null | undefined;
2511
2623
  rent_payer?: string | null | undefined;
2512
- rng?: number | null | undefined;
2624
+ rng?: string | null | undefined;
2513
2625
  slot_hash?: string | null | undefined;
2514
2626
  top_miner?: string | null | undefined;
2515
2627
  top_miner_reward?: number | null | undefined;
@@ -2596,8 +2708,13 @@ declare const ORE_STREAM_STACK: {
2596
2708
  };
2597
2709
  results: {
2598
2710
  did_hit_motherlode?: boolean | null | undefined;
2711
+ expires_at_slot_hash?: {
2712
+ bytes: number[];
2713
+ } | null | undefined;
2714
+ pre_reveal_rng?: string | null | undefined;
2715
+ pre_reveal_winning_square?: number | null | undefined;
2599
2716
  rent_payer?: string | null | undefined;
2600
- rng?: number | null | undefined;
2717
+ rng?: string | null | undefined;
2601
2718
  slot_hash?: string | null | undefined;
2602
2719
  top_miner?: string | null | undefined;
2603
2720
  top_miner_reward?: number | null | undefined;
@@ -2646,8 +2763,13 @@ declare const ORE_STREAM_STACK: {
2646
2763
  };
2647
2764
  results: {
2648
2765
  did_hit_motherlode?: boolean | null | undefined;
2766
+ expires_at_slot_hash?: {
2767
+ bytes: number[];
2768
+ } | null | undefined;
2769
+ pre_reveal_rng?: string | null | undefined;
2770
+ pre_reveal_winning_square?: number | null | undefined;
2649
2771
  rent_payer?: string | null | undefined;
2650
- rng?: number | null | undefined;
2772
+ rng?: string | null | undefined;
2651
2773
  slot_hash?: string | null | undefined;
2652
2774
  top_miner?: string | null | undefined;
2653
2775
  top_miner_reward?: number | null | undefined;
@@ -2726,24 +2848,43 @@ declare const ORE_STREAM_STACK: {
2726
2848
  }>;
2727
2849
  readonly OreRoundResults: z.ZodObject<{
2728
2850
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2851
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2852
+ bytes: z.ZodArray<z.ZodNumber, "many">;
2853
+ }, "strip", z.ZodTypeAny, {
2854
+ bytes: number[];
2855
+ }, {
2856
+ bytes: number[];
2857
+ }>>>;
2858
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2859
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2729
2860
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2730
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2861
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2731
2862
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2732
2863
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2733
2864
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2734
2865
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2735
2866
  }, "strip", z.ZodTypeAny, {
2736
2867
  did_hit_motherlode?: boolean | null | undefined;
2868
+ expires_at_slot_hash?: {
2869
+ bytes: number[];
2870
+ } | null | undefined;
2871
+ pre_reveal_rng?: string | null | undefined;
2872
+ pre_reveal_winning_square?: number | null | undefined;
2737
2873
  rent_payer?: string | null | undefined;
2738
- rng?: number | null | undefined;
2874
+ rng?: string | null | undefined;
2739
2875
  slot_hash?: string | null | undefined;
2740
2876
  top_miner?: string | null | undefined;
2741
2877
  top_miner_reward?: number | null | undefined;
2742
2878
  winning_square?: number | null | undefined;
2743
2879
  }, {
2744
2880
  did_hit_motherlode?: boolean | null | undefined;
2881
+ expires_at_slot_hash?: {
2882
+ bytes: number[];
2883
+ } | null | undefined;
2884
+ pre_reveal_rng?: string | null | undefined;
2885
+ pre_reveal_winning_square?: number | null | undefined;
2745
2886
  rent_payer?: string | null | undefined;
2746
- rng?: number | null | undefined;
2887
+ rng?: string | null | undefined;
2747
2888
  slot_hash?: string | null | undefined;
2748
2889
  top_miner?: string | null | undefined;
2749
2890
  top_miner_reward?: number | null | undefined;
@@ -2800,24 +2941,43 @@ declare const ORE_STREAM_STACK: {
2800
2941
  }>>;
2801
2942
  results: z.ZodOptional<z.ZodObject<{
2802
2943
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2944
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2945
+ bytes: z.ZodArray<z.ZodNumber, "many">;
2946
+ }, "strip", z.ZodTypeAny, {
2947
+ bytes: number[];
2948
+ }, {
2949
+ bytes: number[];
2950
+ }>>>;
2951
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2952
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2803
2953
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2804
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2954
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2805
2955
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2806
2956
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2807
2957
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2808
2958
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2809
2959
  }, "strip", z.ZodTypeAny, {
2810
2960
  did_hit_motherlode?: boolean | null | undefined;
2961
+ expires_at_slot_hash?: {
2962
+ bytes: number[];
2963
+ } | null | undefined;
2964
+ pre_reveal_rng?: string | null | undefined;
2965
+ pre_reveal_winning_square?: number | null | undefined;
2811
2966
  rent_payer?: string | null | undefined;
2812
- rng?: number | null | undefined;
2967
+ rng?: string | null | undefined;
2813
2968
  slot_hash?: string | null | undefined;
2814
2969
  top_miner?: string | null | undefined;
2815
2970
  top_miner_reward?: number | null | undefined;
2816
2971
  winning_square?: number | null | undefined;
2817
2972
  }, {
2818
2973
  did_hit_motherlode?: boolean | null | undefined;
2974
+ expires_at_slot_hash?: {
2975
+ bytes: number[];
2976
+ } | null | undefined;
2977
+ pre_reveal_rng?: string | null | undefined;
2978
+ pre_reveal_winning_square?: number | null | undefined;
2819
2979
  rent_payer?: string | null | undefined;
2820
- rng?: number | null | undefined;
2980
+ rng?: string | null | undefined;
2821
2981
  slot_hash?: string | null | undefined;
2822
2982
  top_miner?: string | null | undefined;
2823
2983
  top_miner_reward?: number | null | undefined;
@@ -2904,8 +3064,13 @@ declare const ORE_STREAM_STACK: {
2904
3064
  } | undefined;
2905
3065
  results?: {
2906
3066
  did_hit_motherlode?: boolean | null | undefined;
3067
+ expires_at_slot_hash?: {
3068
+ bytes: number[];
3069
+ } | null | undefined;
3070
+ pre_reveal_rng?: string | null | undefined;
3071
+ pre_reveal_winning_square?: number | null | undefined;
2907
3072
  rent_payer?: string | null | undefined;
2908
- rng?: number | null | undefined;
3073
+ rng?: string | null | undefined;
2909
3074
  slot_hash?: string | null | undefined;
2910
3075
  top_miner?: string | null | undefined;
2911
3076
  top_miner_reward?: number | null | undefined;
@@ -2954,8 +3119,13 @@ declare const ORE_STREAM_STACK: {
2954
3119
  } | undefined;
2955
3120
  results?: {
2956
3121
  did_hit_motherlode?: boolean | null | undefined;
3122
+ expires_at_slot_hash?: {
3123
+ bytes: number[];
3124
+ } | null | undefined;
3125
+ pre_reveal_rng?: string | null | undefined;
3126
+ pre_reveal_winning_square?: number | null | undefined;
2957
3127
  rent_payer?: string | null | undefined;
2958
- rng?: number | null | undefined;
3128
+ rng?: string | null | undefined;
2959
3129
  slot_hash?: string | null | undefined;
2960
3130
  top_miner?: string | null | undefined;
2961
3131
  top_miner_reward?: number | null | undefined;
@@ -3314,4 +3484,4 @@ type OreStreamStack = typeof ORE_STREAM_STACK;
3314
3484
  /** Entity types in this stack */
3315
3485
  type OreStreamEntity = OreRound | OreTreasury | OreMiner;
3316
3486
 
3317
- export { type Automation, AutomationSchema, type Miner, MinerSchema, ORE_STREAM_STACK, type OreMiner, type OreMinerAutomation, OreMinerAutomationSchema, OreMinerCompletedSchema, type OreMinerId, OreMinerIdSchema, type OreMinerRewards, OreMinerRewardsSchema, OreMinerSchema, type OreMinerState, OreMinerStateSchema, type OreRound, OreRoundCompletedSchema, type OreRoundEntropy, OreRoundEntropySchema, type OreRoundId, OreRoundIdSchema, type OreRoundMetrics, OreRoundMetricsSchema, type OreRoundResults, OreRoundResultsSchema, OreRoundSchema, type OreRoundState, OreRoundStateSchema, type OreRoundTreasury, OreRoundTreasurySchema, type OreStreamEntity, type OreStreamStack, type OreTreasury, OreTreasuryCompletedSchema, type OreTreasuryId, OreTreasuryIdSchema, OreTreasurySchema, type OreTreasuryState, OreTreasuryStateSchema, type TokenMetadata, TokenMetadataSchema, type Treasury, TreasurySchema, type ViewDef, ORE_STREAM_STACK as default };
3487
+ export { type Automation, AutomationSchema, type KeccakRngValue, KeccakRngValueSchema, type Miner, MinerSchema, ORE_STREAM_STACK, type OreMiner, type OreMinerAutomation, OreMinerAutomationSchema, OreMinerCompletedSchema, type OreMinerId, OreMinerIdSchema, type OreMinerRewards, OreMinerRewardsSchema, OreMinerSchema, type OreMinerState, OreMinerStateSchema, type OreRound, OreRoundCompletedSchema, type OreRoundEntropy, OreRoundEntropySchema, type OreRoundId, OreRoundIdSchema, type OreRoundMetrics, OreRoundMetricsSchema, type OreRoundResults, OreRoundResultsSchema, OreRoundSchema, type OreRoundState, OreRoundStateSchema, type OreRoundTreasury, OreRoundTreasurySchema, type OreStreamEntity, type OreStreamStack, type OreTreasury, OreTreasuryCompletedSchema, type OreTreasuryId, OreTreasuryIdSchema, OreTreasurySchema, type OreTreasuryState, OreTreasuryStateSchema, type SlotHashBytes, SlotHashBytesSchema, type TokenMetadata, TokenMetadataSchema, type Treasury, TreasurySchema, type ViewDef, ORE_STREAM_STACK as default };
@@ -20,8 +20,11 @@ interface OreRoundMetrics {
20
20
  }
21
21
  interface OreRoundResults {
22
22
  did_hit_motherlode?: boolean | null;
23
+ expires_at_slot_hash?: SlotHashBytes | null;
24
+ pre_reveal_rng?: KeccakRngValue | null;
25
+ pre_reveal_winning_square?: number | null;
23
26
  rent_payer?: string | null;
24
- rng?: number | null;
27
+ rng?: KeccakRngValue | null;
25
28
  slot_hash?: string | null;
26
29
  top_miner?: string | null;
27
30
  top_miner_reward?: number | null;
@@ -51,6 +54,11 @@ interface OreRound {
51
54
  treasury?: OreRoundTreasury;
52
55
  ore_metadata?: TokenMetadata | null;
53
56
  }
57
+ interface SlotHashBytes {
58
+ /** 32-byte slot hash as array of numbers (0-255) */
59
+ bytes: number[];
60
+ }
61
+ type KeccakRngValue = string;
54
62
  interface TokenMetadata {
55
63
  mint: string;
56
64
  name?: string | null;
@@ -58,6 +66,14 @@ interface TokenMetadata {
58
66
  decimals?: number | null;
59
67
  logo_uri?: string | null;
60
68
  }
69
+ declare const SlotHashBytesSchema: z.ZodObject<{
70
+ bytes: z.ZodArray<z.ZodNumber, "many">;
71
+ }, "strip", z.ZodTypeAny, {
72
+ bytes: number[];
73
+ }, {
74
+ bytes: number[];
75
+ }>;
76
+ declare const KeccakRngValueSchema: z.ZodString;
61
77
  declare const TokenMetadataSchema: z.ZodObject<{
62
78
  mint: z.ZodString;
63
79
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -127,24 +143,43 @@ declare const OreRoundMetricsSchema: z.ZodObject<{
127
143
  }>;
128
144
  declare const OreRoundResultsSchema: z.ZodObject<{
129
145
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
146
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
147
+ bytes: z.ZodArray<z.ZodNumber, "many">;
148
+ }, "strip", z.ZodTypeAny, {
149
+ bytes: number[];
150
+ }, {
151
+ bytes: number[];
152
+ }>>>;
153
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
130
155
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
156
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
157
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
158
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
159
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
135
160
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
136
161
  }, "strip", z.ZodTypeAny, {
137
162
  did_hit_motherlode?: boolean | null | undefined;
163
+ expires_at_slot_hash?: {
164
+ bytes: number[];
165
+ } | null | undefined;
166
+ pre_reveal_rng?: string | null | undefined;
167
+ pre_reveal_winning_square?: number | null | undefined;
138
168
  rent_payer?: string | null | undefined;
139
- rng?: number | null | undefined;
169
+ rng?: string | null | undefined;
140
170
  slot_hash?: string | null | undefined;
141
171
  top_miner?: string | null | undefined;
142
172
  top_miner_reward?: number | null | undefined;
143
173
  winning_square?: number | null | undefined;
144
174
  }, {
145
175
  did_hit_motherlode?: boolean | null | undefined;
176
+ expires_at_slot_hash?: {
177
+ bytes: number[];
178
+ } | null | undefined;
179
+ pre_reveal_rng?: string | null | undefined;
180
+ pre_reveal_winning_square?: number | null | undefined;
146
181
  rent_payer?: string | null | undefined;
147
- rng?: number | null | undefined;
182
+ rng?: string | null | undefined;
148
183
  slot_hash?: string | null | undefined;
149
184
  top_miner?: string | null | undefined;
150
185
  top_miner_reward?: number | null | undefined;
@@ -242,24 +277,43 @@ declare const OreRoundSchema: z.ZodObject<{
242
277
  }>>;
243
278
  results: z.ZodOptional<z.ZodObject<{
244
279
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
280
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
281
+ bytes: z.ZodArray<z.ZodNumber, "many">;
282
+ }, "strip", z.ZodTypeAny, {
283
+ bytes: number[];
284
+ }, {
285
+ bytes: number[];
286
+ }>>>;
287
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
245
289
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
290
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
291
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
292
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
293
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
250
294
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
251
295
  }, "strip", z.ZodTypeAny, {
252
296
  did_hit_motherlode?: boolean | null | undefined;
297
+ expires_at_slot_hash?: {
298
+ bytes: number[];
299
+ } | null | undefined;
300
+ pre_reveal_rng?: string | null | undefined;
301
+ pre_reveal_winning_square?: number | null | undefined;
253
302
  rent_payer?: string | null | undefined;
254
- rng?: number | null | undefined;
303
+ rng?: string | null | undefined;
255
304
  slot_hash?: string | null | undefined;
256
305
  top_miner?: string | null | undefined;
257
306
  top_miner_reward?: number | null | undefined;
258
307
  winning_square?: number | null | undefined;
259
308
  }, {
260
309
  did_hit_motherlode?: boolean | null | undefined;
310
+ expires_at_slot_hash?: {
311
+ bytes: number[];
312
+ } | null | undefined;
313
+ pre_reveal_rng?: string | null | undefined;
314
+ pre_reveal_winning_square?: number | null | undefined;
261
315
  rent_payer?: string | null | undefined;
262
- rng?: number | null | undefined;
316
+ rng?: string | null | undefined;
263
317
  slot_hash?: string | null | undefined;
264
318
  top_miner?: string | null | undefined;
265
319
  top_miner_reward?: number | null | undefined;
@@ -346,8 +400,13 @@ declare const OreRoundSchema: z.ZodObject<{
346
400
  } | undefined;
347
401
  results?: {
348
402
  did_hit_motherlode?: boolean | null | undefined;
403
+ expires_at_slot_hash?: {
404
+ bytes: number[];
405
+ } | null | undefined;
406
+ pre_reveal_rng?: string | null | undefined;
407
+ pre_reveal_winning_square?: number | null | undefined;
349
408
  rent_payer?: string | null | undefined;
350
- rng?: number | null | undefined;
409
+ rng?: string | null | undefined;
351
410
  slot_hash?: string | null | undefined;
352
411
  top_miner?: string | null | undefined;
353
412
  top_miner_reward?: number | null | undefined;
@@ -396,8 +455,13 @@ declare const OreRoundSchema: z.ZodObject<{
396
455
  } | undefined;
397
456
  results?: {
398
457
  did_hit_motherlode?: boolean | null | undefined;
458
+ expires_at_slot_hash?: {
459
+ bytes: number[];
460
+ } | null | undefined;
461
+ pre_reveal_rng?: string | null | undefined;
462
+ pre_reveal_winning_square?: number | null | undefined;
399
463
  rent_payer?: string | null | undefined;
400
- rng?: number | null | undefined;
464
+ rng?: string | null | undefined;
401
465
  slot_hash?: string | null | undefined;
402
466
  top_miner?: string | null | undefined;
403
467
  top_miner_reward?: number | null | undefined;
@@ -477,24 +541,43 @@ declare const OreRoundCompletedSchema: z.ZodObject<{
477
541
  }>;
478
542
  results: z.ZodObject<{
479
543
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
544
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
545
+ bytes: z.ZodArray<z.ZodNumber, "many">;
546
+ }, "strip", z.ZodTypeAny, {
547
+ bytes: number[];
548
+ }, {
549
+ bytes: number[];
550
+ }>>>;
551
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
480
553
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
554
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
555
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
556
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
557
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
485
558
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
486
559
  }, "strip", z.ZodTypeAny, {
487
560
  did_hit_motherlode?: boolean | null | undefined;
561
+ expires_at_slot_hash?: {
562
+ bytes: number[];
563
+ } | null | undefined;
564
+ pre_reveal_rng?: string | null | undefined;
565
+ pre_reveal_winning_square?: number | null | undefined;
488
566
  rent_payer?: string | null | undefined;
489
- rng?: number | null | undefined;
567
+ rng?: string | null | undefined;
490
568
  slot_hash?: string | null | undefined;
491
569
  top_miner?: string | null | undefined;
492
570
  top_miner_reward?: number | null | undefined;
493
571
  winning_square?: number | null | undefined;
494
572
  }, {
495
573
  did_hit_motherlode?: boolean | null | undefined;
574
+ expires_at_slot_hash?: {
575
+ bytes: number[];
576
+ } | null | undefined;
577
+ pre_reveal_rng?: string | null | undefined;
578
+ pre_reveal_winning_square?: number | null | undefined;
496
579
  rent_payer?: string | null | undefined;
497
- rng?: number | null | undefined;
580
+ rng?: string | null | undefined;
498
581
  slot_hash?: string | null | undefined;
499
582
  top_miner?: string | null | undefined;
500
583
  top_miner_reward?: number | null | undefined;
@@ -581,8 +664,13 @@ declare const OreRoundCompletedSchema: z.ZodObject<{
581
664
  };
582
665
  results: {
583
666
  did_hit_motherlode?: boolean | null | undefined;
667
+ expires_at_slot_hash?: {
668
+ bytes: number[];
669
+ } | null | undefined;
670
+ pre_reveal_rng?: string | null | undefined;
671
+ pre_reveal_winning_square?: number | null | undefined;
584
672
  rent_payer?: string | null | undefined;
585
- rng?: number | null | undefined;
673
+ rng?: string | null | undefined;
586
674
  slot_hash?: string | null | undefined;
587
675
  top_miner?: string | null | undefined;
588
676
  top_miner_reward?: number | null | undefined;
@@ -631,8 +719,13 @@ declare const OreRoundCompletedSchema: z.ZodObject<{
631
719
  };
632
720
  results: {
633
721
  did_hit_motherlode?: boolean | null | undefined;
722
+ expires_at_slot_hash?: {
723
+ bytes: number[];
724
+ } | null | undefined;
725
+ pre_reveal_rng?: string | null | undefined;
726
+ pre_reveal_winning_square?: number | null | undefined;
634
727
  rent_payer?: string | null | undefined;
635
- rng?: number | null | undefined;
728
+ rng?: string | null | undefined;
636
729
  slot_hash?: string | null | undefined;
637
730
  top_miner?: string | null | undefined;
638
731
  top_miner_reward?: number | null | undefined;
@@ -2492,24 +2585,43 @@ declare const ORE_STREAM_STACK: {
2492
2585
  }>;
2493
2586
  results: z.ZodObject<{
2494
2587
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2588
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2589
+ bytes: z.ZodArray<z.ZodNumber, "many">;
2590
+ }, "strip", z.ZodTypeAny, {
2591
+ bytes: number[];
2592
+ }, {
2593
+ bytes: number[];
2594
+ }>>>;
2595
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2596
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2495
2597
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2496
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2598
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2497
2599
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2498
2600
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2499
2601
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2500
2602
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2501
2603
  }, "strip", z.ZodTypeAny, {
2502
2604
  did_hit_motherlode?: boolean | null | undefined;
2605
+ expires_at_slot_hash?: {
2606
+ bytes: number[];
2607
+ } | null | undefined;
2608
+ pre_reveal_rng?: string | null | undefined;
2609
+ pre_reveal_winning_square?: number | null | undefined;
2503
2610
  rent_payer?: string | null | undefined;
2504
- rng?: number | null | undefined;
2611
+ rng?: string | null | undefined;
2505
2612
  slot_hash?: string | null | undefined;
2506
2613
  top_miner?: string | null | undefined;
2507
2614
  top_miner_reward?: number | null | undefined;
2508
2615
  winning_square?: number | null | undefined;
2509
2616
  }, {
2510
2617
  did_hit_motherlode?: boolean | null | undefined;
2618
+ expires_at_slot_hash?: {
2619
+ bytes: number[];
2620
+ } | null | undefined;
2621
+ pre_reveal_rng?: string | null | undefined;
2622
+ pre_reveal_winning_square?: number | null | undefined;
2511
2623
  rent_payer?: string | null | undefined;
2512
- rng?: number | null | undefined;
2624
+ rng?: string | null | undefined;
2513
2625
  slot_hash?: string | null | undefined;
2514
2626
  top_miner?: string | null | undefined;
2515
2627
  top_miner_reward?: number | null | undefined;
@@ -2596,8 +2708,13 @@ declare const ORE_STREAM_STACK: {
2596
2708
  };
2597
2709
  results: {
2598
2710
  did_hit_motherlode?: boolean | null | undefined;
2711
+ expires_at_slot_hash?: {
2712
+ bytes: number[];
2713
+ } | null | undefined;
2714
+ pre_reveal_rng?: string | null | undefined;
2715
+ pre_reveal_winning_square?: number | null | undefined;
2599
2716
  rent_payer?: string | null | undefined;
2600
- rng?: number | null | undefined;
2717
+ rng?: string | null | undefined;
2601
2718
  slot_hash?: string | null | undefined;
2602
2719
  top_miner?: string | null | undefined;
2603
2720
  top_miner_reward?: number | null | undefined;
@@ -2646,8 +2763,13 @@ declare const ORE_STREAM_STACK: {
2646
2763
  };
2647
2764
  results: {
2648
2765
  did_hit_motherlode?: boolean | null | undefined;
2766
+ expires_at_slot_hash?: {
2767
+ bytes: number[];
2768
+ } | null | undefined;
2769
+ pre_reveal_rng?: string | null | undefined;
2770
+ pre_reveal_winning_square?: number | null | undefined;
2649
2771
  rent_payer?: string | null | undefined;
2650
- rng?: number | null | undefined;
2772
+ rng?: string | null | undefined;
2651
2773
  slot_hash?: string | null | undefined;
2652
2774
  top_miner?: string | null | undefined;
2653
2775
  top_miner_reward?: number | null | undefined;
@@ -2726,24 +2848,43 @@ declare const ORE_STREAM_STACK: {
2726
2848
  }>;
2727
2849
  readonly OreRoundResults: z.ZodObject<{
2728
2850
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2851
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2852
+ bytes: z.ZodArray<z.ZodNumber, "many">;
2853
+ }, "strip", z.ZodTypeAny, {
2854
+ bytes: number[];
2855
+ }, {
2856
+ bytes: number[];
2857
+ }>>>;
2858
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2859
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2729
2860
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2730
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2861
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2731
2862
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2732
2863
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2733
2864
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2734
2865
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2735
2866
  }, "strip", z.ZodTypeAny, {
2736
2867
  did_hit_motherlode?: boolean | null | undefined;
2868
+ expires_at_slot_hash?: {
2869
+ bytes: number[];
2870
+ } | null | undefined;
2871
+ pre_reveal_rng?: string | null | undefined;
2872
+ pre_reveal_winning_square?: number | null | undefined;
2737
2873
  rent_payer?: string | null | undefined;
2738
- rng?: number | null | undefined;
2874
+ rng?: string | null | undefined;
2739
2875
  slot_hash?: string | null | undefined;
2740
2876
  top_miner?: string | null | undefined;
2741
2877
  top_miner_reward?: number | null | undefined;
2742
2878
  winning_square?: number | null | undefined;
2743
2879
  }, {
2744
2880
  did_hit_motherlode?: boolean | null | undefined;
2881
+ expires_at_slot_hash?: {
2882
+ bytes: number[];
2883
+ } | null | undefined;
2884
+ pre_reveal_rng?: string | null | undefined;
2885
+ pre_reveal_winning_square?: number | null | undefined;
2745
2886
  rent_payer?: string | null | undefined;
2746
- rng?: number | null | undefined;
2887
+ rng?: string | null | undefined;
2747
2888
  slot_hash?: string | null | undefined;
2748
2889
  top_miner?: string | null | undefined;
2749
2890
  top_miner_reward?: number | null | undefined;
@@ -2800,24 +2941,43 @@ declare const ORE_STREAM_STACK: {
2800
2941
  }>>;
2801
2942
  results: z.ZodOptional<z.ZodObject<{
2802
2943
  did_hit_motherlode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2944
+ expires_at_slot_hash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2945
+ bytes: z.ZodArray<z.ZodNumber, "many">;
2946
+ }, "strip", z.ZodTypeAny, {
2947
+ bytes: number[];
2948
+ }, {
2949
+ bytes: number[];
2950
+ }>>>;
2951
+ pre_reveal_rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2952
+ pre_reveal_winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2803
2953
  rent_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2804
- rng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2954
+ rng: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2805
2955
  slot_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2806
2956
  top_miner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2807
2957
  top_miner_reward: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2808
2958
  winning_square: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2809
2959
  }, "strip", z.ZodTypeAny, {
2810
2960
  did_hit_motherlode?: boolean | null | undefined;
2961
+ expires_at_slot_hash?: {
2962
+ bytes: number[];
2963
+ } | null | undefined;
2964
+ pre_reveal_rng?: string | null | undefined;
2965
+ pre_reveal_winning_square?: number | null | undefined;
2811
2966
  rent_payer?: string | null | undefined;
2812
- rng?: number | null | undefined;
2967
+ rng?: string | null | undefined;
2813
2968
  slot_hash?: string | null | undefined;
2814
2969
  top_miner?: string | null | undefined;
2815
2970
  top_miner_reward?: number | null | undefined;
2816
2971
  winning_square?: number | null | undefined;
2817
2972
  }, {
2818
2973
  did_hit_motherlode?: boolean | null | undefined;
2974
+ expires_at_slot_hash?: {
2975
+ bytes: number[];
2976
+ } | null | undefined;
2977
+ pre_reveal_rng?: string | null | undefined;
2978
+ pre_reveal_winning_square?: number | null | undefined;
2819
2979
  rent_payer?: string | null | undefined;
2820
- rng?: number | null | undefined;
2980
+ rng?: string | null | undefined;
2821
2981
  slot_hash?: string | null | undefined;
2822
2982
  top_miner?: string | null | undefined;
2823
2983
  top_miner_reward?: number | null | undefined;
@@ -2904,8 +3064,13 @@ declare const ORE_STREAM_STACK: {
2904
3064
  } | undefined;
2905
3065
  results?: {
2906
3066
  did_hit_motherlode?: boolean | null | undefined;
3067
+ expires_at_slot_hash?: {
3068
+ bytes: number[];
3069
+ } | null | undefined;
3070
+ pre_reveal_rng?: string | null | undefined;
3071
+ pre_reveal_winning_square?: number | null | undefined;
2907
3072
  rent_payer?: string | null | undefined;
2908
- rng?: number | null | undefined;
3073
+ rng?: string | null | undefined;
2909
3074
  slot_hash?: string | null | undefined;
2910
3075
  top_miner?: string | null | undefined;
2911
3076
  top_miner_reward?: number | null | undefined;
@@ -2954,8 +3119,13 @@ declare const ORE_STREAM_STACK: {
2954
3119
  } | undefined;
2955
3120
  results?: {
2956
3121
  did_hit_motherlode?: boolean | null | undefined;
3122
+ expires_at_slot_hash?: {
3123
+ bytes: number[];
3124
+ } | null | undefined;
3125
+ pre_reveal_rng?: string | null | undefined;
3126
+ pre_reveal_winning_square?: number | null | undefined;
2957
3127
  rent_payer?: string | null | undefined;
2958
- rng?: number | null | undefined;
3128
+ rng?: string | null | undefined;
2959
3129
  slot_hash?: string | null | undefined;
2960
3130
  top_miner?: string | null | undefined;
2961
3131
  top_miner_reward?: number | null | undefined;
@@ -3314,4 +3484,4 @@ type OreStreamStack = typeof ORE_STREAM_STACK;
3314
3484
  /** Entity types in this stack */
3315
3485
  type OreStreamEntity = OreRound | OreTreasury | OreMiner;
3316
3486
 
3317
- export { type Automation, AutomationSchema, type Miner, MinerSchema, ORE_STREAM_STACK, type OreMiner, type OreMinerAutomation, OreMinerAutomationSchema, OreMinerCompletedSchema, type OreMinerId, OreMinerIdSchema, type OreMinerRewards, OreMinerRewardsSchema, OreMinerSchema, type OreMinerState, OreMinerStateSchema, type OreRound, OreRoundCompletedSchema, type OreRoundEntropy, OreRoundEntropySchema, type OreRoundId, OreRoundIdSchema, type OreRoundMetrics, OreRoundMetricsSchema, type OreRoundResults, OreRoundResultsSchema, OreRoundSchema, type OreRoundState, OreRoundStateSchema, type OreRoundTreasury, OreRoundTreasurySchema, type OreStreamEntity, type OreStreamStack, type OreTreasury, OreTreasuryCompletedSchema, type OreTreasuryId, OreTreasuryIdSchema, OreTreasurySchema, type OreTreasuryState, OreTreasuryStateSchema, type TokenMetadata, TokenMetadataSchema, type Treasury, TreasurySchema, type ViewDef, ORE_STREAM_STACK as default };
3487
+ export { type Automation, AutomationSchema, type KeccakRngValue, KeccakRngValueSchema, type Miner, MinerSchema, ORE_STREAM_STACK, type OreMiner, type OreMinerAutomation, OreMinerAutomationSchema, OreMinerCompletedSchema, type OreMinerId, OreMinerIdSchema, type OreMinerRewards, OreMinerRewardsSchema, OreMinerSchema, type OreMinerState, OreMinerStateSchema, type OreRound, OreRoundCompletedSchema, type OreRoundEntropy, OreRoundEntropySchema, type OreRoundId, OreRoundIdSchema, type OreRoundMetrics, OreRoundMetricsSchema, type OreRoundResults, OreRoundResultsSchema, OreRoundSchema, type OreRoundState, OreRoundStateSchema, type OreRoundTreasury, OreRoundTreasurySchema, type OreStreamEntity, type OreStreamStack, type OreTreasury, OreTreasuryCompletedSchema, type OreTreasuryId, OreTreasuryIdSchema, OreTreasurySchema, type OreTreasuryState, OreTreasuryStateSchema, type SlotHashBytes, SlotHashBytesSchema, type TokenMetadata, TokenMetadataSchema, type Treasury, TreasurySchema, type ViewDef, ORE_STREAM_STACK as default };
package/dist/ore/index.js CHANGED
@@ -1,5 +1,9 @@
1
1
  // src/ore/index.ts
2
2
  import { z } from "zod";
3
+ var SlotHashBytesSchema = z.object({
4
+ bytes: z.array(z.number().int().min(0).max(255)).length(32)
5
+ });
6
+ var KeccakRngValueSchema = z.string();
3
7
  var TokenMetadataSchema = z.object({
4
8
  mint: z.string(),
5
9
  name: z.string().nullable().optional(),
@@ -27,8 +31,11 @@ var OreRoundMetricsSchema = z.object({
27
31
  });
28
32
  var OreRoundResultsSchema = z.object({
29
33
  did_hit_motherlode: z.boolean().nullable().optional(),
34
+ expires_at_slot_hash: SlotHashBytesSchema.nullable().optional(),
35
+ pre_reveal_rng: KeccakRngValueSchema.nullable().optional(),
36
+ pre_reveal_winning_square: z.number().nullable().optional(),
30
37
  rent_payer: z.string().nullable().optional(),
31
- rng: z.number().nullable().optional(),
38
+ rng: KeccakRngValueSchema.nullable().optional(),
32
39
  slot_hash: z.string().nullable().optional(),
33
40
  top_miner: z.string().nullable().optional(),
34
41
  top_miner_reward: z.number().nullable().optional(),
@@ -222,6 +229,7 @@ var ORE_STREAM_STACK = {
222
229
  var ore_default = ORE_STREAM_STACK;
223
230
  export {
224
231
  AutomationSchema,
232
+ KeccakRngValueSchema,
225
233
  MinerSchema,
226
234
  ORE_STREAM_STACK,
227
235
  OreMinerAutomationSchema,
@@ -242,6 +250,7 @@ export {
242
250
  OreTreasuryIdSchema,
243
251
  OreTreasurySchema,
244
252
  OreTreasuryStateSchema,
253
+ SlotHashBytesSchema,
245
254
  TokenMetadataSchema,
246
255
  TreasurySchema,
247
256
  ore_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperstack-stacks",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Protocol stacks for Hyperstack - ready-to-use Solana data streams",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -28,8 +28,8 @@
28
28
  "prepublishOnly": "npm run build"
29
29
  },
30
30
  "peerDependencies": {
31
- "hyperstack-react": ">=0.5.4",
32
- "hyperstack-typescript": ">=0.5.4"
31
+ "hyperstack-react": ">=0.5.6",
32
+ "hyperstack-typescript": ">=0.5.6"
33
33
  },
34
34
  "dependencies": {
35
35
  "zod": "^3.24.1"