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.js
CHANGED
|
@@ -1,23 +1,247 @@
|
|
|
1
1
|
// src/ore/index.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var TokenMetadataSchema = z.object({
|
|
4
|
+
mint: z.string(),
|
|
5
|
+
name: z.string().nullable().optional(),
|
|
6
|
+
symbol: z.string().nullable().optional(),
|
|
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
|
+
});
|
|
19
|
+
var OreRoundIdSchema = z.object({
|
|
20
|
+
round_address: z.string().nullable().optional(),
|
|
21
|
+
round_id: z.number().nullable().optional()
|
|
22
|
+
});
|
|
23
|
+
var OreRoundMetricsSchema = z.object({
|
|
24
|
+
checkpoint_count: z.number().nullable().optional(),
|
|
25
|
+
deploy_count: z.number().nullable().optional()
|
|
26
|
+
});
|
|
27
|
+
var OreRoundResultsSchema = z.object({
|
|
28
|
+
did_hit_motherlode: z.boolean().nullable().optional(),
|
|
29
|
+
rent_payer: z.string().nullable().optional(),
|
|
30
|
+
rng: z.number().nullable().optional(),
|
|
31
|
+
slot_hash: z.string().nullable().optional(),
|
|
32
|
+
top_miner: z.string().nullable().optional(),
|
|
33
|
+
top_miner_reward: z.number().nullable().optional(),
|
|
34
|
+
winning_square: z.number().nullable().optional()
|
|
35
|
+
});
|
|
36
|
+
var OreRoundStateSchema = z.object({
|
|
37
|
+
count_per_square: z.array(z.any()).nullable().optional(),
|
|
38
|
+
deployed_per_square: z.array(z.any()).nullable().optional(),
|
|
39
|
+
deployed_per_square_ui: z.array(z.any()).nullable().optional(),
|
|
40
|
+
estimated_expires_at_unix: z.number().nullable().optional(),
|
|
41
|
+
expires_at: z.number().nullable().optional(),
|
|
42
|
+
motherlode: z.number().nullable().optional(),
|
|
43
|
+
total_deployed: z.number().nullable().optional(),
|
|
44
|
+
total_miners: z.number().nullable().optional(),
|
|
45
|
+
total_vaulted: z.number().nullable().optional(),
|
|
46
|
+
total_winnings: z.number().nullable().optional()
|
|
47
|
+
});
|
|
48
|
+
var OreRoundTreasurySchema = z.object({
|
|
49
|
+
motherlode: z.number().nullable().optional()
|
|
50
|
+
});
|
|
51
|
+
var OreRoundSchema = z.object({
|
|
52
|
+
entropy: OreRoundEntropySchema.optional(),
|
|
53
|
+
id: OreRoundIdSchema.optional(),
|
|
54
|
+
metrics: OreRoundMetricsSchema.optional(),
|
|
55
|
+
results: OreRoundResultsSchema.optional(),
|
|
56
|
+
state: OreRoundStateSchema.optional(),
|
|
57
|
+
treasury: OreRoundTreasurySchema.optional(),
|
|
58
|
+
ore_metadata: TokenMetadataSchema.nullable().optional()
|
|
59
|
+
});
|
|
60
|
+
var OreRoundCompletedSchema = z.object({
|
|
61
|
+
entropy: OreRoundEntropySchema,
|
|
62
|
+
id: OreRoundIdSchema,
|
|
63
|
+
metrics: OreRoundMetricsSchema,
|
|
64
|
+
results: OreRoundResultsSchema,
|
|
65
|
+
state: OreRoundStateSchema,
|
|
66
|
+
treasury: OreRoundTreasurySchema,
|
|
67
|
+
ore_metadata: TokenMetadataSchema
|
|
68
|
+
});
|
|
69
|
+
var TreasurySchema = z.object({
|
|
70
|
+
balance: z.number().optional(),
|
|
71
|
+
buffer_a: z.number().optional(),
|
|
72
|
+
motherlode: z.number().optional(),
|
|
73
|
+
miner_rewards_factor: z.record(z.any()).optional(),
|
|
74
|
+
stake_rewards_factor: z.record(z.any()).optional(),
|
|
75
|
+
buffer_b: z.number().optional(),
|
|
76
|
+
total_refined: z.number().optional(),
|
|
77
|
+
total_staked: z.number().optional(),
|
|
78
|
+
total_unclaimed: z.number().optional()
|
|
79
|
+
});
|
|
80
|
+
var OreTreasuryIdSchema = z.object({
|
|
81
|
+
address: z.string().nullable().optional()
|
|
82
|
+
});
|
|
83
|
+
var OreTreasuryStateSchema = z.object({
|
|
84
|
+
balance: z.number().nullable().optional(),
|
|
85
|
+
motherlode: z.number().nullable().optional(),
|
|
86
|
+
total_refined: z.number().nullable().optional(),
|
|
87
|
+
total_staked: z.number().nullable().optional(),
|
|
88
|
+
total_unclaimed: z.number().nullable().optional()
|
|
89
|
+
});
|
|
90
|
+
var OreTreasurySchema = z.object({
|
|
91
|
+
id: OreTreasuryIdSchema.optional(),
|
|
92
|
+
state: OreTreasuryStateSchema.optional(),
|
|
93
|
+
treasury_snapshot: TreasurySchema.nullable().optional()
|
|
94
|
+
});
|
|
95
|
+
var OreTreasuryCompletedSchema = z.object({
|
|
96
|
+
id: OreTreasuryIdSchema,
|
|
97
|
+
state: OreTreasuryStateSchema,
|
|
98
|
+
treasury_snapshot: TreasurySchema
|
|
99
|
+
});
|
|
100
|
+
var MinerSchema = z.object({
|
|
101
|
+
authority: z.string().optional(),
|
|
102
|
+
deployed: z.array(z.number()).optional(),
|
|
103
|
+
cumulative: z.array(z.number()).optional(),
|
|
104
|
+
checkpoint_fee: z.number().optional(),
|
|
105
|
+
checkpoint_id: z.number().optional(),
|
|
106
|
+
last_claim_ore_at: z.number().optional(),
|
|
107
|
+
last_claim_sol_at: z.number().optional(),
|
|
108
|
+
rewards_factor: z.record(z.any()).optional(),
|
|
109
|
+
rewards_sol: z.number().optional(),
|
|
110
|
+
rewards_ore: z.number().optional(),
|
|
111
|
+
refined_ore: z.number().optional(),
|
|
112
|
+
round_id: z.number().optional(),
|
|
113
|
+
lifetime_rewards_sol: z.number().optional(),
|
|
114
|
+
lifetime_rewards_ore: z.number().optional(),
|
|
115
|
+
lifetime_deployed: z.number().optional()
|
|
116
|
+
});
|
|
117
|
+
var AutomationSchema = z.object({
|
|
118
|
+
amount: z.number().optional(),
|
|
119
|
+
authority: z.string().optional(),
|
|
120
|
+
balance: z.number().optional(),
|
|
121
|
+
executor: z.string().optional(),
|
|
122
|
+
fee: z.number().optional(),
|
|
123
|
+
strategy: z.number().optional(),
|
|
124
|
+
mask: z.number().optional(),
|
|
125
|
+
reload: z.number().optional()
|
|
126
|
+
});
|
|
127
|
+
var OreMinerAutomationSchema = z.object({
|
|
128
|
+
amount: z.number().nullable().optional(),
|
|
129
|
+
balance: z.number().nullable().optional(),
|
|
130
|
+
executor: z.string().nullable().optional(),
|
|
131
|
+
fee: z.number().nullable().optional(),
|
|
132
|
+
mask: z.number().nullable().optional(),
|
|
133
|
+
reload: z.number().nullable().optional(),
|
|
134
|
+
strategy: z.number().nullable().optional()
|
|
135
|
+
});
|
|
136
|
+
var OreMinerIdSchema = z.object({
|
|
137
|
+
authority: z.string().nullable().optional(),
|
|
138
|
+
automation_address: z.string().nullable().optional(),
|
|
139
|
+
miner_address: z.string().nullable().optional()
|
|
140
|
+
});
|
|
141
|
+
var OreMinerRewardsSchema = z.object({
|
|
142
|
+
lifetime_deployed: z.number().nullable().optional(),
|
|
143
|
+
lifetime_rewards_ore: z.number().nullable().optional(),
|
|
144
|
+
lifetime_rewards_sol: z.number().nullable().optional(),
|
|
145
|
+
refined_ore: z.number().nullable().optional(),
|
|
146
|
+
rewards_ore: z.number().nullable().optional(),
|
|
147
|
+
rewards_sol: z.number().nullable().optional()
|
|
148
|
+
});
|
|
149
|
+
var OreMinerStateSchema = z.object({
|
|
150
|
+
checkpoint_fee: z.number().nullable().optional(),
|
|
151
|
+
checkpoint_id: z.number().nullable().optional(),
|
|
152
|
+
last_claim_ore_at: z.number().nullable().optional(),
|
|
153
|
+
last_claim_sol_at: z.number().nullable().optional(),
|
|
154
|
+
round_id: z.number().nullable().optional()
|
|
155
|
+
});
|
|
156
|
+
var OreMinerSchema = z.object({
|
|
157
|
+
automation: OreMinerAutomationSchema.optional(),
|
|
158
|
+
id: OreMinerIdSchema.optional(),
|
|
159
|
+
rewards: OreMinerRewardsSchema.optional(),
|
|
160
|
+
state: OreMinerStateSchema.optional(),
|
|
161
|
+
miner_snapshot: MinerSchema.nullable().optional(),
|
|
162
|
+
automation_snapshot: AutomationSchema.nullable().optional()
|
|
163
|
+
});
|
|
164
|
+
var OreMinerCompletedSchema = z.object({
|
|
165
|
+
automation: OreMinerAutomationSchema,
|
|
166
|
+
id: OreMinerIdSchema,
|
|
167
|
+
rewards: OreMinerRewardsSchema,
|
|
168
|
+
state: OreMinerStateSchema,
|
|
169
|
+
miner_snapshot: MinerSchema,
|
|
170
|
+
automation_snapshot: AutomationSchema
|
|
171
|
+
});
|
|
2
172
|
function stateView(view) {
|
|
3
173
|
return { mode: "state", view };
|
|
4
174
|
}
|
|
5
175
|
function listView(view) {
|
|
6
176
|
return { mode: "list", view };
|
|
7
177
|
}
|
|
8
|
-
var
|
|
9
|
-
name: "ore-
|
|
178
|
+
var ORE_STREAM_STACK = {
|
|
179
|
+
name: "ore-stream",
|
|
10
180
|
url: "wss://ore.stack.usehyperstack.com",
|
|
11
181
|
views: {
|
|
12
182
|
OreRound: {
|
|
13
183
|
state: stateView("OreRound/state"),
|
|
14
184
|
list: listView("OreRound/list"),
|
|
15
185
|
latest: listView("OreRound/latest")
|
|
186
|
+
},
|
|
187
|
+
OreTreasury: {
|
|
188
|
+
state: stateView("OreTreasury/state"),
|
|
189
|
+
list: listView("OreTreasury/list")
|
|
190
|
+
},
|
|
191
|
+
OreMiner: {
|
|
192
|
+
state: stateView("OreMiner/state"),
|
|
193
|
+
list: listView("OreMiner/list")
|
|
16
194
|
}
|
|
195
|
+
},
|
|
196
|
+
schemas: {
|
|
197
|
+
Automation: AutomationSchema,
|
|
198
|
+
Miner: MinerSchema,
|
|
199
|
+
OreMinerAutomation: OreMinerAutomationSchema,
|
|
200
|
+
OreMinerCompleted: OreMinerCompletedSchema,
|
|
201
|
+
OreMinerId: OreMinerIdSchema,
|
|
202
|
+
OreMinerRewards: OreMinerRewardsSchema,
|
|
203
|
+
OreMiner: OreMinerSchema,
|
|
204
|
+
OreMinerState: OreMinerStateSchema,
|
|
205
|
+
OreRoundCompleted: OreRoundCompletedSchema,
|
|
206
|
+
OreRoundEntropy: OreRoundEntropySchema,
|
|
207
|
+
OreRoundId: OreRoundIdSchema,
|
|
208
|
+
OreRoundMetrics: OreRoundMetricsSchema,
|
|
209
|
+
OreRoundResults: OreRoundResultsSchema,
|
|
210
|
+
OreRound: OreRoundSchema,
|
|
211
|
+
OreRoundState: OreRoundStateSchema,
|
|
212
|
+
OreRoundTreasury: OreRoundTreasurySchema,
|
|
213
|
+
OreTreasuryCompleted: OreTreasuryCompletedSchema,
|
|
214
|
+
OreTreasuryId: OreTreasuryIdSchema,
|
|
215
|
+
OreTreasury: OreTreasurySchema,
|
|
216
|
+
OreTreasuryState: OreTreasuryStateSchema,
|
|
217
|
+
TokenMetadata: TokenMetadataSchema,
|
|
218
|
+
Treasury: TreasurySchema
|
|
17
219
|
}
|
|
18
220
|
};
|
|
19
|
-
var ore_default =
|
|
221
|
+
var ore_default = ORE_STREAM_STACK;
|
|
20
222
|
export {
|
|
21
|
-
|
|
223
|
+
AutomationSchema,
|
|
224
|
+
MinerSchema,
|
|
225
|
+
ORE_STREAM_STACK,
|
|
226
|
+
OreMinerAutomationSchema,
|
|
227
|
+
OreMinerCompletedSchema,
|
|
228
|
+
OreMinerIdSchema,
|
|
229
|
+
OreMinerRewardsSchema,
|
|
230
|
+
OreMinerSchema,
|
|
231
|
+
OreMinerStateSchema,
|
|
232
|
+
OreRoundCompletedSchema,
|
|
233
|
+
OreRoundEntropySchema,
|
|
234
|
+
OreRoundIdSchema,
|
|
235
|
+
OreRoundMetricsSchema,
|
|
236
|
+
OreRoundResultsSchema,
|
|
237
|
+
OreRoundSchema,
|
|
238
|
+
OreRoundStateSchema,
|
|
239
|
+
OreRoundTreasurySchema,
|
|
240
|
+
OreTreasuryCompletedSchema,
|
|
241
|
+
OreTreasuryIdSchema,
|
|
242
|
+
OreTreasurySchema,
|
|
243
|
+
OreTreasuryStateSchema,
|
|
244
|
+
TokenMetadataSchema,
|
|
245
|
+
TreasurySchema,
|
|
22
246
|
ore_default as default
|
|
23
247
|
};
|
package/dist/pumpfun/index.cjs
CHANGED
|
@@ -20,28 +20,265 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/pumpfun/index.ts
|
|
21
21
|
var pumpfun_exports = {};
|
|
22
22
|
__export(pumpfun_exports, {
|
|
23
|
-
|
|
23
|
+
BondingCurveSchema: () => BondingCurveSchema,
|
|
24
|
+
BuySchema: () => BuySchema,
|
|
25
|
+
BuysEventSchema: () => BuysEventSchema,
|
|
26
|
+
BuysExactSolEventSchema: () => BuysExactSolEventSchema,
|
|
27
|
+
ConfigStatusSchema: () => ConfigStatusSchema,
|
|
28
|
+
CreateEventSchema: () => CreateEventSchema,
|
|
29
|
+
CreateSchema: () => CreateSchema,
|
|
30
|
+
CreateV2EventSchema: () => CreateV2EventSchema,
|
|
31
|
+
EventWrapperSchema: () => EventWrapperSchema,
|
|
32
|
+
PUMPFUN_STREAM_STACK: () => PUMPFUN_STREAM_STACK,
|
|
33
|
+
PumpfunTokenCompletedSchema: () => PumpfunTokenCompletedSchema,
|
|
34
|
+
PumpfunTokenEventsSchema: () => PumpfunTokenEventsSchema,
|
|
35
|
+
PumpfunTokenIdSchema: () => PumpfunTokenIdSchema,
|
|
36
|
+
PumpfunTokenInfoSchema: () => PumpfunTokenInfoSchema,
|
|
37
|
+
PumpfunTokenReservesSchema: () => PumpfunTokenReservesSchema,
|
|
38
|
+
PumpfunTokenSchema: () => PumpfunTokenSchema,
|
|
39
|
+
PumpfunTokenTradingSchema: () => PumpfunTokenTradingSchema,
|
|
40
|
+
SellSchema: () => SellSchema,
|
|
41
|
+
SellsEventSchema: () => SellsEventSchema,
|
|
24
42
|
default: () => pumpfun_default
|
|
25
43
|
});
|
|
26
44
|
module.exports = __toCommonJS(pumpfun_exports);
|
|
45
|
+
var import_zod = require("zod");
|
|
46
|
+
var import_hyperstack_typescript = require("hyperstack-typescript");
|
|
47
|
+
var EventWrapperSchema = (data) => import_zod.z.object({
|
|
48
|
+
timestamp: import_zod.z.number(),
|
|
49
|
+
data,
|
|
50
|
+
slot: import_zod.z.number().optional(),
|
|
51
|
+
signature: import_zod.z.string().optional()
|
|
52
|
+
});
|
|
53
|
+
var CreateSchema = import_zod.z.object({
|
|
54
|
+
mint: import_zod.z.string().optional(),
|
|
55
|
+
mint_authority: import_zod.z.string().optional(),
|
|
56
|
+
bonding_curve: import_zod.z.string().optional(),
|
|
57
|
+
associated_bonding_curve: import_zod.z.string().optional(),
|
|
58
|
+
global: import_zod.z.string().optional(),
|
|
59
|
+
mpl_token_metadata: import_zod.z.string().optional(),
|
|
60
|
+
metadata: import_zod.z.string().optional(),
|
|
61
|
+
user: import_zod.z.string().optional(),
|
|
62
|
+
system_program: import_zod.z.string().optional(),
|
|
63
|
+
token_program: import_zod.z.string().optional(),
|
|
64
|
+
associated_token_program: import_zod.z.string().optional(),
|
|
65
|
+
rent: import_zod.z.string().optional(),
|
|
66
|
+
event_authority: import_zod.z.string().optional(),
|
|
67
|
+
program: import_zod.z.string().optional(),
|
|
68
|
+
name: import_zod.z.string().optional(),
|
|
69
|
+
symbol: import_zod.z.string().optional(),
|
|
70
|
+
uri: import_zod.z.string().optional(),
|
|
71
|
+
creator: import_zod.z.string().optional()
|
|
72
|
+
});
|
|
73
|
+
var BuySchema = import_zod.z.object({
|
|
74
|
+
global: import_zod.z.string().optional(),
|
|
75
|
+
fee_recipient: import_zod.z.string().optional(),
|
|
76
|
+
mint: import_zod.z.string().optional(),
|
|
77
|
+
bonding_curve: import_zod.z.string().optional(),
|
|
78
|
+
associated_bonding_curve: import_zod.z.string().optional(),
|
|
79
|
+
associated_user: import_zod.z.string().optional(),
|
|
80
|
+
user: import_zod.z.string().optional(),
|
|
81
|
+
system_program: import_zod.z.string().optional(),
|
|
82
|
+
token_program: import_zod.z.string().optional(),
|
|
83
|
+
creator_vault: import_zod.z.string().optional(),
|
|
84
|
+
event_authority: import_zod.z.string().optional(),
|
|
85
|
+
program: import_zod.z.string().optional(),
|
|
86
|
+
global_volume_accumulator: import_zod.z.string().optional(),
|
|
87
|
+
user_volume_accumulator: import_zod.z.string().optional(),
|
|
88
|
+
fee_config: import_zod.z.string().optional(),
|
|
89
|
+
fee_program: import_zod.z.string().optional(),
|
|
90
|
+
amount: import_zod.z.number().optional(),
|
|
91
|
+
max_sol_cost: import_zod.z.number().optional(),
|
|
92
|
+
track_volume: import_zod.z.record(import_zod.z.any()).optional()
|
|
93
|
+
});
|
|
94
|
+
var SellSchema = import_zod.z.object({
|
|
95
|
+
global: import_zod.z.string().optional(),
|
|
96
|
+
fee_recipient: import_zod.z.string().optional(),
|
|
97
|
+
mint: import_zod.z.string().optional(),
|
|
98
|
+
bonding_curve: import_zod.z.string().optional(),
|
|
99
|
+
associated_bonding_curve: import_zod.z.string().optional(),
|
|
100
|
+
associated_user: import_zod.z.string().optional(),
|
|
101
|
+
user: import_zod.z.string().optional(),
|
|
102
|
+
system_program: import_zod.z.string().optional(),
|
|
103
|
+
creator_vault: import_zod.z.string().optional(),
|
|
104
|
+
token_program: import_zod.z.string().optional(),
|
|
105
|
+
event_authority: import_zod.z.string().optional(),
|
|
106
|
+
program: import_zod.z.string().optional(),
|
|
107
|
+
fee_config: import_zod.z.string().optional(),
|
|
108
|
+
fee_program: import_zod.z.string().optional(),
|
|
109
|
+
amount: import_zod.z.number().optional(),
|
|
110
|
+
min_sol_output: import_zod.z.number().optional()
|
|
111
|
+
});
|
|
112
|
+
var BondingCurveSchema = import_zod.z.object({
|
|
113
|
+
virtual_token_reserves: import_zod.z.number().optional(),
|
|
114
|
+
virtual_sol_reserves: import_zod.z.number().optional(),
|
|
115
|
+
real_token_reserves: import_zod.z.number().optional(),
|
|
116
|
+
real_sol_reserves: import_zod.z.number().optional(),
|
|
117
|
+
token_total_supply: import_zod.z.number().optional(),
|
|
118
|
+
complete: import_zod.z.boolean().optional(),
|
|
119
|
+
creator: import_zod.z.string().optional(),
|
|
120
|
+
is_mayhem_mode: import_zod.z.boolean().optional()
|
|
121
|
+
});
|
|
122
|
+
var BuysEventSchema = import_zod.z.object({
|
|
123
|
+
amount: import_zod.z.number(),
|
|
124
|
+
max_sol_cost: import_zod.z.number()
|
|
125
|
+
});
|
|
126
|
+
var BuysExactSolEventSchema = import_zod.z.object({
|
|
127
|
+
spendable_sol_in: import_zod.z.number(),
|
|
128
|
+
min_tokens_out: import_zod.z.number()
|
|
129
|
+
});
|
|
130
|
+
var CreateEventSchema = import_zod.z.object({});
|
|
131
|
+
var CreateV2EventSchema = import_zod.z.object({});
|
|
132
|
+
var SellsEventSchema = import_zod.z.object({});
|
|
133
|
+
var ConfigStatusSchema = import_zod.z.enum(["Paused", "Active"]);
|
|
134
|
+
var PumpfunTokenEventsSchema = import_zod.z.object({
|
|
135
|
+
buys: import_zod.z.array(EventWrapperSchema(BuySchema)).nullable().optional(),
|
|
136
|
+
buys_exact_sol: import_zod.z.array(import_zod.z.any()).nullable().optional(),
|
|
137
|
+
create: CreateSchema.nullable().optional(),
|
|
138
|
+
create_v2: import_zod.z.record(import_zod.z.any()).nullable().optional(),
|
|
139
|
+
sells: import_zod.z.array(EventWrapperSchema(SellSchema)).nullable().optional()
|
|
140
|
+
});
|
|
141
|
+
var PumpfunTokenIdSchema = import_zod.z.object({
|
|
142
|
+
bonding_curve: import_zod.z.string().nullable().optional(),
|
|
143
|
+
mint: import_zod.z.string().nullable().optional()
|
|
144
|
+
});
|
|
145
|
+
var PumpfunTokenInfoSchema = import_zod.z.object({
|
|
146
|
+
is_complete: import_zod.z.boolean().nullable().optional(),
|
|
147
|
+
name: import_zod.z.string().nullable().optional(),
|
|
148
|
+
symbol: import_zod.z.string().nullable().optional(),
|
|
149
|
+
uri: import_zod.z.string().nullable().optional()
|
|
150
|
+
});
|
|
151
|
+
var PumpfunTokenReservesSchema = import_zod.z.object({
|
|
152
|
+
current_price_sol: import_zod.z.number().nullable().optional(),
|
|
153
|
+
market_cap_sol: import_zod.z.number().nullable().optional(),
|
|
154
|
+
real_sol_reserves: import_zod.z.number().nullable().optional(),
|
|
155
|
+
real_token_reserves: import_zod.z.number().nullable().optional(),
|
|
156
|
+
token_total_supply: import_zod.z.number().nullable().optional(),
|
|
157
|
+
virtual_sol_reserves: import_zod.z.number().nullable().optional(),
|
|
158
|
+
virtual_token_reserves: import_zod.z.number().nullable().optional()
|
|
159
|
+
});
|
|
160
|
+
var PumpfunTokenTradingSchema = import_zod.z.object({
|
|
161
|
+
average_trade_size: import_zod.z.number().nullable().optional(),
|
|
162
|
+
buy_count: import_zod.z.number().nullable().optional(),
|
|
163
|
+
largest_trade: import_zod.z.number().nullable().optional(),
|
|
164
|
+
last_trade_price: import_zod.z.number().nullable().optional(),
|
|
165
|
+
last_trade_timestamp: import_zod.z.number().nullable().optional(),
|
|
166
|
+
last_whale_address: import_zod.z.string().nullable().optional(),
|
|
167
|
+
sell_count: import_zod.z.number().nullable().optional(),
|
|
168
|
+
smallest_trade: import_zod.z.number().nullable().optional(),
|
|
169
|
+
total_buy_exact_sol_volume: import_zod.z.number().nullable().optional(),
|
|
170
|
+
total_buy_volume: import_zod.z.number().nullable().optional(),
|
|
171
|
+
total_sell_volume: import_zod.z.number().nullable().optional(),
|
|
172
|
+
total_trades: import_zod.z.number().nullable().optional(),
|
|
173
|
+
total_volume: import_zod.z.number().nullable().optional(),
|
|
174
|
+
unique_traders: import_zod.z.number().nullable().optional(),
|
|
175
|
+
whale_trade_count: import_zod.z.number().nullable().optional()
|
|
176
|
+
});
|
|
177
|
+
var PumpfunTokenSchema = import_zod.z.object({
|
|
178
|
+
events: PumpfunTokenEventsSchema.optional(),
|
|
179
|
+
id: PumpfunTokenIdSchema.optional(),
|
|
180
|
+
info: PumpfunTokenInfoSchema.optional(),
|
|
181
|
+
reserves: PumpfunTokenReservesSchema.optional(),
|
|
182
|
+
trading: PumpfunTokenTradingSchema.optional(),
|
|
183
|
+
bonding_curve_snapshot: BondingCurveSchema.nullable().optional()
|
|
184
|
+
});
|
|
185
|
+
var PumpfunTokenCompletedSchema = import_zod.z.object({
|
|
186
|
+
events: PumpfunTokenEventsSchema,
|
|
187
|
+
id: PumpfunTokenIdSchema,
|
|
188
|
+
info: PumpfunTokenInfoSchema,
|
|
189
|
+
reserves: PumpfunTokenReservesSchema,
|
|
190
|
+
trading: PumpfunTokenTradingSchema,
|
|
191
|
+
bonding_curve_snapshot: BondingCurveSchema
|
|
192
|
+
});
|
|
27
193
|
function stateView(view) {
|
|
28
194
|
return { mode: "state", view };
|
|
29
195
|
}
|
|
30
196
|
function listView(view) {
|
|
31
197
|
return { mode: "list", view };
|
|
32
198
|
}
|
|
33
|
-
var
|
|
34
|
-
name: "pumpfun-
|
|
199
|
+
var PUMPFUN_STREAM_STACK = {
|
|
200
|
+
name: "pumpfun-stream",
|
|
35
201
|
url: "wss://pumpfun.stack.usehyperstack.com",
|
|
36
202
|
views: {
|
|
37
203
|
PumpfunToken: {
|
|
38
204
|
state: stateView("PumpfunToken/state"),
|
|
39
205
|
list: listView("PumpfunToken/list")
|
|
40
206
|
}
|
|
207
|
+
},
|
|
208
|
+
schemas: {
|
|
209
|
+
BondingCurve: BondingCurveSchema,
|
|
210
|
+
Buy: BuySchema,
|
|
211
|
+
BuysEvent: BuysEventSchema,
|
|
212
|
+
BuysExactSolEvent: BuysExactSolEventSchema,
|
|
213
|
+
ConfigStatus: ConfigStatusSchema,
|
|
214
|
+
CreateEvent: CreateEventSchema,
|
|
215
|
+
Create: CreateSchema,
|
|
216
|
+
CreateV2Event: CreateV2EventSchema,
|
|
217
|
+
EventWrapper: EventWrapperSchema,
|
|
218
|
+
PumpfunTokenCompleted: PumpfunTokenCompletedSchema,
|
|
219
|
+
PumpfunTokenEvents: PumpfunTokenEventsSchema,
|
|
220
|
+
PumpfunTokenId: PumpfunTokenIdSchema,
|
|
221
|
+
PumpfunTokenInfo: PumpfunTokenInfoSchema,
|
|
222
|
+
PumpfunTokenReserves: PumpfunTokenReservesSchema,
|
|
223
|
+
PumpfunToken: PumpfunTokenSchema,
|
|
224
|
+
PumpfunTokenTrading: PumpfunTokenTradingSchema,
|
|
225
|
+
Sell: SellSchema,
|
|
226
|
+
SellsEvent: SellsEventSchema
|
|
227
|
+
},
|
|
228
|
+
pdas: {
|
|
229
|
+
pump: {
|
|
230
|
+
amm_global_config: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("global_config")),
|
|
231
|
+
associated_bonding_curve: (0, import_hyperstack_typescript.pda)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", (0, import_hyperstack_typescript.account)("bonding_curve"), (0, import_hyperstack_typescript.account)("token_program"), (0, import_hyperstack_typescript.account)("mint")),
|
|
232
|
+
bonding_curve: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("bonding-curve"), (0, import_hyperstack_typescript.account)("mint")),
|
|
233
|
+
creator_vault: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("creator-vault"), (0, import_hyperstack_typescript.account)("bonding_curve.creator")),
|
|
234
|
+
event_authority: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("__event_authority")),
|
|
235
|
+
fee_config: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("fee_config"), (0, import_hyperstack_typescript.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]))),
|
|
236
|
+
global: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("global")),
|
|
237
|
+
global_incentive_token_account: (0, import_hyperstack_typescript.pda)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", (0, import_hyperstack_typescript.account)("global_volume_accumulator"), (0, import_hyperstack_typescript.account)("token_program"), (0, import_hyperstack_typescript.account)("mint")),
|
|
238
|
+
global_params: (0, import_hyperstack_typescript.pda)("MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e", (0, import_hyperstack_typescript.literal)("global-params")),
|
|
239
|
+
global_volume_accumulator: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("global_volume_accumulator")),
|
|
240
|
+
lp_mint: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("pool_lp_mint"), (0, import_hyperstack_typescript.account)("pool")),
|
|
241
|
+
mayhem_state: (0, import_hyperstack_typescript.pda)("MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e", (0, import_hyperstack_typescript.literal)("mayhem-state"), (0, import_hyperstack_typescript.account)("mint")),
|
|
242
|
+
mayhem_token_vault: (0, import_hyperstack_typescript.pda)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", (0, import_hyperstack_typescript.account)("sol_vault_authority"), (0, import_hyperstack_typescript.account)("token_program"), (0, import_hyperstack_typescript.account)("mint")),
|
|
243
|
+
metadata: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("metadata"), (0, import_hyperstack_typescript.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])), (0, import_hyperstack_typescript.account)("mint")),
|
|
244
|
+
mint_authority: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("mint-authority")),
|
|
245
|
+
pool: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("pool"), (0, import_hyperstack_typescript.literal)("\0\0"), (0, import_hyperstack_typescript.account)("pool_authority"), (0, import_hyperstack_typescript.account)("mint"), (0, import_hyperstack_typescript.account)("wsol_mint")),
|
|
246
|
+
pool_authority: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("pool-authority"), (0, import_hyperstack_typescript.account)("mint")),
|
|
247
|
+
pool_authority_mint_account: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.account)("pool_authority"), (0, import_hyperstack_typescript.account)("mint"), (0, import_hyperstack_typescript.account)("mint")),
|
|
248
|
+
pool_authority_wsol_account: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.account)("pool_authority"), (0, import_hyperstack_typescript.account)("token_program"), (0, import_hyperstack_typescript.account)("wsol_mint")),
|
|
249
|
+
pool_base_token_account: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.account)("pool"), (0, import_hyperstack_typescript.account)("mint"), (0, import_hyperstack_typescript.account)("mint")),
|
|
250
|
+
pool_quote_token_account: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.account)("pool"), (0, import_hyperstack_typescript.account)("token_program"), (0, import_hyperstack_typescript.account)("wsol_mint")),
|
|
251
|
+
program_signer: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"),
|
|
252
|
+
pump_amm_event_authority: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("__event_authority")),
|
|
253
|
+
sharing_config: (0, import_hyperstack_typescript.pda)("pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ", (0, import_hyperstack_typescript.literal)("sharing-config"), (0, import_hyperstack_typescript.account)("mint")),
|
|
254
|
+
sol_vault: (0, import_hyperstack_typescript.pda)("MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e", (0, import_hyperstack_typescript.literal)("sol-vault")),
|
|
255
|
+
sol_vault_authority: (0, import_hyperstack_typescript.pda)("MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e", (0, import_hyperstack_typescript.literal)("sol-vault")),
|
|
256
|
+
user_ata: (0, import_hyperstack_typescript.pda)("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", (0, import_hyperstack_typescript.account)("user"), (0, import_hyperstack_typescript.account)("token_program"), (0, import_hyperstack_typescript.account)("mint")),
|
|
257
|
+
user_pool_token_account: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.account)("pool_authority"), (0, import_hyperstack_typescript.account)("token_2022_program"), (0, import_hyperstack_typescript.account)("lp_mint")),
|
|
258
|
+
user_volume_accumulator: (0, import_hyperstack_typescript.pda)("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", (0, import_hyperstack_typescript.literal)("user_volume_accumulator"), (0, import_hyperstack_typescript.account)("user"))
|
|
259
|
+
}
|
|
41
260
|
}
|
|
42
261
|
};
|
|
43
|
-
var pumpfun_default =
|
|
262
|
+
var pumpfun_default = PUMPFUN_STREAM_STACK;
|
|
44
263
|
// Annotate the CommonJS export names for ESM import in node:
|
|
45
264
|
0 && (module.exports = {
|
|
46
|
-
|
|
265
|
+
BondingCurveSchema,
|
|
266
|
+
BuySchema,
|
|
267
|
+
BuysEventSchema,
|
|
268
|
+
BuysExactSolEventSchema,
|
|
269
|
+
ConfigStatusSchema,
|
|
270
|
+
CreateEventSchema,
|
|
271
|
+
CreateSchema,
|
|
272
|
+
CreateV2EventSchema,
|
|
273
|
+
EventWrapperSchema,
|
|
274
|
+
PUMPFUN_STREAM_STACK,
|
|
275
|
+
PumpfunTokenCompletedSchema,
|
|
276
|
+
PumpfunTokenEventsSchema,
|
|
277
|
+
PumpfunTokenIdSchema,
|
|
278
|
+
PumpfunTokenInfoSchema,
|
|
279
|
+
PumpfunTokenReservesSchema,
|
|
280
|
+
PumpfunTokenSchema,
|
|
281
|
+
PumpfunTokenTradingSchema,
|
|
282
|
+
SellSchema,
|
|
283
|
+
SellsEventSchema
|
|
47
284
|
});
|