hyperstack-stacks 0.5.3 → 0.5.4
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 +142 -362
- package/dist/index.d.cts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +141 -360
- package/dist/ore/index.cjs +2 -1
- package/dist/ore/index.d.cts +191 -164
- package/dist/ore/index.d.ts +191 -164
- package/dist/ore/index.js +2 -1
- package/package.json +4 -10
- package/dist/pumpfun/index.cjs +0 -284
- package/dist/pumpfun/index.d.cts +0 -4907
- package/dist/pumpfun/index.d.ts +0 -4907
- package/dist/pumpfun/index.js +0 -241
package/dist/index.js
CHANGED
|
@@ -1,273 +1,55 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/ore/index.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
timestamp: z.number(),
|
|
6
|
-
data,
|
|
7
|
-
slot: z.number().optional(),
|
|
8
|
-
signature: z.string().optional()
|
|
9
|
-
});
|
|
10
|
-
var CreateSchema = z.object({
|
|
11
|
-
mint: z.string().optional(),
|
|
12
|
-
mint_authority: z.string().optional(),
|
|
13
|
-
bonding_curve: z.string().optional(),
|
|
14
|
-
associated_bonding_curve: z.string().optional(),
|
|
15
|
-
global: z.string().optional(),
|
|
16
|
-
mpl_token_metadata: z.string().optional(),
|
|
17
|
-
metadata: z.string().optional(),
|
|
18
|
-
user: z.string().optional(),
|
|
19
|
-
system_program: z.string().optional(),
|
|
20
|
-
token_program: z.string().optional(),
|
|
21
|
-
associated_token_program: z.string().optional(),
|
|
22
|
-
rent: z.string().optional(),
|
|
23
|
-
event_authority: z.string().optional(),
|
|
24
|
-
program: z.string().optional(),
|
|
25
|
-
name: z.string().optional(),
|
|
26
|
-
symbol: z.string().optional(),
|
|
27
|
-
uri: z.string().optional(),
|
|
28
|
-
creator: z.string().optional()
|
|
29
|
-
});
|
|
30
|
-
var BuySchema = z.object({
|
|
31
|
-
global: z.string().optional(),
|
|
32
|
-
fee_recipient: z.string().optional(),
|
|
33
|
-
mint: z.string().optional(),
|
|
34
|
-
bonding_curve: z.string().optional(),
|
|
35
|
-
associated_bonding_curve: z.string().optional(),
|
|
36
|
-
associated_user: z.string().optional(),
|
|
37
|
-
user: z.string().optional(),
|
|
38
|
-
system_program: z.string().optional(),
|
|
39
|
-
token_program: z.string().optional(),
|
|
40
|
-
creator_vault: z.string().optional(),
|
|
41
|
-
event_authority: z.string().optional(),
|
|
42
|
-
program: z.string().optional(),
|
|
43
|
-
global_volume_accumulator: z.string().optional(),
|
|
44
|
-
user_volume_accumulator: z.string().optional(),
|
|
45
|
-
fee_config: z.string().optional(),
|
|
46
|
-
fee_program: z.string().optional(),
|
|
47
|
-
amount: z.number().optional(),
|
|
48
|
-
max_sol_cost: z.number().optional(),
|
|
49
|
-
track_volume: z.record(z.any()).optional()
|
|
50
|
-
});
|
|
51
|
-
var SellSchema = z.object({
|
|
52
|
-
global: z.string().optional(),
|
|
53
|
-
fee_recipient: z.string().optional(),
|
|
54
|
-
mint: z.string().optional(),
|
|
55
|
-
bonding_curve: z.string().optional(),
|
|
56
|
-
associated_bonding_curve: z.string().optional(),
|
|
57
|
-
associated_user: z.string().optional(),
|
|
58
|
-
user: z.string().optional(),
|
|
59
|
-
system_program: z.string().optional(),
|
|
60
|
-
creator_vault: z.string().optional(),
|
|
61
|
-
token_program: z.string().optional(),
|
|
62
|
-
event_authority: z.string().optional(),
|
|
63
|
-
program: z.string().optional(),
|
|
64
|
-
fee_config: z.string().optional(),
|
|
65
|
-
fee_program: z.string().optional(),
|
|
66
|
-
amount: z.number().optional(),
|
|
67
|
-
min_sol_output: z.number().optional()
|
|
68
|
-
});
|
|
69
|
-
var BondingCurveSchema = z.object({
|
|
70
|
-
virtual_token_reserves: z.number().optional(),
|
|
71
|
-
virtual_sol_reserves: z.number().optional(),
|
|
72
|
-
real_token_reserves: z.number().optional(),
|
|
73
|
-
real_sol_reserves: z.number().optional(),
|
|
74
|
-
token_total_supply: z.number().optional(),
|
|
75
|
-
complete: z.boolean().optional(),
|
|
76
|
-
creator: z.string().optional(),
|
|
77
|
-
is_mayhem_mode: z.boolean().optional()
|
|
78
|
-
});
|
|
79
|
-
var BuysEventSchema = z.object({
|
|
80
|
-
amount: z.number(),
|
|
81
|
-
max_sol_cost: z.number()
|
|
82
|
-
});
|
|
83
|
-
var BuysExactSolEventSchema = z.object({
|
|
84
|
-
spendable_sol_in: z.number(),
|
|
85
|
-
min_tokens_out: z.number()
|
|
86
|
-
});
|
|
87
|
-
var CreateEventSchema = z.object({});
|
|
88
|
-
var CreateV2EventSchema = z.object({});
|
|
89
|
-
var SellsEventSchema = z.object({});
|
|
90
|
-
var ConfigStatusSchema = z.enum(["Paused", "Active"]);
|
|
91
|
-
var PumpfunTokenEventsSchema = z.object({
|
|
92
|
-
buys: z.array(EventWrapperSchema(BuySchema)).nullable().optional(),
|
|
93
|
-
buys_exact_sol: z.array(z.any()).nullable().optional(),
|
|
94
|
-
create: CreateSchema.nullable().optional(),
|
|
95
|
-
create_v2: z.record(z.any()).nullable().optional(),
|
|
96
|
-
sells: z.array(EventWrapperSchema(SellSchema)).nullable().optional()
|
|
97
|
-
});
|
|
98
|
-
var PumpfunTokenIdSchema = z.object({
|
|
99
|
-
bonding_curve: z.string().nullable().optional(),
|
|
100
|
-
mint: z.string().nullable().optional()
|
|
101
|
-
});
|
|
102
|
-
var PumpfunTokenInfoSchema = z.object({
|
|
103
|
-
is_complete: z.boolean().nullable().optional(),
|
|
3
|
+
var TokenMetadataSchema = z.object({
|
|
4
|
+
mint: z.string(),
|
|
104
5
|
name: z.string().nullable().optional(),
|
|
105
6
|
symbol: z.string().nullable().optional(),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
function listView(view) {
|
|
154
|
-
return { mode: "list", view };
|
|
155
|
-
}
|
|
156
|
-
var PUMPFUN_STREAM_STACK = {
|
|
157
|
-
name: "pumpfun-stream",
|
|
158
|
-
url: "wss://pumpfun.stack.usehyperstack.com",
|
|
159
|
-
views: {
|
|
160
|
-
PumpfunToken: {
|
|
161
|
-
state: stateView("PumpfunToken/state"),
|
|
162
|
-
list: listView("PumpfunToken/list")
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
schemas: {
|
|
166
|
-
BondingCurve: BondingCurveSchema,
|
|
167
|
-
Buy: BuySchema,
|
|
168
|
-
BuysEvent: BuysEventSchema,
|
|
169
|
-
BuysExactSolEvent: BuysExactSolEventSchema,
|
|
170
|
-
ConfigStatus: ConfigStatusSchema,
|
|
171
|
-
CreateEvent: CreateEventSchema,
|
|
172
|
-
Create: CreateSchema,
|
|
173
|
-
CreateV2Event: CreateV2EventSchema,
|
|
174
|
-
EventWrapper: EventWrapperSchema,
|
|
175
|
-
PumpfunTokenCompleted: PumpfunTokenCompletedSchema,
|
|
176
|
-
PumpfunTokenEvents: PumpfunTokenEventsSchema,
|
|
177
|
-
PumpfunTokenId: PumpfunTokenIdSchema,
|
|
178
|
-
PumpfunTokenInfo: PumpfunTokenInfoSchema,
|
|
179
|
-
PumpfunTokenReserves: PumpfunTokenReservesSchema,
|
|
180
|
-
PumpfunToken: PumpfunTokenSchema,
|
|
181
|
-
PumpfunTokenTrading: PumpfunTokenTradingSchema,
|
|
182
|
-
Sell: SellSchema,
|
|
183
|
-
SellsEvent: SellsEventSchema
|
|
184
|
-
},
|
|
185
|
-
pdas: {
|
|
186
|
-
pump: {
|
|
187
|
-
amm_global_config: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("global_config")),
|
|
188
|
-
associated_bonding_curve: pda("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", account("bonding_curve"), account("token_program"), account("mint")),
|
|
189
|
-
bonding_curve: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("bonding-curve"), account("mint")),
|
|
190
|
-
creator_vault: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("creator-vault"), account("bonding_curve.creator")),
|
|
191
|
-
event_authority: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("__event_authority")),
|
|
192
|
-
fee_config: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("fee_config"), bytes(new Uint8Array([1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23, 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43, 182, 253, 109, 24, 176]))),
|
|
193
|
-
global: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("global")),
|
|
194
|
-
global_incentive_token_account: pda("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", account("global_volume_accumulator"), account("token_program"), account("mint")),
|
|
195
|
-
global_params: pda("MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e", literal("global-params")),
|
|
196
|
-
global_volume_accumulator: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("global_volume_accumulator")),
|
|
197
|
-
lp_mint: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("pool_lp_mint"), account("pool")),
|
|
198
|
-
mayhem_state: pda("MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e", literal("mayhem-state"), account("mint")),
|
|
199
|
-
mayhem_token_vault: pda("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", account("sol_vault_authority"), account("token_program"), account("mint")),
|
|
200
|
-
metadata: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("metadata"), bytes(new Uint8Array([11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107, 4, 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182, 209, 188, 3, 248, 41, 70])), account("mint")),
|
|
201
|
-
mint_authority: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("mint-authority")),
|
|
202
|
-
pool: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("pool"), literal("\0\0"), account("pool_authority"), account("mint"), account("wsol_mint")),
|
|
203
|
-
pool_authority: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("pool-authority"), account("mint")),
|
|
204
|
-
pool_authority_mint_account: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", account("pool_authority"), account("mint"), account("mint")),
|
|
205
|
-
pool_authority_wsol_account: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", account("pool_authority"), account("token_program"), account("wsol_mint")),
|
|
206
|
-
pool_base_token_account: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", account("pool"), account("mint"), account("mint")),
|
|
207
|
-
pool_quote_token_account: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", account("pool"), account("token_program"), account("wsol_mint")),
|
|
208
|
-
program_signer: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"),
|
|
209
|
-
pump_amm_event_authority: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("__event_authority")),
|
|
210
|
-
sharing_config: pda("pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ", literal("sharing-config"), account("mint")),
|
|
211
|
-
sol_vault: pda("MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e", literal("sol-vault")),
|
|
212
|
-
sol_vault_authority: pda("MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e", literal("sol-vault")),
|
|
213
|
-
user_ata: pda("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", account("user"), account("token_program"), account("mint")),
|
|
214
|
-
user_pool_token_account: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", account("pool_authority"), account("token_2022_program"), account("lp_mint")),
|
|
215
|
-
user_volume_accumulator: pda("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", literal("user_volume_accumulator"), account("user"))
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
// src/ore/index.ts
|
|
221
|
-
import { z as z2 } from "zod";
|
|
222
|
-
var TokenMetadataSchema = z2.object({
|
|
223
|
-
mint: z2.string(),
|
|
224
|
-
name: z2.string().nullable().optional(),
|
|
225
|
-
symbol: z2.string().nullable().optional(),
|
|
226
|
-
decimals: z2.number().nullable().optional(),
|
|
227
|
-
logo_uri: z2.string().nullable().optional()
|
|
228
|
-
});
|
|
229
|
-
var OreRoundEntropySchema = z2.object({
|
|
230
|
-
entropy_end_at: z2.number().nullable().optional(),
|
|
231
|
-
entropy_samples: z2.number().nullable().optional(),
|
|
232
|
-
entropy_seed: z2.string().nullable().optional(),
|
|
233
|
-
entropy_slot_hash: z2.string().nullable().optional(),
|
|
234
|
-
entropy_start_at: z2.number().nullable().optional(),
|
|
235
|
-
entropy_value: z2.string().nullable().optional(),
|
|
236
|
-
entropy_var_address: z2.string().nullable().optional()
|
|
237
|
-
});
|
|
238
|
-
var OreRoundIdSchema = z2.object({
|
|
239
|
-
round_address: z2.string().nullable().optional(),
|
|
240
|
-
round_id: z2.number().nullable().optional()
|
|
241
|
-
});
|
|
242
|
-
var OreRoundMetricsSchema = z2.object({
|
|
243
|
-
checkpoint_count: z2.number().nullable().optional(),
|
|
244
|
-
deploy_count: z2.number().nullable().optional()
|
|
245
|
-
});
|
|
246
|
-
var OreRoundResultsSchema = z2.object({
|
|
247
|
-
did_hit_motherlode: z2.boolean().nullable().optional(),
|
|
248
|
-
rent_payer: z2.string().nullable().optional(),
|
|
249
|
-
rng: z2.number().nullable().optional(),
|
|
250
|
-
slot_hash: z2.string().nullable().optional(),
|
|
251
|
-
top_miner: z2.string().nullable().optional(),
|
|
252
|
-
top_miner_reward: z2.number().nullable().optional(),
|
|
253
|
-
winning_square: z2.number().nullable().optional()
|
|
254
|
-
});
|
|
255
|
-
var OreRoundStateSchema = z2.object({
|
|
256
|
-
count_per_square: z2.array(z2.any()).nullable().optional(),
|
|
257
|
-
deployed_per_square: z2.array(z2.any()).nullable().optional(),
|
|
258
|
-
deployed_per_square_ui: z2.array(z2.any()).nullable().optional(),
|
|
259
|
-
estimated_expires_at_unix: z2.number().nullable().optional(),
|
|
260
|
-
expires_at: z2.number().nullable().optional(),
|
|
261
|
-
motherlode: z2.number().nullable().optional(),
|
|
262
|
-
total_deployed: z2.number().nullable().optional(),
|
|
263
|
-
total_miners: z2.number().nullable().optional(),
|
|
264
|
-
total_vaulted: z2.number().nullable().optional(),
|
|
265
|
-
total_winnings: z2.number().nullable().optional()
|
|
266
|
-
});
|
|
267
|
-
var OreRoundTreasurySchema = z2.object({
|
|
268
|
-
motherlode: z2.number().nullable().optional()
|
|
269
|
-
});
|
|
270
|
-
var OreRoundSchema = z2.object({
|
|
7
|
+
decimals: z.number().nullable().optional(),
|
|
8
|
+
logo_uri: z.string().nullable().optional()
|
|
9
|
+
});
|
|
10
|
+
var OreRoundEntropySchema = z.object({
|
|
11
|
+
entropy_end_at: z.number().nullable().optional(),
|
|
12
|
+
entropy_samples: z.number().nullable().optional(),
|
|
13
|
+
entropy_seed: z.string().nullable().optional(),
|
|
14
|
+
entropy_slot_hash: z.string().nullable().optional(),
|
|
15
|
+
entropy_start_at: z.number().nullable().optional(),
|
|
16
|
+
entropy_value: z.string().nullable().optional(),
|
|
17
|
+
entropy_var_address: z.string().nullable().optional(),
|
|
18
|
+
resolved_seed: z.array(z.any()).nullable().optional()
|
|
19
|
+
});
|
|
20
|
+
var OreRoundIdSchema = z.object({
|
|
21
|
+
round_address: z.string().nullable().optional(),
|
|
22
|
+
round_id: z.number().nullable().optional()
|
|
23
|
+
});
|
|
24
|
+
var OreRoundMetricsSchema = z.object({
|
|
25
|
+
checkpoint_count: z.number().nullable().optional(),
|
|
26
|
+
deploy_count: z.number().nullable().optional()
|
|
27
|
+
});
|
|
28
|
+
var OreRoundResultsSchema = z.object({
|
|
29
|
+
did_hit_motherlode: z.boolean().nullable().optional(),
|
|
30
|
+
rent_payer: z.string().nullable().optional(),
|
|
31
|
+
rng: z.number().nullable().optional(),
|
|
32
|
+
slot_hash: z.string().nullable().optional(),
|
|
33
|
+
top_miner: z.string().nullable().optional(),
|
|
34
|
+
top_miner_reward: z.number().nullable().optional(),
|
|
35
|
+
winning_square: z.number().nullable().optional()
|
|
36
|
+
});
|
|
37
|
+
var OreRoundStateSchema = z.object({
|
|
38
|
+
count_per_square: z.array(z.any()).nullable().optional(),
|
|
39
|
+
deployed_per_square: z.array(z.any()).nullable().optional(),
|
|
40
|
+
deployed_per_square_ui: z.array(z.any()).nullable().optional(),
|
|
41
|
+
estimated_expires_at_unix: z.number().nullable().optional(),
|
|
42
|
+
expires_at: z.number().nullable().optional(),
|
|
43
|
+
motherlode: z.number().nullable().optional(),
|
|
44
|
+
total_deployed: z.number().nullable().optional(),
|
|
45
|
+
total_miners: z.number().nullable().optional(),
|
|
46
|
+
total_vaulted: z.number().nullable().optional(),
|
|
47
|
+
total_winnings: z.number().nullable().optional()
|
|
48
|
+
});
|
|
49
|
+
var OreRoundTreasurySchema = z.object({
|
|
50
|
+
motherlode: z.number().nullable().optional()
|
|
51
|
+
});
|
|
52
|
+
var OreRoundSchema = z.object({
|
|
271
53
|
entropy: OreRoundEntropySchema.optional(),
|
|
272
54
|
id: OreRoundIdSchema.optional(),
|
|
273
55
|
metrics: OreRoundMetricsSchema.optional(),
|
|
@@ -276,7 +58,7 @@ var OreRoundSchema = z2.object({
|
|
|
276
58
|
treasury: OreRoundTreasurySchema.optional(),
|
|
277
59
|
ore_metadata: TokenMetadataSchema.nullable().optional()
|
|
278
60
|
});
|
|
279
|
-
var OreRoundCompletedSchema =
|
|
61
|
+
var OreRoundCompletedSchema = z.object({
|
|
280
62
|
entropy: OreRoundEntropySchema,
|
|
281
63
|
id: OreRoundIdSchema,
|
|
282
64
|
metrics: OreRoundMetricsSchema,
|
|
@@ -285,94 +67,94 @@ var OreRoundCompletedSchema = z2.object({
|
|
|
285
67
|
treasury: OreRoundTreasurySchema,
|
|
286
68
|
ore_metadata: TokenMetadataSchema
|
|
287
69
|
});
|
|
288
|
-
var TreasurySchema =
|
|
289
|
-
balance:
|
|
290
|
-
buffer_a:
|
|
291
|
-
motherlode:
|
|
292
|
-
miner_rewards_factor:
|
|
293
|
-
stake_rewards_factor:
|
|
294
|
-
buffer_b:
|
|
295
|
-
total_refined:
|
|
296
|
-
total_staked:
|
|
297
|
-
total_unclaimed:
|
|
298
|
-
});
|
|
299
|
-
var OreTreasuryIdSchema =
|
|
300
|
-
address:
|
|
301
|
-
});
|
|
302
|
-
var OreTreasuryStateSchema =
|
|
303
|
-
balance:
|
|
304
|
-
motherlode:
|
|
305
|
-
total_refined:
|
|
306
|
-
total_staked:
|
|
307
|
-
total_unclaimed:
|
|
308
|
-
});
|
|
309
|
-
var OreTreasurySchema =
|
|
70
|
+
var TreasurySchema = z.object({
|
|
71
|
+
balance: z.number().optional(),
|
|
72
|
+
buffer_a: z.number().optional(),
|
|
73
|
+
motherlode: z.number().optional(),
|
|
74
|
+
miner_rewards_factor: z.record(z.any()).optional(),
|
|
75
|
+
stake_rewards_factor: z.record(z.any()).optional(),
|
|
76
|
+
buffer_b: z.number().optional(),
|
|
77
|
+
total_refined: z.number().optional(),
|
|
78
|
+
total_staked: z.number().optional(),
|
|
79
|
+
total_unclaimed: z.number().optional()
|
|
80
|
+
});
|
|
81
|
+
var OreTreasuryIdSchema = z.object({
|
|
82
|
+
address: z.string().nullable().optional()
|
|
83
|
+
});
|
|
84
|
+
var OreTreasuryStateSchema = z.object({
|
|
85
|
+
balance: z.number().nullable().optional(),
|
|
86
|
+
motherlode: z.number().nullable().optional(),
|
|
87
|
+
total_refined: z.number().nullable().optional(),
|
|
88
|
+
total_staked: z.number().nullable().optional(),
|
|
89
|
+
total_unclaimed: z.number().nullable().optional()
|
|
90
|
+
});
|
|
91
|
+
var OreTreasurySchema = z.object({
|
|
310
92
|
id: OreTreasuryIdSchema.optional(),
|
|
311
93
|
state: OreTreasuryStateSchema.optional(),
|
|
312
94
|
treasury_snapshot: TreasurySchema.nullable().optional()
|
|
313
95
|
});
|
|
314
|
-
var OreTreasuryCompletedSchema =
|
|
96
|
+
var OreTreasuryCompletedSchema = z.object({
|
|
315
97
|
id: OreTreasuryIdSchema,
|
|
316
98
|
state: OreTreasuryStateSchema,
|
|
317
99
|
treasury_snapshot: TreasurySchema
|
|
318
100
|
});
|
|
319
|
-
var MinerSchema =
|
|
320
|
-
authority:
|
|
321
|
-
deployed:
|
|
322
|
-
cumulative:
|
|
323
|
-
checkpoint_fee:
|
|
324
|
-
checkpoint_id:
|
|
325
|
-
last_claim_ore_at:
|
|
326
|
-
last_claim_sol_at:
|
|
327
|
-
rewards_factor:
|
|
328
|
-
rewards_sol:
|
|
329
|
-
rewards_ore:
|
|
330
|
-
refined_ore:
|
|
331
|
-
round_id:
|
|
332
|
-
lifetime_rewards_sol:
|
|
333
|
-
lifetime_rewards_ore:
|
|
334
|
-
lifetime_deployed:
|
|
335
|
-
});
|
|
336
|
-
var AutomationSchema =
|
|
337
|
-
amount:
|
|
338
|
-
authority:
|
|
339
|
-
balance:
|
|
340
|
-
executor:
|
|
341
|
-
fee:
|
|
342
|
-
strategy:
|
|
343
|
-
mask:
|
|
344
|
-
reload:
|
|
345
|
-
});
|
|
346
|
-
var OreMinerAutomationSchema =
|
|
347
|
-
amount:
|
|
348
|
-
balance:
|
|
349
|
-
executor:
|
|
350
|
-
fee:
|
|
351
|
-
mask:
|
|
352
|
-
reload:
|
|
353
|
-
strategy:
|
|
354
|
-
});
|
|
355
|
-
var OreMinerIdSchema =
|
|
356
|
-
authority:
|
|
357
|
-
automation_address:
|
|
358
|
-
miner_address:
|
|
359
|
-
});
|
|
360
|
-
var OreMinerRewardsSchema =
|
|
361
|
-
lifetime_deployed:
|
|
362
|
-
lifetime_rewards_ore:
|
|
363
|
-
lifetime_rewards_sol:
|
|
364
|
-
refined_ore:
|
|
365
|
-
rewards_ore:
|
|
366
|
-
rewards_sol:
|
|
367
|
-
});
|
|
368
|
-
var OreMinerStateSchema =
|
|
369
|
-
checkpoint_fee:
|
|
370
|
-
checkpoint_id:
|
|
371
|
-
last_claim_ore_at:
|
|
372
|
-
last_claim_sol_at:
|
|
373
|
-
round_id:
|
|
374
|
-
});
|
|
375
|
-
var OreMinerSchema =
|
|
101
|
+
var MinerSchema = z.object({
|
|
102
|
+
authority: z.string().optional(),
|
|
103
|
+
deployed: z.array(z.number()).optional(),
|
|
104
|
+
cumulative: z.array(z.number()).optional(),
|
|
105
|
+
checkpoint_fee: z.number().optional(),
|
|
106
|
+
checkpoint_id: z.number().optional(),
|
|
107
|
+
last_claim_ore_at: z.number().optional(),
|
|
108
|
+
last_claim_sol_at: z.number().optional(),
|
|
109
|
+
rewards_factor: z.record(z.any()).optional(),
|
|
110
|
+
rewards_sol: z.number().optional(),
|
|
111
|
+
rewards_ore: z.number().optional(),
|
|
112
|
+
refined_ore: z.number().optional(),
|
|
113
|
+
round_id: z.number().optional(),
|
|
114
|
+
lifetime_rewards_sol: z.number().optional(),
|
|
115
|
+
lifetime_rewards_ore: z.number().optional(),
|
|
116
|
+
lifetime_deployed: z.number().optional()
|
|
117
|
+
});
|
|
118
|
+
var AutomationSchema = z.object({
|
|
119
|
+
amount: z.number().optional(),
|
|
120
|
+
authority: z.string().optional(),
|
|
121
|
+
balance: z.number().optional(),
|
|
122
|
+
executor: z.string().optional(),
|
|
123
|
+
fee: z.number().optional(),
|
|
124
|
+
strategy: z.number().optional(),
|
|
125
|
+
mask: z.number().optional(),
|
|
126
|
+
reload: z.number().optional()
|
|
127
|
+
});
|
|
128
|
+
var OreMinerAutomationSchema = z.object({
|
|
129
|
+
amount: z.number().nullable().optional(),
|
|
130
|
+
balance: z.number().nullable().optional(),
|
|
131
|
+
executor: z.string().nullable().optional(),
|
|
132
|
+
fee: z.number().nullable().optional(),
|
|
133
|
+
mask: z.number().nullable().optional(),
|
|
134
|
+
reload: z.number().nullable().optional(),
|
|
135
|
+
strategy: z.number().nullable().optional()
|
|
136
|
+
});
|
|
137
|
+
var OreMinerIdSchema = z.object({
|
|
138
|
+
authority: z.string().nullable().optional(),
|
|
139
|
+
automation_address: z.string().nullable().optional(),
|
|
140
|
+
miner_address: z.string().nullable().optional()
|
|
141
|
+
});
|
|
142
|
+
var OreMinerRewardsSchema = z.object({
|
|
143
|
+
lifetime_deployed: z.number().nullable().optional(),
|
|
144
|
+
lifetime_rewards_ore: z.number().nullable().optional(),
|
|
145
|
+
lifetime_rewards_sol: z.number().nullable().optional(),
|
|
146
|
+
refined_ore: z.number().nullable().optional(),
|
|
147
|
+
rewards_ore: z.number().nullable().optional(),
|
|
148
|
+
rewards_sol: z.number().nullable().optional()
|
|
149
|
+
});
|
|
150
|
+
var OreMinerStateSchema = z.object({
|
|
151
|
+
checkpoint_fee: z.number().nullable().optional(),
|
|
152
|
+
checkpoint_id: z.number().nullable().optional(),
|
|
153
|
+
last_claim_ore_at: z.number().nullable().optional(),
|
|
154
|
+
last_claim_sol_at: z.number().nullable().optional(),
|
|
155
|
+
round_id: z.number().nullable().optional()
|
|
156
|
+
});
|
|
157
|
+
var OreMinerSchema = z.object({
|
|
376
158
|
automation: OreMinerAutomationSchema.optional(),
|
|
377
159
|
id: OreMinerIdSchema.optional(),
|
|
378
160
|
rewards: OreMinerRewardsSchema.optional(),
|
|
@@ -380,7 +162,7 @@ var OreMinerSchema = z2.object({
|
|
|
380
162
|
miner_snapshot: MinerSchema.nullable().optional(),
|
|
381
163
|
automation_snapshot: AutomationSchema.nullable().optional()
|
|
382
164
|
});
|
|
383
|
-
var OreMinerCompletedSchema =
|
|
165
|
+
var OreMinerCompletedSchema = z.object({
|
|
384
166
|
automation: OreMinerAutomationSchema,
|
|
385
167
|
id: OreMinerIdSchema,
|
|
386
168
|
rewards: OreMinerRewardsSchema,
|
|
@@ -388,10 +170,10 @@ var OreMinerCompletedSchema = z2.object({
|
|
|
388
170
|
miner_snapshot: MinerSchema,
|
|
389
171
|
automation_snapshot: AutomationSchema
|
|
390
172
|
});
|
|
391
|
-
function
|
|
173
|
+
function stateView(view) {
|
|
392
174
|
return { mode: "state", view };
|
|
393
175
|
}
|
|
394
|
-
function
|
|
176
|
+
function listView(view) {
|
|
395
177
|
return { mode: "list", view };
|
|
396
178
|
}
|
|
397
179
|
var ORE_STREAM_STACK = {
|
|
@@ -399,17 +181,17 @@ var ORE_STREAM_STACK = {
|
|
|
399
181
|
url: "wss://ore.stack.usehyperstack.com",
|
|
400
182
|
views: {
|
|
401
183
|
OreRound: {
|
|
402
|
-
state:
|
|
403
|
-
list:
|
|
404
|
-
latest:
|
|
184
|
+
state: stateView("OreRound/state"),
|
|
185
|
+
list: listView("OreRound/list"),
|
|
186
|
+
latest: listView("OreRound/latest")
|
|
405
187
|
},
|
|
406
188
|
OreTreasury: {
|
|
407
|
-
state:
|
|
408
|
-
list:
|
|
189
|
+
state: stateView("OreTreasury/state"),
|
|
190
|
+
list: listView("OreTreasury/list")
|
|
409
191
|
},
|
|
410
192
|
OreMiner: {
|
|
411
|
-
state:
|
|
412
|
-
list:
|
|
193
|
+
state: stateView("OreMiner/state"),
|
|
194
|
+
list: listView("OreMiner/list")
|
|
413
195
|
}
|
|
414
196
|
},
|
|
415
197
|
schemas: {
|
|
@@ -438,6 +220,5 @@ var ORE_STREAM_STACK = {
|
|
|
438
220
|
}
|
|
439
221
|
};
|
|
440
222
|
export {
|
|
441
|
-
ORE_STREAM_STACK
|
|
442
|
-
PUMPFUN_STREAM_STACK
|
|
223
|
+
ORE_STREAM_STACK
|
|
443
224
|
};
|
package/dist/ore/index.cjs
CHANGED
|
@@ -61,7 +61,8 @@ var OreRoundEntropySchema = import_zod.z.object({
|
|
|
61
61
|
entropy_slot_hash: import_zod.z.string().nullable().optional(),
|
|
62
62
|
entropy_start_at: import_zod.z.number().nullable().optional(),
|
|
63
63
|
entropy_value: import_zod.z.string().nullable().optional(),
|
|
64
|
-
entropy_var_address: import_zod.z.string().nullable().optional()
|
|
64
|
+
entropy_var_address: import_zod.z.string().nullable().optional(),
|
|
65
|
+
resolved_seed: import_zod.z.array(import_zod.z.any()).nullable().optional()
|
|
65
66
|
});
|
|
66
67
|
var OreRoundIdSchema = import_zod.z.object({
|
|
67
68
|
round_address: import_zod.z.string().nullable().optional(),
|