@xyo-network/xl1-network-model 4.0.11 → 4.0.12
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/neutral/index.d.ts +1 -6
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2 -430
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +15 -18
- package/dist/neutral/icons/index.d.ts +0 -4
- package/dist/neutral/icons/index.d.ts.map +0 -1
- package/dist/neutral/icons/local/index.d.ts +0 -2
- package/dist/neutral/icons/local/index.d.ts.map +0 -1
- package/dist/neutral/icons/mainnet/index.d.ts +0 -2
- package/dist/neutral/icons/mainnet/index.d.ts.map +0 -1
- package/dist/neutral/icons/sequence/index.d.ts +0 -2
- package/dist/neutral/icons/sequence/index.d.ts.map +0 -1
- package/dist/neutral/lib/NetworkDataLakeUrls.d.ts +0 -8
- package/dist/neutral/lib/NetworkDataLakeUrls.d.ts.map +0 -1
- package/dist/neutral/lib/Networks.d.ts +0 -10
- package/dist/neutral/lib/Networks.d.ts.map +0 -1
- package/dist/neutral/lib/index.d.ts +0 -3
- package/dist/neutral/lib/index.d.ts.map +0 -1
- package/dist/neutral/manifest/index.d.ts +0 -2
- package/dist/neutral/manifest/index.d.ts.map +0 -1
- package/dist/neutral/manifest/networkManifest.d.ts +0 -4
- package/dist/neutral/manifest/networkManifest.d.ts.map +0 -1
- package/dist/neutral/models/Bootstrap.d.ts +0 -56
- package/dist/neutral/models/Bootstrap.d.ts.map +0 -1
- package/dist/neutral/models/NetworkId.d.ts +0 -12
- package/dist/neutral/models/NetworkId.d.ts.map +0 -1
- package/dist/neutral/models/index.d.ts +0 -3
- package/dist/neutral/models/index.d.ts.map +0 -1
- package/dist/neutral/modules/index.d.ts +0 -2
- package/dist/neutral/modules/index.d.ts.map +0 -1
- package/dist/neutral/modules/node/getNetworkNode.d.ts +0 -10
- package/dist/neutral/modules/node/getNetworkNode.d.ts.map +0 -1
- package/dist/neutral/modules/node/getNetworkNodes.d.ts +0 -4
- package/dist/neutral/modules/node/getNetworkNodes.d.ts.map +0 -1
- package/dist/neutral/modules/node/index.d.ts +0 -4
- package/dist/neutral/modules/node/index.d.ts.map +0 -1
- package/dist/neutral/modules/node/initNetworkNode.d.ts +0 -5
- package/dist/neutral/modules/node/initNetworkNode.d.ts.map +0 -1
- package/dist/neutral/staticRest/index.d.ts +0 -10
- package/dist/neutral/staticRest/index.d.ts.map +0 -1
- package/dist/neutral/staticRest/layout/chainContractManifest.d.ts +0 -84
- package/dist/neutral/staticRest/layout/chainContractManifest.d.ts.map +0 -1
- package/dist/neutral/staticRest/layout/chainManifest.d.ts +0 -101
- package/dist/neutral/staticRest/layout/chainManifest.d.ts.map +0 -1
- package/dist/neutral/staticRest/layout/index.d.ts +0 -4
- package/dist/neutral/staticRest/layout/index.d.ts.map +0 -1
- package/dist/neutral/staticRest/layout/indexManifest.d.ts +0 -263
- package/dist/neutral/staticRest/layout/indexManifest.d.ts.map +0 -1
- package/dist/neutral/staticRest/paths/chainState.d.ts +0 -10
- package/dist/neutral/staticRest/paths/chainState.d.ts.map +0 -1
- package/dist/neutral/staticRest/paths/finalized.d.ts +0 -14
- package/dist/neutral/staticRest/paths/finalized.d.ts.map +0 -1
- package/dist/neutral/staticRest/paths/index.d.ts +0 -4
- package/dist/neutral/staticRest/paths/index.d.ts.map +0 -1
- package/dist/neutral/staticRest/paths/indexPaths.d.ts +0 -14
- package/dist/neutral/staticRest/paths/indexPaths.d.ts.map +0 -1
- package/dist/neutral/staticRest/templates.d.ts +0 -27
- package/dist/neutral/staticRest/templates.d.ts.map +0 -1
- package/dist/neutral/utils/ExplorerLinks.d.ts +0 -28
- package/dist/neutral/utils/ExplorerLinks.d.ts.map +0 -1
- package/dist/neutral/utils/index.d.ts +0 -2
- package/dist/neutral/utils/index.d.ts.map +0 -1
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import type { IndexSummaryFamily, IndexWatermark } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
/** Bumped when the on-disk index layout changes shape, so readers can detect a mismatch. */
|
|
4
|
-
export declare const INDEX_LAYOUT_VERSION = 1;
|
|
5
|
-
/** Schema id for the index manifest document (the static layout descriptor). */
|
|
6
|
-
export declare const IndexManifestSchema: "network.xyo.s3.index.manifest";
|
|
7
|
-
/** Type literal for the index manifest schema. */
|
|
8
|
-
export type IndexManifestSchema = typeof IndexManifestSchema;
|
|
9
|
-
/** Schema id for the index head document (the progress watermark). */
|
|
10
|
-
export declare const IndexHeadSchema: "network.xyo.s3.index.head";
|
|
11
|
-
/** Type literal for the index head schema. */
|
|
12
|
-
export type IndexHeadSchema = typeof IndexHeadSchema;
|
|
13
|
-
/** Per-family descriptor carried in the manifest. */
|
|
14
|
-
export declare const IndexManifestFamilyZod: z.ZodObject<{
|
|
15
|
-
maxStep: z.ZodInt;
|
|
16
|
-
path: z.ZodString;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
/** Type for one index manifest family descriptor. */
|
|
19
|
-
export type IndexManifestFamily = z.infer<typeof IndexManifestFamilyZod>;
|
|
20
|
-
/** Zod schema for the static index layout descriptor at `indexManifestPath()`. */
|
|
21
|
-
export declare const IndexManifestZod: z.ZodObject<{
|
|
22
|
-
families: z.ZodObject<{
|
|
23
|
-
balances: z.ZodObject<{
|
|
24
|
-
maxStep: z.ZodInt;
|
|
25
|
-
path: z.ZodString;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
blocks: z.ZodObject<{
|
|
28
|
-
maxStep: z.ZodInt;
|
|
29
|
-
path: z.ZodString;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
schemas: z.ZodObject<{
|
|
32
|
-
maxStep: z.ZodInt;
|
|
33
|
-
path: z.ZodString;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
transfers: z.ZodObject<{
|
|
36
|
-
maxStep: z.ZodInt;
|
|
37
|
-
path: z.ZodString;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
schema: z.ZodLiteral<"network.xyo.s3.index.manifest">;
|
|
41
|
-
version: z.ZodInt;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
/** The static index layout descriptor at `indexManifestPath()`. */
|
|
44
|
-
export type IndexManifest = z.infer<typeof IndexManifestZod>;
|
|
45
|
-
/** Type guard that checks if a value is a valid IndexManifest. */
|
|
46
|
-
export declare const isIndexManifest: <T>(value: T) => value is T & {
|
|
47
|
-
families: {
|
|
48
|
-
balances: {
|
|
49
|
-
maxStep: number;
|
|
50
|
-
path: string;
|
|
51
|
-
};
|
|
52
|
-
blocks: {
|
|
53
|
-
maxStep: number;
|
|
54
|
-
path: string;
|
|
55
|
-
};
|
|
56
|
-
schemas: {
|
|
57
|
-
maxStep: number;
|
|
58
|
-
path: string;
|
|
59
|
-
};
|
|
60
|
-
transfers: {
|
|
61
|
-
maxStep: number;
|
|
62
|
-
path: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
schema: "network.xyo.s3.index.manifest";
|
|
66
|
-
version: number;
|
|
67
|
-
};
|
|
68
|
-
/** Converts a value to IndexManifest, throwing if invalid. */
|
|
69
|
-
export declare const asIndexManifest: {
|
|
70
|
-
<T>(value: T): (T & {
|
|
71
|
-
families: {
|
|
72
|
-
balances: {
|
|
73
|
-
maxStep: number;
|
|
74
|
-
path: string;
|
|
75
|
-
};
|
|
76
|
-
blocks: {
|
|
77
|
-
maxStep: number;
|
|
78
|
-
path: string;
|
|
79
|
-
};
|
|
80
|
-
schemas: {
|
|
81
|
-
maxStep: number;
|
|
82
|
-
path: string;
|
|
83
|
-
};
|
|
84
|
-
transfers: {
|
|
85
|
-
maxStep: number;
|
|
86
|
-
path: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
schema: "network.xyo.s3.index.manifest";
|
|
90
|
-
version: number;
|
|
91
|
-
}) | undefined;
|
|
92
|
-
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
93
|
-
families: {
|
|
94
|
-
balances: {
|
|
95
|
-
maxStep: number;
|
|
96
|
-
path: string;
|
|
97
|
-
};
|
|
98
|
-
blocks: {
|
|
99
|
-
maxStep: number;
|
|
100
|
-
path: string;
|
|
101
|
-
};
|
|
102
|
-
schemas: {
|
|
103
|
-
maxStep: number;
|
|
104
|
-
path: string;
|
|
105
|
-
};
|
|
106
|
-
transfers: {
|
|
107
|
-
maxStep: number;
|
|
108
|
-
path: string;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
schema: "network.xyo.s3.index.manifest";
|
|
112
|
-
version: number;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
/** Non-validating cast to IndexManifest. */
|
|
116
|
-
export declare const toIndexManifest: {
|
|
117
|
-
<T>(value: T): (T & {
|
|
118
|
-
families: {
|
|
119
|
-
balances: {
|
|
120
|
-
maxStep: number;
|
|
121
|
-
path: string;
|
|
122
|
-
};
|
|
123
|
-
blocks: {
|
|
124
|
-
maxStep: number;
|
|
125
|
-
path: string;
|
|
126
|
-
};
|
|
127
|
-
schemas: {
|
|
128
|
-
maxStep: number;
|
|
129
|
-
path: string;
|
|
130
|
-
};
|
|
131
|
-
transfers: {
|
|
132
|
-
maxStep: number;
|
|
133
|
-
path: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
schema: "network.xyo.s3.index.manifest";
|
|
137
|
-
version: number;
|
|
138
|
-
}) | undefined;
|
|
139
|
-
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
140
|
-
families: {
|
|
141
|
-
balances: {
|
|
142
|
-
maxStep: number;
|
|
143
|
-
path: string;
|
|
144
|
-
};
|
|
145
|
-
blocks: {
|
|
146
|
-
maxStep: number;
|
|
147
|
-
path: string;
|
|
148
|
-
};
|
|
149
|
-
schemas: {
|
|
150
|
-
maxStep: number;
|
|
151
|
-
path: string;
|
|
152
|
-
};
|
|
153
|
-
transfers: {
|
|
154
|
-
maxStep: number;
|
|
155
|
-
path: string;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
schema: "network.xyo.s3.index.manifest";
|
|
159
|
-
version: number;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
/** Completed frame counts per family in the index head watermark. */
|
|
163
|
-
export declare const IndexHeadFamiliesZod: z.ZodObject<{
|
|
164
|
-
balances: z.ZodInt;
|
|
165
|
-
blocks: z.ZodInt;
|
|
166
|
-
schemas: z.ZodInt;
|
|
167
|
-
transfers: z.ZodInt;
|
|
168
|
-
}, z.core.$strip>;
|
|
169
|
-
/** Zod schema for the index progress watermark at `indexHeadPath()`. */
|
|
170
|
-
export declare const IndexHeadZod: z.ZodObject<{
|
|
171
|
-
block: z.ZodInt;
|
|
172
|
-
families: z.ZodObject<{
|
|
173
|
-
balances: z.ZodInt;
|
|
174
|
-
blocks: z.ZodInt;
|
|
175
|
-
schemas: z.ZodInt;
|
|
176
|
-
transfers: z.ZodInt;
|
|
177
|
-
}, z.core.$strip>;
|
|
178
|
-
hash: z.ZodString;
|
|
179
|
-
schema: z.ZodLiteral<"network.xyo.s3.index.head">;
|
|
180
|
-
updatedAt: z.ZodString;
|
|
181
|
-
version: z.ZodInt;
|
|
182
|
-
}, z.core.$strip>;
|
|
183
|
-
/** The index progress watermark at `indexHeadPath()`. */
|
|
184
|
-
export type IndexHead = z.infer<typeof IndexHeadZod>;
|
|
185
|
-
/** Type guard that checks if a value is a valid IndexHead. */
|
|
186
|
-
export declare const isIndexHead: <T>(value: T) => value is T & {
|
|
187
|
-
block: number;
|
|
188
|
-
families: {
|
|
189
|
-
balances: number;
|
|
190
|
-
blocks: number;
|
|
191
|
-
schemas: number;
|
|
192
|
-
transfers: number;
|
|
193
|
-
};
|
|
194
|
-
hash: string;
|
|
195
|
-
schema: "network.xyo.s3.index.head";
|
|
196
|
-
updatedAt: string;
|
|
197
|
-
version: number;
|
|
198
|
-
};
|
|
199
|
-
/** Converts a value to IndexHead, throwing if invalid. */
|
|
200
|
-
export declare const asIndexHead: {
|
|
201
|
-
<T>(value: T): (T & {
|
|
202
|
-
block: number;
|
|
203
|
-
families: {
|
|
204
|
-
balances: number;
|
|
205
|
-
blocks: number;
|
|
206
|
-
schemas: number;
|
|
207
|
-
transfers: number;
|
|
208
|
-
};
|
|
209
|
-
hash: string;
|
|
210
|
-
schema: "network.xyo.s3.index.head";
|
|
211
|
-
updatedAt: string;
|
|
212
|
-
version: number;
|
|
213
|
-
}) | undefined;
|
|
214
|
-
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
215
|
-
block: number;
|
|
216
|
-
families: {
|
|
217
|
-
balances: number;
|
|
218
|
-
blocks: number;
|
|
219
|
-
schemas: number;
|
|
220
|
-
transfers: number;
|
|
221
|
-
};
|
|
222
|
-
hash: string;
|
|
223
|
-
schema: "network.xyo.s3.index.head";
|
|
224
|
-
updatedAt: string;
|
|
225
|
-
version: number;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
/** Non-validating cast to IndexHead. */
|
|
229
|
-
export declare const toIndexHead: {
|
|
230
|
-
<T>(value: T): (T & {
|
|
231
|
-
block: number;
|
|
232
|
-
families: {
|
|
233
|
-
balances: number;
|
|
234
|
-
blocks: number;
|
|
235
|
-
schemas: number;
|
|
236
|
-
transfers: number;
|
|
237
|
-
};
|
|
238
|
-
hash: string;
|
|
239
|
-
schema: "network.xyo.s3.index.head";
|
|
240
|
-
updatedAt: string;
|
|
241
|
-
version: number;
|
|
242
|
-
}) | undefined;
|
|
243
|
-
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
244
|
-
block: number;
|
|
245
|
-
families: {
|
|
246
|
-
balances: number;
|
|
247
|
-
blocks: number;
|
|
248
|
-
schemas: number;
|
|
249
|
-
transfers: number;
|
|
250
|
-
};
|
|
251
|
-
hash: string;
|
|
252
|
-
schema: "network.xyo.s3.index.head";
|
|
253
|
-
updatedAt: string;
|
|
254
|
-
version: number;
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
/** Builds per-family manifest descriptors with path templates derived from the path builders. */
|
|
258
|
-
export declare function createIndexManifestFamilies(maxSteps: Record<IndexSummaryFamily, number>): Record<IndexSummaryFamily, IndexManifestFamily>;
|
|
259
|
-
/** Builds a validated index manifest with path templates derived from the path builders. */
|
|
260
|
-
export declare function createIndexManifest(maxSteps: Record<IndexSummaryFamily, number>): IndexManifest;
|
|
261
|
-
/** Builds a validated index head watermark from an indexer progress snapshot. */
|
|
262
|
-
export declare function createIndexHead(watermark: IndexWatermark, updatedAt?: string): IndexHead;
|
|
263
|
-
//# sourceMappingURL=indexManifest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexManifest.d.ts","sourceRoot":"","sources":["../../../../src/staticRest/layout/indexManifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,4FAA4F;AAC5F,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC,gFAAgF;AAChF,eAAO,MAAM,mBAAmB,EAAG,+BAAwC,CAAA;AAC3E,kDAAkD;AAClD,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D,sEAAsE;AACtE,eAAO,MAAM,eAAe,EAAG,2BAAoC,CAAA;AACnE,8CAA8C;AAC9C,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA;AAEpD,qDAAqD;AACrD,eAAO,MAAM,sBAAsB;;;iBAKjC,CAAA;AAEF,qDAAqD;AACrD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AASxE,kFAAkF;AAClF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;iBAI3B,CAAA;AAEF,mEAAmE;AACnE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D,kEAAkE;AAClE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAAiC,CAAA;AAC7D,8DAA8D;AAC9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoD,CAAA;AAChF,4CAA4C;AAC5C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoD,CAAA;AAEhF,qEAAqE;AACrE,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAA;AAEF,wEAAwE;AACxE,eAAO,MAAM,YAAY;;;;;;;;;;;;iBAWvB,CAAA;AAEF,yDAAyD;AACzD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAEpD,8DAA8D;AAC9D,eAAO,MAAM,WAAW;;;;;;;;;;;;CAA6B,CAAA;AACrD,0DAA0D;AAC1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA;AACpE,wCAAwC;AACxC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA;AAEpE,iGAAiG;AACjG,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAC3C,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAOjD;AAED,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAAG,aAAa,CAM/F;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,SAAS,EAAE,cAAc,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAWxF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Path builders for the chain-state (mutable) bucket.
|
|
3
|
-
*
|
|
4
|
-
* Paths are relative — no leading slash — and joined to a base URL by the consumer.
|
|
5
|
-
*/
|
|
6
|
-
/** The mutable head pointer: the current head SignedHydratedBlockWithHashMeta. */
|
|
7
|
-
export declare const headPath: () => string;
|
|
8
|
-
/** The chain-contract manifest: static per-chain config (rewards contract, staking token, fork info). Published once. */
|
|
9
|
-
export declare const chainContractPath: () => string;
|
|
10
|
-
//# sourceMappingURL=chainState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chainState.d.ts","sourceRoot":"","sources":["../../../../src/staticRest/paths/chainState.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,kFAAkF;AAClF,eAAO,MAAM,QAAQ,QAAO,MAA2B,CAAA;AAEvD,yHAAyH;AACzH,eAAO,MAAM,iBAAiB,QAAO,MAA+B,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Path builders for the finalized (immutable) bucket.
|
|
3
|
-
*
|
|
4
|
-
* Paths are relative — no leading slash — and joined to a base URL by the consumer.
|
|
5
|
-
*/
|
|
6
|
-
/** The finalized layout descriptor (path templates, encoding, version, earliest block). */
|
|
7
|
-
export declare const manifestPath: () => string;
|
|
8
|
-
/** A block by number: SignedHydratedBlockWithHashMeta. */
|
|
9
|
-
export declare const blockNumberPath: (block: number) => string;
|
|
10
|
-
/** A block by hash: the same content as its by-number twin. */
|
|
11
|
-
export declare const blockHashPath: (hash: string) => string;
|
|
12
|
-
/** A payload by hash: WithHashMeta<Payload>. */
|
|
13
|
-
export declare const payloadPath: (hash: string) => string;
|
|
14
|
-
//# sourceMappingURL=finalized.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"finalized.d.ts","sourceRoot":"","sources":["../../../../src/staticRest/paths/finalized.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,2FAA2F;AAC3F,eAAO,MAAM,YAAY,QAAO,MAAyB,CAAA;AAEzD,0DAA0D;AAC1D,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,MAAsC,CAAA;AAEtF,+DAA+D;AAC/D,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAAmC,CAAA;AAEhF,gDAAgD;AAChD,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,MAAgC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staticRest/paths/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IndexSummaryFamily } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
/**
|
|
3
|
-
* Path builders for the index bucket.
|
|
4
|
-
*
|
|
5
|
-
* The index is a separate, single-writer bucket holding completed step summaries for several
|
|
6
|
-
* families. Paths are relative — no leading slash — and joined to a base URL by the consumer.
|
|
7
|
-
*/
|
|
8
|
-
/** A completed frame's summary for a family, e.g. `blocks/2/5.json`. Immutable once written. */
|
|
9
|
-
export declare const indexSummaryPath: (family: IndexSummaryFamily, stepLevel: number, stepIndex: number) => string;
|
|
10
|
-
/** The index layout descriptor (families, max step, encoding, version). */
|
|
11
|
-
export declare const indexManifestPath: () => string;
|
|
12
|
-
/** The indexer's progress watermark (highest block the index is complete through). */
|
|
13
|
-
export declare const indexHeadPath: () => string;
|
|
14
|
-
//# sourceMappingURL=indexPaths.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexPaths.d.ts","sourceRoot":"","sources":["../../../../src/staticRest/paths/indexPaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEvE;;;;;GAKG;AAEH,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,GAAI,QAAQ,kBAAkB,EAAE,WAAW,MAAM,EAAE,WAAW,MAAM,KAAG,MACxD,CAAA;AAE5C,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,QAAO,MAAyB,CAAA;AAE9D,sFAAsF;AACtF,eAAO,MAAM,aAAa,QAAO,MAAqB,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { IndexSummaryFamily } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
/**
|
|
3
|
-
* Replaces concrete slot literals in a path with named `{placeholder}` segments.
|
|
4
|
-
* Used to derive manifest path templates from the path builders so the two cannot drift.
|
|
5
|
-
*/
|
|
6
|
-
export declare function toPathTemplate(path: string, slots: {
|
|
7
|
-
literal: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}[]): string;
|
|
10
|
-
/** Fills `{placeholder}` segments in a manifest path template. Used in conformance tests. */
|
|
11
|
-
export declare function interpolatePathTemplate(template: string, values: Record<string, string | number>): string;
|
|
12
|
-
/** Self-describing template for `blockNumberPath`. */
|
|
13
|
-
export declare const blockNumberPathTemplate: () => string;
|
|
14
|
-
/** Self-describing template for `blockHashPath`. */
|
|
15
|
-
export declare const blockHashPathTemplate: () => string;
|
|
16
|
-
/** Self-describing template for `payloadPath`. */
|
|
17
|
-
export declare const payloadPathTemplate: () => string;
|
|
18
|
-
/** Self-describing templates for finalized + chain-state files carried in the chain manifest. */
|
|
19
|
-
export declare function chainManifestPathTemplates(): {
|
|
20
|
-
blockByHash: string;
|
|
21
|
-
blockByNumber: string;
|
|
22
|
-
head: string;
|
|
23
|
-
payload: string;
|
|
24
|
-
};
|
|
25
|
-
/** Self-describing template for one index summary family, e.g. `blocks/{level}/{index}.json`. */
|
|
26
|
-
export declare function indexSummaryPathTemplate(family: IndexSummaryFamily): string;
|
|
27
|
-
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/staticRest/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAgBvE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,MAAM,CAS/F;AAED,6FAA6F;AAC7F,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAMzG;AAED,sDAAsD;AACtD,eAAO,MAAM,uBAAuB,QAAO,MACwE,CAAA;AAEnH,oDAAoD;AACpD,eAAO,MAAM,qBAAqB,QAAO,MAC6D,CAAA;AAEtG,kDAAkD;AAClD,eAAO,MAAM,mBAAmB,QAAO,MAC6D,CAAA;AAEpG,iGAAiG;AACjG,wBAAgB,0BAA0B,IAAI;IAC5C,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB,CAOA;AAED,iGAAiG;AACjG,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,CAM3E"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { NetworkId } from '../models/index.ts';
|
|
2
|
-
/** Builds URLs to pages on an XL1 chain explorer for a specific network. */
|
|
3
|
-
export declare class ExplorerLinks {
|
|
4
|
-
readonly explorerUrl: string;
|
|
5
|
-
readonly networkId: NetworkId;
|
|
6
|
-
constructor(explorerUrl: string, networkId: NetworkId);
|
|
7
|
-
/** `{explorerUrl}/xl1/{networkId}/address/{address}` */
|
|
8
|
-
address(address: string): string;
|
|
9
|
-
/** `{explorerUrl}/xl1/{networkId}/addresses` */
|
|
10
|
-
addresses(): string;
|
|
11
|
-
/** `{explorerUrl}/xl1/{networkId}/block/{blockHash}` */
|
|
12
|
-
block(blockHash: string): string;
|
|
13
|
-
/** `{explorerUrl}/xl1/{networkId}/block/number/{blockNumber}` */
|
|
14
|
-
blockByNumber(blockNumber: number | string): string;
|
|
15
|
-
/** `{explorerUrl}/xl1/{networkId}/block/{blockHash}/payload/{payloadHash}[/{render}]` */
|
|
16
|
-
blockPayload(blockHash: string, payloadHash: string, render?: string): string;
|
|
17
|
-
/** `{explorerUrl}/xl1/{networkId}/blocks` */
|
|
18
|
-
blocks(): string;
|
|
19
|
-
/** `{explorerUrl}/xl1/{networkId}` */
|
|
20
|
-
network(): string;
|
|
21
|
-
/** `{explorerUrl}/xl1/{networkId}/transaction/{txHash}` */
|
|
22
|
-
transaction(txHash: string): string;
|
|
23
|
-
/** `{explorerUrl}/xl1/{networkId}/transaction/{txHash}/payload/{payloadHash}[/{render}]` */
|
|
24
|
-
transactionPayload(txHash: string, payloadHash: string, render?: string): string;
|
|
25
|
-
/** `{explorerUrl}/xl1/{networkId}/transactions` */
|
|
26
|
-
transactions(): string;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=ExplorerLinks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerLinks.d.ts","sourceRoot":"","sources":["../../../src/utils/ExplorerLinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,4EAA4E;AAC5E,qBAAa,aAAa;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;gBAEjB,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS;IAKrD,wDAAwD;IACxD,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIhC,gDAAgD;IAChD,SAAS,IAAI,MAAM;IAInB,wDAAwD;IACxD,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAIhC,iEAAiE;IACjE,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAInD,yFAAyF;IACzF,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAK7E,6CAA6C;IAC7C,MAAM,IAAI,MAAM;IAIhB,sCAAsC;IACtC,OAAO,IAAI,MAAM;IAIjB,2DAA2D;IAC3D,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAInC,4FAA4F;IAC5F,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAKhF,mDAAmD;IACnD,YAAY,IAAI,MAAM;CAGvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|