@xyo-network/xl1-protocol 5.1.3 → 5.2.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/neutral/modules/network-model/staticRest/layout/chainParams.d.ts +371 -0
- package/dist/neutral/modules/network-model/staticRest/layout/chainParams.d.ts.map +1 -0
- package/dist/neutral/modules/network-model/staticRest/layout/chainParamsRules.d.ts +36 -0
- package/dist/neutral/modules/network-model/staticRest/layout/chainParamsRules.d.ts.map +1 -0
- package/dist/neutral/modules/network-model/staticRest/layout/index.d.ts +3 -0
- package/dist/neutral/modules/network-model/staticRest/layout/index.d.ts.map +1 -1
- package/dist/neutral/modules/network-model/staticRest/layout/trustedPosture.d.ts +81 -0
- package/dist/neutral/modules/network-model/staticRest/layout/trustedPosture.d.ts.map +1 -0
- package/dist/neutral/modules/network-model/staticRest/paths/chainState.d.ts +7 -0
- package/dist/neutral/modules/network-model/staticRest/paths/chainState.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-lib/validation/payload/InBlockPayloadValidationFunction.d.ts +37 -3
- package/dist/neutral/modules/protocol-lib/validation/payload/InBlockPayloadValidationFunction.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-lib/validation/payload/index.d.ts +1 -0
- package/dist/neutral/modules/protocol-lib/validation/payload/index.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-lib/validation/payload/ruleGate.d.ts +29 -0
- package/dist/neutral/modules/protocol-lib/validation/payload/ruleGate.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-lib/viewers/ChainParams.d.ts +26 -0
- package/dist/neutral/modules/protocol-lib/viewers/ChainParams.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-lib/viewers/StakeSnapshot.d.ts +39 -0
- package/dist/neutral/modules/protocol-lib/viewers/StakeSnapshot.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-lib/viewers/index.d.ts +3 -0
- package/dist/neutral/modules/protocol-lib/viewers/index.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/block/AllowedBlockPayload.d.ts +14 -2
- package/dist/neutral/modules/protocol-model/block/AllowedBlockPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/block/BlockBoundWitness.d.ts +19 -0
- package/dist/neutral/modules/protocol-model/block/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/block/HydratedBlock.d.ts +44 -0
- package/dist/neutral/modules/protocol-model/block/HydratedBlock.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitness.d.ts +6 -0
- package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +10 -0
- package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +12 -0
- package/dist/neutral/modules/protocol-model/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/block/unsigned/UnsignedBlockBoundWitness.d.ts +6 -0
- package/dist/neutral/modules/protocol-model/block/unsigned/UnsignedBlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/evidence/EvidenceDisposition.d.ts +1 -1
- package/dist/neutral/modules/protocol-model/evidence/EvidenceNotePayload.d.ts +1 -1
- package/dist/neutral/modules/protocol-model/model/AccountBalance.d.ts +1 -0
- package/dist/neutral/modules/protocol-model/model/AccountBalance.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/model/Context/ChainContext.zod.d.ts +3 -0
- package/dist/neutral/modules/protocol-model/model/Context/ChainContext.zod.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/model/Context/HeadContext.zod.d.ts +2 -0
- package/dist/neutral/modules/protocol-model/model/Context/HeadContext.zod.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/model/OffenseCode.d.ts +13 -0
- package/dist/neutral/modules/protocol-model/model/OffenseCode.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/model/RuleActivation.d.ts +63 -0
- package/dist/neutral/modules/protocol-model/model/RuleActivation.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/model/SyncStepSummary.d.ts +6 -0
- package/dist/neutral/modules/protocol-model/model/SyncStepSummary.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/model/index.d.ts +2 -0
- package/dist/neutral/modules/protocol-model/model/index.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/model/version.d.ts +2 -2
- package/dist/neutral/modules/protocol-model/payload/index.d.ts +1 -0
- package/dist/neutral/modules/protocol-model/payload/index.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/slash/SlashAdjudicationPayload.d.ts +51 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashAdjudicationPayload.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashChallengePayload.d.ts +33 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashChallengePayload.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashCommitPayload.d.ts +35 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashCommitPayload.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashEvidencePayload.d.ts +33 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashEvidencePayload.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashRequestPayload.d.ts +46 -0
- package/dist/neutral/modules/protocol-model/payload/slash/SlashRequestPayload.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/payload/slash/index.d.ts +6 -0
- package/dist/neutral/modules/protocol-model/payload/slash/index.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/rejection/BlockRejectionPayload.d.ts +4 -0
- package/dist/neutral/modules/protocol-model/rejection/BlockRejectionPayload.d.ts.map +1 -1
- package/dist/neutral/network-model.mjs +328 -114
- package/dist/neutral/network-model.mjs.map +4 -4
- package/dist/neutral/protocol-lib.mjs +27 -0
- package/dist/neutral/protocol-lib.mjs.map +3 -3
- package/dist/neutral/protocol-model.mjs +505 -296
- package/dist/neutral/protocol-model.mjs.map +4 -4
- package/package.json +3 -3
|
@@ -14,6 +14,7 @@ export declare const BlockRejectionFieldsZod: z.ZodMiniObject<{
|
|
|
14
14
|
previous: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
15
15
|
protocol: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
16
16
|
step_hashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
17
|
+
supersedes: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
17
18
|
schema: z.ZodMiniLiteral<"network.xyo.boundwitness" & {
|
|
18
19
|
readonly __schema: true;
|
|
19
20
|
}>;
|
|
@@ -54,6 +55,7 @@ export declare const BlockRejectionZod: z.ZodMiniObject<{
|
|
|
54
55
|
previous: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
55
56
|
protocol: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
56
57
|
step_hashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
|
|
58
|
+
supersedes: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
57
59
|
schema: z.ZodMiniLiteral<"network.xyo.boundwitness" & {
|
|
58
60
|
readonly __schema: true;
|
|
59
61
|
}>;
|
|
@@ -108,6 +110,7 @@ export declare const isBlockRejection: (x?: unknown) => x is {
|
|
|
108
110
|
$signatures: (import("@ariestools/sdk").BrandedHex | null)[];
|
|
109
111
|
protocol?: number | undefined;
|
|
110
112
|
step_hashes?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
113
|
+
supersedes?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
111
114
|
$destination?: import("@xyo-network/sdk").XyoQuantAddress | (Lowercase<string> & {
|
|
112
115
|
readonly __hex: true;
|
|
113
116
|
} & {
|
|
@@ -149,6 +152,7 @@ export declare const asBlockRejection: import("@ariestools/sdk").AsTypeFunction<
|
|
|
149
152
|
$signatures: (import("@ariestools/sdk").BrandedHex | null)[];
|
|
150
153
|
protocol?: number | undefined;
|
|
151
154
|
step_hashes?: import("@ariestools/sdk").BrandedHash[] | undefined;
|
|
155
|
+
supersedes?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
152
156
|
$destination?: import("@xyo-network/sdk").XyoQuantAddress | (Lowercase<string> & {
|
|
153
157
|
readonly __hex: true;
|
|
154
158
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockRejectionPayload.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-model/rejection/BlockRejectionPayload.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,sDAAsD;AACtD,eAAO,MAAM,oBAAoB;;CAAgD,CAAA;AACjF,6DAA6D;AAC7D,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAE9D,uEAAuE;AACvE,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"BlockRejectionPayload.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-model/rejection/BlockRejectionPayload.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,sDAAsD;AACtD,eAAO,MAAM,oBAAoB;;CAAgD,CAAA;AACjF,6DAA6D;AAC7D,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAE9D,uEAAuE;AACvE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIlC,CAAA;AAEF,yDAAyD;AACzD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG7B,CAAA;AAED,4EAA4E;AAC5E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D,qEAAqE;AACrE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8D,CAAA;AAE3F,uEAAuE;AACvE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2C,CAAA"}
|
|
@@ -157,6 +157,8 @@ import { asHash } from "@ariestools/sdk";
|
|
|
157
157
|
// src/modules/network-model/staticRest/paths/chainState.ts
|
|
158
158
|
var headPath = () => "chain/head.json";
|
|
159
159
|
var chainContractByIdPath = (chainId) => `chain/contracts/${chainId.toLowerCase()}.json`;
|
|
160
|
+
var chainParamsVersionPath = (chainId, version) => `chain/params/${chainId.toLowerCase()}/v${version}.json`;
|
|
161
|
+
var chainParamsHeadPath = (chainId) => `chain/params/${chainId.toLowerCase()}/head.json`;
|
|
160
162
|
|
|
161
163
|
// src/modules/network-model/staticRest/paths/finalized.ts
|
|
162
164
|
var manifestPath = () => "manifest.json";
|
|
@@ -260,98 +262,242 @@ function createChainManifest(encoding, earliestBlock = 0) {
|
|
|
260
262
|
}, true);
|
|
261
263
|
}
|
|
262
264
|
|
|
265
|
+
// src/modules/network-model/staticRest/layout/chainParams.ts
|
|
266
|
+
import {
|
|
267
|
+
zodAsFactory as zodAsFactory3,
|
|
268
|
+
zodIsFactory as zodIsFactory3,
|
|
269
|
+
zodToFactory as zodToFactory3
|
|
270
|
+
} from "@ariestools/sdk";
|
|
271
|
+
import { asSchema as asSchema2 } from "@xyo-network/sdk";
|
|
272
|
+
import { z as z3 } from "zod";
|
|
273
|
+
import { ChainIdZod as ChainIdZod2, NumberishZod as NumberishZod2 } from "#protocol-lib";
|
|
274
|
+
import { OffenseCodes, RuleIds } from "#protocol-model";
|
|
275
|
+
var ChainParamsSchema = asSchema2("network.xyo.s3.chain.params", true);
|
|
276
|
+
var CHAIN_PARAMS_VERSION = 1;
|
|
277
|
+
var offenseCodeZod = z3.enum(OffenseCodes);
|
|
278
|
+
var RuleIdZod = z3.enum(RuleIds);
|
|
279
|
+
var HeightZod = NumberishZod2.pipe(z3.int().nonnegative());
|
|
280
|
+
var HexAmountZod = z3.string();
|
|
281
|
+
var ChainParamsZod = z3.object({
|
|
282
|
+
/** Rule id to the height it takes effect. */
|
|
283
|
+
activations: z3.partialRecord(RuleIdZod, HeightZod),
|
|
284
|
+
/** Address whose adjudication records are honored. */
|
|
285
|
+
arbiter: z3.string(),
|
|
286
|
+
/** Share of a step's reward pool paid to attestors, in basis points. */
|
|
287
|
+
attestationRewardBps: z3.int().nonnegative(),
|
|
288
|
+
/** Absolute ceiling on any single bounty, in the smallest unit. */
|
|
289
|
+
bountyCapAtto: HexAmountZod,
|
|
290
|
+
/** Share of a slash offered as a bounty, in basis points. */
|
|
291
|
+
bountyShareBps: z3.int().nonnegative(),
|
|
292
|
+
/** Minimum share of every slash that must be burned, in basis points. */
|
|
293
|
+
burnFloorBps: z3.int().positive(),
|
|
294
|
+
/** Version of the offense catalog these parameters describe. */
|
|
295
|
+
catalogVersion: z3.int().positive(),
|
|
296
|
+
/** Chain these parameters govern. */
|
|
297
|
+
chainId: ChainIdZod2,
|
|
298
|
+
/** Window during which counter-evidence may be filed, in EVM blocks. */
|
|
299
|
+
challengeWindowEvmBlocks: z3.int().positive(),
|
|
300
|
+
/** Rule id to the height it stops taking effect; re-activation needs a later version. */
|
|
301
|
+
deactivations: z3.optional(z3.partialRecord(RuleIdZod, HeightZod)),
|
|
302
|
+
/** Maximum age of an offense at report time, in EVM blocks. */
|
|
303
|
+
evidenceFreshnessEvmBlocks: z3.int().positive(),
|
|
304
|
+
/** Operational floor on how long evidence is kept, in XL1 blocks. */
|
|
305
|
+
evidenceRetentionXl1Blocks: z3.int().positive(),
|
|
306
|
+
/** Delay between a certificate being queued and executable, in EVM blocks. */
|
|
307
|
+
executionDelayEvmBlocks: z3.int().positive(),
|
|
308
|
+
/** How far behind its own anchor a block's stake measurement may sit, in EVM blocks. */
|
|
309
|
+
freshnessBandEvmBlocks: z3.int().positive(),
|
|
310
|
+
/** Blocks after an activation during which the rule is observed but not enforced. */
|
|
311
|
+
graceBandXl1Blocks: z3.int().nonnegative(),
|
|
312
|
+
/** Confirmation depth an anchor must sit behind the EVM head, in EVM blocks. */
|
|
313
|
+
maturityEvmBlocks: z3.int().positive(),
|
|
314
|
+
/** Minimum stake a producer must place on itself, in the smallest unit. */
|
|
315
|
+
minProducerSelfBondAtto: HexAmountZod,
|
|
316
|
+
/** Minimum stake on a producer address, in the smallest unit. */
|
|
317
|
+
minProducerStakeAtto: HexAmountZod,
|
|
318
|
+
/** Minimum age stake must reach before it counts toward participation, in EVM blocks. */
|
|
319
|
+
minStakeAgeEvmBlocks: z3.int().nonnegative(),
|
|
320
|
+
/** Minimum stake a validator must hold, in the smallest unit. */
|
|
321
|
+
minValidatorStakeAtto: HexAmountZod,
|
|
322
|
+
/** Slack the timing budget carries for operations and stalls, in EVM blocks. */
|
|
323
|
+
opsAllowanceEvmBlocks: z3.int().positive(),
|
|
324
|
+
/** Lowest protocol version a block may declare. */
|
|
325
|
+
protocolMin: z3.int().positive(),
|
|
326
|
+
/** Refundable deposit a report must escrow, in the smallest unit. */
|
|
327
|
+
reporterDepositAtto: HexAmountZod,
|
|
328
|
+
/** Blocks a reveal must wait after its commitment. */
|
|
329
|
+
revealDelayEvmBlocks: z3.int().positive(),
|
|
330
|
+
/** Blocks a reveal must wait after its commitment, on the XL1 clock. */
|
|
331
|
+
revealDelayXl1Blocks: z3.int().positive(),
|
|
332
|
+
/** Blocks after which an unrevealed commitment expires. */
|
|
333
|
+
revealWindowEvmBlocks: z3.int().positive(),
|
|
334
|
+
/** Blocks after which an unrevealed commitment expires, on the XL1 clock. */
|
|
335
|
+
revealWindowXl1Blocks: z3.int().positive(),
|
|
336
|
+
/** Where the allowed block reward comes from. */
|
|
337
|
+
rewardSource: z3.enum(["schedule", "contract"]),
|
|
338
|
+
schema: z3.literal(ChainParamsSchema),
|
|
339
|
+
/** Offense code to the share of at-risk stake it slashes, in basis points. */
|
|
340
|
+
slashFractionsBps: z3.partialRecord(offenseCodeZod, z3.int().nonnegative()),
|
|
341
|
+
/** Distinct validator signatures a slash certificate needs. */
|
|
342
|
+
slashQuorumCount: z3.int().positive(),
|
|
343
|
+
/** Version of this register document. */
|
|
344
|
+
version: z3.int().positive()
|
|
345
|
+
});
|
|
346
|
+
var isChainParams = zodIsFactory3(ChainParamsZod);
|
|
347
|
+
var asChainParams = zodAsFactory3(ChainParamsZod, "asChainParams");
|
|
348
|
+
var toChainParams = zodToFactory3(ChainParamsZod, "toChainParams");
|
|
349
|
+
var ChainParamsHeadSchema = asSchema2("network.xyo.s3.chain.params.head", true);
|
|
350
|
+
var ChainParamsHeadZod = z3.object({
|
|
351
|
+
/** Hash of the version document, so a reader can tell it got the one the head meant. */
|
|
352
|
+
hash: z3.string(),
|
|
353
|
+
schema: z3.literal(ChainParamsHeadSchema),
|
|
354
|
+
/** Version number the pointer names. */
|
|
355
|
+
version: z3.int().positive()
|
|
356
|
+
});
|
|
357
|
+
var isChainParamsHead = zodIsFactory3(ChainParamsHeadZod);
|
|
358
|
+
var asChainParamsHead = zodAsFactory3(ChainParamsHeadZod, "asChainParamsHead");
|
|
359
|
+
function createChainParams(config) {
|
|
360
|
+
return ChainParamsZod.parse({ ...config, schema: ChainParamsSchema });
|
|
361
|
+
}
|
|
362
|
+
function createChainParamsHead(version, hash) {
|
|
363
|
+
return ChainParamsHeadZod.parse({
|
|
364
|
+
hash,
|
|
365
|
+
schema: ChainParamsHeadSchema,
|
|
366
|
+
version
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
// src/modules/network-model/staticRest/layout/chainParamsRules.ts
|
|
371
|
+
import {
|
|
372
|
+
adjudicableRuleId,
|
|
373
|
+
isRuleObservedAt,
|
|
374
|
+
reportableRuleId,
|
|
375
|
+
ruleActivationStateAt
|
|
376
|
+
} from "#protocol-model";
|
|
377
|
+
function isOffenseReportableAt(params, offense, height) {
|
|
378
|
+
return isRuleObservedAt(params, reportableRuleId(offense), height);
|
|
379
|
+
}
|
|
380
|
+
function offenseAdjudicationStateAt(params, offense, height) {
|
|
381
|
+
return ruleActivationStateAt(params, adjudicableRuleId(offense), height);
|
|
382
|
+
}
|
|
383
|
+
function protocolMinAt(params, height) {
|
|
384
|
+
return isRuleObservedAt(params, "anchor-rules", height) ? params.protocolMin : void 0;
|
|
385
|
+
}
|
|
386
|
+
function chainParamsSuccessionErrors(previous, next, finalizedHeight) {
|
|
387
|
+
if (previous === void 0) return [];
|
|
388
|
+
const errors = [];
|
|
389
|
+
if (next.version <= previous.version) {
|
|
390
|
+
errors.push(`version must increase: ${previous.version} -> ${next.version}`);
|
|
391
|
+
}
|
|
392
|
+
if (next.chainId !== previous.chainId) {
|
|
393
|
+
errors.push(`chainId must not change: ${previous.chainId} -> ${next.chainId}`);
|
|
394
|
+
}
|
|
395
|
+
for (const [ruleId, height] of Object.entries(previous.activations)) {
|
|
396
|
+
if (height > finalizedHeight) continue;
|
|
397
|
+
if (next.activations[ruleId] !== height) {
|
|
398
|
+
errors.push(`activation for '${ruleId}' is already in force at ${height} and must not move`);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
for (const [ruleId, height] of Object.entries(next.deactivations ?? {})) {
|
|
402
|
+
if (height < finalizedHeight) {
|
|
403
|
+
errors.push(`deactivation for '${ruleId}' at ${height} is in the past`);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return errors;
|
|
407
|
+
}
|
|
408
|
+
|
|
263
409
|
// src/modules/network-model/staticRest/layout/evmEventIndex.ts
|
|
264
410
|
import {
|
|
265
411
|
EthAddressZod,
|
|
266
412
|
HexRegExMinMaxMixedCaseWithPrefix,
|
|
267
|
-
zodAsFactory as
|
|
413
|
+
zodAsFactory as zodAsFactory4
|
|
268
414
|
} from "@ariestools/sdk";
|
|
269
|
-
import { z as
|
|
270
|
-
var EvmHashZod =
|
|
271
|
-
var EvmDataZod =
|
|
272
|
-
var EvmEventIndexLogZod =
|
|
415
|
+
import { z as z4 } from "zod/mini";
|
|
416
|
+
var EvmHashZod = z4.string().check(z4.regex(HexRegExMinMaxMixedCaseWithPrefix(32, 32)));
|
|
417
|
+
var EvmDataZod = z4.string().check(z4.regex(/^0x[\dA-Fa-f]*$/));
|
|
418
|
+
var EvmEventIndexLogZod = z4.object({
|
|
273
419
|
address: EthAddressZod,
|
|
274
420
|
blockHash: EvmHashZod,
|
|
275
|
-
blockNumber:
|
|
421
|
+
blockNumber: z4.number(),
|
|
276
422
|
data: EvmDataZod,
|
|
277
|
-
index:
|
|
278
|
-
topics:
|
|
423
|
+
index: z4.number(),
|
|
424
|
+
topics: z4.array(EvmHashZod),
|
|
279
425
|
transactionHash: EvmHashZod,
|
|
280
|
-
transactionIndex:
|
|
426
|
+
transactionIndex: z4.number()
|
|
281
427
|
});
|
|
282
|
-
var EvmEventIndexFrameZod =
|
|
283
|
-
fromBlock:
|
|
284
|
-
logs:
|
|
285
|
-
toBlock:
|
|
428
|
+
var EvmEventIndexFrameZod = z4.object({
|
|
429
|
+
fromBlock: z4.number(),
|
|
430
|
+
logs: z4.array(EvmEventIndexLogZod),
|
|
431
|
+
toBlock: z4.number()
|
|
286
432
|
});
|
|
287
|
-
var EvmEventIndexManifestZod =
|
|
433
|
+
var EvmEventIndexManifestZod = z4.object({
|
|
288
434
|
address: EthAddressZod,
|
|
289
|
-
chainId:
|
|
290
|
-
deploymentBlock:
|
|
291
|
-
frameSize:
|
|
292
|
-
layout:
|
|
435
|
+
chainId: z4.string(),
|
|
436
|
+
deploymentBlock: z4.number(),
|
|
437
|
+
frameSize: z4.number(),
|
|
438
|
+
layout: z4.literal("evm-contract-events-v1")
|
|
293
439
|
});
|
|
294
|
-
var EvmEventIndexHeadZod =
|
|
440
|
+
var EvmEventIndexHeadZod = z4.object({
|
|
295
441
|
address: EthAddressZod,
|
|
296
|
-
block:
|
|
297
|
-
chainId:
|
|
442
|
+
block: z4.number(),
|
|
443
|
+
chainId: z4.string(),
|
|
298
444
|
hash: EvmHashZod
|
|
299
445
|
});
|
|
300
|
-
var asEvmEventIndexFrame =
|
|
301
|
-
var asEvmEventIndexHead =
|
|
302
|
-
var asEvmEventIndexManifest =
|
|
446
|
+
var asEvmEventIndexFrame = zodAsFactory4(EvmEventIndexFrameZod, "asEvmEventIndexFrame");
|
|
447
|
+
var asEvmEventIndexHead = zodAsFactory4(EvmEventIndexHeadZod, "asEvmEventIndexHead");
|
|
448
|
+
var asEvmEventIndexManifest = zodAsFactory4(EvmEventIndexManifestZod, "asEvmEventIndexManifest");
|
|
303
449
|
|
|
304
450
|
// src/modules/network-model/staticRest/layout/indexManifest.ts
|
|
305
451
|
import {
|
|
306
|
-
zodAsFactory as
|
|
307
|
-
zodIsFactory as
|
|
308
|
-
zodToFactory as
|
|
452
|
+
zodAsFactory as zodAsFactory5,
|
|
453
|
+
zodIsFactory as zodIsFactory4,
|
|
454
|
+
zodToFactory as zodToFactory4
|
|
309
455
|
} from "@ariestools/sdk";
|
|
310
|
-
import { z as
|
|
456
|
+
import { z as z5 } from "zod";
|
|
311
457
|
var INDEX_LAYOUT_VERSION = 1;
|
|
312
458
|
var IndexManifestSchema = "network.xyo.s3.index.manifest";
|
|
313
459
|
var IndexHeadSchema = "network.xyo.s3.index.head";
|
|
314
|
-
var IndexManifestFamilyZod =
|
|
460
|
+
var IndexManifestFamilyZod = z5.object({
|
|
315
461
|
/** Highest step level published for this family. */
|
|
316
|
-
maxStep:
|
|
462
|
+
maxStep: z5.int().nonnegative(),
|
|
317
463
|
/** Path template for the family's frames, e.g. `blocks/{level}/{index}.json`. */
|
|
318
|
-
path:
|
|
464
|
+
path: z5.string()
|
|
319
465
|
});
|
|
320
|
-
var indexFamiliesZod =
|
|
466
|
+
var indexFamiliesZod = z5.object({
|
|
321
467
|
balances: IndexManifestFamilyZod,
|
|
322
468
|
blocks: IndexManifestFamilyZod,
|
|
323
469
|
schemas: IndexManifestFamilyZod,
|
|
324
470
|
transfers: IndexManifestFamilyZod
|
|
325
471
|
});
|
|
326
|
-
var IndexManifestZod =
|
|
472
|
+
var IndexManifestZod = z5.object({
|
|
327
473
|
families: indexFamiliesZod,
|
|
328
|
-
schema:
|
|
329
|
-
version:
|
|
474
|
+
schema: z5.literal(IndexManifestSchema),
|
|
475
|
+
version: z5.int().positive()
|
|
330
476
|
});
|
|
331
|
-
var isIndexManifest =
|
|
332
|
-
var asIndexManifest =
|
|
333
|
-
var toIndexManifest =
|
|
334
|
-
var IndexHeadFamiliesZod =
|
|
335
|
-
balances:
|
|
336
|
-
blocks:
|
|
337
|
-
schemas:
|
|
338
|
-
transfers:
|
|
477
|
+
var isIndexManifest = zodIsFactory4(IndexManifestZod);
|
|
478
|
+
var asIndexManifest = zodAsFactory5(IndexManifestZod, "asIndexManifest");
|
|
479
|
+
var toIndexManifest = zodToFactory4(IndexManifestZod, "toIndexManifest");
|
|
480
|
+
var IndexHeadFamiliesZod = z5.object({
|
|
481
|
+
balances: z5.int().nonnegative(),
|
|
482
|
+
blocks: z5.int().nonnegative(),
|
|
483
|
+
schemas: z5.int().nonnegative(),
|
|
484
|
+
transfers: z5.int().nonnegative()
|
|
339
485
|
});
|
|
340
|
-
var IndexHeadZod =
|
|
486
|
+
var IndexHeadZod = z5.object({
|
|
341
487
|
/** Highest block the index is complete through. */
|
|
342
|
-
block:
|
|
488
|
+
block: z5.int().nonnegative(),
|
|
343
489
|
/** Completed frame counts per family. */
|
|
344
490
|
families: IndexHeadFamiliesZod,
|
|
345
491
|
/** Hash of that block. */
|
|
346
|
-
hash:
|
|
347
|
-
schema:
|
|
492
|
+
hash: z5.string(),
|
|
493
|
+
schema: z5.literal(IndexHeadSchema),
|
|
348
494
|
/** ISO-8601 timestamp of the last update. */
|
|
349
|
-
updatedAt:
|
|
350
|
-
version:
|
|
495
|
+
updatedAt: z5.string(),
|
|
496
|
+
version: z5.int().positive()
|
|
351
497
|
});
|
|
352
|
-
var isIndexHead =
|
|
353
|
-
var asIndexHead =
|
|
354
|
-
var toIndexHead =
|
|
498
|
+
var isIndexHead = zodIsFactory4(IndexHeadZod);
|
|
499
|
+
var asIndexHead = zodAsFactory5(IndexHeadZod, "asIndexHead");
|
|
500
|
+
var toIndexHead = zodToFactory4(IndexHeadZod, "toIndexHead");
|
|
355
501
|
function createIndexManifestFamilies(maxSteps) {
|
|
356
502
|
return {
|
|
357
503
|
balances: { maxStep: maxSteps.balances, path: indexSummaryPathTemplate("balances") },
|
|
@@ -383,84 +529,84 @@ function createIndexHead(watermark, updatedAt) {
|
|
|
383
529
|
// src/modules/network-model/staticRest/layout/networkStakeRewardsIndex.ts
|
|
384
530
|
import {
|
|
385
531
|
HashZod,
|
|
386
|
-
zodAsFactory as
|
|
387
|
-
zodIsFactory as
|
|
532
|
+
zodAsFactory as zodAsFactory6,
|
|
533
|
+
zodIsFactory as zodIsFactory5
|
|
388
534
|
} from "@ariestools/sdk";
|
|
389
|
-
import { asSchema as
|
|
390
|
-
import { z as
|
|
535
|
+
import { asSchema as asSchema3 } from "@xyo-network/sdk";
|
|
536
|
+
import { z as z6 } from "zod";
|
|
391
537
|
var NETWORK_STAKE_REWARDS_INDEX_LAYOUT = "network-stake-rewards-v1";
|
|
392
538
|
var NETWORK_STAKE_REWARDS_UNMULTIPLIED_POLICY = "unmultiplied-v1";
|
|
393
539
|
var NETWORK_STAKE_REWARDS_BASE_POLICY = NETWORK_STAKE_REWARDS_UNMULTIPLIED_POLICY;
|
|
394
|
-
var NetworkStakeRewardsIndexSnapshotSchema =
|
|
395
|
-
var DecimalBigIntZod =
|
|
396
|
-
var NetworkStakeRewardsPolicyIdZod =
|
|
397
|
-
var PositionRewardsZod =
|
|
398
|
-
var BlockRangeZod =
|
|
399
|
-
var StepIdentityJsonZod =
|
|
400
|
-
block:
|
|
401
|
-
step:
|
|
540
|
+
var NetworkStakeRewardsIndexSnapshotSchema = asSchema3("network.xyo.chain.stake.rewards.snapshot", true);
|
|
541
|
+
var DecimalBigIntZod = z6.string().regex(/^(?:0|[1-9]\d*)$/);
|
|
542
|
+
var NetworkStakeRewardsPolicyIdZod = z6.string().regex(/^[a-z0-9][a-z0-9._-]*$/);
|
|
543
|
+
var PositionRewardsZod = z6.record(z6.string().regex(/^(?:0|[1-9]\d*)$/), DecimalBigIntZod);
|
|
544
|
+
var BlockRangeZod = z6.tuple([z6.number().int().nonnegative(), z6.number().int().nonnegative()]);
|
|
545
|
+
var StepIdentityJsonZod = z6.object({
|
|
546
|
+
block: z6.number().int().nonnegative(),
|
|
547
|
+
step: z6.number().int().nonnegative()
|
|
402
548
|
});
|
|
403
|
-
var NetworkStakeRewardsIndexManifestZod =
|
|
404
|
-
evmAddress:
|
|
405
|
-
evmChainId:
|
|
406
|
-
layout:
|
|
549
|
+
var NetworkStakeRewardsIndexManifestZod = z6.object({
|
|
550
|
+
evmAddress: z6.string(),
|
|
551
|
+
evmChainId: z6.string(),
|
|
552
|
+
layout: z6.literal(NETWORK_STAKE_REWARDS_INDEX_LAYOUT),
|
|
407
553
|
policyId: NetworkStakeRewardsPolicyIdZod,
|
|
408
|
-
stepLevels:
|
|
409
|
-
timeAnchor:
|
|
410
|
-
externalGenesisTime:
|
|
411
|
-
maxScanBlocks:
|
|
554
|
+
stepLevels: z6.array(z6.number().int().nonnegative()),
|
|
555
|
+
timeAnchor: z6.object({
|
|
556
|
+
externalGenesisTime: z6.number().optional(),
|
|
557
|
+
maxScanBlocks: z6.number().optional()
|
|
412
558
|
}).optional()
|
|
413
559
|
});
|
|
414
|
-
var NetworkStakeRewardsIndexStepZod =
|
|
560
|
+
var NetworkStakeRewardsIndexStepZod = z6.object({
|
|
415
561
|
denominator: DecimalBigIntZod,
|
|
416
562
|
externalRange: BlockRangeZod,
|
|
417
|
-
layout:
|
|
563
|
+
layout: z6.literal(NETWORK_STAKE_REWARDS_INDEX_LAYOUT),
|
|
418
564
|
policyId: NetworkStakeRewardsPolicyIdZod,
|
|
419
565
|
positionRewards: PositionRewardsZod,
|
|
420
566
|
step: StepIdentityJsonZod,
|
|
421
567
|
totalReward: DecimalBigIntZod,
|
|
422
568
|
xl1Range: BlockRangeZod
|
|
423
569
|
});
|
|
424
|
-
var NetworkStakeRewardsIndexSnapshotZod =
|
|
425
|
-
layout:
|
|
570
|
+
var NetworkStakeRewardsIndexSnapshotZod = z6.object({
|
|
571
|
+
layout: z6.literal(NETWORK_STAKE_REWARDS_INDEX_LAYOUT),
|
|
426
572
|
policyId: NetworkStakeRewardsPolicyIdZod,
|
|
427
573
|
positionRewards: PositionRewardsZod,
|
|
428
|
-
schema:
|
|
429
|
-
stepCount:
|
|
574
|
+
schema: z6.literal(NetworkStakeRewardsIndexSnapshotSchema),
|
|
575
|
+
stepCount: z6.number().int().nonnegative(),
|
|
430
576
|
totalReward: DecimalBigIntZod
|
|
431
577
|
});
|
|
432
|
-
var NetworkStakeRewardsIndexHeadZod =
|
|
433
|
-
layout:
|
|
578
|
+
var NetworkStakeRewardsIndexHeadZod = z6.object({
|
|
579
|
+
layout: z6.literal(NETWORK_STAKE_REWARDS_INDEX_LAYOUT),
|
|
434
580
|
policyId: NetworkStakeRewardsPolicyIdZod,
|
|
435
|
-
positionCount:
|
|
436
|
-
processedThroughBlock:
|
|
581
|
+
positionCount: z6.number().int().nonnegative(),
|
|
582
|
+
processedThroughBlock: z6.number().int().nonnegative(),
|
|
437
583
|
snapshotHash: HashZod,
|
|
438
|
-
source:
|
|
439
|
-
evm:
|
|
440
|
-
block:
|
|
441
|
-
hash:
|
|
584
|
+
source: z6.object({
|
|
585
|
+
evm: z6.object({
|
|
586
|
+
block: z6.number().int().nonnegative(),
|
|
587
|
+
hash: z6.string()
|
|
442
588
|
}),
|
|
443
|
-
xl1:
|
|
444
|
-
block:
|
|
445
|
-
hash:
|
|
589
|
+
xl1: z6.object({
|
|
590
|
+
block: z6.number().int().nonnegative(),
|
|
591
|
+
hash: z6.string()
|
|
446
592
|
})
|
|
447
593
|
}),
|
|
448
|
-
stepCount:
|
|
594
|
+
stepCount: z6.number().int().nonnegative()
|
|
449
595
|
});
|
|
450
|
-
var isNetworkStakeRewardsIndexManifest =
|
|
451
|
-
var asNetworkStakeRewardsIndexManifest =
|
|
596
|
+
var isNetworkStakeRewardsIndexManifest = zodIsFactory5(NetworkStakeRewardsIndexManifestZod);
|
|
597
|
+
var asNetworkStakeRewardsIndexManifest = zodAsFactory6(
|
|
452
598
|
NetworkStakeRewardsIndexManifestZod,
|
|
453
599
|
"asNetworkStakeRewardsIndexManifest"
|
|
454
600
|
);
|
|
455
|
-
var asNetworkStakeRewardsIndexStep =
|
|
601
|
+
var asNetworkStakeRewardsIndexStep = zodAsFactory6(
|
|
456
602
|
NetworkStakeRewardsIndexStepZod,
|
|
457
603
|
"asNetworkStakeRewardsIndexStep"
|
|
458
604
|
);
|
|
459
|
-
var asNetworkStakeRewardsIndexSnapshot =
|
|
605
|
+
var asNetworkStakeRewardsIndexSnapshot = zodAsFactory6(
|
|
460
606
|
NetworkStakeRewardsIndexSnapshotZod,
|
|
461
607
|
"asNetworkStakeRewardsIndexSnapshot"
|
|
462
608
|
);
|
|
463
|
-
var asNetworkStakeRewardsIndexHead =
|
|
609
|
+
var asNetworkStakeRewardsIndexHead = zodAsFactory6(
|
|
464
610
|
NetworkStakeRewardsIndexHeadZod,
|
|
465
611
|
"asNetworkStakeRewardsIndexHead"
|
|
466
612
|
);
|
|
@@ -468,48 +614,48 @@ var asNetworkStakeRewardsIndexHead = zodAsFactory5(
|
|
|
468
614
|
// src/modules/network-model/staticRest/layout/transactionInclusionIndex.ts
|
|
469
615
|
import {
|
|
470
616
|
HashZod as HashZod2,
|
|
471
|
-
zodAsFactory as
|
|
472
|
-
zodIsFactory as
|
|
473
|
-
zodToFactory as
|
|
617
|
+
zodAsFactory as zodAsFactory7,
|
|
618
|
+
zodIsFactory as zodIsFactory6,
|
|
619
|
+
zodToFactory as zodToFactory5
|
|
474
620
|
} from "@ariestools/sdk";
|
|
475
|
-
import { z as
|
|
476
|
-
import { ChainIdZod as
|
|
621
|
+
import { z as z7 } from "zod";
|
|
622
|
+
import { ChainIdZod as ChainIdZod3, XL1BlockNumberZod } from "#protocol-model";
|
|
477
623
|
var TRANSACTION_INCLUSION_INDEX_LAYOUT = "transaction-inclusions-v1";
|
|
478
|
-
var TransactionInclusionManifestZod =
|
|
624
|
+
var TransactionInclusionManifestZod = z7.object({
|
|
479
625
|
/** XL1 chain whose finalized transactions are indexed. */
|
|
480
|
-
chain:
|
|
626
|
+
chain: ChainIdZod3,
|
|
481
627
|
/** Versioned layout identifier. */
|
|
482
|
-
layout:
|
|
628
|
+
layout: z7.literal(TRANSACTION_INCLUSION_INDEX_LAYOUT),
|
|
483
629
|
/** Hash-addressed path template, for example `transactions/by-hash/{hash}.json`. */
|
|
484
|
-
path:
|
|
630
|
+
path: z7.string()
|
|
485
631
|
});
|
|
486
|
-
var TransactionInclusionHeadZod =
|
|
632
|
+
var TransactionInclusionHeadZod = z7.object({
|
|
487
633
|
/** Highest finalized block fully represented by the lookup. */
|
|
488
634
|
block: XL1BlockNumberZod,
|
|
489
635
|
/** Hash of the highest finalized block fully represented by the lookup. */
|
|
490
636
|
blockHash: HashZod2,
|
|
491
637
|
/** XL1 chain whose finalized transactions are indexed. */
|
|
492
|
-
chain:
|
|
638
|
+
chain: ChainIdZod3,
|
|
493
639
|
/** Number of transaction-inclusion records represented through `block`. */
|
|
494
|
-
entries:
|
|
640
|
+
entries: z7.int().nonnegative(),
|
|
495
641
|
/** Versioned layout identifier. */
|
|
496
|
-
layout:
|
|
642
|
+
layout: z7.literal(TRANSACTION_INCLUSION_INDEX_LAYOUT)
|
|
497
643
|
});
|
|
498
|
-
var isTransactionInclusionManifest =
|
|
499
|
-
var asTransactionInclusionManifest =
|
|
644
|
+
var isTransactionInclusionManifest = zodIsFactory6(TransactionInclusionManifestZod);
|
|
645
|
+
var asTransactionInclusionManifest = zodAsFactory7(
|
|
500
646
|
TransactionInclusionManifestZod,
|
|
501
647
|
"asTransactionInclusionManifest"
|
|
502
648
|
);
|
|
503
|
-
var toTransactionInclusionManifest =
|
|
649
|
+
var toTransactionInclusionManifest = zodToFactory5(
|
|
504
650
|
TransactionInclusionManifestZod,
|
|
505
651
|
"toTransactionInclusionManifest"
|
|
506
652
|
);
|
|
507
|
-
var isTransactionInclusionHead =
|
|
508
|
-
var asTransactionInclusionHead =
|
|
653
|
+
var isTransactionInclusionHead = zodIsFactory6(TransactionInclusionHeadZod);
|
|
654
|
+
var asTransactionInclusionHead = zodAsFactory7(
|
|
509
655
|
TransactionInclusionHeadZod,
|
|
510
656
|
"asTransactionInclusionHead"
|
|
511
657
|
);
|
|
512
|
-
var toTransactionInclusionHead =
|
|
658
|
+
var toTransactionInclusionHead = zodToFactory5(
|
|
513
659
|
TransactionInclusionHeadZod,
|
|
514
660
|
"toTransactionInclusionHead"
|
|
515
661
|
);
|
|
@@ -527,6 +673,53 @@ function createTransactionInclusionHead(head) {
|
|
|
527
673
|
}, true);
|
|
528
674
|
}
|
|
529
675
|
|
|
676
|
+
// src/modules/network-model/staticRest/layout/trustedPosture.ts
|
|
677
|
+
var DEFAULT_CHAIN_PARAMS = {
|
|
678
|
+
attestationRewardBps: 1e3,
|
|
679
|
+
bountyShareBps: 1e3,
|
|
680
|
+
burnFloorBps: 9e3,
|
|
681
|
+
catalogVersion: 1,
|
|
682
|
+
challengeWindowEvmBlocks: 14400,
|
|
683
|
+
evidenceFreshnessEvmBlocks: 21600,
|
|
684
|
+
evidenceRetentionXl1Blocks: 6e4,
|
|
685
|
+
executionDelayEvmBlocks: 7200,
|
|
686
|
+
freshnessBandEvmBlocks: 2048,
|
|
687
|
+
graceBandXl1Blocks: 1440,
|
|
688
|
+
maturityEvmBlocks: 32,
|
|
689
|
+
minStakeAgeEvmBlocks: 100800,
|
|
690
|
+
opsAllowanceEvmBlocks: 7200,
|
|
691
|
+
protocolMin: 1003e3,
|
|
692
|
+
revealDelayEvmBlocks: 60,
|
|
693
|
+
revealDelayXl1Blocks: 10,
|
|
694
|
+
revealWindowEvmBlocks: 7200,
|
|
695
|
+
revealWindowXl1Blocks: 1440,
|
|
696
|
+
slashFractionsBps: {
|
|
697
|
+
"equivocation": 1500,
|
|
698
|
+
"false-anchor": 750,
|
|
699
|
+
"false-attestation": 500,
|
|
700
|
+
"ineligible-production": 100,
|
|
701
|
+
"invalid-block": 500,
|
|
702
|
+
"invalid-slash-request": 750,
|
|
703
|
+
"reward-overmint": 1500
|
|
704
|
+
},
|
|
705
|
+
slashQuorumCount: 5
|
|
706
|
+
};
|
|
707
|
+
function createTrustedPostureParams(config) {
|
|
708
|
+
return createChainParams({
|
|
709
|
+
...DEFAULT_CHAIN_PARAMS,
|
|
710
|
+
activations: {},
|
|
711
|
+
arbiter: config.arbiter,
|
|
712
|
+
bountyCapAtto: config.bountyCapAtto ?? "00",
|
|
713
|
+
chainId: config.chainId,
|
|
714
|
+
minProducerSelfBondAtto: config.minProducerSelfBondAtto ?? "00",
|
|
715
|
+
minProducerStakeAtto: config.minProducerStakeAtto ?? "00",
|
|
716
|
+
minValidatorStakeAtto: config.minValidatorStakeAtto ?? "00",
|
|
717
|
+
reporterDepositAtto: config.reporterDepositAtto ?? "00",
|
|
718
|
+
rewardSource: config.rewardSource ?? "contract",
|
|
719
|
+
version: config.version ?? 1
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
|
|
530
723
|
// src/modules/network-model/staticRest/paths/evmEventIndex.ts
|
|
531
724
|
function root(address) {
|
|
532
725
|
return `evm/events/${address.toLowerCase()}`;
|
|
@@ -623,11 +816,17 @@ var ExplorerLinks = class {
|
|
|
623
816
|
export {
|
|
624
817
|
CHAIN_CONTRACT_MANIFEST_VERSION,
|
|
625
818
|
CHAIN_LAYOUT_VERSION,
|
|
819
|
+
CHAIN_PARAMS_VERSION,
|
|
626
820
|
ChainContractManifestSchema,
|
|
627
821
|
ChainContractManifestZod,
|
|
628
822
|
ChainManifestPathsZod,
|
|
629
823
|
ChainManifestSchema,
|
|
630
824
|
ChainManifestZod,
|
|
825
|
+
ChainParamsHeadSchema,
|
|
826
|
+
ChainParamsHeadZod,
|
|
827
|
+
ChainParamsSchema,
|
|
828
|
+
ChainParamsZod,
|
|
829
|
+
DEFAULT_CHAIN_PARAMS,
|
|
631
830
|
DefaultNetworks,
|
|
632
831
|
EvmEventIndexFrameZod,
|
|
633
832
|
EvmEventIndexHeadZod,
|
|
@@ -656,6 +855,7 @@ export {
|
|
|
656
855
|
NetworkStakeRewardsIndexSnapshotZod,
|
|
657
856
|
NetworkStakeRewardsIndexStepZod,
|
|
658
857
|
NetworkStakeRewardsPolicyIdZod,
|
|
858
|
+
RuleIdZod,
|
|
659
859
|
SequenceNetwork,
|
|
660
860
|
testnet_default as SequenceNetworkIconString,
|
|
661
861
|
TRANSACTION_INCLUSION_INDEX_LAYOUT,
|
|
@@ -663,6 +863,8 @@ export {
|
|
|
663
863
|
TransactionInclusionManifestZod,
|
|
664
864
|
asChainContractManifest,
|
|
665
865
|
asChainManifest,
|
|
866
|
+
asChainParams,
|
|
867
|
+
asChainParamsHead,
|
|
666
868
|
asEvmEventIndexFrame,
|
|
667
869
|
asEvmEventIndexHead,
|
|
668
870
|
asEvmEventIndexManifest,
|
|
@@ -681,13 +883,19 @@ export {
|
|
|
681
883
|
blockNumberPathTemplate,
|
|
682
884
|
chainContractByIdPath,
|
|
683
885
|
chainManifestPathTemplates,
|
|
886
|
+
chainParamsHeadPath,
|
|
887
|
+
chainParamsSuccessionErrors,
|
|
888
|
+
chainParamsVersionPath,
|
|
684
889
|
createChainContractManifest,
|
|
685
890
|
createChainManifest,
|
|
891
|
+
createChainParams,
|
|
892
|
+
createChainParamsHead,
|
|
686
893
|
createIndexHead,
|
|
687
894
|
createIndexManifest,
|
|
688
895
|
createIndexManifestFamilies,
|
|
689
896
|
createTransactionInclusionHead,
|
|
690
897
|
createTransactionInclusionManifest,
|
|
898
|
+
createTrustedPostureParams,
|
|
691
899
|
evmEventIndexFramePath,
|
|
692
900
|
evmEventIndexHeadPath,
|
|
693
901
|
evmEventIndexManifestPath,
|
|
@@ -703,10 +911,13 @@ export {
|
|
|
703
911
|
interpolatePathTemplate,
|
|
704
912
|
isChainContractManifest,
|
|
705
913
|
isChainManifest,
|
|
914
|
+
isChainParams,
|
|
915
|
+
isChainParamsHead,
|
|
706
916
|
isIndexHead,
|
|
707
917
|
isIndexManifest,
|
|
708
918
|
isNetworkBootstrap,
|
|
709
919
|
isNetworkStakeRewardsIndexManifest,
|
|
920
|
+
isOffenseReportableAt,
|
|
710
921
|
isTransactionInclusionHead,
|
|
711
922
|
isTransactionInclusionManifest,
|
|
712
923
|
manifestPath,
|
|
@@ -714,10 +925,13 @@ export {
|
|
|
714
925
|
networkStakeRewardsIndexManifestPath,
|
|
715
926
|
networkStakeRewardsIndexSnapshotPath,
|
|
716
927
|
networkStakeRewardsIndexStepPath,
|
|
928
|
+
offenseAdjudicationStateAt,
|
|
717
929
|
payloadPath,
|
|
718
930
|
payloadPathTemplate,
|
|
931
|
+
protocolMinAt,
|
|
719
932
|
toChainContractManifest,
|
|
720
933
|
toChainManifest,
|
|
934
|
+
toChainParams,
|
|
721
935
|
toIndexHead,
|
|
722
936
|
toIndexManifest,
|
|
723
937
|
toPathTemplate,
|