hyperstack-stacks 0.4.2 → 0.5.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.
- package/dist/index.cjs +411 -8
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +409 -6
- package/dist/ore/index.cjs +251 -5
- package/dist/ore/index.d.cts +3240 -20
- package/dist/ore/index.d.ts +3240 -20
- package/dist/ore/index.js +228 -4
- package/dist/pumpfun/index.cjs +242 -5
- package/dist/pumpfun/index.d.cts +4741 -5
- package/dist/pumpfun/index.d.ts +4741 -5
- package/dist/pumpfun/index.js +223 -4
- package/package.json +7 -3
package/dist/ore/index.cjs
CHANGED
|
@@ -20,29 +20,275 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/ore/index.ts
|
|
21
21
|
var ore_exports = {};
|
|
22
22
|
__export(ore_exports, {
|
|
23
|
-
|
|
23
|
+
AutomationSchema: () => AutomationSchema,
|
|
24
|
+
MinerSchema: () => MinerSchema,
|
|
25
|
+
ORE_STREAM_STACK: () => ORE_STREAM_STACK,
|
|
26
|
+
OreMinerAutomationSchema: () => OreMinerAutomationSchema,
|
|
27
|
+
OreMinerCompletedSchema: () => OreMinerCompletedSchema,
|
|
28
|
+
OreMinerIdSchema: () => OreMinerIdSchema,
|
|
29
|
+
OreMinerRewardsSchema: () => OreMinerRewardsSchema,
|
|
30
|
+
OreMinerSchema: () => OreMinerSchema,
|
|
31
|
+
OreMinerStateSchema: () => OreMinerStateSchema,
|
|
32
|
+
OreRoundCompletedSchema: () => OreRoundCompletedSchema,
|
|
33
|
+
OreRoundEntropySchema: () => OreRoundEntropySchema,
|
|
34
|
+
OreRoundIdSchema: () => OreRoundIdSchema,
|
|
35
|
+
OreRoundMetricsSchema: () => OreRoundMetricsSchema,
|
|
36
|
+
OreRoundResultsSchema: () => OreRoundResultsSchema,
|
|
37
|
+
OreRoundSchema: () => OreRoundSchema,
|
|
38
|
+
OreRoundStateSchema: () => OreRoundStateSchema,
|
|
39
|
+
OreRoundTreasurySchema: () => OreRoundTreasurySchema,
|
|
40
|
+
OreTreasuryCompletedSchema: () => OreTreasuryCompletedSchema,
|
|
41
|
+
OreTreasuryIdSchema: () => OreTreasuryIdSchema,
|
|
42
|
+
OreTreasurySchema: () => OreTreasurySchema,
|
|
43
|
+
OreTreasuryStateSchema: () => OreTreasuryStateSchema,
|
|
44
|
+
TokenMetadataSchema: () => TokenMetadataSchema,
|
|
45
|
+
TreasurySchema: () => TreasurySchema,
|
|
24
46
|
default: () => ore_default
|
|
25
47
|
});
|
|
26
48
|
module.exports = __toCommonJS(ore_exports);
|
|
49
|
+
var import_zod = require("zod");
|
|
50
|
+
var TokenMetadataSchema = import_zod.z.object({
|
|
51
|
+
mint: import_zod.z.string(),
|
|
52
|
+
name: import_zod.z.string().nullable().optional(),
|
|
53
|
+
symbol: import_zod.z.string().nullable().optional(),
|
|
54
|
+
decimals: import_zod.z.number().nullable().optional(),
|
|
55
|
+
logo_uri: import_zod.z.string().nullable().optional()
|
|
56
|
+
});
|
|
57
|
+
var OreRoundEntropySchema = import_zod.z.object({
|
|
58
|
+
entropy_end_at: import_zod.z.number().nullable().optional(),
|
|
59
|
+
entropy_samples: import_zod.z.number().nullable().optional(),
|
|
60
|
+
entropy_seed: import_zod.z.string().nullable().optional(),
|
|
61
|
+
entropy_slot_hash: import_zod.z.string().nullable().optional(),
|
|
62
|
+
entropy_start_at: import_zod.z.number().nullable().optional(),
|
|
63
|
+
entropy_value: import_zod.z.string().nullable().optional(),
|
|
64
|
+
entropy_var_address: import_zod.z.string().nullable().optional()
|
|
65
|
+
});
|
|
66
|
+
var OreRoundIdSchema = import_zod.z.object({
|
|
67
|
+
round_address: import_zod.z.string().nullable().optional(),
|
|
68
|
+
round_id: import_zod.z.number().nullable().optional()
|
|
69
|
+
});
|
|
70
|
+
var OreRoundMetricsSchema = import_zod.z.object({
|
|
71
|
+
checkpoint_count: import_zod.z.number().nullable().optional(),
|
|
72
|
+
deploy_count: import_zod.z.number().nullable().optional()
|
|
73
|
+
});
|
|
74
|
+
var OreRoundResultsSchema = import_zod.z.object({
|
|
75
|
+
did_hit_motherlode: import_zod.z.boolean().nullable().optional(),
|
|
76
|
+
rent_payer: import_zod.z.string().nullable().optional(),
|
|
77
|
+
rng: import_zod.z.number().nullable().optional(),
|
|
78
|
+
slot_hash: import_zod.z.string().nullable().optional(),
|
|
79
|
+
top_miner: import_zod.z.string().nullable().optional(),
|
|
80
|
+
top_miner_reward: import_zod.z.number().nullable().optional(),
|
|
81
|
+
winning_square: import_zod.z.number().nullable().optional()
|
|
82
|
+
});
|
|
83
|
+
var OreRoundStateSchema = import_zod.z.object({
|
|
84
|
+
count_per_square: import_zod.z.array(import_zod.z.any()).nullable().optional(),
|
|
85
|
+
deployed_per_square: import_zod.z.array(import_zod.z.any()).nullable().optional(),
|
|
86
|
+
deployed_per_square_ui: import_zod.z.array(import_zod.z.any()).nullable().optional(),
|
|
87
|
+
estimated_expires_at_unix: import_zod.z.number().nullable().optional(),
|
|
88
|
+
expires_at: import_zod.z.number().nullable().optional(),
|
|
89
|
+
motherlode: import_zod.z.number().nullable().optional(),
|
|
90
|
+
total_deployed: import_zod.z.number().nullable().optional(),
|
|
91
|
+
total_miners: import_zod.z.number().nullable().optional(),
|
|
92
|
+
total_vaulted: import_zod.z.number().nullable().optional(),
|
|
93
|
+
total_winnings: import_zod.z.number().nullable().optional()
|
|
94
|
+
});
|
|
95
|
+
var OreRoundTreasurySchema = import_zod.z.object({
|
|
96
|
+
motherlode: import_zod.z.number().nullable().optional()
|
|
97
|
+
});
|
|
98
|
+
var OreRoundSchema = import_zod.z.object({
|
|
99
|
+
entropy: OreRoundEntropySchema.optional(),
|
|
100
|
+
id: OreRoundIdSchema.optional(),
|
|
101
|
+
metrics: OreRoundMetricsSchema.optional(),
|
|
102
|
+
results: OreRoundResultsSchema.optional(),
|
|
103
|
+
state: OreRoundStateSchema.optional(),
|
|
104
|
+
treasury: OreRoundTreasurySchema.optional(),
|
|
105
|
+
ore_metadata: TokenMetadataSchema.nullable().optional()
|
|
106
|
+
});
|
|
107
|
+
var OreRoundCompletedSchema = import_zod.z.object({
|
|
108
|
+
entropy: OreRoundEntropySchema,
|
|
109
|
+
id: OreRoundIdSchema,
|
|
110
|
+
metrics: OreRoundMetricsSchema,
|
|
111
|
+
results: OreRoundResultsSchema,
|
|
112
|
+
state: OreRoundStateSchema,
|
|
113
|
+
treasury: OreRoundTreasurySchema,
|
|
114
|
+
ore_metadata: TokenMetadataSchema
|
|
115
|
+
});
|
|
116
|
+
var TreasurySchema = import_zod.z.object({
|
|
117
|
+
balance: import_zod.z.number().optional(),
|
|
118
|
+
buffer_a: import_zod.z.number().optional(),
|
|
119
|
+
motherlode: import_zod.z.number().optional(),
|
|
120
|
+
miner_rewards_factor: import_zod.z.record(import_zod.z.any()).optional(),
|
|
121
|
+
stake_rewards_factor: import_zod.z.record(import_zod.z.any()).optional(),
|
|
122
|
+
buffer_b: import_zod.z.number().optional(),
|
|
123
|
+
total_refined: import_zod.z.number().optional(),
|
|
124
|
+
total_staked: import_zod.z.number().optional(),
|
|
125
|
+
total_unclaimed: import_zod.z.number().optional()
|
|
126
|
+
});
|
|
127
|
+
var OreTreasuryIdSchema = import_zod.z.object({
|
|
128
|
+
address: import_zod.z.string().nullable().optional()
|
|
129
|
+
});
|
|
130
|
+
var OreTreasuryStateSchema = import_zod.z.object({
|
|
131
|
+
balance: import_zod.z.number().nullable().optional(),
|
|
132
|
+
motherlode: import_zod.z.number().nullable().optional(),
|
|
133
|
+
total_refined: import_zod.z.number().nullable().optional(),
|
|
134
|
+
total_staked: import_zod.z.number().nullable().optional(),
|
|
135
|
+
total_unclaimed: import_zod.z.number().nullable().optional()
|
|
136
|
+
});
|
|
137
|
+
var OreTreasurySchema = import_zod.z.object({
|
|
138
|
+
id: OreTreasuryIdSchema.optional(),
|
|
139
|
+
state: OreTreasuryStateSchema.optional(),
|
|
140
|
+
treasury_snapshot: TreasurySchema.nullable().optional()
|
|
141
|
+
});
|
|
142
|
+
var OreTreasuryCompletedSchema = import_zod.z.object({
|
|
143
|
+
id: OreTreasuryIdSchema,
|
|
144
|
+
state: OreTreasuryStateSchema,
|
|
145
|
+
treasury_snapshot: TreasurySchema
|
|
146
|
+
});
|
|
147
|
+
var MinerSchema = import_zod.z.object({
|
|
148
|
+
authority: import_zod.z.string().optional(),
|
|
149
|
+
deployed: import_zod.z.array(import_zod.z.number()).optional(),
|
|
150
|
+
cumulative: import_zod.z.array(import_zod.z.number()).optional(),
|
|
151
|
+
checkpoint_fee: import_zod.z.number().optional(),
|
|
152
|
+
checkpoint_id: import_zod.z.number().optional(),
|
|
153
|
+
last_claim_ore_at: import_zod.z.number().optional(),
|
|
154
|
+
last_claim_sol_at: import_zod.z.number().optional(),
|
|
155
|
+
rewards_factor: import_zod.z.record(import_zod.z.any()).optional(),
|
|
156
|
+
rewards_sol: import_zod.z.number().optional(),
|
|
157
|
+
rewards_ore: import_zod.z.number().optional(),
|
|
158
|
+
refined_ore: import_zod.z.number().optional(),
|
|
159
|
+
round_id: import_zod.z.number().optional(),
|
|
160
|
+
lifetime_rewards_sol: import_zod.z.number().optional(),
|
|
161
|
+
lifetime_rewards_ore: import_zod.z.number().optional(),
|
|
162
|
+
lifetime_deployed: import_zod.z.number().optional()
|
|
163
|
+
});
|
|
164
|
+
var AutomationSchema = import_zod.z.object({
|
|
165
|
+
amount: import_zod.z.number().optional(),
|
|
166
|
+
authority: import_zod.z.string().optional(),
|
|
167
|
+
balance: import_zod.z.number().optional(),
|
|
168
|
+
executor: import_zod.z.string().optional(),
|
|
169
|
+
fee: import_zod.z.number().optional(),
|
|
170
|
+
strategy: import_zod.z.number().optional(),
|
|
171
|
+
mask: import_zod.z.number().optional(),
|
|
172
|
+
reload: import_zod.z.number().optional()
|
|
173
|
+
});
|
|
174
|
+
var OreMinerAutomationSchema = import_zod.z.object({
|
|
175
|
+
amount: import_zod.z.number().nullable().optional(),
|
|
176
|
+
balance: import_zod.z.number().nullable().optional(),
|
|
177
|
+
executor: import_zod.z.string().nullable().optional(),
|
|
178
|
+
fee: import_zod.z.number().nullable().optional(),
|
|
179
|
+
mask: import_zod.z.number().nullable().optional(),
|
|
180
|
+
reload: import_zod.z.number().nullable().optional(),
|
|
181
|
+
strategy: import_zod.z.number().nullable().optional()
|
|
182
|
+
});
|
|
183
|
+
var OreMinerIdSchema = import_zod.z.object({
|
|
184
|
+
authority: import_zod.z.string().nullable().optional(),
|
|
185
|
+
automation_address: import_zod.z.string().nullable().optional(),
|
|
186
|
+
miner_address: import_zod.z.string().nullable().optional()
|
|
187
|
+
});
|
|
188
|
+
var OreMinerRewardsSchema = import_zod.z.object({
|
|
189
|
+
lifetime_deployed: import_zod.z.number().nullable().optional(),
|
|
190
|
+
lifetime_rewards_ore: import_zod.z.number().nullable().optional(),
|
|
191
|
+
lifetime_rewards_sol: import_zod.z.number().nullable().optional(),
|
|
192
|
+
refined_ore: import_zod.z.number().nullable().optional(),
|
|
193
|
+
rewards_ore: import_zod.z.number().nullable().optional(),
|
|
194
|
+
rewards_sol: import_zod.z.number().nullable().optional()
|
|
195
|
+
});
|
|
196
|
+
var OreMinerStateSchema = import_zod.z.object({
|
|
197
|
+
checkpoint_fee: import_zod.z.number().nullable().optional(),
|
|
198
|
+
checkpoint_id: import_zod.z.number().nullable().optional(),
|
|
199
|
+
last_claim_ore_at: import_zod.z.number().nullable().optional(),
|
|
200
|
+
last_claim_sol_at: import_zod.z.number().nullable().optional(),
|
|
201
|
+
round_id: import_zod.z.number().nullable().optional()
|
|
202
|
+
});
|
|
203
|
+
var OreMinerSchema = import_zod.z.object({
|
|
204
|
+
automation: OreMinerAutomationSchema.optional(),
|
|
205
|
+
id: OreMinerIdSchema.optional(),
|
|
206
|
+
rewards: OreMinerRewardsSchema.optional(),
|
|
207
|
+
state: OreMinerStateSchema.optional(),
|
|
208
|
+
miner_snapshot: MinerSchema.nullable().optional(),
|
|
209
|
+
automation_snapshot: AutomationSchema.nullable().optional()
|
|
210
|
+
});
|
|
211
|
+
var OreMinerCompletedSchema = import_zod.z.object({
|
|
212
|
+
automation: OreMinerAutomationSchema,
|
|
213
|
+
id: OreMinerIdSchema,
|
|
214
|
+
rewards: OreMinerRewardsSchema,
|
|
215
|
+
state: OreMinerStateSchema,
|
|
216
|
+
miner_snapshot: MinerSchema,
|
|
217
|
+
automation_snapshot: AutomationSchema
|
|
218
|
+
});
|
|
27
219
|
function stateView(view) {
|
|
28
220
|
return { mode: "state", view };
|
|
29
221
|
}
|
|
30
222
|
function listView(view) {
|
|
31
223
|
return { mode: "list", view };
|
|
32
224
|
}
|
|
33
|
-
var
|
|
34
|
-
name: "ore-
|
|
225
|
+
var ORE_STREAM_STACK = {
|
|
226
|
+
name: "ore-stream",
|
|
35
227
|
url: "wss://ore.stack.usehyperstack.com",
|
|
36
228
|
views: {
|
|
37
229
|
OreRound: {
|
|
38
230
|
state: stateView("OreRound/state"),
|
|
39
231
|
list: listView("OreRound/list"),
|
|
40
232
|
latest: listView("OreRound/latest")
|
|
233
|
+
},
|
|
234
|
+
OreTreasury: {
|
|
235
|
+
state: stateView("OreTreasury/state"),
|
|
236
|
+
list: listView("OreTreasury/list")
|
|
237
|
+
},
|
|
238
|
+
OreMiner: {
|
|
239
|
+
state: stateView("OreMiner/state"),
|
|
240
|
+
list: listView("OreMiner/list")
|
|
41
241
|
}
|
|
242
|
+
},
|
|
243
|
+
schemas: {
|
|
244
|
+
Automation: AutomationSchema,
|
|
245
|
+
Miner: MinerSchema,
|
|
246
|
+
OreMinerAutomation: OreMinerAutomationSchema,
|
|
247
|
+
OreMinerCompleted: OreMinerCompletedSchema,
|
|
248
|
+
OreMinerId: OreMinerIdSchema,
|
|
249
|
+
OreMinerRewards: OreMinerRewardsSchema,
|
|
250
|
+
OreMiner: OreMinerSchema,
|
|
251
|
+
OreMinerState: OreMinerStateSchema,
|
|
252
|
+
OreRoundCompleted: OreRoundCompletedSchema,
|
|
253
|
+
OreRoundEntropy: OreRoundEntropySchema,
|
|
254
|
+
OreRoundId: OreRoundIdSchema,
|
|
255
|
+
OreRoundMetrics: OreRoundMetricsSchema,
|
|
256
|
+
OreRoundResults: OreRoundResultsSchema,
|
|
257
|
+
OreRound: OreRoundSchema,
|
|
258
|
+
OreRoundState: OreRoundStateSchema,
|
|
259
|
+
OreRoundTreasury: OreRoundTreasurySchema,
|
|
260
|
+
OreTreasuryCompleted: OreTreasuryCompletedSchema,
|
|
261
|
+
OreTreasuryId: OreTreasuryIdSchema,
|
|
262
|
+
OreTreasury: OreTreasurySchema,
|
|
263
|
+
OreTreasuryState: OreTreasuryStateSchema,
|
|
264
|
+
TokenMetadata: TokenMetadataSchema,
|
|
265
|
+
Treasury: TreasurySchema
|
|
42
266
|
}
|
|
43
267
|
};
|
|
44
|
-
var ore_default =
|
|
268
|
+
var ore_default = ORE_STREAM_STACK;
|
|
45
269
|
// Annotate the CommonJS export names for ESM import in node:
|
|
46
270
|
0 && (module.exports = {
|
|
47
|
-
|
|
271
|
+
AutomationSchema,
|
|
272
|
+
MinerSchema,
|
|
273
|
+
ORE_STREAM_STACK,
|
|
274
|
+
OreMinerAutomationSchema,
|
|
275
|
+
OreMinerCompletedSchema,
|
|
276
|
+
OreMinerIdSchema,
|
|
277
|
+
OreMinerRewardsSchema,
|
|
278
|
+
OreMinerSchema,
|
|
279
|
+
OreMinerStateSchema,
|
|
280
|
+
OreRoundCompletedSchema,
|
|
281
|
+
OreRoundEntropySchema,
|
|
282
|
+
OreRoundIdSchema,
|
|
283
|
+
OreRoundMetricsSchema,
|
|
284
|
+
OreRoundResultsSchema,
|
|
285
|
+
OreRoundSchema,
|
|
286
|
+
OreRoundStateSchema,
|
|
287
|
+
OreRoundTreasurySchema,
|
|
288
|
+
OreTreasuryCompletedSchema,
|
|
289
|
+
OreTreasuryIdSchema,
|
|
290
|
+
OreTreasurySchema,
|
|
291
|
+
OreTreasuryStateSchema,
|
|
292
|
+
TokenMetadataSchema,
|
|
293
|
+
TreasurySchema
|
|
48
294
|
});
|