hyperstack-stacks 0.4.1 → 0.4.3
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 +16 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -6
- package/dist/ore/index.cjs +13 -5
- package/dist/ore/index.d.cts +110 -19
- package/dist/ore/index.d.ts +110 -19
- package/dist/ore/index.js +12 -4
- package/dist/pumpfun/index.cjs +5 -5
- package/dist/pumpfun/index.d.cts +7 -5
- package/dist/pumpfun/index.d.ts +7 -5
- package/dist/pumpfun/index.js +4 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -20,8 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
ORE_STREAM_STACK: () => ORE_STREAM_STACK,
|
|
24
|
+
PUMPFUN_STREAM_STACK: () => PUMPFUN_STREAM_STACK
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(src_exports);
|
|
27
27
|
|
|
@@ -32,8 +32,8 @@ function stateView(view) {
|
|
|
32
32
|
function listView(view) {
|
|
33
33
|
return { mode: "list", view };
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
name: "pumpfun-
|
|
35
|
+
var PUMPFUN_STREAM_STACK = {
|
|
36
|
+
name: "pumpfun-stream",
|
|
37
37
|
url: "wss://pumpfun.stack.usehyperstack.com",
|
|
38
38
|
views: {
|
|
39
39
|
PumpfunToken: {
|
|
@@ -50,19 +50,27 @@ function stateView2(view) {
|
|
|
50
50
|
function listView2(view) {
|
|
51
51
|
return { mode: "list", view };
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
name: "ore-
|
|
53
|
+
var ORE_STREAM_STACK = {
|
|
54
|
+
name: "ore-stream",
|
|
55
55
|
url: "wss://ore.stack.usehyperstack.com",
|
|
56
56
|
views: {
|
|
57
57
|
OreRound: {
|
|
58
58
|
state: stateView2("OreRound/state"),
|
|
59
59
|
list: listView2("OreRound/list"),
|
|
60
60
|
latest: listView2("OreRound/latest")
|
|
61
|
+
},
|
|
62
|
+
OreTreasury: {
|
|
63
|
+
state: stateView2("OreTreasury/state"),
|
|
64
|
+
list: listView2("OreTreasury/list")
|
|
65
|
+
},
|
|
66
|
+
OreMiner: {
|
|
67
|
+
state: stateView2("OreMiner/state"),
|
|
68
|
+
list: listView2("OreMiner/list")
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
};
|
|
64
72
|
// Annotate the CommonJS export names for ESM import in node:
|
|
65
73
|
0 && (module.exports = {
|
|
66
|
-
|
|
67
|
-
|
|
74
|
+
ORE_STREAM_STACK,
|
|
75
|
+
PUMPFUN_STREAM_STACK
|
|
68
76
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BondingCurve, Buy, BuysEvent, Create, CreateEvent, EventWrapper,
|
|
2
|
-
export {
|
|
1
|
+
export { BondingCurve, Buy, BuysEvent, Create, CreateEvent, EventWrapper, PUMPFUN_STREAM_STACK, PumpfunStreamEntity, PumpfunStreamStack, PumpfunToken, PumpfunTokenEvents, PumpfunTokenId, PumpfunTokenInfo, PumpfunTokenReserves, PumpfunTokenTrading, Sell, SellsEvent } from './pumpfun/index.cjs';
|
|
2
|
+
export { Automation, Miner, ORE_STREAM_STACK, OreMiner, OreMinerAutomation, OreMinerId, OreMinerRewards, OreMinerState, OreRound, OreRoundId, OreRoundMetrics, OreRoundResults, OreRoundState, OreStreamEntity, OreStreamStack, OreTreasury, OreTreasuryId, OreTreasuryState, Treasury } from './ore/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BondingCurve, Buy, BuysEvent, Create, CreateEvent, EventWrapper,
|
|
2
|
-
export {
|
|
1
|
+
export { BondingCurve, Buy, BuysEvent, Create, CreateEvent, EventWrapper, PUMPFUN_STREAM_STACK, PumpfunStreamEntity, PumpfunStreamStack, PumpfunToken, PumpfunTokenEvents, PumpfunTokenId, PumpfunTokenInfo, PumpfunTokenReserves, PumpfunTokenTrading, Sell, SellsEvent } from './pumpfun/index.js';
|
|
2
|
+
export { Automation, Miner, ORE_STREAM_STACK, OreMiner, OreMinerAutomation, OreMinerId, OreMinerRewards, OreMinerState, OreRound, OreRoundId, OreRoundMetrics, OreRoundResults, OreRoundState, OreStreamEntity, OreStreamStack, OreTreasury, OreTreasuryId, OreTreasuryState, Treasury } from './ore/index.js';
|
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ function stateView(view) {
|
|
|
5
5
|
function listView(view) {
|
|
6
6
|
return { mode: "list", view };
|
|
7
7
|
}
|
|
8
|
-
var
|
|
9
|
-
name: "pumpfun-
|
|
8
|
+
var PUMPFUN_STREAM_STACK = {
|
|
9
|
+
name: "pumpfun-stream",
|
|
10
10
|
url: "wss://pumpfun.stack.usehyperstack.com",
|
|
11
11
|
views: {
|
|
12
12
|
PumpfunToken: {
|
|
@@ -23,18 +23,26 @@ function stateView2(view) {
|
|
|
23
23
|
function listView2(view) {
|
|
24
24
|
return { mode: "list", view };
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
name: "ore-
|
|
26
|
+
var ORE_STREAM_STACK = {
|
|
27
|
+
name: "ore-stream",
|
|
28
28
|
url: "wss://ore.stack.usehyperstack.com",
|
|
29
29
|
views: {
|
|
30
30
|
OreRound: {
|
|
31
31
|
state: stateView2("OreRound/state"),
|
|
32
32
|
list: listView2("OreRound/list"),
|
|
33
33
|
latest: listView2("OreRound/latest")
|
|
34
|
+
},
|
|
35
|
+
OreTreasury: {
|
|
36
|
+
state: stateView2("OreTreasury/state"),
|
|
37
|
+
list: listView2("OreTreasury/list")
|
|
38
|
+
},
|
|
39
|
+
OreMiner: {
|
|
40
|
+
state: stateView2("OreMiner/state"),
|
|
41
|
+
list: listView2("OreMiner/list")
|
|
34
42
|
}
|
|
35
43
|
}
|
|
36
44
|
};
|
|
37
45
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
ORE_STREAM_STACK,
|
|
47
|
+
PUMPFUN_STREAM_STACK
|
|
40
48
|
};
|
package/dist/ore/index.cjs
CHANGED
|
@@ -20,7 +20,7 @@ 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
|
+
ORE_STREAM_STACK: () => ORE_STREAM_STACK,
|
|
24
24
|
default: () => ore_default
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(ore_exports);
|
|
@@ -30,19 +30,27 @@ function stateView(view) {
|
|
|
30
30
|
function listView(view) {
|
|
31
31
|
return { mode: "list", view };
|
|
32
32
|
}
|
|
33
|
-
var
|
|
34
|
-
name: "ore-
|
|
33
|
+
var ORE_STREAM_STACK = {
|
|
34
|
+
name: "ore-stream",
|
|
35
35
|
url: "wss://ore.stack.usehyperstack.com",
|
|
36
36
|
views: {
|
|
37
37
|
OreRound: {
|
|
38
38
|
state: stateView("OreRound/state"),
|
|
39
39
|
list: listView("OreRound/list"),
|
|
40
40
|
latest: listView("OreRound/latest")
|
|
41
|
+
},
|
|
42
|
+
OreTreasury: {
|
|
43
|
+
state: stateView("OreTreasury/state"),
|
|
44
|
+
list: listView("OreTreasury/list")
|
|
45
|
+
},
|
|
46
|
+
OreMiner: {
|
|
47
|
+
state: stateView("OreMiner/state"),
|
|
48
|
+
list: listView("OreMiner/list")
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
51
|
};
|
|
44
|
-
var ore_default =
|
|
52
|
+
var ore_default = ORE_STREAM_STACK;
|
|
45
53
|
// Annotate the CommonJS export names for ESM import in node:
|
|
46
54
|
0 && (module.exports = {
|
|
47
|
-
|
|
55
|
+
ORE_STREAM_STACK
|
|
48
56
|
});
|
package/dist/ore/index.d.cts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
interface OreRoundEntropy {
|
|
2
|
+
entropy_end_at?: number | null;
|
|
3
|
+
entropy_samples?: number | null;
|
|
4
|
+
entropy_start_at?: number | null;
|
|
5
|
+
entropy_value?: string | null;
|
|
6
|
+
}
|
|
1
7
|
interface OreRoundId {
|
|
2
8
|
round_address?: string | null;
|
|
3
9
|
round_id?: number | null;
|
|
@@ -24,26 +30,101 @@ interface OreRoundState {
|
|
|
24
30
|
total_winnings?: number | null;
|
|
25
31
|
}
|
|
26
32
|
interface OreRound {
|
|
33
|
+
entropy?: OreRoundEntropy;
|
|
27
34
|
id?: OreRoundId;
|
|
28
35
|
metrics?: OreRoundMetrics;
|
|
29
36
|
results?: OreRoundResults;
|
|
30
37
|
state?: OreRoundState;
|
|
31
|
-
round_snapshot?: Round | null;
|
|
32
38
|
}
|
|
33
|
-
interface
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
interface OreTreasuryId {
|
|
40
|
+
address?: string | null;
|
|
41
|
+
}
|
|
42
|
+
interface OreTreasuryState {
|
|
43
|
+
balance?: number | null;
|
|
44
|
+
motherlode?: number | null;
|
|
45
|
+
total_refined?: number | null;
|
|
46
|
+
total_staked?: number | null;
|
|
47
|
+
total_unclaimed?: number | null;
|
|
48
|
+
}
|
|
49
|
+
interface OreTreasury {
|
|
50
|
+
id?: OreTreasuryId;
|
|
51
|
+
state?: OreTreasuryState;
|
|
52
|
+
treasury_snapshot?: Treasury | null;
|
|
53
|
+
}
|
|
54
|
+
interface Treasury {
|
|
55
|
+
balance?: number;
|
|
56
|
+
buffer_a?: number;
|
|
39
57
|
motherlode?: number;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
miner_rewards_factor?: Record<string, any>;
|
|
59
|
+
stake_rewards_factor?: Record<string, any>;
|
|
60
|
+
buffer_b?: number;
|
|
61
|
+
total_refined?: number;
|
|
62
|
+
total_staked?: number;
|
|
63
|
+
total_unclaimed?: number;
|
|
64
|
+
}
|
|
65
|
+
interface OreMinerAutomation {
|
|
66
|
+
amount?: number | null;
|
|
67
|
+
balance?: number | null;
|
|
68
|
+
executor?: string | null;
|
|
69
|
+
fee?: number | null;
|
|
70
|
+
mask?: number | null;
|
|
71
|
+
reload?: number | null;
|
|
72
|
+
strategy?: number | null;
|
|
73
|
+
}
|
|
74
|
+
interface OreMinerId {
|
|
75
|
+
authority?: string | null;
|
|
76
|
+
automation_address?: string | null;
|
|
77
|
+
miner_address?: string | null;
|
|
78
|
+
}
|
|
79
|
+
interface OreMinerRewards {
|
|
80
|
+
lifetime_deployed?: number | null;
|
|
81
|
+
lifetime_rewards_ore?: number | null;
|
|
82
|
+
lifetime_rewards_sol?: number | null;
|
|
83
|
+
refined_ore?: number | null;
|
|
84
|
+
rewards_ore?: number | null;
|
|
85
|
+
rewards_sol?: number | null;
|
|
86
|
+
}
|
|
87
|
+
interface OreMinerState {
|
|
88
|
+
checkpoint_fee?: number | null;
|
|
89
|
+
checkpoint_id?: number | null;
|
|
90
|
+
last_claim_ore_at?: number | null;
|
|
91
|
+
last_claim_sol_at?: number | null;
|
|
92
|
+
round_id?: number | null;
|
|
93
|
+
}
|
|
94
|
+
interface OreMiner {
|
|
95
|
+
automation?: OreMinerAutomation;
|
|
96
|
+
id?: OreMinerId;
|
|
97
|
+
rewards?: OreMinerRewards;
|
|
98
|
+
state?: OreMinerState;
|
|
99
|
+
miner_snapshot?: Miner | null;
|
|
100
|
+
automation_snapshot?: Automation | null;
|
|
101
|
+
}
|
|
102
|
+
interface Miner {
|
|
103
|
+
authority?: string;
|
|
104
|
+
deployed?: number[];
|
|
105
|
+
cumulative?: number[];
|
|
106
|
+
checkpoint_fee?: number;
|
|
107
|
+
checkpoint_id?: number;
|
|
108
|
+
last_claim_ore_at?: number;
|
|
109
|
+
last_claim_sol_at?: number;
|
|
110
|
+
rewards_factor?: Record<string, any>;
|
|
111
|
+
rewards_sol?: number;
|
|
112
|
+
rewards_ore?: number;
|
|
113
|
+
refined_ore?: number;
|
|
114
|
+
round_id?: number;
|
|
115
|
+
lifetime_rewards_sol?: number;
|
|
116
|
+
lifetime_rewards_ore?: number;
|
|
117
|
+
lifetime_deployed?: number;
|
|
118
|
+
}
|
|
119
|
+
interface Automation {
|
|
120
|
+
amount?: number;
|
|
121
|
+
authority?: string;
|
|
122
|
+
balance?: number;
|
|
123
|
+
executor?: string;
|
|
124
|
+
fee?: number;
|
|
125
|
+
strategy?: number;
|
|
126
|
+
mask?: number;
|
|
127
|
+
reload?: number;
|
|
47
128
|
}
|
|
48
129
|
/** View definition with embedded entity type */
|
|
49
130
|
interface ViewDef<T, TMode extends 'state' | 'list'> {
|
|
@@ -52,9 +133,9 @@ interface ViewDef<T, TMode extends 'state' | 'list'> {
|
|
|
52
133
|
/** Phantom field for type inference - not present at runtime */
|
|
53
134
|
readonly _entity?: T;
|
|
54
135
|
}
|
|
55
|
-
/** Stack definition for
|
|
56
|
-
declare const
|
|
57
|
-
readonly name: "ore-
|
|
136
|
+
/** Stack definition for OreStream with 3 entities */
|
|
137
|
+
declare const ORE_STREAM_STACK: {
|
|
138
|
+
readonly name: "ore-stream";
|
|
58
139
|
readonly url: "wss://ore.stack.usehyperstack.com";
|
|
59
140
|
readonly views: {
|
|
60
141
|
readonly OreRound: {
|
|
@@ -62,9 +143,19 @@ declare const OREROUND_STACK: {
|
|
|
62
143
|
readonly list: ViewDef<OreRound, "list">;
|
|
63
144
|
readonly latest: ViewDef<OreRound, "list">;
|
|
64
145
|
};
|
|
146
|
+
readonly OreTreasury: {
|
|
147
|
+
readonly state: ViewDef<OreTreasury, "state">;
|
|
148
|
+
readonly list: ViewDef<OreTreasury, "list">;
|
|
149
|
+
};
|
|
150
|
+
readonly OreMiner: {
|
|
151
|
+
readonly state: ViewDef<OreMiner, "state">;
|
|
152
|
+
readonly list: ViewDef<OreMiner, "list">;
|
|
153
|
+
};
|
|
65
154
|
};
|
|
66
155
|
};
|
|
67
156
|
/** Type alias for the stack */
|
|
68
|
-
type
|
|
157
|
+
type OreStreamStack = typeof ORE_STREAM_STACK;
|
|
158
|
+
/** Entity types in this stack */
|
|
159
|
+
type OreStreamEntity = OreRound | OreTreasury | OreMiner;
|
|
69
160
|
|
|
70
|
-
export {
|
|
161
|
+
export { type Automation, type Miner, ORE_STREAM_STACK, type OreMiner, type OreMinerAutomation, type OreMinerId, type OreMinerRewards, type OreMinerState, type OreRound, type OreRoundEntropy, type OreRoundId, type OreRoundMetrics, type OreRoundResults, type OreRoundState, type OreStreamEntity, type OreStreamStack, type OreTreasury, type OreTreasuryId, type OreTreasuryState, type Treasury, type ViewDef, ORE_STREAM_STACK as default };
|
package/dist/ore/index.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
interface OreRoundEntropy {
|
|
2
|
+
entropy_end_at?: number | null;
|
|
3
|
+
entropy_samples?: number | null;
|
|
4
|
+
entropy_start_at?: number | null;
|
|
5
|
+
entropy_value?: string | null;
|
|
6
|
+
}
|
|
1
7
|
interface OreRoundId {
|
|
2
8
|
round_address?: string | null;
|
|
3
9
|
round_id?: number | null;
|
|
@@ -24,26 +30,101 @@ interface OreRoundState {
|
|
|
24
30
|
total_winnings?: number | null;
|
|
25
31
|
}
|
|
26
32
|
interface OreRound {
|
|
33
|
+
entropy?: OreRoundEntropy;
|
|
27
34
|
id?: OreRoundId;
|
|
28
35
|
metrics?: OreRoundMetrics;
|
|
29
36
|
results?: OreRoundResults;
|
|
30
37
|
state?: OreRoundState;
|
|
31
|
-
round_snapshot?: Round | null;
|
|
32
38
|
}
|
|
33
|
-
interface
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
interface OreTreasuryId {
|
|
40
|
+
address?: string | null;
|
|
41
|
+
}
|
|
42
|
+
interface OreTreasuryState {
|
|
43
|
+
balance?: number | null;
|
|
44
|
+
motherlode?: number | null;
|
|
45
|
+
total_refined?: number | null;
|
|
46
|
+
total_staked?: number | null;
|
|
47
|
+
total_unclaimed?: number | null;
|
|
48
|
+
}
|
|
49
|
+
interface OreTreasury {
|
|
50
|
+
id?: OreTreasuryId;
|
|
51
|
+
state?: OreTreasuryState;
|
|
52
|
+
treasury_snapshot?: Treasury | null;
|
|
53
|
+
}
|
|
54
|
+
interface Treasury {
|
|
55
|
+
balance?: number;
|
|
56
|
+
buffer_a?: number;
|
|
39
57
|
motherlode?: number;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
miner_rewards_factor?: Record<string, any>;
|
|
59
|
+
stake_rewards_factor?: Record<string, any>;
|
|
60
|
+
buffer_b?: number;
|
|
61
|
+
total_refined?: number;
|
|
62
|
+
total_staked?: number;
|
|
63
|
+
total_unclaimed?: number;
|
|
64
|
+
}
|
|
65
|
+
interface OreMinerAutomation {
|
|
66
|
+
amount?: number | null;
|
|
67
|
+
balance?: number | null;
|
|
68
|
+
executor?: string | null;
|
|
69
|
+
fee?: number | null;
|
|
70
|
+
mask?: number | null;
|
|
71
|
+
reload?: number | null;
|
|
72
|
+
strategy?: number | null;
|
|
73
|
+
}
|
|
74
|
+
interface OreMinerId {
|
|
75
|
+
authority?: string | null;
|
|
76
|
+
automation_address?: string | null;
|
|
77
|
+
miner_address?: string | null;
|
|
78
|
+
}
|
|
79
|
+
interface OreMinerRewards {
|
|
80
|
+
lifetime_deployed?: number | null;
|
|
81
|
+
lifetime_rewards_ore?: number | null;
|
|
82
|
+
lifetime_rewards_sol?: number | null;
|
|
83
|
+
refined_ore?: number | null;
|
|
84
|
+
rewards_ore?: number | null;
|
|
85
|
+
rewards_sol?: number | null;
|
|
86
|
+
}
|
|
87
|
+
interface OreMinerState {
|
|
88
|
+
checkpoint_fee?: number | null;
|
|
89
|
+
checkpoint_id?: number | null;
|
|
90
|
+
last_claim_ore_at?: number | null;
|
|
91
|
+
last_claim_sol_at?: number | null;
|
|
92
|
+
round_id?: number | null;
|
|
93
|
+
}
|
|
94
|
+
interface OreMiner {
|
|
95
|
+
automation?: OreMinerAutomation;
|
|
96
|
+
id?: OreMinerId;
|
|
97
|
+
rewards?: OreMinerRewards;
|
|
98
|
+
state?: OreMinerState;
|
|
99
|
+
miner_snapshot?: Miner | null;
|
|
100
|
+
automation_snapshot?: Automation | null;
|
|
101
|
+
}
|
|
102
|
+
interface Miner {
|
|
103
|
+
authority?: string;
|
|
104
|
+
deployed?: number[];
|
|
105
|
+
cumulative?: number[];
|
|
106
|
+
checkpoint_fee?: number;
|
|
107
|
+
checkpoint_id?: number;
|
|
108
|
+
last_claim_ore_at?: number;
|
|
109
|
+
last_claim_sol_at?: number;
|
|
110
|
+
rewards_factor?: Record<string, any>;
|
|
111
|
+
rewards_sol?: number;
|
|
112
|
+
rewards_ore?: number;
|
|
113
|
+
refined_ore?: number;
|
|
114
|
+
round_id?: number;
|
|
115
|
+
lifetime_rewards_sol?: number;
|
|
116
|
+
lifetime_rewards_ore?: number;
|
|
117
|
+
lifetime_deployed?: number;
|
|
118
|
+
}
|
|
119
|
+
interface Automation {
|
|
120
|
+
amount?: number;
|
|
121
|
+
authority?: string;
|
|
122
|
+
balance?: number;
|
|
123
|
+
executor?: string;
|
|
124
|
+
fee?: number;
|
|
125
|
+
strategy?: number;
|
|
126
|
+
mask?: number;
|
|
127
|
+
reload?: number;
|
|
47
128
|
}
|
|
48
129
|
/** View definition with embedded entity type */
|
|
49
130
|
interface ViewDef<T, TMode extends 'state' | 'list'> {
|
|
@@ -52,9 +133,9 @@ interface ViewDef<T, TMode extends 'state' | 'list'> {
|
|
|
52
133
|
/** Phantom field for type inference - not present at runtime */
|
|
53
134
|
readonly _entity?: T;
|
|
54
135
|
}
|
|
55
|
-
/** Stack definition for
|
|
56
|
-
declare const
|
|
57
|
-
readonly name: "ore-
|
|
136
|
+
/** Stack definition for OreStream with 3 entities */
|
|
137
|
+
declare const ORE_STREAM_STACK: {
|
|
138
|
+
readonly name: "ore-stream";
|
|
58
139
|
readonly url: "wss://ore.stack.usehyperstack.com";
|
|
59
140
|
readonly views: {
|
|
60
141
|
readonly OreRound: {
|
|
@@ -62,9 +143,19 @@ declare const OREROUND_STACK: {
|
|
|
62
143
|
readonly list: ViewDef<OreRound, "list">;
|
|
63
144
|
readonly latest: ViewDef<OreRound, "list">;
|
|
64
145
|
};
|
|
146
|
+
readonly OreTreasury: {
|
|
147
|
+
readonly state: ViewDef<OreTreasury, "state">;
|
|
148
|
+
readonly list: ViewDef<OreTreasury, "list">;
|
|
149
|
+
};
|
|
150
|
+
readonly OreMiner: {
|
|
151
|
+
readonly state: ViewDef<OreMiner, "state">;
|
|
152
|
+
readonly list: ViewDef<OreMiner, "list">;
|
|
153
|
+
};
|
|
65
154
|
};
|
|
66
155
|
};
|
|
67
156
|
/** Type alias for the stack */
|
|
68
|
-
type
|
|
157
|
+
type OreStreamStack = typeof ORE_STREAM_STACK;
|
|
158
|
+
/** Entity types in this stack */
|
|
159
|
+
type OreStreamEntity = OreRound | OreTreasury | OreMiner;
|
|
69
160
|
|
|
70
|
-
export {
|
|
161
|
+
export { type Automation, type Miner, ORE_STREAM_STACK, type OreMiner, type OreMinerAutomation, type OreMinerId, type OreMinerRewards, type OreMinerState, type OreRound, type OreRoundEntropy, type OreRoundId, type OreRoundMetrics, type OreRoundResults, type OreRoundState, type OreStreamEntity, type OreStreamStack, type OreTreasury, type OreTreasuryId, type OreTreasuryState, type Treasury, type ViewDef, ORE_STREAM_STACK as default };
|
package/dist/ore/index.js
CHANGED
|
@@ -5,19 +5,27 @@ function stateView(view) {
|
|
|
5
5
|
function listView(view) {
|
|
6
6
|
return { mode: "list", view };
|
|
7
7
|
}
|
|
8
|
-
var
|
|
9
|
-
name: "ore-
|
|
8
|
+
var ORE_STREAM_STACK = {
|
|
9
|
+
name: "ore-stream",
|
|
10
10
|
url: "wss://ore.stack.usehyperstack.com",
|
|
11
11
|
views: {
|
|
12
12
|
OreRound: {
|
|
13
13
|
state: stateView("OreRound/state"),
|
|
14
14
|
list: listView("OreRound/list"),
|
|
15
15
|
latest: listView("OreRound/latest")
|
|
16
|
+
},
|
|
17
|
+
OreTreasury: {
|
|
18
|
+
state: stateView("OreTreasury/state"),
|
|
19
|
+
list: listView("OreTreasury/list")
|
|
20
|
+
},
|
|
21
|
+
OreMiner: {
|
|
22
|
+
state: stateView("OreMiner/state"),
|
|
23
|
+
list: listView("OreMiner/list")
|
|
16
24
|
}
|
|
17
25
|
}
|
|
18
26
|
};
|
|
19
|
-
var ore_default =
|
|
27
|
+
var ore_default = ORE_STREAM_STACK;
|
|
20
28
|
export {
|
|
21
|
-
|
|
29
|
+
ORE_STREAM_STACK,
|
|
22
30
|
ore_default as default
|
|
23
31
|
};
|
package/dist/pumpfun/index.cjs
CHANGED
|
@@ -20,7 +20,7 @@ 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
|
+
PUMPFUN_STREAM_STACK: () => PUMPFUN_STREAM_STACK,
|
|
24
24
|
default: () => pumpfun_default
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(pumpfun_exports);
|
|
@@ -30,8 +30,8 @@ function stateView(view) {
|
|
|
30
30
|
function listView(view) {
|
|
31
31
|
return { mode: "list", view };
|
|
32
32
|
}
|
|
33
|
-
var
|
|
34
|
-
name: "pumpfun-
|
|
33
|
+
var PUMPFUN_STREAM_STACK = {
|
|
34
|
+
name: "pumpfun-stream",
|
|
35
35
|
url: "wss://pumpfun.stack.usehyperstack.com",
|
|
36
36
|
views: {
|
|
37
37
|
PumpfunToken: {
|
|
@@ -40,8 +40,8 @@ var PUMPFUNTOKEN_STACK = {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
var pumpfun_default =
|
|
43
|
+
var pumpfun_default = PUMPFUN_STREAM_STACK;
|
|
44
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
45
45
|
0 && (module.exports = {
|
|
46
|
-
|
|
46
|
+
PUMPFUN_STREAM_STACK
|
|
47
47
|
});
|
package/dist/pumpfun/index.d.cts
CHANGED
|
@@ -154,9 +154,9 @@ interface ViewDef<T, TMode extends 'state' | 'list'> {
|
|
|
154
154
|
/** Phantom field for type inference - not present at runtime */
|
|
155
155
|
readonly _entity?: T;
|
|
156
156
|
}
|
|
157
|
-
/** Stack definition for
|
|
158
|
-
declare const
|
|
159
|
-
readonly name: "pumpfun-
|
|
157
|
+
/** Stack definition for PumpfunStream with 1 entities */
|
|
158
|
+
declare const PUMPFUN_STREAM_STACK: {
|
|
159
|
+
readonly name: "pumpfun-stream";
|
|
160
160
|
readonly url: "wss://pumpfun.stack.usehyperstack.com";
|
|
161
161
|
readonly views: {
|
|
162
162
|
readonly PumpfunToken: {
|
|
@@ -166,6 +166,8 @@ declare const PUMPFUNTOKEN_STACK: {
|
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
168
|
/** Type alias for the stack */
|
|
169
|
-
type
|
|
169
|
+
type PumpfunStreamStack = typeof PUMPFUN_STREAM_STACK;
|
|
170
|
+
/** Entity types in this stack */
|
|
171
|
+
type PumpfunStreamEntity = PumpfunToken;
|
|
170
172
|
|
|
171
|
-
export { type BondingCurve, type Buy, type BuysEvent, type BuysExactSolEvent, type ConfigStatus, type Create, type CreateEvent, type CreateV2Event, type EventWrapper,
|
|
173
|
+
export { type BondingCurve, type Buy, type BuysEvent, type BuysExactSolEvent, type ConfigStatus, type Create, type CreateEvent, type CreateV2Event, type EventWrapper, PUMPFUN_STREAM_STACK, type PumpfunStreamEntity, type PumpfunStreamStack, type PumpfunToken, type PumpfunTokenEvents, type PumpfunTokenId, type PumpfunTokenInfo, type PumpfunTokenReserves, type PumpfunTokenTrading, type Sell, type SellsEvent, type ViewDef, PUMPFUN_STREAM_STACK as default };
|
package/dist/pumpfun/index.d.ts
CHANGED
|
@@ -154,9 +154,9 @@ interface ViewDef<T, TMode extends 'state' | 'list'> {
|
|
|
154
154
|
/** Phantom field for type inference - not present at runtime */
|
|
155
155
|
readonly _entity?: T;
|
|
156
156
|
}
|
|
157
|
-
/** Stack definition for
|
|
158
|
-
declare const
|
|
159
|
-
readonly name: "pumpfun-
|
|
157
|
+
/** Stack definition for PumpfunStream with 1 entities */
|
|
158
|
+
declare const PUMPFUN_STREAM_STACK: {
|
|
159
|
+
readonly name: "pumpfun-stream";
|
|
160
160
|
readonly url: "wss://pumpfun.stack.usehyperstack.com";
|
|
161
161
|
readonly views: {
|
|
162
162
|
readonly PumpfunToken: {
|
|
@@ -166,6 +166,8 @@ declare const PUMPFUNTOKEN_STACK: {
|
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
168
|
/** Type alias for the stack */
|
|
169
|
-
type
|
|
169
|
+
type PumpfunStreamStack = typeof PUMPFUN_STREAM_STACK;
|
|
170
|
+
/** Entity types in this stack */
|
|
171
|
+
type PumpfunStreamEntity = PumpfunToken;
|
|
170
172
|
|
|
171
|
-
export { type BondingCurve, type Buy, type BuysEvent, type BuysExactSolEvent, type ConfigStatus, type Create, type CreateEvent, type CreateV2Event, type EventWrapper,
|
|
173
|
+
export { type BondingCurve, type Buy, type BuysEvent, type BuysExactSolEvent, type ConfigStatus, type Create, type CreateEvent, type CreateV2Event, type EventWrapper, PUMPFUN_STREAM_STACK, type PumpfunStreamEntity, type PumpfunStreamStack, type PumpfunToken, type PumpfunTokenEvents, type PumpfunTokenId, type PumpfunTokenInfo, type PumpfunTokenReserves, type PumpfunTokenTrading, type Sell, type SellsEvent, type ViewDef, PUMPFUN_STREAM_STACK as default };
|
package/dist/pumpfun/index.js
CHANGED
|
@@ -5,8 +5,8 @@ function stateView(view) {
|
|
|
5
5
|
function listView(view) {
|
|
6
6
|
return { mode: "list", view };
|
|
7
7
|
}
|
|
8
|
-
var
|
|
9
|
-
name: "pumpfun-
|
|
8
|
+
var PUMPFUN_STREAM_STACK = {
|
|
9
|
+
name: "pumpfun-stream",
|
|
10
10
|
url: "wss://pumpfun.stack.usehyperstack.com",
|
|
11
11
|
views: {
|
|
12
12
|
PumpfunToken: {
|
|
@@ -15,8 +15,8 @@ var PUMPFUNTOKEN_STACK = {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
var pumpfun_default =
|
|
18
|
+
var pumpfun_default = PUMPFUN_STREAM_STACK;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
PUMPFUN_STREAM_STACK,
|
|
21
21
|
pumpfun_default as default
|
|
22
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperstack-stacks",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Protocol stacks for Hyperstack - ready-to-use Solana data streams",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"prepublishOnly": "npm run build"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"hyperstack-react": ">=0.
|
|
37
|
-
"hyperstack-typescript": ">=0.
|
|
36
|
+
"hyperstack-react": ">=0.4.0",
|
|
37
|
+
"hyperstack-typescript": ">=0.4.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"hyperstack-react": {
|