@xyo-network/xl1-protocol 5.0.2 → 5.0.5
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/index.d.ts +2 -0
- package/dist/neutral/modules/network-model/staticRest/layout/index.d.ts.map +1 -1
- package/dist/neutral/modules/network-model/staticRest/layout/networkStakeRewardsIndex.d.ts +191 -0
- package/dist/neutral/modules/network-model/staticRest/layout/networkStakeRewardsIndex.d.ts.map +1 -0
- package/dist/neutral/modules/network-model/staticRest/layout/transactionInclusionIndex.d.ts +100 -0
- package/dist/neutral/modules/network-model/staticRest/layout/transactionInclusionIndex.d.ts.map +1 -0
- package/dist/neutral/modules/network-model/staticRest/paths/index.d.ts +2 -0
- package/dist/neutral/modules/network-model/staticRest/paths/index.d.ts.map +1 -1
- package/dist/neutral/modules/network-model/staticRest/paths/networkStakeRewardsIndex.d.ts +10 -0
- package/dist/neutral/modules/network-model/staticRest/paths/networkStakeRewardsIndex.d.ts.map +1 -0
- package/dist/neutral/modules/network-model/staticRest/paths/transactionInclusionIndex.d.ts +8 -0
- package/dist/neutral/modules/network-model/staticRest/paths/transactionInclusionIndex.d.ts.map +1 -0
- package/dist/neutral/modules/network-model/staticRest/templates.d.ts +2 -0
- package/dist/neutral/modules/network-model/staticRest/templates.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-lib/runners/NetworkStakeRewardsIndexPublish.d.ts +26 -0
- package/dist/neutral/modules/protocol-lib/runners/NetworkStakeRewardsIndexPublish.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-lib/runners/index.d.ts +1 -0
- package/dist/neutral/modules/protocol-lib/runners/index.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-lib/viewers/Block.d.ts +2 -0
- package/dist/neutral/modules/protocol-lib/viewers/Block.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-lib/viewers/IndexViewer.d.ts +5 -3
- package/dist/neutral/modules/protocol-lib/viewers/IndexViewer.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-lib/viewers/WindowedBlock.d.ts +1 -1
- package/dist/neutral/modules/protocol-lib/viewers/WindowedBlock.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/model/TransactionInclusion.d.ts +48 -0
- package/dist/neutral/modules/protocol-model/model/TransactionInclusion.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-model/model/index.d.ts +1 -0
- package/dist/neutral/modules/protocol-model/model/index.d.ts.map +1 -1
- package/dist/neutral/network-model.mjs +209 -2
- package/dist/neutral/network-model.mjs.map +4 -4
- package/dist/neutral/protocol-lib.mjs +4 -0
- package/dist/neutral/protocol-lib.mjs.map +3 -3
- package/dist/neutral/protocol-model.mjs +44 -18
- package/dist/neutral/protocol-model.mjs.map +4 -4
- package/package.json +1 -1
|
@@ -2,4 +2,6 @@ export * from './chainContractManifest.js';
|
|
|
2
2
|
export * from './chainManifest.js';
|
|
3
3
|
export * from './evmEventIndex.js';
|
|
4
4
|
export * from './indexManifest.js';
|
|
5
|
+
export * from './networkStakeRewardsIndex.js';
|
|
6
|
+
export * from './transactionInclusionIndex.js';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/network-model/staticRest/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/network-model/staticRest/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Version of the durable network-stake rewards index layout. */
|
|
3
|
+
export declare const NETWORK_STAKE_REWARDS_INDEX_LAYOUT: "network-stake-rewards-v1";
|
|
4
|
+
/** Default reward policy identifier for unmultiplied protocol rewards. */
|
|
5
|
+
export declare const NETWORK_STAKE_REWARDS_BASE_POLICY: "base-v1";
|
|
6
|
+
/** Path-safe identifier for a deterministic reward policy. */
|
|
7
|
+
export declare const NetworkStakeRewardsPolicyIdZod: z.ZodString;
|
|
8
|
+
/** Static policy and source description for one rewards index tree. */
|
|
9
|
+
export declare const NetworkStakeRewardsIndexManifestZod: z.ZodObject<{
|
|
10
|
+
evmAddress: z.ZodString;
|
|
11
|
+
evmChainId: z.ZodString;
|
|
12
|
+
layout: z.ZodLiteral<"network-stake-rewards-v1">;
|
|
13
|
+
policyId: z.ZodString;
|
|
14
|
+
stepLevels: z.ZodArray<z.ZodNumber>;
|
|
15
|
+
timeAnchor: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
externalGenesisTime: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
maxScanBlocks: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
/** Static policy and source description for one rewards index tree. */
|
|
21
|
+
export type NetworkStakeRewardsIndexManifest = z.infer<typeof NetworkStakeRewardsIndexManifestZod>;
|
|
22
|
+
/** Immutable reward allocation for one completed XL1 reward step. */
|
|
23
|
+
export declare const NetworkStakeRewardsIndexStepZod: z.ZodObject<{
|
|
24
|
+
denominator: z.ZodString;
|
|
25
|
+
externalRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
26
|
+
layout: z.ZodLiteral<"network-stake-rewards-v1">;
|
|
27
|
+
policyId: z.ZodString;
|
|
28
|
+
positionRewards: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
29
|
+
step: z.ZodObject<{
|
|
30
|
+
block: z.ZodNumber;
|
|
31
|
+
step: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
totalReward: z.ZodString;
|
|
34
|
+
xl1Range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
/** Immutable reward allocation for one completed XL1 reward step. */
|
|
37
|
+
export type NetworkStakeRewardsIndexStep = z.infer<typeof NetworkStakeRewardsIndexStepZod>;
|
|
38
|
+
/** Immutable cumulative position totals referenced by a mutable head. */
|
|
39
|
+
export declare const NetworkStakeRewardsIndexSnapshotZod: z.ZodObject<{
|
|
40
|
+
layout: z.ZodLiteral<"network-stake-rewards-v1">;
|
|
41
|
+
policyId: z.ZodString;
|
|
42
|
+
positionRewards: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
43
|
+
stepCount: z.ZodNumber;
|
|
44
|
+
totalReward: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
/** Immutable cumulative position totals referenced by a mutable head. */
|
|
47
|
+
export type NetworkStakeRewardsIndexSnapshot = z.infer<typeof NetworkStakeRewardsIndexSnapshotZod>;
|
|
48
|
+
/** Mutable pointer written only after every referenced step and snapshot is durable. */
|
|
49
|
+
export declare const NetworkStakeRewardsIndexHeadZod: z.ZodObject<{
|
|
50
|
+
layout: z.ZodLiteral<"network-stake-rewards-v1">;
|
|
51
|
+
policyId: z.ZodString;
|
|
52
|
+
positionCount: z.ZodNumber;
|
|
53
|
+
processedThroughBlock: z.ZodNumber;
|
|
54
|
+
snapshot: z.ZodString;
|
|
55
|
+
source: z.ZodObject<{
|
|
56
|
+
evm: z.ZodObject<{
|
|
57
|
+
block: z.ZodNumber;
|
|
58
|
+
hash: z.ZodString;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
xl1: z.ZodObject<{
|
|
61
|
+
block: z.ZodNumber;
|
|
62
|
+
hash: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
stepCount: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
/** Mutable pointer written only after every referenced step and snapshot is durable. */
|
|
68
|
+
export type NetworkStakeRewardsIndexHead = z.infer<typeof NetworkStakeRewardsIndexHeadZod>;
|
|
69
|
+
/** Checks whether a value is a valid rewards index manifest. */
|
|
70
|
+
export declare const isNetworkStakeRewardsIndexManifest: <T>(value: T) => value is T & {
|
|
71
|
+
evmAddress: string;
|
|
72
|
+
evmChainId: string;
|
|
73
|
+
layout: "network-stake-rewards-v1";
|
|
74
|
+
policyId: string;
|
|
75
|
+
stepLevels: number[];
|
|
76
|
+
timeAnchor?: {
|
|
77
|
+
externalGenesisTime?: number | undefined;
|
|
78
|
+
maxScanBlocks?: number | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
};
|
|
81
|
+
/** Converts a value to a rewards index manifest, throwing if invalid. */
|
|
82
|
+
export declare const asNetworkStakeRewardsIndexManifest: {
|
|
83
|
+
<T>(value: T): (T & {
|
|
84
|
+
evmAddress: string;
|
|
85
|
+
evmChainId: string;
|
|
86
|
+
layout: "network-stake-rewards-v1";
|
|
87
|
+
policyId: string;
|
|
88
|
+
stepLevels: number[];
|
|
89
|
+
timeAnchor?: {
|
|
90
|
+
externalGenesisTime?: number | undefined;
|
|
91
|
+
maxScanBlocks?: number | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
}) | undefined;
|
|
94
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
95
|
+
evmAddress: string;
|
|
96
|
+
evmChainId: string;
|
|
97
|
+
layout: "network-stake-rewards-v1";
|
|
98
|
+
policyId: string;
|
|
99
|
+
stepLevels: number[];
|
|
100
|
+
timeAnchor?: {
|
|
101
|
+
externalGenesisTime?: number | undefined;
|
|
102
|
+
maxScanBlocks?: number | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
/** Converts a value to a rewards index step, throwing if invalid. */
|
|
107
|
+
export declare const asNetworkStakeRewardsIndexStep: {
|
|
108
|
+
<T>(value: T): (T & {
|
|
109
|
+
denominator: string;
|
|
110
|
+
externalRange: [number, number];
|
|
111
|
+
layout: "network-stake-rewards-v1";
|
|
112
|
+
policyId: string;
|
|
113
|
+
positionRewards: Record<string, string>;
|
|
114
|
+
step: {
|
|
115
|
+
block: number;
|
|
116
|
+
step: number;
|
|
117
|
+
};
|
|
118
|
+
totalReward: string;
|
|
119
|
+
xl1Range: [number, number];
|
|
120
|
+
}) | undefined;
|
|
121
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
122
|
+
denominator: string;
|
|
123
|
+
externalRange: [number, number];
|
|
124
|
+
layout: "network-stake-rewards-v1";
|
|
125
|
+
policyId: string;
|
|
126
|
+
positionRewards: Record<string, string>;
|
|
127
|
+
step: {
|
|
128
|
+
block: number;
|
|
129
|
+
step: number;
|
|
130
|
+
};
|
|
131
|
+
totalReward: string;
|
|
132
|
+
xl1Range: [number, number];
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
/** Converts a value to a rewards index snapshot, throwing if invalid. */
|
|
136
|
+
export declare const asNetworkStakeRewardsIndexSnapshot: {
|
|
137
|
+
<T>(value: T): (T & {
|
|
138
|
+
layout: "network-stake-rewards-v1";
|
|
139
|
+
policyId: string;
|
|
140
|
+
positionRewards: Record<string, string>;
|
|
141
|
+
stepCount: number;
|
|
142
|
+
totalReward: string;
|
|
143
|
+
}) | undefined;
|
|
144
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
145
|
+
layout: "network-stake-rewards-v1";
|
|
146
|
+
policyId: string;
|
|
147
|
+
positionRewards: Record<string, string>;
|
|
148
|
+
stepCount: number;
|
|
149
|
+
totalReward: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/** Converts a value to a rewards index head, throwing if invalid. */
|
|
153
|
+
export declare const asNetworkStakeRewardsIndexHead: {
|
|
154
|
+
<T>(value: T): (T & {
|
|
155
|
+
layout: "network-stake-rewards-v1";
|
|
156
|
+
policyId: string;
|
|
157
|
+
positionCount: number;
|
|
158
|
+
processedThroughBlock: number;
|
|
159
|
+
snapshot: string;
|
|
160
|
+
source: {
|
|
161
|
+
evm: {
|
|
162
|
+
block: number;
|
|
163
|
+
hash: string;
|
|
164
|
+
};
|
|
165
|
+
xl1: {
|
|
166
|
+
block: number;
|
|
167
|
+
hash: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
stepCount: number;
|
|
171
|
+
}) | undefined;
|
|
172
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
173
|
+
layout: "network-stake-rewards-v1";
|
|
174
|
+
policyId: string;
|
|
175
|
+
positionCount: number;
|
|
176
|
+
processedThroughBlock: number;
|
|
177
|
+
snapshot: string;
|
|
178
|
+
source: {
|
|
179
|
+
evm: {
|
|
180
|
+
block: number;
|
|
181
|
+
hash: string;
|
|
182
|
+
};
|
|
183
|
+
xl1: {
|
|
184
|
+
block: number;
|
|
185
|
+
hash: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
stepCount: number;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=networkStakeRewardsIndex.d.ts.map
|
package/dist/neutral/modules/network-model/staticRest/layout/networkStakeRewardsIndex.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkStakeRewardsIndex.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/network-model/staticRest/layout/networkStakeRewardsIndex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,iEAAiE;AACjE,eAAO,MAAM,kCAAkC,EAAG,0BAAmC,CAAA;AACrF,0EAA0E;AAC1E,eAAO,MAAM,iCAAiC,EAAG,SAAkB,CAAA;AAGnE,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B,aAA6C,CAAA;AAQxF,uEAAuE;AACvE,eAAO,MAAM,mCAAmC;;;;;;;;;;iBAU9C,CAAA;AAEF,uEAAuE;AACvE,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAElG,qEAAqE;AACrE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;iBAS1C,CAAA;AAEF,qEAAqE;AACrE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE1F,yEAAyE;AACzE,eAAO,MAAM,mCAAmC;;;;;;iBAM9C,CAAA;AAEF,yEAAyE;AACzE,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAElG,wFAAwF;AACxF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;iBAiB1C,CAAA;AAEF,wFAAwF;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE1F,gEAAgE;AAChE,eAAO,MAAM,kCAAkC;;;;;;;;;;CAAoD,CAAA;AACnG,yEAAyE;AACzE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;CAG9C,CAAA;AACD,qEAAqE;AACrE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1C,CAAA;AACD,yEAAyE;AACzE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;CAG9C,CAAA;AACD,qEAAqE;AACrE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1C,CAAA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Versioned identifier for the finalized transaction-inclusion index layout. */
|
|
3
|
+
export declare const TRANSACTION_INCLUSION_INDEX_LAYOUT: "transaction-inclusions-v1";
|
|
4
|
+
/** Static descriptor for the transaction-inclusion index. */
|
|
5
|
+
export declare const TransactionInclusionManifestZod: z.ZodObject<{
|
|
6
|
+
chain: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<import("@ariestools/sdk").BrandedHex, string>>;
|
|
7
|
+
layout: z.ZodLiteral<"transaction-inclusions-v1">;
|
|
8
|
+
path: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
/** Static descriptor for the transaction-inclusion index. */
|
|
11
|
+
export type TransactionInclusionManifest = z.infer<typeof TransactionInclusionManifestZod>;
|
|
12
|
+
/** Mutable pointer written after every transaction inclusion through `block` is durable. */
|
|
13
|
+
export declare const TransactionInclusionHeadZod: z.ZodObject<{
|
|
14
|
+
block: z.ZodPipe<z.ZodInt, z.ZodTransform<import('../../../protocol-model/index.js').XL1BlockNumber, number>>;
|
|
15
|
+
blockHash: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
16
|
+
chain: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<import("@ariestools/sdk").BrandedHex, string>>;
|
|
17
|
+
entries: z.ZodInt;
|
|
18
|
+
layout: z.ZodLiteral<"transaction-inclusions-v1">;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
/** Mutable transaction-inclusion progress pointer. */
|
|
21
|
+
export type TransactionInclusionHead = z.infer<typeof TransactionInclusionHeadZod>;
|
|
22
|
+
/** Type guard that checks whether a value is a valid transaction-inclusion manifest. */
|
|
23
|
+
export declare const isTransactionInclusionManifest: <T>(value: T) => value is T & {
|
|
24
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
25
|
+
layout: "transaction-inclusions-v1";
|
|
26
|
+
path: string;
|
|
27
|
+
};
|
|
28
|
+
/** Converts a value to a transaction-inclusion manifest, throwing when invalid. */
|
|
29
|
+
export declare const asTransactionInclusionManifest: {
|
|
30
|
+
<T>(value: T): (T & {
|
|
31
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
32
|
+
layout: "transaction-inclusions-v1";
|
|
33
|
+
path: string;
|
|
34
|
+
}) | undefined;
|
|
35
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
36
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
37
|
+
layout: "transaction-inclusions-v1";
|
|
38
|
+
path: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/** Converts a value to a transaction-inclusion manifest, returning undefined when invalid. */
|
|
42
|
+
export declare const toTransactionInclusionManifest: {
|
|
43
|
+
(value: unknown): {
|
|
44
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
45
|
+
layout: "transaction-inclusions-v1";
|
|
46
|
+
path: string;
|
|
47
|
+
} | undefined;
|
|
48
|
+
(value: unknown, assert: import("@ariestools/sdk").ZodFactoryConfig): {
|
|
49
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
50
|
+
layout: "transaction-inclusions-v1";
|
|
51
|
+
path: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
/** Type guard that checks whether a value is a valid transaction-inclusion head. */
|
|
55
|
+
export declare const isTransactionInclusionHead: <T>(value: T) => value is T & {
|
|
56
|
+
block: import('../../../protocol-model/index.js').XL1BlockNumber;
|
|
57
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
58
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
59
|
+
entries: number;
|
|
60
|
+
layout: "transaction-inclusions-v1";
|
|
61
|
+
};
|
|
62
|
+
/** Converts a value to a transaction-inclusion head, throwing when invalid. */
|
|
63
|
+
export declare const asTransactionInclusionHead: {
|
|
64
|
+
<T>(value: T): (T & {
|
|
65
|
+
block: import('../../../protocol-model/index.js').XL1BlockNumber;
|
|
66
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
67
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
68
|
+
entries: number;
|
|
69
|
+
layout: "transaction-inclusions-v1";
|
|
70
|
+
}) | undefined;
|
|
71
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
72
|
+
block: import('../../../protocol-model/index.js').XL1BlockNumber;
|
|
73
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
74
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
75
|
+
entries: number;
|
|
76
|
+
layout: "transaction-inclusions-v1";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
/** Converts a value to a transaction-inclusion head, returning undefined when invalid. */
|
|
80
|
+
export declare const toTransactionInclusionHead: {
|
|
81
|
+
(value: unknown): {
|
|
82
|
+
block: import('../../../protocol-model/index.js').XL1BlockNumber;
|
|
83
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
84
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
85
|
+
entries: number;
|
|
86
|
+
layout: "transaction-inclusions-v1";
|
|
87
|
+
} | undefined;
|
|
88
|
+
(value: unknown, assert: import("@ariestools/sdk").ZodFactoryConfig): {
|
|
89
|
+
block: import('../../../protocol-model/index.js').XL1BlockNumber;
|
|
90
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
91
|
+
chain: import("@ariestools/sdk").BrandedHex;
|
|
92
|
+
entries: number;
|
|
93
|
+
layout: "transaction-inclusions-v1";
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
/** Builds the static descriptor for a chain's transaction-inclusion index. */
|
|
97
|
+
export declare function createTransactionInclusionManifest(chain: TransactionInclusionManifest['chain']): TransactionInclusionManifest;
|
|
98
|
+
/** Builds the mutable progress pointer for a transaction-inclusion index. */
|
|
99
|
+
export declare function createTransactionInclusionHead(head: Omit<TransactionInclusionHead, 'layout'>): TransactionInclusionHead;
|
|
100
|
+
//# sourceMappingURL=transactionInclusionIndex.d.ts.map
|
package/dist/neutral/modules/network-model/staticRest/layout/transactionInclusionIndex.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionInclusionIndex.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/network-model/staticRest/layout/transactionInclusionIndex.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,iFAAiF;AACjF,eAAO,MAAM,kCAAkC,EAAG,2BAAoC,CAAA;AAEtF,6DAA6D;AAC7D,eAAO,MAAM,+BAA+B;;;;iBAO1C,CAAA;AAEF,6DAA6D;AAC7D,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE1F,4FAA4F;AAC5F,eAAO,MAAM,2BAA2B;;;;;;iBAWtC,CAAA;AAEF,sDAAsD;AACtD,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAElF,wFAAwF;AACxF,eAAO,MAAM,8BAA8B;;;;CAAgD,CAAA;AAC3F,mFAAmF;AACnF,eAAO,MAAM,8BAA8B;;;;;;;;;;;CAG1C,CAAA;AACD,8FAA8F;AAC9F,eAAO,MAAM,8BAA8B;;;;;;;;;;;CAG1C,CAAA;AAED,oFAAoF;AACpF,eAAO,MAAM,0BAA0B;;;;;;CAA4C,CAAA;AACnF,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;CAGtC,CAAA;AACD,0FAA0F;AAC1F,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;CAGtC,CAAA;AAED,8EAA8E;AAC9E,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,4BAA4B,CAAC,OAAO,CAAC,GAC3C,4BAA4B,CAM9B;AAED,6EAA6E;AAC7E,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,GAC7C,wBAAwB,CAK1B"}
|
|
@@ -2,4 +2,6 @@ export * from './chainState.js';
|
|
|
2
2
|
export * from './evmEventIndex.js';
|
|
3
3
|
export * from './finalized.js';
|
|
4
4
|
export * from './indexPaths.js';
|
|
5
|
+
export * from './networkStakeRewardsIndex.js';
|
|
6
|
+
export * from './transactionInclusionIndex.js';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/network-model/staticRest/paths/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/network-model/staticRest/paths/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StepIdentity } from '../../../protocol-model/index.js';
|
|
2
|
+
/** Path of the mutable rewards-index head. */
|
|
3
|
+
export declare function networkStakeRewardsIndexHeadPath(policyId: string): string;
|
|
4
|
+
/** Path of the static rewards-index manifest. */
|
|
5
|
+
export declare function networkStakeRewardsIndexManifestPath(policyId: string): string;
|
|
6
|
+
/** Path of one immutable cumulative position snapshot. */
|
|
7
|
+
export declare function networkStakeRewardsIndexSnapshotPath(policyId: string, stepCount: number): string;
|
|
8
|
+
/** Path of one immutable completed-step reward allocation. */
|
|
9
|
+
export declare function networkStakeRewardsIndexStepPath(policyId: string, step: StepIdentity): string;
|
|
10
|
+
//# sourceMappingURL=networkStakeRewardsIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkStakeRewardsIndex.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/network-model/staticRest/paths/networkStakeRewardsIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAMnD,8CAA8C;AAC9C,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,iDAAiD;AACjD,wBAAgB,oCAAoC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE7E;AAED,0DAA0D;AAC1D,wBAAgB,oCAAoC,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEhG;AAED,8DAA8D;AAC9D,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAE7F"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Hash } from '@ariestools/sdk';
|
|
2
|
+
/** Path of one immutable transaction-hash to finalized-block inclusion record. */
|
|
3
|
+
export declare function transactionInclusionPath(transactionHash: Hash): string;
|
|
4
|
+
/** Path of the mutable transaction-inclusion progress pointer. */
|
|
5
|
+
export declare function transactionInclusionHeadPath(): string;
|
|
6
|
+
/** Path of the transaction-inclusion layout descriptor. */
|
|
7
|
+
export declare function transactionInclusionManifestPath(): string;
|
|
8
|
+
//# sourceMappingURL=transactionInclusionIndex.d.ts.map
|
package/dist/neutral/modules/network-model/staticRest/paths/transactionInclusionIndex.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionInclusionIndex.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/network-model/staticRest/paths/transactionInclusionIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAI3C,kFAAkF;AAClF,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,IAAI,GAAG,MAAM,CAEtE;AAED,kEAAkE;AAClE,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AAED,2DAA2D;AAC3D,wBAAgB,gCAAgC,IAAI,MAAM,CAEzD"}
|
|
@@ -24,4 +24,6 @@ export declare function chainManifestPathTemplates(): {
|
|
|
24
24
|
};
|
|
25
25
|
/** Self-describing template for one index summary family, e.g. `blocks/{level}/{index}.json`. */
|
|
26
26
|
export declare function indexSummaryPathTemplate(family: IndexSummaryFamily): string;
|
|
27
|
+
/** Self-describing template for the hash-addressed transaction-inclusion lookup. */
|
|
28
|
+
export declare function transactionInclusionPathTemplate(): string;
|
|
27
29
|
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network-model/staticRest/templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network-model/staticRest/templates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAiBvD;;;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;AAED,oFAAoF;AACpF,wBAAgB,gCAAgC,IAAI,MAAM,CAIzD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Provider } from '../../protocol-model/index.js';
|
|
2
|
+
import type { EvmEventIndexHead } from './EvmEventIndexPublish.js';
|
|
3
|
+
import type { IndexWatermark } from './IndexPublish.js';
|
|
4
|
+
/** Durable rewards-index progress returned after a publication pass. */
|
|
5
|
+
export interface NetworkStakeRewardsIndexPublishHead {
|
|
6
|
+
/** Highest XL1 block for which every completed reward step is indexed. */
|
|
7
|
+
processedThroughBlock: number;
|
|
8
|
+
/** Number of immutable completed-step records represented by the snapshot. */
|
|
9
|
+
stepCount: number;
|
|
10
|
+
}
|
|
11
|
+
/** Operations exposed by the network-stake rewards index publisher. */
|
|
12
|
+
export interface NetworkStakeRewardsIndexPublishRunnerMethods {
|
|
13
|
+
/**
|
|
14
|
+
* Publishes rewards only through the intersection of the durable XL1 index
|
|
15
|
+
* watermark and finalized EVM event-index watermark.
|
|
16
|
+
*/
|
|
17
|
+
publishRewardsIndex(xl1Head: IndexWatermark, evmHead: EvmEventIndexHead): Promise<NetworkStakeRewardsIndexPublishHead>;
|
|
18
|
+
}
|
|
19
|
+
/** Moniker identifier for the network-stake rewards index publisher. */
|
|
20
|
+
export declare const NetworkStakeRewardsIndexPublishRunnerMoniker: "NetworkStakeRewardsIndexPublishRunner";
|
|
21
|
+
/** Type literal for the network-stake rewards index publisher moniker. */
|
|
22
|
+
export type NetworkStakeRewardsIndexPublishRunnerMoniker = typeof NetworkStakeRewardsIndexPublishRunnerMoniker;
|
|
23
|
+
/** Runner interface for publishing durable network-stake rewards. */
|
|
24
|
+
export interface NetworkStakeRewardsIndexPublishRunner extends NetworkStakeRewardsIndexPublishRunnerMethods, Provider<NetworkStakeRewardsIndexPublishRunnerMoniker> {
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=NetworkStakeRewardsIndexPublish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkStakeRewardsIndexPublish.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-lib/runners/NetworkStakeRewardsIndexPublish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,wEAAwE;AACxE,MAAM,WAAW,mCAAmC;IAClD,0EAA0E;IAC1E,qBAAqB,EAAE,MAAM,CAAA;IAC7B,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,uEAAuE;AACvE,MAAM,WAAW,4CAA4C;IAC3D;;;OAGG;IACH,mBAAmB,CACjB,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,mCAAmC,CAAC,CAAA;CAChD;AAED,wEAAwE;AACxE,eAAO,MAAM,4CAA4C,EAAG,uCAAgD,CAAA;AAC5G,0EAA0E;AAC1E,MAAM,MAAM,4CAA4C,GAAG,OAAO,4CAA4C,CAAA;AAE9G,qEAAqE;AACrE,MAAM,WAAW,qCAAsC,SACrD,4CAA4C,EAC5C,QAAQ,CAAC,4CAA4C,CAAC;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-lib/runners/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-lib/runners/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,sCAAsC,CAAA"}
|
|
@@ -13,6 +13,8 @@ export interface BlockViewerEventData extends EventData {
|
|
|
13
13
|
}
|
|
14
14
|
/** Batch block and payload queries shared by block-viewer implementations. */
|
|
15
15
|
export interface BlockViewerMethods {
|
|
16
|
+
/** Returns the finalized block containing a transaction hash, or null when it is not indexed. */
|
|
17
|
+
blockByTransactionHash(transactionHash: Hash): Promisable<SignedHydratedBlockWithHashMeta | null>;
|
|
16
18
|
/**
|
|
17
19
|
* Up to `limit` blocks ending at the block with `hash`, walking **descending**
|
|
18
20
|
* via each block's `previous` link (newest first) — `hash` is the window's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-lib/viewers/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAC1C,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE7D,OAA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AA;IACjF,8EAA8E;IAC9E,YAAY,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;IAC7H,sEAAsE;IACtE,gBAAgB,CACd,UAAU,EAAE,gBAAgB,EAC5B,gBAAgB,CAAC,EAAE,cAAc,EACjC,QAAQ,CAAC,EAAE,MAAM,aAAa,EAC9B,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,GACnB,UAAU,CAAC,SAAS,CAAC,CAAA;CACzB"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import type { Promisable } from '@ariestools/sdk';
|
|
2
|
-
import type { Provider, ProviderMoniker } from '../../protocol-model/index.js';
|
|
1
|
+
import type { Hash, Promisable } from '@ariestools/sdk';
|
|
2
|
+
import type { Provider, ProviderMoniker, TransactionInclusion } from '../../protocol-model/index.js';
|
|
3
3
|
import type { IndexSummaryFamily } from '../runners/IndexPublish.js';
|
|
4
4
|
/** Operations exposed by the Index Viewer contract. */
|
|
5
5
|
export interface IndexViewerMethods {
|
|
6
6
|
/** The published summary for a completed step in the given family, or null when not (yet) published. */
|
|
7
7
|
stepSummary<T = unknown>(family: IndexSummaryFamily, stepLevel: number, stepIndex: number): Promisable<T | null>;
|
|
8
|
+
/** The finalized block position of a transaction, or null when it is not indexed. */
|
|
9
|
+
transactionInclusionByHash(transactionHash: Hash): Promisable<TransactionInclusion | null>;
|
|
8
10
|
}
|
|
9
11
|
/** Moniker identifier for the IndexViewer provider. */
|
|
10
12
|
export declare const IndexViewerMoniker: "IndexViewer";
|
|
11
13
|
/** Type literal for the IndexViewer provider moniker. */
|
|
12
14
|
export type IndexViewerMoniker = typeof IndexViewerMoniker;
|
|
13
|
-
/** Viewer interface for reading
|
|
15
|
+
/** Viewer interface for reading derived chain indexes. */
|
|
14
16
|
export interface IndexViewer<TMoniker extends ProviderMoniker = IndexViewerMoniker> extends IndexViewerMethods, Provider<TMoniker> {
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=IndexViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexViewer.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-lib/viewers/IndexViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"IndexViewer.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-lib/viewers/IndexViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,KAAK,EACV,QAAQ,EAAE,eAAe,EAAE,oBAAoB,EAChD,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE,uDAAuD;AACvD,MAAM,WAAW,kBAAkB;IACjC,wGAAwG;IACxG,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;IAChH,qFAAqF;IACrF,0BAA0B,CAAC,eAAe,EAAE,IAAI,GAAG,UAAU,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAA;CAC3F;AAED,uDAAuD;AACvD,eAAO,MAAM,kBAAkB,EAAG,aAAsB,CAAA;AACxD,yDAAyD;AACzD,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA;AAE1D,0DAA0D;AAC1D,MAAM,WAAW,WAAW,CAAC,QAAQ,SAAS,eAAe,GAAG,kBAAkB,CAChF,SAAQ,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,CAAC;CAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash, Promisable } from '@ariestools/sdk';
|
|
2
2
|
import type { HydratedBlockWithHashMeta, Provider, ProviderMoniker } from '../../protocol-model/index.js';
|
|
3
3
|
import type { BlockViewerMethods } from './Block.js';
|
|
4
|
-
type ExtendableBlockViewerMethods = Omit<BlockViewerMethods, 'rate' | 'stepSizeRate' | 'timeDurationRate'>;
|
|
4
|
+
type ExtendableBlockViewerMethods = Omit<BlockViewerMethods, 'blockByTransactionHash' | 'rate' | 'stepSizeRate' | 'timeDurationRate'>;
|
|
5
5
|
/** Operations exposed by the Windowed Block Viewer contract. */
|
|
6
6
|
export interface WindowedBlockViewerMethods extends ExtendableBlockViewerMethods {
|
|
7
7
|
/** Returns the result of the blocks by transaction hashes query. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WindowedBlock.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-lib/viewers/WindowedBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,KAAK,EACV,yBAAyB,EAAE,QAAQ,EAAE,eAAe,EACrD,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,KAAK,4BAA4B,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"WindowedBlock.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-lib/viewers/WindowedBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,KAAK,EACV,yBAAyB,EAAE,QAAQ,EAAE,eAAe,EACrD,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,KAAK,4BAA4B,GAAG,IAAI,CAAC,kBAAkB,EAAE,wBAAwB,GAAG,MAAM,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;AAErI,gEAAgE;AAChE,MAAM,WAAW,0BAA2B,SAAQ,4BAA4B;IAC9E,oEAAoE;IACpE,yBAAyB,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,yBAAyB,EAAE,CAAC,CAAA;CACnF;AAED,+DAA+D;AAC/D,eAAO,MAAM,0BAA0B,EAAG,qBAA8B,CAAA;AACxE,iEAAiE;AACjE,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAA;AAE1E,uDAAuD;AACvD,MAAM,WAAW,mBAAmB,CAAC,QAAQ,SAAS,eAAe,GAAG,0BAA0B,CAAE,SAAQ,0BAA0B,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACxJ,iEAAiE;IACjE,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;CACjF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Zod schema for the canonical position of a transaction in the finalized XL1 chain. */
|
|
3
|
+
export declare const TransactionInclusionZod: z.ZodObject<{
|
|
4
|
+
blockHash: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
5
|
+
blockNumber: z.ZodPipe<z.ZodInt, z.ZodTransform<import('../BlockNumber/xl1BlockNumber.js').XL1BlockNumber, number>>;
|
|
6
|
+
transactionHash: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
7
|
+
transactionIndex: z.ZodInt;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
/** Canonical position of a transaction in the finalized XL1 chain. */
|
|
10
|
+
export type TransactionInclusion = z.infer<typeof TransactionInclusionZod>;
|
|
11
|
+
/** Type guard that checks whether a value is a valid transaction inclusion. */
|
|
12
|
+
export declare const isTransactionInclusion: <T>(value: T) => value is T & {
|
|
13
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
14
|
+
blockNumber: import('../BlockNumber/xl1BlockNumber.js').XL1BlockNumber;
|
|
15
|
+
transactionHash: import("@ariestools/sdk").BrandedHash;
|
|
16
|
+
transactionIndex: number;
|
|
17
|
+
};
|
|
18
|
+
/** Converts a value to a transaction inclusion, throwing when invalid. */
|
|
19
|
+
export declare const asTransactionInclusion: {
|
|
20
|
+
<T>(value: T): (T & {
|
|
21
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
22
|
+
blockNumber: import('../BlockNumber/xl1BlockNumber.js').XL1BlockNumber;
|
|
23
|
+
transactionHash: import("@ariestools/sdk").BrandedHash;
|
|
24
|
+
transactionIndex: number;
|
|
25
|
+
}) | undefined;
|
|
26
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
27
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
28
|
+
blockNumber: import('../BlockNumber/xl1BlockNumber.js').XL1BlockNumber;
|
|
29
|
+
transactionHash: import("@ariestools/sdk").BrandedHash;
|
|
30
|
+
transactionIndex: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/** Converts a value to a transaction inclusion, returning undefined when invalid. */
|
|
34
|
+
export declare const toTransactionInclusion: {
|
|
35
|
+
(value: unknown): {
|
|
36
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
37
|
+
blockNumber: import('../BlockNumber/xl1BlockNumber.js').XL1BlockNumber;
|
|
38
|
+
transactionHash: import("@ariestools/sdk").BrandedHash;
|
|
39
|
+
transactionIndex: number;
|
|
40
|
+
} | undefined;
|
|
41
|
+
(value: unknown, assert: import("@ariestools/sdk").ZodFactoryConfig): {
|
|
42
|
+
blockHash: import("@ariestools/sdk").BrandedHash;
|
|
43
|
+
blockNumber: import('../BlockNumber/xl1BlockNumber.js').XL1BlockNumber;
|
|
44
|
+
transactionHash: import("@ariestools/sdk").BrandedHash;
|
|
45
|
+
transactionIndex: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=TransactionInclusion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionInclusion.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-model/model/TransactionInclusion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,yFAAyF;AACzF,eAAO,MAAM,uBAAuB;;;;;iBASlC,CAAA;AAEF,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE1E,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB;;;;;CAAwC,CAAA;AAC3E,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAAkE,CAAA;AACrG,qFAAqF;AACrF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAAkE,CAAA"}
|
|
@@ -23,6 +23,7 @@ export * from './Sequence.js';
|
|
|
23
23
|
export * from './Stake.js';
|
|
24
24
|
export * from './SyncStepSummary.js';
|
|
25
25
|
export * from './TimeDomain.js';
|
|
26
|
+
export * from './TransactionInclusion.js';
|
|
26
27
|
export * from './TransferPair.js';
|
|
27
28
|
export * from './version.js';
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/protocol-model/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACr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