@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.
Files changed (63) hide show
  1. package/dist/neutral/index.d.ts +1 -6
  2. package/dist/neutral/index.d.ts.map +1 -1
  3. package/dist/neutral/index.mjs +2 -430
  4. package/dist/neutral/index.mjs.map +4 -4
  5. package/package.json +15 -18
  6. package/dist/neutral/icons/index.d.ts +0 -4
  7. package/dist/neutral/icons/index.d.ts.map +0 -1
  8. package/dist/neutral/icons/local/index.d.ts +0 -2
  9. package/dist/neutral/icons/local/index.d.ts.map +0 -1
  10. package/dist/neutral/icons/mainnet/index.d.ts +0 -2
  11. package/dist/neutral/icons/mainnet/index.d.ts.map +0 -1
  12. package/dist/neutral/icons/sequence/index.d.ts +0 -2
  13. package/dist/neutral/icons/sequence/index.d.ts.map +0 -1
  14. package/dist/neutral/lib/NetworkDataLakeUrls.d.ts +0 -8
  15. package/dist/neutral/lib/NetworkDataLakeUrls.d.ts.map +0 -1
  16. package/dist/neutral/lib/Networks.d.ts +0 -10
  17. package/dist/neutral/lib/Networks.d.ts.map +0 -1
  18. package/dist/neutral/lib/index.d.ts +0 -3
  19. package/dist/neutral/lib/index.d.ts.map +0 -1
  20. package/dist/neutral/manifest/index.d.ts +0 -2
  21. package/dist/neutral/manifest/index.d.ts.map +0 -1
  22. package/dist/neutral/manifest/networkManifest.d.ts +0 -4
  23. package/dist/neutral/manifest/networkManifest.d.ts.map +0 -1
  24. package/dist/neutral/models/Bootstrap.d.ts +0 -56
  25. package/dist/neutral/models/Bootstrap.d.ts.map +0 -1
  26. package/dist/neutral/models/NetworkId.d.ts +0 -12
  27. package/dist/neutral/models/NetworkId.d.ts.map +0 -1
  28. package/dist/neutral/models/index.d.ts +0 -3
  29. package/dist/neutral/models/index.d.ts.map +0 -1
  30. package/dist/neutral/modules/index.d.ts +0 -2
  31. package/dist/neutral/modules/index.d.ts.map +0 -1
  32. package/dist/neutral/modules/node/getNetworkNode.d.ts +0 -10
  33. package/dist/neutral/modules/node/getNetworkNode.d.ts.map +0 -1
  34. package/dist/neutral/modules/node/getNetworkNodes.d.ts +0 -4
  35. package/dist/neutral/modules/node/getNetworkNodes.d.ts.map +0 -1
  36. package/dist/neutral/modules/node/index.d.ts +0 -4
  37. package/dist/neutral/modules/node/index.d.ts.map +0 -1
  38. package/dist/neutral/modules/node/initNetworkNode.d.ts +0 -5
  39. package/dist/neutral/modules/node/initNetworkNode.d.ts.map +0 -1
  40. package/dist/neutral/staticRest/index.d.ts +0 -10
  41. package/dist/neutral/staticRest/index.d.ts.map +0 -1
  42. package/dist/neutral/staticRest/layout/chainContractManifest.d.ts +0 -84
  43. package/dist/neutral/staticRest/layout/chainContractManifest.d.ts.map +0 -1
  44. package/dist/neutral/staticRest/layout/chainManifest.d.ts +0 -101
  45. package/dist/neutral/staticRest/layout/chainManifest.d.ts.map +0 -1
  46. package/dist/neutral/staticRest/layout/index.d.ts +0 -4
  47. package/dist/neutral/staticRest/layout/index.d.ts.map +0 -1
  48. package/dist/neutral/staticRest/layout/indexManifest.d.ts +0 -263
  49. package/dist/neutral/staticRest/layout/indexManifest.d.ts.map +0 -1
  50. package/dist/neutral/staticRest/paths/chainState.d.ts +0 -10
  51. package/dist/neutral/staticRest/paths/chainState.d.ts.map +0 -1
  52. package/dist/neutral/staticRest/paths/finalized.d.ts +0 -14
  53. package/dist/neutral/staticRest/paths/finalized.d.ts.map +0 -1
  54. package/dist/neutral/staticRest/paths/index.d.ts +0 -4
  55. package/dist/neutral/staticRest/paths/index.d.ts.map +0 -1
  56. package/dist/neutral/staticRest/paths/indexPaths.d.ts +0 -14
  57. package/dist/neutral/staticRest/paths/indexPaths.d.ts.map +0 -1
  58. package/dist/neutral/staticRest/templates.d.ts +0 -27
  59. package/dist/neutral/staticRest/templates.d.ts.map +0 -1
  60. package/dist/neutral/utils/ExplorerLinks.d.ts +0 -28
  61. package/dist/neutral/utils/ExplorerLinks.d.ts.map +0 -1
  62. package/dist/neutral/utils/index.d.ts +0 -2
  63. package/dist/neutral/utils/index.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/mainnet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,eAAe,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default as SequenceNetworkIconString } from './testnet.svg';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/sequence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,eAAe,CAAA"}
@@ -1,8 +0,0 @@
1
- import { LocalNetwork, MainNetwork, SequenceNetwork } from './Networks.ts';
2
- /** Map of network IDs to their corresponding Data Lake API URLs. */
3
- export declare const NetworkDataLakeUrls: {
4
- readonly [MainNetwork.id]: "https://api.archivist.xyo.network/dataLake";
5
- readonly [SequenceNetwork.id]: "https://beta.api.archivist.xyo.network/dataLake";
6
- readonly [LocalNetwork.id]: "http://localhost:8080/dataLake";
7
- };
8
- //# sourceMappingURL=NetworkDataLakeUrls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkDataLakeUrls.d.ts","sourceRoot":"","sources":["../../../src/lib/NetworkDataLakeUrls.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EAAE,WAAW,EAAE,eAAe,EAC3C,MAAM,eAAe,CAAA;AAEtB,oEAAoE;AACpE,eAAO,MAAM,mBAAmB;IAC9B,SAAA,CAAC,WAAW,CAAC,EAAE,CAAC,+CAA8C;IAC9D,SAAA,CAAC,eAAe,CAAC,EAAE,CAAC,oDAAmD;IACvE,SAAA,CAAC,YAAY,CAAC,EAAE,CAAC,mCAAkC;CACL,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { NetworkBootstrap } from '../models/index.ts';
2
- /** Bootstrap configuration for the XYO Layer 1 mainnet. */
3
- export declare const MainNetwork: NetworkBootstrap;
4
- /** Bootstrap configuration for the XYO Layer 1 sequence (test) network. */
5
- export declare const SequenceNetwork: NetworkBootstrap;
6
- /** Bootstrap configuration for a local development network. */
7
- export declare const LocalNetwork: NetworkBootstrap;
8
- /** Default set of available XYO Layer 1 networks (mainnet, sequence, local). */
9
- export declare const DefaultNetworks: NetworkBootstrap[];
10
- //# sourceMappingURL=Networks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Networks.d.ts","sourceRoot":"","sources":["../../../src/lib/Networks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,oBAAoB,CAAA;AAGrE,2DAA2D;AAC3D,eAAO,MAAM,WAAW,EAAE,gBAUzB,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,eAAe,EAAE,gBAU7B,CAAA;AAED,+DAA+D;AAC/D,eAAO,MAAM,YAAY,EAAE,gBAS1B,CAAA;AAED,gFAAgF;AAChF,eAAO,MAAM,eAAe,EAAE,gBAAgB,EAAiD,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './NetworkDataLakeUrls.ts';
2
- export * from './Networks.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './networkManifest.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/manifest/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { PackageManifestPayload } from '@xyo-network/sdk';
2
- /** @deprecated XYO Node manifest bootstrap is no longer used; wire providers via archivist bindings or JsonRpc instead. */
3
- export declare const NetworkNodeManifest: PackageManifestPayload;
4
- //# sourceMappingURL=networkManifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"networkManifest.d.ts","sourceRoot":"","sources":["../../../src/manifest/networkManifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAI9D,2HAA2H;AAC3H,eAAO,MAAM,mBAAmB,EAAsB,sBAAsB,CAAA"}
@@ -1,56 +0,0 @@
1
- import type { Address } from '@ariestools/sdk';
2
- import type { Payload } from '@xyo-network/sdk';
3
- import type { ChainId } from '@xyo-network/xl1-protocol-lib';
4
- import type { NetworkId } from './NetworkId.ts';
5
- /** Connection details for accessing a chain endpoint. */
6
- export interface ChainConnection {
7
- /** Chain Identifier - can be a hex (eth contract address) or a string */
8
- chain?: ChainId;
9
- /** Name of the chain */
10
- name: string;
11
- /** URL for accessing the network */
12
- url: string;
13
- }
14
- /** Schema identifier for network bootstrap payloads. */
15
- export declare const NetworkBootstrapSchema: "network.xyo.network.bootstrap" & {
16
- readonly __schema: true;
17
- };
18
- /** Schema type for network bootstrap payloads. */
19
- export type NetworkBootstrapSchema = typeof NetworkBootstrapSchema;
20
- /** Fields describing a chain fork origin. */
21
- export interface ChainForkFields {
22
- /** Block Number at which the chain was forked from */
23
- forkedAtLastBlockNumber?: string;
24
- /** Hash in the last block the chain was forked from */
25
- forkedAtLastHash?: string;
26
- /** Address of the forked chain */
27
- forkedChainId?: Address;
28
- }
29
- /** Core fields describing an XYO network. */
30
- export interface NetworkFields {
31
- /** Description of the network */
32
- description: string;
33
- /** URL for accessing the network explorer */
34
- explorerUrl?: string;
35
- /** string representation of the icon (SVG) */
36
- icon?: string;
37
- /** Machine-readable identifier */
38
- id: NetworkId;
39
- schema: NetworkBootstrapSchema;
40
- /** Symbol of the network */
41
- symbol?: string;
42
- }
43
- /** Optional Properties can be found walking the chain to the genesis block */
44
- export interface NetworkBootstrapFields extends NetworkFields, ChainForkFields, ChainConnection {
45
- }
46
- /** A network bootstrap extended with a flag indicating whether it is a custom network. */
47
- export interface Network extends NetworkBootstrap {
48
- custom: boolean;
49
- }
50
- /** Payload type containing all network bootstrap configuration fields. */
51
- export type NetworkBootstrap = Payload<NetworkBootstrapFields, NetworkBootstrapSchema>;
52
- /** Type guard that checks whether a payload is a NetworkBootstrap. */
53
- export declare const isNetworkBootstrap: (x?: unknown) => x is NetworkBootstrap;
54
- /** Optionally casts a value to a Network if it is a valid NetworkBootstrap. */
55
- export declare const asOptionalNetwork: (value: import("@ariestools/sdk").AnyNonPromise) => NetworkBootstrap | undefined;
56
- //# sourceMappingURL=Bootstrap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bootstrap.d.ts","sourceRoot":"","sources":["../../../src/models/Bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,yDAAyD;AACzD,MAAM,WAAW,eAAe;IAC9B,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,wDAAwD;AACxD,eAAO,MAAM,sBAAsB;;CAAkD,CAAA;AACrF,kDAAkD;AAClD,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC9B,sDAAsD;IACtD,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kCAAkC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAA;IACnB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,EAAE,EAAE,SAAS,CAAA;IACb,MAAM,EAAE,sBAAsB,CAAA;IAC9B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,8EAA8E;AAC9E,MAAM,WAAW,sBAAuB,SAAQ,aAAa,EAAE,eAAe,EAAE,eAAe;CAAG;AAElG,0FAA0F;AAC1F,MAAM,WAAW,OAAQ,SAAQ,gBAAgB;IAC/C,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AAEtF,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,wCAAkE,CAAA;AAEjG,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,kFAAqD,CAAA"}
@@ -1,12 +0,0 @@
1
- import type { GatewayName } from '@xyo-network/xl1-protocol-lib';
2
- /** Default network identifiers for mainnet, sequence, and local environments. */
3
- export type DefaultNetworkIds = ('mainnet' & {
4
- __gatewayName: true;
5
- }) | ('sequence' & {
6
- __gatewayName: true;
7
- }) | ('local' & {
8
- __gatewayName: true;
9
- });
10
- /** A network identifier, either a custom gateway name or one of the default network IDs. */
11
- export type NetworkId<T extends GatewayName | void = void> = T extends void ? DefaultNetworkIds : T | DefaultNetworkIds;
12
- //# sourceMappingURL=NetworkId.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkId.d.ts","sourceRoot":"","sources":["../../../src/models/NetworkId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,iFAAiF;AACjF,MAAM,MAAM,iBAAiB,GAAG,CAAC,SAAS,GAAG;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,GAAG,CAAC,UAAU,GAAG;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,GAAG,CAAC,OAAO,GAAG;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AACpJ,4FAA4F;AAC5F,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IAAM,CAAC,SAAS,IAAI,GAAG,iBAAiB,GAAG,CAAC,GAAG,iBAAiB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Bootstrap.ts';
2
- export * from './NetworkId.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './node/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { AttachableNodeInstance, WalletInstance } from '@xyo-network/sdk';
2
- /**
3
- * Creates a network node from the network manifest using the provided wallet.
4
- *
5
- * @deprecated Bootstrapping an XYO `NodeInstance` via manifest is no longer supported.
6
- * Use `connectArchivist` from `@xyo-network/xl1-protocol-sdk` for co-located archivist
7
- * access, or `GatewayBuilder` from `@xyo-network/xl1-gateway` for remote RPC access.
8
- */
9
- export declare function getNetworkNode(wallet: WalletInstance): Promise<AttachableNodeInstance>;
10
- //# sourceMappingURL=getNetworkNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNetworkNode.d.ts","sourceRoot":"","sources":["../../../../src/modules/node/getNetworkNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAK9E;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAI5F"}
@@ -1,4 +0,0 @@
1
- import type { AttachableNodeInstance } from '@xyo-network/sdk';
2
- /** @deprecated Internal cache for deprecated `initNetworkNode`; do not use. */
3
- export declare const getNetworkNodes: () => Map<string, AttachableNodeInstance<import("@xyo-network/sdk").NodeParams<import("@xyo-network/sdk").AnyConfigSchema<import("@xyo-network/sdk").NodeConfig>>, import("@xyo-network/sdk").NodeModuleEventData>>;
4
- //# sourceMappingURL=getNetworkNodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNetworkNodes.d.ts","sourceRoot":"","sources":["../../../../src/modules/node/getNetworkNodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAI9D,+EAA+E;AAC/E,eAAO,MAAM,eAAe,qNAE3B,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './getNetworkNode.ts';
2
- export * from './getNetworkNodes.ts';
3
- export * from './initNetworkNode.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { AttachableNodeInstance, WalletInstance } from '@xyo-network/sdk';
2
- import type { NetworkBootstrap } from '../../models/index.ts';
3
- /** @deprecated Use `connectArchivist` archivist bindings (`@xyo-network/xl1-protocol-sdk`) or `GatewayBuilder` (`@xyo-network/xl1-gateway`) instead of bootstrapping an XYO NodeInstance. */
4
- export declare const initNetworkNode: (activeNetwork: NetworkBootstrap, wallet: WalletInstance) => Promise<AttachableNodeInstance>;
5
- //# sourceMappingURL=initNetworkNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initNetworkNode.d.ts","sourceRoot":"","sources":["../../../../src/modules/node/initNetworkNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAE9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAI7D,6LAA6L;AAC7L,eAAO,MAAM,eAAe,GAAU,eAAe,gBAAgB,EAAE,QAAQ,cAAc,KAAG,OAAO,CAAC,sBAAsB,CAQ7H,CAAA"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Static REST layout protocol for XL1 chain data.
3
- *
4
- * Path builders, manifest schemas, and derived path templates shared by static file publishers
5
- * (S3 runners) and HTTP readers (Rest viewers). See `packages/protocol/STATIC_REST_LAYOUT.md`.
6
- */
7
- export * from './layout/index.ts';
8
- export * from './paths/index.ts';
9
- export * from './templates.ts';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/staticRest/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
@@ -1,84 +0,0 @@
1
- import { z } from 'zod';
2
- /** Schema id for the chain-contract manifest document. */
3
- export declare const ChainContractManifestSchema: "network.xyo.s3.chain.contract";
4
- /** Type literal for the chain-contract manifest schema. */
5
- export type ChainContractManifestSchema = typeof ChainContractManifestSchema;
6
- /** Bumped when the manifest shape changes, so readers can detect a mismatch. */
7
- export declare const CHAIN_CONTRACT_MANIFEST_VERSION = 1;
8
- /**
9
- * Zod schema for the static per-chain config at `chainContractPath()`: the reward contract,
10
- * staking token, minimum withdrawal window, and (optional) fork lineage. Published once —
11
- * this data doesn't change per block, unlike `chain/head.json`.
12
- */
13
- export declare const ChainContractManifestZod: z.ZodObject<{
14
- forkedAtBlockNumber: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodInt, z.ZodTransform<import("@xyo-network/xl1-protocol-lib").XL1BlockNumber, number>>>>;
15
- forkedAtHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- forkedChainId: z.ZodOptional<z.ZodNullable<import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<import("@ariestools/sdk").BrandedHex, string>>>>;
17
- minWithdrawalBlocks: z.ZodInt;
18
- rewardsContract: z.ZodString;
19
- schema: z.ZodLiteral<"network.xyo.s3.chain.contract">;
20
- stakingTokenAddress: z.ZodString;
21
- version: z.ZodInt;
22
- }, z.core.$strip>;
23
- /** The static per-chain contract config at `chainContractPath()`. */
24
- export type ChainContractManifest = z.infer<typeof ChainContractManifestZod>;
25
- /** Type guard that checks if a value is a valid ChainContractManifest. */
26
- export declare const isChainContractManifest: <T>(value: T) => value is T & {
27
- minWithdrawalBlocks: number;
28
- rewardsContract: string;
29
- schema: "network.xyo.s3.chain.contract";
30
- stakingTokenAddress: string;
31
- version: number;
32
- forkedAtBlockNumber?: import("@xyo-network/xl1-protocol-lib").XL1BlockNumber | null | undefined;
33
- forkedAtHash?: string | null | undefined;
34
- forkedChainId?: import("@ariestools/sdk").BrandedHex | null | undefined;
35
- };
36
- /** Converts a value to ChainContractManifest, throwing if invalid. */
37
- export declare const asChainContractManifest: {
38
- <T>(value: T): (T & {
39
- minWithdrawalBlocks: number;
40
- rewardsContract: string;
41
- schema: "network.xyo.s3.chain.contract";
42
- stakingTokenAddress: string;
43
- version: number;
44
- forkedAtBlockNumber?: import("@xyo-network/xl1-protocol-lib").XL1BlockNumber | null | undefined;
45
- forkedAtHash?: string | null | undefined;
46
- forkedChainId?: import("@ariestools/sdk").BrandedHex | null | undefined;
47
- }) | undefined;
48
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
49
- minWithdrawalBlocks: number;
50
- rewardsContract: string;
51
- schema: "network.xyo.s3.chain.contract";
52
- stakingTokenAddress: string;
53
- version: number;
54
- forkedAtBlockNumber?: import("@xyo-network/xl1-protocol-lib").XL1BlockNumber | null | undefined;
55
- forkedAtHash?: string | null | undefined;
56
- forkedChainId?: import("@ariestools/sdk").BrandedHex | null | undefined;
57
- };
58
- };
59
- /** Non-validating cast to ChainContractManifest. */
60
- export declare const toChainContractManifest: {
61
- <T>(value: T): (T & {
62
- minWithdrawalBlocks: number;
63
- rewardsContract: string;
64
- schema: "network.xyo.s3.chain.contract";
65
- stakingTokenAddress: string;
66
- version: number;
67
- forkedAtBlockNumber?: import("@xyo-network/xl1-protocol-lib").XL1BlockNumber | null | undefined;
68
- forkedAtHash?: string | null | undefined;
69
- forkedChainId?: import("@ariestools/sdk").BrandedHex | null | undefined;
70
- }) | undefined;
71
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
72
- minWithdrawalBlocks: number;
73
- rewardsContract: string;
74
- schema: "network.xyo.s3.chain.contract";
75
- stakingTokenAddress: string;
76
- version: number;
77
- forkedAtBlockNumber?: import("@xyo-network/xl1-protocol-lib").XL1BlockNumber | null | undefined;
78
- forkedAtHash?: string | null | undefined;
79
- forkedChainId?: import("@ariestools/sdk").BrandedHex | null | undefined;
80
- };
81
- };
82
- /** Builds a validated chain-contract manifest. */
83
- export declare function createChainContractManifest(config: Omit<ChainContractManifest, 'schema' | 'version'>): ChainContractManifest;
84
- //# sourceMappingURL=chainContractManifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chainContractManifest.d.ts","sourceRoot":"","sources":["../../../../src/staticRest/layout/chainContractManifest.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,0DAA0D;AAC1D,eAAO,MAAM,2BAA2B,EAAG,+BAAwC,CAAA;AACnF,2DAA2D;AAC3D,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,gFAAgF;AAChF,eAAO,MAAM,+BAA+B,IAAI,CAAA;AAEhD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;iBASnC,CAAA;AAEF,qEAAqE;AACrE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE5E,0EAA0E;AAC1E,eAAO,MAAM,uBAAuB;;;;;;;;;CAAyC,CAAA;AAC7E,sEAAsE;AACtE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;CAAoE,CAAA;AACxG,oDAAoD;AACpD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;CAAoE,CAAA;AAExG,kDAAkD;AAClD,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,IAAI,CAAC,qBAAqB,EAAE,QAAQ,GAAG,SAAS,CAAC,GACxD,qBAAqB,CAMvB"}
@@ -1,101 +0,0 @@
1
- import { z } from 'zod';
2
- /** Bumped when the finalized layout changes shape, so readers can detect a mismatch. */
3
- export declare const CHAIN_LAYOUT_VERSION = 1;
4
- /** Schema id for the finalized layout manifest document. */
5
- export declare const ChainManifestSchema: "network.xyo.s3.chain.manifest";
6
- /** Type literal for the chain manifest schema. */
7
- export type ChainManifestSchema = typeof ChainManifestSchema;
8
- /** Path templates for the finalized + chain-state files. */
9
- export declare const ChainManifestPathsZod: z.ZodObject<{
10
- blockByHash: z.ZodString;
11
- blockByNumber: z.ZodString;
12
- head: z.ZodString;
13
- payload: z.ZodString;
14
- }, z.core.$strip>;
15
- /** Type for chain manifest path templates. */
16
- export type ChainManifestPaths = z.infer<typeof ChainManifestPathsZod>;
17
- /** Zod schema for the finalized layout descriptor at `manifestPath()`. */
18
- export declare const ChainManifestZod: z.ZodObject<{
19
- earliestBlock: z.ZodInt;
20
- encoding: z.ZodString;
21
- paths: z.ZodObject<{
22
- blockByHash: z.ZodString;
23
- blockByNumber: z.ZodString;
24
- head: z.ZodString;
25
- payload: z.ZodString;
26
- }, z.core.$strip>;
27
- schema: z.ZodLiteral<"network.xyo.s3.chain.manifest">;
28
- version: z.ZodInt;
29
- }, z.core.$strip>;
30
- /** The finalized layout descriptor at `manifestPath()`. */
31
- export type ChainManifest = z.infer<typeof ChainManifestZod>;
32
- /** Type guard that checks if a value is a valid ChainManifest. */
33
- export declare const isChainManifest: <T>(value: T) => value is T & {
34
- earliestBlock: number;
35
- encoding: string;
36
- paths: {
37
- blockByHash: string;
38
- blockByNumber: string;
39
- head: string;
40
- payload: string;
41
- };
42
- schema: "network.xyo.s3.chain.manifest";
43
- version: number;
44
- };
45
- /** Converts a value to ChainManifest, throwing if invalid. */
46
- export declare const asChainManifest: {
47
- <T>(value: T): (T & {
48
- earliestBlock: number;
49
- encoding: string;
50
- paths: {
51
- blockByHash: string;
52
- blockByNumber: string;
53
- head: string;
54
- payload: string;
55
- };
56
- schema: "network.xyo.s3.chain.manifest";
57
- version: number;
58
- }) | undefined;
59
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
60
- earliestBlock: number;
61
- encoding: string;
62
- paths: {
63
- blockByHash: string;
64
- blockByNumber: string;
65
- head: string;
66
- payload: string;
67
- };
68
- schema: "network.xyo.s3.chain.manifest";
69
- version: number;
70
- };
71
- };
72
- /** Non-validating cast to ChainManifest. */
73
- export declare const toChainManifest: {
74
- <T>(value: T): (T & {
75
- earliestBlock: number;
76
- encoding: string;
77
- paths: {
78
- blockByHash: string;
79
- blockByNumber: string;
80
- head: string;
81
- payload: string;
82
- };
83
- schema: "network.xyo.s3.chain.manifest";
84
- version: number;
85
- }) | undefined;
86
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
87
- earliestBlock: number;
88
- encoding: string;
89
- paths: {
90
- blockByHash: string;
91
- blockByNumber: string;
92
- head: string;
93
- payload: string;
94
- };
95
- schema: "network.xyo.s3.chain.manifest";
96
- version: number;
97
- };
98
- };
99
- /** Builds a validated chain manifest with path templates derived from the path builders. */
100
- export declare function createChainManifest(encoding: string, earliestBlock?: number): ChainManifest;
101
- //# sourceMappingURL=chainManifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chainManifest.d.ts","sourceRoot":"","sources":["../../../../src/staticRest/layout/chainManifest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,wFAAwF;AACxF,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,EAAG,+BAAwC,CAAA;AAC3E,kDAAkD;AAClD,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAA;AAEF,8CAA8C;AAC9C,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAQ3B,CAAA;AAEF,2DAA2D;AAC3D,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,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,SAAI,GAAG,aAAa,CAQtF"}
@@ -1,4 +0,0 @@
1
- export * from './chainContractManifest.ts';
2
- export * from './chainManifest.ts';
3
- export * from './indexManifest.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staticRest/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}