@xyo-network/xl1-protocol-sdk 1.26.13 → 1.26.15
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/README.md +9 -20738
- package/dist/neutral/config/Actors.d.ts +1 -1
- package/dist/neutral/config/Base.d.ts +1 -1
- package/dist/neutral/config/Config.d.ts +4 -4
- package/dist/neutral/payloads/AddressPairPayload.d.ts +1 -1
- package/dist/neutral/payloads/AddressPairPayload.d.ts.map +1 -1
- package/dist/neutral/primitives/uncle/findBestUncle.d.ts +13 -13
- package/dist/neutral/primitives/uncle/findUncles.d.ts +2 -2
- package/dist/neutral/simple/chainContractViewer/SimpleChainContractViewer.d.ts +1 -1
- package/package.json +69 -34
|
@@ -2,7 +2,7 @@ import z from 'zod';
|
|
|
2
2
|
/** ActorsConfigZod constant. */
|
|
3
3
|
export declare const ActorsConfigZod: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4
4
|
chain: z.ZodDefault<z.ZodObject<{
|
|
5
|
-
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
5
|
+
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
6
6
|
genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
7
7
|
readonly __hex: true;
|
|
8
8
|
} & {
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
/** BaseConfigZod constant. */
|
|
3
3
|
export declare const BaseConfigZod: z.ZodObject<{
|
|
4
4
|
chain: z.ZodDefault<z.ZodObject<{
|
|
5
|
-
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
5
|
+
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
6
6
|
genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
7
7
|
readonly __hex: true;
|
|
8
8
|
} & {
|
|
@@ -3,7 +3,7 @@ import type { DeepPartial } from './DeepPartial.ts';
|
|
|
3
3
|
/** ConfigZod constant. */
|
|
4
4
|
export declare const ConfigZod: z.ZodObject<{
|
|
5
5
|
chain: z.ZodDefault<z.ZodObject<{
|
|
6
|
-
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
6
|
+
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
7
7
|
genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
8
8
|
readonly __hex: true;
|
|
9
9
|
} & {
|
|
@@ -81,7 +81,7 @@ export declare const ConfigZod: z.ZodObject<{
|
|
|
81
81
|
}, z.z.core.$strip>>;
|
|
82
82
|
actors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
83
83
|
chain: z.ZodDefault<z.ZodObject<{
|
|
84
|
-
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
84
|
+
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
85
85
|
genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
86
86
|
readonly __hex: true;
|
|
87
87
|
} & {
|
|
@@ -167,7 +167,7 @@ export type Config = z.infer<typeof ConfigZod>;
|
|
|
167
167
|
/** ResolveConfig helper function. */
|
|
168
168
|
export declare function resolveConfig(config: DeepPartial<Config>): {
|
|
169
169
|
chain: {
|
|
170
|
-
id?: import("@xylabs/
|
|
170
|
+
id?: import("@xylabs/sdk-js").BrandedHex | undefined;
|
|
171
171
|
genesisRewardAddress?: (Lowercase<string> & {
|
|
172
172
|
readonly __hex: true;
|
|
173
173
|
} & {
|
|
@@ -239,7 +239,7 @@ export declare function resolveConfig(config: DeepPartial<Config>): {
|
|
|
239
239
|
actors: {
|
|
240
240
|
[x: string]: unknown;
|
|
241
241
|
chain: {
|
|
242
|
-
id?: import("@xylabs/
|
|
242
|
+
id?: import("@xylabs/sdk-js").BrandedHex | undefined;
|
|
243
243
|
genesisRewardAddress?: (Lowercase<string> & {
|
|
244
244
|
readonly __hex: true;
|
|
245
245
|
} & {
|
|
@@ -19,5 +19,5 @@ export declare const isAddressPairPayload: (x?: unknown | null) => x is AddressP
|
|
|
19
19
|
/** Converts a value to AddressPairPayload, throwing if invalid. */
|
|
20
20
|
export declare const asAddressPairPayload: import("@xylabs/sdk-js").AsTypeFunction<AddressPairPayload>;
|
|
21
21
|
/** Optionally converts a value to AddressPairPayload if valid. */
|
|
22
|
-
export declare const asOptionalAddressPairPayload: (value: import("@xylabs/
|
|
22
|
+
export declare const asOptionalAddressPairPayload: (value: import("@xylabs/sdk-js").AnyNonPromise) => AddressPairPayload | undefined;
|
|
23
23
|
//# sourceMappingURL=AddressPairPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressPairPayload.d.ts","sourceRoot":"","sources":["../../../src/payloads/AddressPairPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAC4B,KAAK,OAAO,EAC9C,MAAM,qBAAqB,CAAA;AAE5B,kDAAkD;AAClD,eAAO,MAAM,iBAAiB;;CAA6C,CAAA;AAC3E,4CAA4C;AAC5C,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAExD,+BAA+B;AAC/B,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;CAC9B;AAED,+BAA+B;AAC/B,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,oBAAoB,iDAA+D,CAAA;AAChG,mEAAmE;AACnE,eAAO,MAAM,oBAAoB,6DAA+C,CAAA;AAChF,kEAAkE;AAClE,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"AddressPairPayload.d.ts","sourceRoot":"","sources":["../../../src/payloads/AddressPairPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAC4B,KAAK,OAAO,EAC9C,MAAM,qBAAqB,CAAA;AAE5B,kDAAkD;AAClD,eAAO,MAAM,iBAAiB;;CAA6C,CAAA;AAC3E,4CAA4C;AAC5C,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAExD,+BAA+B;AAC/B,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;CAC9B;AAED,+BAA+B;AAC/B,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,oBAAoB,iDAA+D,CAAA;AAChG,mEAAmE;AACnE,eAAO,MAAM,oBAAoB,6DAA+C,CAAA;AAChF,kEAAkE;AAClE,eAAO,MAAM,4BAA4B,mFAAuD,CAAA"}
|
|
@@ -9,28 +9,28 @@ export declare function findBestUncle(finalizedWindowedChain: SignedHydratedBloc
|
|
|
9
9
|
} & {
|
|
10
10
|
readonly __address: true;
|
|
11
11
|
})[];
|
|
12
|
-
payload_hashes: import("@xylabs/
|
|
13
|
-
payload_schemas: import("@xyo-network/
|
|
14
|
-
previous_hashes: (import("@xylabs/
|
|
15
|
-
$signatures: import("@xylabs/
|
|
12
|
+
payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
|
|
13
|
+
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
14
|
+
previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
|
|
15
|
+
$signatures: import("@xylabs/sdk-js").BrandedHex[];
|
|
16
16
|
block: import("@xyo-network/xl1-protocol-lib").XL1BlockNumber;
|
|
17
|
-
chain: import("@xylabs/
|
|
18
|
-
previous: import("@xylabs/
|
|
17
|
+
chain: import("@xylabs/sdk-js").BrandedHex;
|
|
18
|
+
previous: import("@xylabs/sdk-js").BrandedHash | null;
|
|
19
19
|
$epoch: number;
|
|
20
|
-
_hash: import("@xylabs/
|
|
21
|
-
_dataHash: import("@xylabs/
|
|
20
|
+
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
21
|
+
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
22
22
|
$destination?: (Lowercase<string> & {
|
|
23
23
|
readonly __hex: true;
|
|
24
24
|
} & {
|
|
25
25
|
readonly __address: true;
|
|
26
26
|
}) | undefined;
|
|
27
|
-
$sourceQuery?: import("@xylabs/
|
|
27
|
+
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
28
28
|
protocol?: number | undefined;
|
|
29
|
-
step_hashes?: import("@xylabs/
|
|
29
|
+
step_hashes?: import("@xylabs/sdk-js").BrandedHash[] | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
[x: string]: unknown;
|
|
32
|
-
schema: import("@xyo-network/
|
|
33
|
-
_hash: import("@xylabs/
|
|
34
|
-
_dataHash: import("@xylabs/
|
|
32
|
+
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
33
|
+
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
34
|
+
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
35
35
|
}[]][];
|
|
36
36
|
//# sourceMappingURL=findBestUncle.d.ts.map
|
|
@@ -10,7 +10,7 @@ export declare function findUncles(context: BaseContext, finalizedWindowedChain:
|
|
|
10
10
|
readonly __address: true;
|
|
11
11
|
})[];
|
|
12
12
|
payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
|
|
13
|
-
payload_schemas: import("@xyo-network/
|
|
13
|
+
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
14
14
|
previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
|
|
15
15
|
$signatures: import("@xylabs/sdk-js").BrandedHex[];
|
|
16
16
|
block: import("@xyo-network/xl1-protocol-lib").XL1BlockNumber;
|
|
@@ -29,7 +29,7 @@ export declare function findUncles(context: BaseContext, finalizedWindowedChain:
|
|
|
29
29
|
step_hashes?: import("@xylabs/sdk-js").BrandedHash[] | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
[x: string]: unknown;
|
|
32
|
-
schema: import("@xyo-network/
|
|
32
|
+
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
33
33
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
34
34
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
35
35
|
}[]][][];
|
|
@@ -21,7 +21,7 @@ export declare class SimpleChainContractViewer extends AbstractCreatableProvider
|
|
|
21
21
|
moniker: "ChainContractViewer";
|
|
22
22
|
protected _finalizationViewer: FinalizationViewer;
|
|
23
23
|
protected get finalizationViewer(): FinalizationViewer;
|
|
24
|
-
chainId(): import("@xylabs/
|
|
24
|
+
chainId(): import("@xylabs/sdk-js").Promisable<import("@xylabs/sdk-js").BrandedHex>;
|
|
25
25
|
chainIdAtBlockNumber(blockNumber: XL1BlockNumber): Promise<import("@xylabs/sdk-js").BrandedHex>;
|
|
26
26
|
createHandler(): Promise<void>;
|
|
27
27
|
forkedAtBlockNumber(): XL1BlockNumber | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/xl1-protocol-sdk",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.15",
|
|
4
4
|
"description": "XYO Layer One SDK Protocol",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/neutral/index.d.ts",
|
|
25
|
+
"import": "./dist/neutral/index.mjs",
|
|
25
26
|
"default": "./dist/neutral/index.mjs"
|
|
26
27
|
},
|
|
27
28
|
"./test": {
|
|
@@ -34,7 +35,6 @@
|
|
|
34
35
|
},
|
|
35
36
|
"./package.json": "./package.json"
|
|
36
37
|
},
|
|
37
|
-
"module": "./dist/neutral/index.mjs",
|
|
38
38
|
"source": "./src/index.ts",
|
|
39
39
|
"types": "./dist/neutral/index.d.ts",
|
|
40
40
|
"files": [
|
|
@@ -45,45 +45,82 @@
|
|
|
45
45
|
"README.md"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@xyo-network/xl1-protocol-lib": "~1.26.13",
|
|
49
|
-
"@xyo-network/xl1-schema": "~1.26.13",
|
|
50
48
|
"async-mutex": "~0.5.0",
|
|
51
49
|
"cosmiconfig": "^9.0.1",
|
|
52
|
-
"lru-cache": "^11.2
|
|
50
|
+
"lru-cache": "^11.3.2",
|
|
51
|
+
"@xyo-network/xl1-protocol-lib": "~1.26.15",
|
|
52
|
+
"@xyo-network/xl1-schema": "~1.26.15"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@firebase/app": "0.x",
|
|
56
|
-
"@firebase/app-compat": "0.x",
|
|
57
|
-
"@firebase/app-types": "0.x",
|
|
58
|
-
"@firebase/util": "1.x",
|
|
59
|
-
"@metamask/providers": "^22",
|
|
60
55
|
"@opentelemetry/api": "^1.9.1",
|
|
61
|
-
"@types/node": "^25.5.
|
|
62
|
-
"@xylabs/
|
|
63
|
-
"@xylabs/
|
|
64
|
-
"@xylabs/ts-scripts-
|
|
65
|
-
"@xylabs/
|
|
66
|
-
"@xylabs/
|
|
67
|
-
"@xylabs/vitest-
|
|
68
|
-
"@xyo-network/
|
|
69
|
-
"@xyo-network/
|
|
70
|
-
"
|
|
71
|
-
"
|
|
56
|
+
"@types/node": "^25.5.2",
|
|
57
|
+
"@xylabs/sdk-js": "^5.0.95",
|
|
58
|
+
"@xylabs/ts-scripts-common": "~7.8.7",
|
|
59
|
+
"@xylabs/ts-scripts-pnpm": "~7.8.7",
|
|
60
|
+
"@xylabs/tsconfig": "~7.8.7",
|
|
61
|
+
"@xylabs/vitest-extended": "~5.0.95",
|
|
62
|
+
"@xylabs/vitest-matchers": "~5.0.95",
|
|
63
|
+
"@xyo-network/account": "~5.3.30",
|
|
64
|
+
"@xyo-network/account-model": "~5.3.30",
|
|
65
|
+
"@xyo-network/api-models": "~5.3.30",
|
|
66
|
+
"@xyo-network/archivist-abstract": "~5.3.30",
|
|
67
|
+
"@xyo-network/archivist-generic": "~5.3.30",
|
|
68
|
+
"@xyo-network/archivist-memory": "~5.3.30",
|
|
69
|
+
"@xyo-network/archivist-model": "~5.3.30",
|
|
70
|
+
"@xyo-network/archivist-view": "~5.3.30",
|
|
71
|
+
"@xyo-network/archivist-wrapper": "~5.3",
|
|
72
|
+
"@xyo-network/boundwitness-builder": "~5.3.30",
|
|
73
|
+
"@xyo-network/boundwitness-validator": "~5.3.30",
|
|
74
|
+
"@xyo-network/bridge-abstract": "~5.3.30",
|
|
75
|
+
"@xyo-network/bridge-model": "~5.3.30",
|
|
76
|
+
"@xyo-network/config-payload-plugin": "~5.3.30",
|
|
77
|
+
"@xyo-network/data": "~5.3.30",
|
|
78
|
+
"@xyo-network/diviner-abstract": "~5.3",
|
|
79
|
+
"@xyo-network/diviner-boundwitness-memory": "~5.3.30",
|
|
80
|
+
"@xyo-network/diviner-identity": "~5.3.30",
|
|
81
|
+
"@xyo-network/diviner-model": "~5.3.30",
|
|
82
|
+
"@xyo-network/diviner-payload-generic": "~5.3.30",
|
|
83
|
+
"@xyo-network/diviner-payload-model": "~5.3.30",
|
|
84
|
+
"@xyo-network/diviner-wrapper": "~5.3",
|
|
85
|
+
"@xyo-network/dns": "~5.3.30",
|
|
86
|
+
"@xyo-network/domain-payload-plugin": "~5.3.30",
|
|
87
|
+
"@xyo-network/elliptic": "~5.3.30",
|
|
88
|
+
"@xyo-network/hash": "~5.3.30",
|
|
89
|
+
"@xyo-network/huri": "~5.3.30",
|
|
90
|
+
"@xyo-network/manifest-model": "~5.3.30",
|
|
91
|
+
"@xyo-network/module-abstract": "~5.3.30",
|
|
92
|
+
"@xyo-network/module-model": "~5.3.30",
|
|
93
|
+
"@xyo-network/module-resolver": "~5.3.30",
|
|
94
|
+
"@xyo-network/module-wrapper": "~5.3",
|
|
95
|
+
"@xyo-network/network": "~5.3.30",
|
|
96
|
+
"@xyo-network/node-abstract": "~5.3.30",
|
|
97
|
+
"@xyo-network/node-memory": "~5.3.30",
|
|
98
|
+
"@xyo-network/node-model": "~5.3.30",
|
|
99
|
+
"@xyo-network/node-view": "~5.3.30",
|
|
100
|
+
"@xyo-network/node-wrapper": "~5.3",
|
|
101
|
+
"@xyo-network/payload-builder": "~5.3.30",
|
|
102
|
+
"@xyo-network/payload-model": "~5.3.30",
|
|
103
|
+
"@xyo-network/payload-validator": "~5.3.30",
|
|
104
|
+
"@xyo-network/previous-hash-store-model": "~5.3.30",
|
|
105
|
+
"@xyo-network/sdk-js": "^5.3.30",
|
|
106
|
+
"@xyo-network/sentinel-abstract": "~5.3.30",
|
|
107
|
+
"@xyo-network/sentinel-memory": "~5.3.30",
|
|
108
|
+
"@xyo-network/sentinel-model": "~5.3.30",
|
|
109
|
+
"@xyo-network/wallet-model": "~5.3.30",
|
|
110
|
+
"@xyo-network/wasm": "~5.3.30",
|
|
111
|
+
"@xyo-network/witness-adhoc": "~5.3.30",
|
|
112
|
+
"@xyo-network/witness-model": "~5.3.30",
|
|
72
113
|
"axios": "^1.14.0",
|
|
73
|
-
"esbuild": "
|
|
74
|
-
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0",
|
|
114
|
+
"esbuild": "^0.28.0",
|
|
75
115
|
"ethers": "^6.16.0",
|
|
76
|
-
"firebase": "^12",
|
|
77
116
|
"ky": "^1.14.3",
|
|
78
|
-
"
|
|
79
|
-
"mongodb": "~7.1.1",
|
|
80
|
-
"rollup": "^3.29.4 || ^4",
|
|
117
|
+
"pako": "~2.1.0",
|
|
81
118
|
"tslib": "^2.8.1",
|
|
82
119
|
"typescript": "~5.9.3",
|
|
83
|
-
"vite": "^8.0.
|
|
120
|
+
"vite": "^8.0.5",
|
|
84
121
|
"vitest": "~4.1.2",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
122
|
+
"zod": "~4.3.6",
|
|
123
|
+
"@xyo-network/xl1-network-model": "~1.26.15"
|
|
87
124
|
},
|
|
88
125
|
"peerDependencies": {
|
|
89
126
|
"@opentelemetry/api": "^1",
|
|
@@ -91,15 +128,13 @@
|
|
|
91
128
|
"@xyo-network/sdk-js": "^5",
|
|
92
129
|
"axios": "^1",
|
|
93
130
|
"ethers": "^6",
|
|
94
|
-
"mongodb": "^6 || ^7",
|
|
95
|
-
"typescript": ">=4.9.5",
|
|
96
131
|
"zod": "^4"
|
|
97
132
|
},
|
|
98
133
|
"engines": {
|
|
99
|
-
"node": ">=22.3
|
|
134
|
+
"node": ">=22.3"
|
|
100
135
|
},
|
|
101
136
|
"engineStrict": true,
|
|
102
137
|
"publishConfig": {
|
|
103
138
|
"access": "public"
|
|
104
139
|
}
|
|
105
|
-
}
|
|
140
|
+
}
|