@xyo-network/chain-orchestration 1.19.14 → 1.19.16

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 (172) hide show
  1. package/dist/neutral/ChainInitializableParams.d.ts +1 -0
  2. package/dist/neutral/ChainInitializableParams.d.ts.map +1 -1
  3. package/dist/neutral/actor/ValidatorActor.d.ts +2 -2
  4. package/dist/neutral/actor/ValidatorActor.d.ts.map +1 -1
  5. package/dist/neutral/archivists/ChainFinalized/archivist.d.ts +2 -2
  6. package/dist/neutral/archivists/ChainFinalized/archivist.d.ts.map +1 -1
  7. package/dist/neutral/archivists/ChainFinalized/local.d.ts +3 -3
  8. package/dist/neutral/archivists/ChainFinalized/local.d.ts.map +1 -1
  9. package/dist/neutral/archivists/PendingBlocks/archivist.d.ts +3 -3
  10. package/dist/neutral/archivists/PendingBlocks/archivist.d.ts.map +1 -1
  11. package/dist/neutral/archivists/PendingBlocks/local.d.ts +3 -5
  12. package/dist/neutral/archivists/PendingBlocks/local.d.ts.map +1 -1
  13. package/dist/neutral/archivists/RejectedTransactions/archivist.d.ts +3 -3
  14. package/dist/neutral/archivists/RejectedTransactions/archivist.d.ts.map +1 -1
  15. package/dist/neutral/archivists/RejectedTransactions/local.d.ts +2 -3
  16. package/dist/neutral/archivists/RejectedTransactions/local.d.ts.map +1 -1
  17. package/dist/neutral/archivists/StakeIntentState/archivist.d.ts +3 -4
  18. package/dist/neutral/archivists/StakeIntentState/archivist.d.ts.map +1 -1
  19. package/dist/neutral/archivists/StakeIntentState/local.d.ts +3 -4
  20. package/dist/neutral/archivists/StakeIntentState/local.d.ts.map +1 -1
  21. package/dist/neutral/archivists/lib/localPersistentArchivist.d.ts +1 -1
  22. package/dist/neutral/archivists/lib/localPersistentArchivist.d.ts.map +1 -1
  23. package/dist/neutral/config/actors/Api.d.ts +890 -0
  24. package/dist/neutral/config/actors/Api.d.ts.map +1 -0
  25. package/dist/neutral/config/actors/Bridge.d.ts +1213 -0
  26. package/dist/neutral/config/actors/Bridge.d.ts.map +1 -0
  27. package/dist/neutral/config/actors/Mempool.d.ts +890 -0
  28. package/dist/neutral/config/actors/Mempool.d.ts.map +1 -0
  29. package/dist/neutral/config/actors/Producer.d.ts +962 -0
  30. package/dist/neutral/config/actors/Producer.d.ts.map +1 -0
  31. package/dist/neutral/config/actors/RewardRedemption.d.ts +878 -0
  32. package/dist/neutral/config/actors/RewardRedemption.d.ts.map +1 -0
  33. package/dist/neutral/config/actors/index.d.ts +7 -0
  34. package/dist/neutral/config/actors/index.d.ts.map +1 -0
  35. package/dist/neutral/config/index.d.ts +5 -0
  36. package/dist/neutral/config/index.d.ts.map +1 -0
  37. package/dist/neutral/config/locators/actors/apiLocatorFromConfig.d.ts +5 -0
  38. package/dist/neutral/config/locators/actors/apiLocatorFromConfig.d.ts.map +1 -0
  39. package/dist/neutral/config/locators/actors/bridgeLocatorFromConfig.d.ts +5 -0
  40. package/dist/neutral/config/locators/actors/bridgeLocatorFromConfig.d.ts.map +1 -0
  41. package/dist/neutral/config/locators/actors/index.d.ts +7 -0
  42. package/dist/neutral/config/locators/actors/index.d.ts.map +1 -0
  43. package/dist/neutral/config/locators/actors/mempoolLocatorFromConfig.d.ts +5 -0
  44. package/dist/neutral/config/locators/actors/mempoolLocatorFromConfig.d.ts.map +1 -0
  45. package/dist/neutral/config/locators/actors/producerLocatorFromConfig.d.ts +4 -0
  46. package/dist/neutral/config/locators/actors/producerLocatorFromConfig.d.ts.map +1 -0
  47. package/dist/neutral/config/locators/actors/rewardRedemptionLocatorFromConfig.d.ts +5 -0
  48. package/dist/neutral/config/locators/actors/rewardRedemptionLocatorFromConfig.d.ts.map +1 -0
  49. package/dist/neutral/config/locators/actors/validatorLocatorFromConfig.d.ts +4 -0
  50. package/dist/neutral/config/locators/actors/validatorLocatorFromConfig.d.ts.map +1 -0
  51. package/dist/neutral/config/locators/contextFromConfigWithoutLocator.d.ts +4 -0
  52. package/dist/neutral/config/locators/contextFromConfigWithoutLocator.d.ts.map +1 -0
  53. package/dist/neutral/config/locators/index.d.ts +8 -0
  54. package/dist/neutral/config/locators/index.d.ts.map +1 -0
  55. package/dist/neutral/config/locators/localLocatorFromConfig.d.ts +3 -0
  56. package/dist/neutral/config/locators/localLocatorFromConfig.d.ts.map +1 -0
  57. package/dist/neutral/config/locators/locatorsFromConfig.d.ts +3 -0
  58. package/dist/neutral/config/locators/locatorsFromConfig.d.ts.map +1 -0
  59. package/dist/neutral/config/locators/remoteLocatorFromConfig.d.ts +3 -0
  60. package/dist/neutral/config/locators/remoteLocatorFromConfig.d.ts.map +1 -0
  61. package/dist/neutral/config/locators/rootLocatorFromConfig.d.ts +3 -0
  62. package/dist/neutral/config/locators/rootLocatorFromConfig.d.ts.map +1 -0
  63. package/dist/neutral/config/locators/telemetryContextFromConfig.d.ts +3 -0
  64. package/dist/neutral/config/locators/telemetryContextFromConfig.d.ts.map +1 -0
  65. package/dist/neutral/config/mergeConfig.d.ts +67 -0
  66. package/dist/neutral/config/mergeConfig.d.ts.map +1 -0
  67. package/dist/neutral/config/tryParseConfig.d.ts +133 -0
  68. package/dist/neutral/config/tryParseConfig.d.ts.map +1 -0
  69. package/dist/neutral/createDeclarationIntentBlock.d.ts +3 -3
  70. package/dist/neutral/createDeclarationIntentBlock.d.ts.map +1 -1
  71. package/dist/neutral/evm/initChainId.d.ts +3 -3
  72. package/dist/neutral/evm/initChainId.d.ts.map +1 -1
  73. package/dist/neutral/evm/initEvmProvider.d.ts +3 -9
  74. package/dist/neutral/evm/initEvmProvider.d.ts.map +1 -1
  75. package/dist/neutral/evm/initInfuraProvider.d.ts +4 -4
  76. package/dist/neutral/evm/initInfuraProvider.d.ts.map +1 -1
  77. package/dist/neutral/evm/initJsonRpcProvider.d.ts +4 -4
  78. package/dist/neutral/evm/initJsonRpcProvider.d.ts.map +1 -1
  79. package/dist/neutral/health/initHealthEndpoints.d.ts +4 -8
  80. package/dist/neutral/health/initHealthEndpoints.d.ts.map +1 -1
  81. package/dist/neutral/index.d.ts +1 -0
  82. package/dist/neutral/index.d.ts.map +1 -1
  83. package/dist/neutral/index.mjs +1021 -346
  84. package/dist/neutral/index.mjs.map +1 -1
  85. package/dist/neutral/init/index.d.ts +2 -2
  86. package/dist/neutral/init/index.d.ts.map +1 -1
  87. package/dist/neutral/init/initActorAccount.d.ts +4 -0
  88. package/dist/neutral/init/initActorAccount.d.ts.map +1 -0
  89. package/dist/neutral/init/initActorSeedPhrase.d.ts +4 -0
  90. package/dist/neutral/init/initActorSeedPhrase.d.ts.map +1 -0
  91. package/dist/neutral/init/initBalanceSummaryMap.d.ts +3 -4
  92. package/dist/neutral/init/initBalanceSummaryMap.d.ts.map +1 -1
  93. package/dist/neutral/init/initBridgedModule.d.ts +5 -9
  94. package/dist/neutral/init/initBridgedModule.d.ts.map +1 -1
  95. package/dist/neutral/init/initEvmProvidersIfAvailable.d.ts.map +1 -1
  96. package/dist/neutral/init/initFinalizationArchivistIfNeeded.d.ts +3 -3
  97. package/dist/neutral/init/initFinalizationArchivistIfNeeded.d.ts.map +1 -1
  98. package/dist/neutral/init/initServerNode.d.ts +8 -15
  99. package/dist/neutral/init/initServerNode.d.ts.map +1 -1
  100. package/dist/neutral/init/initTransferSummaryMap.d.ts +3 -4
  101. package/dist/neutral/init/initTransferSummaryMap.d.ts.map +1 -1
  102. package/dist/neutral/init/initWallet.d.ts +2 -7
  103. package/dist/neutral/init/initWallet.d.ts.map +1 -1
  104. package/dist/neutral/manifest/getLocator.d.ts +2 -7
  105. package/dist/neutral/manifest/getLocator.d.ts.map +1 -1
  106. package/dist/neutral/manifest/loadNode.d.ts +2 -8
  107. package/dist/neutral/manifest/loadNode.d.ts.map +1 -1
  108. package/dist/neutral/orchestrator/Orchestrator.d.ts +4 -4
  109. package/dist/neutral/orchestrator/Orchestrator.d.ts.map +1 -1
  110. package/package.json +51 -33
  111. package/src/ChainInitializableParams.ts +1 -0
  112. package/src/actor/ValidatorActor.ts +3 -2
  113. package/src/archivists/ChainFinalized/archivist.ts +2 -2
  114. package/src/archivists/ChainFinalized/local.ts +3 -3
  115. package/src/archivists/PendingBlocks/archivist.ts +4 -4
  116. package/src/archivists/PendingBlocks/local.ts +3 -3
  117. package/src/archivists/RejectedTransactions/archivist.ts +6 -6
  118. package/src/archivists/RejectedTransactions/local.ts +2 -3
  119. package/src/archivists/StakeIntentState/archivist.ts +13 -16
  120. package/src/archivists/StakeIntentState/local.ts +3 -5
  121. package/src/archivists/lib/localPersistentArchivist.ts +1 -1
  122. package/src/config/actors/Api.ts +29 -0
  123. package/src/config/actors/Bridge.ts +133 -0
  124. package/src/config/actors/Mempool.ts +39 -0
  125. package/src/config/actors/Producer.ts +56 -0
  126. package/src/config/actors/RewardRedemption.ts +21 -0
  127. package/src/config/actors/index.ts +6 -0
  128. package/src/config/index.ts +4 -0
  129. package/src/config/locators/actors/apiLocatorFromConfig.ts +25 -0
  130. package/src/config/locators/actors/bridgeLocatorFromConfig.ts +71 -0
  131. package/src/config/locators/actors/index.ts +6 -0
  132. package/src/config/locators/actors/mempoolLocatorFromConfig.ts +21 -0
  133. package/src/config/locators/actors/producerLocatorFromConfig.ts +66 -0
  134. package/src/config/locators/actors/rewardRedemptionLocatorFromConfig.ts +21 -0
  135. package/src/config/locators/actors/validatorLocatorFromConfig.ts +15 -0
  136. package/src/config/locators/contextFromConfigWithoutLocator.ts +25 -0
  137. package/src/config/locators/index.ts +7 -0
  138. package/src/config/locators/localLocatorFromConfig.ts +56 -0
  139. package/src/config/locators/locatorsFromConfig.ts +67 -0
  140. package/src/config/locators/remoteLocatorFromConfig.ts +48 -0
  141. package/src/config/locators/rootLocatorFromConfig.ts +47 -0
  142. package/src/config/locators/telemetryContextFromConfig.ts +15 -0
  143. package/src/config/mergeConfig.ts +11 -0
  144. package/src/config/tryParseConfig.ts +36 -0
  145. package/src/createDeclarationIntentBlock.ts +1 -1
  146. package/src/evm/initChainId.ts +3 -3
  147. package/src/evm/initEvmProvider.ts +8 -9
  148. package/src/evm/initInfuraProvider.ts +9 -7
  149. package/src/evm/initJsonRpcProvider.ts +9 -7
  150. package/src/health/initHealthEndpoints.ts +15 -18
  151. package/src/index.ts +1 -0
  152. package/src/init/index.ts +2 -2
  153. package/src/init/initActorAccount.ts +28 -0
  154. package/src/init/{initSeedPhrase.ts → initActorSeedPhrase.ts} +10 -10
  155. package/src/init/initBalanceSummaryMap.ts +5 -5
  156. package/src/init/initBridgedModule.ts +10 -12
  157. package/src/init/initEvmProvidersIfAvailable.ts +5 -4
  158. package/src/init/initFinalizationArchivistIfNeeded.ts +9 -6
  159. package/src/init/initServerNode.ts +9 -18
  160. package/src/init/initTransferSummaryMap.ts +5 -5
  161. package/src/init/initWallet.ts +33 -35
  162. package/src/manifest/getLocator.ts +4 -10
  163. package/src/manifest/loadNode.ts +6 -15
  164. package/src/orchestrator/Orchestrator.ts +4 -6
  165. package/dist/neutral/ConfigContext.d.ts +0 -8
  166. package/dist/neutral/ConfigContext.d.ts.map +0 -1
  167. package/dist/neutral/init/initProducerAccount.d.ts +0 -6
  168. package/dist/neutral/init/initProducerAccount.d.ts.map +0 -1
  169. package/dist/neutral/init/initSeedPhrase.d.ts +0 -6
  170. package/dist/neutral/init/initSeedPhrase.d.ts.map +0 -1
  171. package/src/ConfigContext.ts +0 -9
  172. package/src/init/initProducerAccount.ts +0 -30
@@ -0,0 +1,890 @@
1
+ import { z } from 'zod';
2
+ export declare const ApiConfigZod: z.ZodObject<{
3
+ chain: z.ZodDefault<z.ZodObject<{
4
+ id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHex, string>>>;
5
+ genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
6
+ readonly __hex: true;
7
+ } & {
8
+ readonly __address: true;
9
+ }, string>>>;
10
+ }, z.core.$strip>>;
11
+ evm: z.ZodDefault<z.ZodObject<{
12
+ chainId: z.ZodOptional<z.ZodString>;
13
+ infura: z.ZodOptional<z.ZodObject<{
14
+ projectId: z.ZodOptional<z.ZodString>;
15
+ projectSecret: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ jsonRpc: z.ZodOptional<z.ZodObject<{
18
+ url: z.ZodOptional<z.ZodURL>;
19
+ }, z.core.$strip>>;
20
+ }, z.core.$strip>>;
21
+ log: z.ZodDefault<z.ZodObject<{
22
+ logLevel: z.ZodDefault<z.ZodEnum<{
23
+ error: "error";
24
+ warn: "warn";
25
+ info: "info";
26
+ log: "log";
27
+ debug: "debug";
28
+ trace: "trace";
29
+ }>>;
30
+ silent: z.ZodDefault<z.ZodBoolean>;
31
+ }, z.core.$strip>>;
32
+ remote: z.ZodDefault<z.ZodObject<{
33
+ rpc: z.ZodOptional<z.ZodObject<{
34
+ url: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>>;
37
+ storage: z.ZodDefault<z.ZodObject<{
38
+ mongo: z.ZodOptional<z.ZodObject<{
39
+ connectionString: z.ZodOptional<z.ZodString>;
40
+ database: z.ZodOptional<z.ZodString>;
41
+ domain: z.ZodOptional<z.ZodString>;
42
+ password: z.ZodOptional<z.ZodString>;
43
+ username: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>>;
45
+ root: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>>;
47
+ telemetry: z.ZodDefault<z.ZodObject<{
48
+ metrics: z.ZodOptional<z.ZodObject<{
49
+ scrape: z.ZodObject<{
50
+ path: z.ZodDefault<z.ZodString>;
51
+ port: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
52
+ }, z.core.$strip>;
53
+ }, z.core.$strip>>;
54
+ otel: z.ZodOptional<z.ZodObject<{
55
+ otlpEndpoint: z.ZodOptional<z.ZodURL>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>>;
58
+ validation: z.ZodDefault<z.ZodObject<{
59
+ allowedRewardRedeemers: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
60
+ readonly __hex: true;
61
+ } & {
62
+ readonly __address: true;
63
+ }, string>>>>>;
64
+ allowedRewardEscrowAccountSigners: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
65
+ readonly __hex: true;
66
+ } & {
67
+ readonly __address: true;
68
+ }, string>>>>>;
69
+ }, z.core.$strip>>;
70
+ name: z.ZodString;
71
+ mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
72
+ healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
73
+ host: z.ZodDefault<z.ZodString>;
74
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
75
+ initRewardsCache: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>, z.ZodTransform<boolean, string | number | boolean>>>;
76
+ }, z.core.$strip>;
77
+ export type ApiConfig = z.infer<typeof ApiConfigZod>;
78
+ export declare const isApiConfig: <T>(value: T) => value is T & {
79
+ chain: {
80
+ id?: import("@xylabs/hex").BrandedHex | undefined;
81
+ genesisRewardAddress?: (Lowercase<string> & {
82
+ readonly __hex: true;
83
+ } & {
84
+ readonly __address: true;
85
+ }) | undefined;
86
+ };
87
+ evm: {
88
+ chainId?: string | undefined;
89
+ infura?: {
90
+ projectId?: string | undefined;
91
+ projectSecret?: string | undefined;
92
+ } | undefined;
93
+ jsonRpc?: {
94
+ url?: string | undefined;
95
+ } | undefined;
96
+ };
97
+ log: {
98
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
99
+ silent: boolean;
100
+ };
101
+ remote: {
102
+ rpc?: {
103
+ url: string;
104
+ } | undefined;
105
+ };
106
+ storage: {
107
+ mongo?: {
108
+ connectionString?: string | undefined;
109
+ database?: string | undefined;
110
+ domain?: string | undefined;
111
+ password?: string | undefined;
112
+ username?: string | undefined;
113
+ } | undefined;
114
+ root?: string | undefined;
115
+ };
116
+ telemetry: {
117
+ metrics?: {
118
+ scrape: {
119
+ path: string;
120
+ port?: number | undefined;
121
+ };
122
+ } | undefined;
123
+ otel?: {
124
+ otlpEndpoint?: string | undefined;
125
+ } | undefined;
126
+ };
127
+ validation: {
128
+ allowedRewardRedeemers?: (Lowercase<string> & {
129
+ readonly __hex: true;
130
+ } & {
131
+ readonly __address: true;
132
+ })[] | undefined;
133
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
134
+ readonly __hex: true;
135
+ } & {
136
+ readonly __address: true;
137
+ })[] | undefined;
138
+ };
139
+ name: string;
140
+ host: string;
141
+ port: number;
142
+ initRewardsCache: boolean;
143
+ mnemonic?: string | undefined;
144
+ healthCheckPort?: number | undefined;
145
+ };
146
+ export declare const asApiConfig: {
147
+ <T>(value: T): (T & {
148
+ chain: {
149
+ id?: import("@xylabs/hex").BrandedHex | undefined;
150
+ genesisRewardAddress?: (Lowercase<string> & {
151
+ readonly __hex: true;
152
+ } & {
153
+ readonly __address: true;
154
+ }) | undefined;
155
+ };
156
+ evm: {
157
+ chainId?: string | undefined;
158
+ infura?: {
159
+ projectId?: string | undefined;
160
+ projectSecret?: string | undefined;
161
+ } | undefined;
162
+ jsonRpc?: {
163
+ url?: string | undefined;
164
+ } | undefined;
165
+ };
166
+ log: {
167
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
168
+ silent: boolean;
169
+ };
170
+ remote: {
171
+ rpc?: {
172
+ url: string;
173
+ } | undefined;
174
+ };
175
+ storage: {
176
+ mongo?: {
177
+ connectionString?: string | undefined;
178
+ database?: string | undefined;
179
+ domain?: string | undefined;
180
+ password?: string | undefined;
181
+ username?: string | undefined;
182
+ } | undefined;
183
+ root?: string | undefined;
184
+ };
185
+ telemetry: {
186
+ metrics?: {
187
+ scrape: {
188
+ path: string;
189
+ port?: number | undefined;
190
+ };
191
+ } | undefined;
192
+ otel?: {
193
+ otlpEndpoint?: string | undefined;
194
+ } | undefined;
195
+ };
196
+ validation: {
197
+ allowedRewardRedeemers?: (Lowercase<string> & {
198
+ readonly __hex: true;
199
+ } & {
200
+ readonly __address: true;
201
+ })[] | undefined;
202
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
203
+ readonly __hex: true;
204
+ } & {
205
+ readonly __address: true;
206
+ })[] | undefined;
207
+ };
208
+ name: string;
209
+ host: string;
210
+ port: number;
211
+ initRewardsCache: boolean;
212
+ mnemonic?: string | undefined;
213
+ healthCheckPort?: number | undefined;
214
+ }) | undefined;
215
+ <T>(value: T, assert: import("@xylabs/zod").ZodFactoryConfig): T & {
216
+ chain: {
217
+ id?: import("@xylabs/hex").BrandedHex | undefined;
218
+ genesisRewardAddress?: (Lowercase<string> & {
219
+ readonly __hex: true;
220
+ } & {
221
+ readonly __address: true;
222
+ }) | undefined;
223
+ };
224
+ evm: {
225
+ chainId?: string | undefined;
226
+ infura?: {
227
+ projectId?: string | undefined;
228
+ projectSecret?: string | undefined;
229
+ } | undefined;
230
+ jsonRpc?: {
231
+ url?: string | undefined;
232
+ } | undefined;
233
+ };
234
+ log: {
235
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
236
+ silent: boolean;
237
+ };
238
+ remote: {
239
+ rpc?: {
240
+ url: string;
241
+ } | undefined;
242
+ };
243
+ storage: {
244
+ mongo?: {
245
+ connectionString?: string | undefined;
246
+ database?: string | undefined;
247
+ domain?: string | undefined;
248
+ password?: string | undefined;
249
+ username?: string | undefined;
250
+ } | undefined;
251
+ root?: string | undefined;
252
+ };
253
+ telemetry: {
254
+ metrics?: {
255
+ scrape: {
256
+ path: string;
257
+ port?: number | undefined;
258
+ };
259
+ } | undefined;
260
+ otel?: {
261
+ otlpEndpoint?: string | undefined;
262
+ } | undefined;
263
+ };
264
+ validation: {
265
+ allowedRewardRedeemers?: (Lowercase<string> & {
266
+ readonly __hex: true;
267
+ } & {
268
+ readonly __address: true;
269
+ })[] | undefined;
270
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
271
+ readonly __hex: true;
272
+ } & {
273
+ readonly __address: true;
274
+ })[] | undefined;
275
+ };
276
+ name: string;
277
+ host: string;
278
+ port: number;
279
+ initRewardsCache: boolean;
280
+ mnemonic?: string | undefined;
281
+ healthCheckPort?: number | undefined;
282
+ };
283
+ };
284
+ export declare const toApiConfig: {
285
+ <T>(value: T): (T & {
286
+ chain: {
287
+ id?: import("@xylabs/hex").BrandedHex | undefined;
288
+ genesisRewardAddress?: (Lowercase<string> & {
289
+ readonly __hex: true;
290
+ } & {
291
+ readonly __address: true;
292
+ }) | undefined;
293
+ };
294
+ evm: {
295
+ chainId?: string | undefined;
296
+ infura?: {
297
+ projectId?: string | undefined;
298
+ projectSecret?: string | undefined;
299
+ } | undefined;
300
+ jsonRpc?: {
301
+ url?: string | undefined;
302
+ } | undefined;
303
+ };
304
+ log: {
305
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
306
+ silent: boolean;
307
+ };
308
+ remote: {
309
+ rpc?: {
310
+ url: string;
311
+ } | undefined;
312
+ };
313
+ storage: {
314
+ mongo?: {
315
+ connectionString?: string | undefined;
316
+ database?: string | undefined;
317
+ domain?: string | undefined;
318
+ password?: string | undefined;
319
+ username?: string | undefined;
320
+ } | undefined;
321
+ root?: string | undefined;
322
+ };
323
+ telemetry: {
324
+ metrics?: {
325
+ scrape: {
326
+ path: string;
327
+ port?: number | undefined;
328
+ };
329
+ } | undefined;
330
+ otel?: {
331
+ otlpEndpoint?: string | undefined;
332
+ } | undefined;
333
+ };
334
+ validation: {
335
+ allowedRewardRedeemers?: (Lowercase<string> & {
336
+ readonly __hex: true;
337
+ } & {
338
+ readonly __address: true;
339
+ })[] | undefined;
340
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
341
+ readonly __hex: true;
342
+ } & {
343
+ readonly __address: true;
344
+ })[] | undefined;
345
+ };
346
+ name: string;
347
+ host: string;
348
+ port: number;
349
+ initRewardsCache: boolean;
350
+ mnemonic?: string | undefined;
351
+ healthCheckPort?: number | undefined;
352
+ }) | undefined;
353
+ <T>(value: T, assert: import("@xylabs/zod").ZodFactoryConfig): T & {
354
+ chain: {
355
+ id?: import("@xylabs/hex").BrandedHex | undefined;
356
+ genesisRewardAddress?: (Lowercase<string> & {
357
+ readonly __hex: true;
358
+ } & {
359
+ readonly __address: true;
360
+ }) | undefined;
361
+ };
362
+ evm: {
363
+ chainId?: string | undefined;
364
+ infura?: {
365
+ projectId?: string | undefined;
366
+ projectSecret?: string | undefined;
367
+ } | undefined;
368
+ jsonRpc?: {
369
+ url?: string | undefined;
370
+ } | undefined;
371
+ };
372
+ log: {
373
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
374
+ silent: boolean;
375
+ };
376
+ remote: {
377
+ rpc?: {
378
+ url: string;
379
+ } | undefined;
380
+ };
381
+ storage: {
382
+ mongo?: {
383
+ connectionString?: string | undefined;
384
+ database?: string | undefined;
385
+ domain?: string | undefined;
386
+ password?: string | undefined;
387
+ username?: string | undefined;
388
+ } | undefined;
389
+ root?: string | undefined;
390
+ };
391
+ telemetry: {
392
+ metrics?: {
393
+ scrape: {
394
+ path: string;
395
+ port?: number | undefined;
396
+ };
397
+ } | undefined;
398
+ otel?: {
399
+ otlpEndpoint?: string | undefined;
400
+ } | undefined;
401
+ };
402
+ validation: {
403
+ allowedRewardRedeemers?: (Lowercase<string> & {
404
+ readonly __hex: true;
405
+ } & {
406
+ readonly __address: true;
407
+ })[] | undefined;
408
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
409
+ readonly __hex: true;
410
+ } & {
411
+ readonly __address: true;
412
+ })[] | undefined;
413
+ };
414
+ name: string;
415
+ host: string;
416
+ port: number;
417
+ initRewardsCache: boolean;
418
+ mnemonic?: string | undefined;
419
+ healthCheckPort?: number | undefined;
420
+ };
421
+ };
422
+ export declare const ApiConfigContext: z.ZodObject<{
423
+ logger: import("zod").ZodOptional<import("zod").ZodCustom<import("@xylabs/logger").Logger, import("@xylabs/logger").Logger>>;
424
+ meterProvider: import("zod").ZodOptional<import("zod").ZodCustom<import("@opentelemetry/api").MeterProvider, import("@opentelemetry/api").MeterProvider>>;
425
+ singletons: import("zod").ZodRecord<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodSymbol]>, import("zod").ZodUnknown>;
426
+ timeBudgetLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
427
+ traceProvider: import("zod").ZodOptional<import("zod").ZodCustom<import("@opentelemetry/api").TracerProvider, import("@opentelemetry/api").TracerProvider>>;
428
+ caches: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodCustom<import("@xyo-network/xl1-sdk").MapType<string, unknown>, import("@xyo-network/xl1-sdk").MapType<string, unknown>>>;
429
+ config: z.ZodObject<{
430
+ chain: z.ZodDefault<z.ZodObject<{
431
+ id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHex, string>>>;
432
+ genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
433
+ readonly __hex: true;
434
+ } & {
435
+ readonly __address: true;
436
+ }, string>>>;
437
+ }, z.core.$strip>>;
438
+ evm: z.ZodDefault<z.ZodObject<{
439
+ chainId: z.ZodOptional<z.ZodString>;
440
+ infura: z.ZodOptional<z.ZodObject<{
441
+ projectId: z.ZodOptional<z.ZodString>;
442
+ projectSecret: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$strip>>;
444
+ jsonRpc: z.ZodOptional<z.ZodObject<{
445
+ url: z.ZodOptional<z.ZodURL>;
446
+ }, z.core.$strip>>;
447
+ }, z.core.$strip>>;
448
+ log: z.ZodDefault<z.ZodObject<{
449
+ logLevel: z.ZodDefault<z.ZodEnum<{
450
+ error: "error";
451
+ warn: "warn";
452
+ info: "info";
453
+ log: "log";
454
+ debug: "debug";
455
+ trace: "trace";
456
+ }>>;
457
+ silent: z.ZodDefault<z.ZodBoolean>;
458
+ }, z.core.$strip>>;
459
+ remote: z.ZodDefault<z.ZodObject<{
460
+ rpc: z.ZodOptional<z.ZodObject<{
461
+ url: z.ZodString;
462
+ }, z.core.$strip>>;
463
+ }, z.core.$strip>>;
464
+ storage: z.ZodDefault<z.ZodObject<{
465
+ mongo: z.ZodOptional<z.ZodObject<{
466
+ connectionString: z.ZodOptional<z.ZodString>;
467
+ database: z.ZodOptional<z.ZodString>;
468
+ domain: z.ZodOptional<z.ZodString>;
469
+ password: z.ZodOptional<z.ZodString>;
470
+ username: z.ZodOptional<z.ZodString>;
471
+ }, z.core.$strip>>;
472
+ root: z.ZodOptional<z.ZodString>;
473
+ }, z.core.$strip>>;
474
+ telemetry: z.ZodDefault<z.ZodObject<{
475
+ metrics: z.ZodOptional<z.ZodObject<{
476
+ scrape: z.ZodObject<{
477
+ path: z.ZodDefault<z.ZodString>;
478
+ port: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
479
+ }, z.core.$strip>;
480
+ }, z.core.$strip>>;
481
+ otel: z.ZodOptional<z.ZodObject<{
482
+ otlpEndpoint: z.ZodOptional<z.ZodURL>;
483
+ }, z.core.$strip>>;
484
+ }, z.core.$strip>>;
485
+ validation: z.ZodDefault<z.ZodObject<{
486
+ allowedRewardRedeemers: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
487
+ readonly __hex: true;
488
+ } & {
489
+ readonly __address: true;
490
+ }, string>>>>>;
491
+ allowedRewardEscrowAccountSigners: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
492
+ readonly __hex: true;
493
+ } & {
494
+ readonly __address: true;
495
+ }, string>>>>>;
496
+ }, z.core.$strip>>;
497
+ name: z.ZodString;
498
+ mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
499
+ healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
500
+ host: z.ZodDefault<z.ZodString>;
501
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
502
+ initRewardsCache: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>, z.ZodTransform<boolean, string | number | boolean>>>;
503
+ }, z.core.$strip>;
504
+ }, z.core.$strip>;
505
+ export type ApiConfigContext = z.infer<typeof ApiConfigContext>;
506
+ export declare const isApiConfigContext: <T>(value: T) => value is T & {
507
+ singletons: Record<string | symbol, unknown>;
508
+ caches: Record<string, import("@xyo-network/xl1-sdk").MapType<string, unknown>>;
509
+ config: {
510
+ chain: {
511
+ id?: import("@xylabs/hex").BrandedHex | undefined;
512
+ genesisRewardAddress?: (Lowercase<string> & {
513
+ readonly __hex: true;
514
+ } & {
515
+ readonly __address: true;
516
+ }) | undefined;
517
+ };
518
+ evm: {
519
+ chainId?: string | undefined;
520
+ infura?: {
521
+ projectId?: string | undefined;
522
+ projectSecret?: string | undefined;
523
+ } | undefined;
524
+ jsonRpc?: {
525
+ url?: string | undefined;
526
+ } | undefined;
527
+ };
528
+ log: {
529
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
530
+ silent: boolean;
531
+ };
532
+ remote: {
533
+ rpc?: {
534
+ url: string;
535
+ } | undefined;
536
+ };
537
+ storage: {
538
+ mongo?: {
539
+ connectionString?: string | undefined;
540
+ database?: string | undefined;
541
+ domain?: string | undefined;
542
+ password?: string | undefined;
543
+ username?: string | undefined;
544
+ } | undefined;
545
+ root?: string | undefined;
546
+ };
547
+ telemetry: {
548
+ metrics?: {
549
+ scrape: {
550
+ path: string;
551
+ port?: number | undefined;
552
+ };
553
+ } | undefined;
554
+ otel?: {
555
+ otlpEndpoint?: string | undefined;
556
+ } | undefined;
557
+ };
558
+ validation: {
559
+ allowedRewardRedeemers?: (Lowercase<string> & {
560
+ readonly __hex: true;
561
+ } & {
562
+ readonly __address: true;
563
+ })[] | undefined;
564
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
565
+ readonly __hex: true;
566
+ } & {
567
+ readonly __address: true;
568
+ })[] | undefined;
569
+ };
570
+ name: string;
571
+ host: string;
572
+ port: number;
573
+ initRewardsCache: boolean;
574
+ mnemonic?: string | undefined;
575
+ healthCheckPort?: number | undefined;
576
+ };
577
+ logger?: import("@xylabs/logger").Logger | undefined;
578
+ meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
579
+ timeBudgetLimit?: number | undefined;
580
+ traceProvider?: import("@opentelemetry/api").TracerProvider | undefined;
581
+ };
582
+ export declare const asApiConfigContext: {
583
+ <T>(value: T): (T & {
584
+ singletons: Record<string | symbol, unknown>;
585
+ caches: Record<string, import("@xyo-network/xl1-sdk").MapType<string, unknown>>;
586
+ config: {
587
+ chain: {
588
+ id?: import("@xylabs/hex").BrandedHex | undefined;
589
+ genesisRewardAddress?: (Lowercase<string> & {
590
+ readonly __hex: true;
591
+ } & {
592
+ readonly __address: true;
593
+ }) | undefined;
594
+ };
595
+ evm: {
596
+ chainId?: string | undefined;
597
+ infura?: {
598
+ projectId?: string | undefined;
599
+ projectSecret?: string | undefined;
600
+ } | undefined;
601
+ jsonRpc?: {
602
+ url?: string | undefined;
603
+ } | undefined;
604
+ };
605
+ log: {
606
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
607
+ silent: boolean;
608
+ };
609
+ remote: {
610
+ rpc?: {
611
+ url: string;
612
+ } | undefined;
613
+ };
614
+ storage: {
615
+ mongo?: {
616
+ connectionString?: string | undefined;
617
+ database?: string | undefined;
618
+ domain?: string | undefined;
619
+ password?: string | undefined;
620
+ username?: string | undefined;
621
+ } | undefined;
622
+ root?: string | undefined;
623
+ };
624
+ telemetry: {
625
+ metrics?: {
626
+ scrape: {
627
+ path: string;
628
+ port?: number | undefined;
629
+ };
630
+ } | undefined;
631
+ otel?: {
632
+ otlpEndpoint?: string | undefined;
633
+ } | undefined;
634
+ };
635
+ validation: {
636
+ allowedRewardRedeemers?: (Lowercase<string> & {
637
+ readonly __hex: true;
638
+ } & {
639
+ readonly __address: true;
640
+ })[] | undefined;
641
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
642
+ readonly __hex: true;
643
+ } & {
644
+ readonly __address: true;
645
+ })[] | undefined;
646
+ };
647
+ name: string;
648
+ host: string;
649
+ port: number;
650
+ initRewardsCache: boolean;
651
+ mnemonic?: string | undefined;
652
+ healthCheckPort?: number | undefined;
653
+ };
654
+ logger?: import("@xylabs/logger").Logger | undefined;
655
+ meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
656
+ timeBudgetLimit?: number | undefined;
657
+ traceProvider?: import("@opentelemetry/api").TracerProvider | undefined;
658
+ }) | undefined;
659
+ <T>(value: T, assert: import("@xylabs/zod").ZodFactoryConfig): T & {
660
+ singletons: Record<string | symbol, unknown>;
661
+ caches: Record<string, import("@xyo-network/xl1-sdk").MapType<string, unknown>>;
662
+ config: {
663
+ chain: {
664
+ id?: import("@xylabs/hex").BrandedHex | undefined;
665
+ genesisRewardAddress?: (Lowercase<string> & {
666
+ readonly __hex: true;
667
+ } & {
668
+ readonly __address: true;
669
+ }) | undefined;
670
+ };
671
+ evm: {
672
+ chainId?: string | undefined;
673
+ infura?: {
674
+ projectId?: string | undefined;
675
+ projectSecret?: string | undefined;
676
+ } | undefined;
677
+ jsonRpc?: {
678
+ url?: string | undefined;
679
+ } | undefined;
680
+ };
681
+ log: {
682
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
683
+ silent: boolean;
684
+ };
685
+ remote: {
686
+ rpc?: {
687
+ url: string;
688
+ } | undefined;
689
+ };
690
+ storage: {
691
+ mongo?: {
692
+ connectionString?: string | undefined;
693
+ database?: string | undefined;
694
+ domain?: string | undefined;
695
+ password?: string | undefined;
696
+ username?: string | undefined;
697
+ } | undefined;
698
+ root?: string | undefined;
699
+ };
700
+ telemetry: {
701
+ metrics?: {
702
+ scrape: {
703
+ path: string;
704
+ port?: number | undefined;
705
+ };
706
+ } | undefined;
707
+ otel?: {
708
+ otlpEndpoint?: string | undefined;
709
+ } | undefined;
710
+ };
711
+ validation: {
712
+ allowedRewardRedeemers?: (Lowercase<string> & {
713
+ readonly __hex: true;
714
+ } & {
715
+ readonly __address: true;
716
+ })[] | undefined;
717
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
718
+ readonly __hex: true;
719
+ } & {
720
+ readonly __address: true;
721
+ })[] | undefined;
722
+ };
723
+ name: string;
724
+ host: string;
725
+ port: number;
726
+ initRewardsCache: boolean;
727
+ mnemonic?: string | undefined;
728
+ healthCheckPort?: number | undefined;
729
+ };
730
+ logger?: import("@xylabs/logger").Logger | undefined;
731
+ meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
732
+ timeBudgetLimit?: number | undefined;
733
+ traceProvider?: import("@opentelemetry/api").TracerProvider | undefined;
734
+ };
735
+ };
736
+ export declare const toApiConfigContext: {
737
+ <T>(value: T): (T & {
738
+ singletons: Record<string | symbol, unknown>;
739
+ caches: Record<string, import("@xyo-network/xl1-sdk").MapType<string, unknown>>;
740
+ config: {
741
+ chain: {
742
+ id?: import("@xylabs/hex").BrandedHex | undefined;
743
+ genesisRewardAddress?: (Lowercase<string> & {
744
+ readonly __hex: true;
745
+ } & {
746
+ readonly __address: true;
747
+ }) | undefined;
748
+ };
749
+ evm: {
750
+ chainId?: string | undefined;
751
+ infura?: {
752
+ projectId?: string | undefined;
753
+ projectSecret?: string | undefined;
754
+ } | undefined;
755
+ jsonRpc?: {
756
+ url?: string | undefined;
757
+ } | undefined;
758
+ };
759
+ log: {
760
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
761
+ silent: boolean;
762
+ };
763
+ remote: {
764
+ rpc?: {
765
+ url: string;
766
+ } | undefined;
767
+ };
768
+ storage: {
769
+ mongo?: {
770
+ connectionString?: string | undefined;
771
+ database?: string | undefined;
772
+ domain?: string | undefined;
773
+ password?: string | undefined;
774
+ username?: string | undefined;
775
+ } | undefined;
776
+ root?: string | undefined;
777
+ };
778
+ telemetry: {
779
+ metrics?: {
780
+ scrape: {
781
+ path: string;
782
+ port?: number | undefined;
783
+ };
784
+ } | undefined;
785
+ otel?: {
786
+ otlpEndpoint?: string | undefined;
787
+ } | undefined;
788
+ };
789
+ validation: {
790
+ allowedRewardRedeemers?: (Lowercase<string> & {
791
+ readonly __hex: true;
792
+ } & {
793
+ readonly __address: true;
794
+ })[] | undefined;
795
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
796
+ readonly __hex: true;
797
+ } & {
798
+ readonly __address: true;
799
+ })[] | undefined;
800
+ };
801
+ name: string;
802
+ host: string;
803
+ port: number;
804
+ initRewardsCache: boolean;
805
+ mnemonic?: string | undefined;
806
+ healthCheckPort?: number | undefined;
807
+ };
808
+ logger?: import("@xylabs/logger").Logger | undefined;
809
+ meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
810
+ timeBudgetLimit?: number | undefined;
811
+ traceProvider?: import("@opentelemetry/api").TracerProvider | undefined;
812
+ }) | undefined;
813
+ <T>(value: T, assert: import("@xylabs/zod").ZodFactoryConfig): T & {
814
+ singletons: Record<string | symbol, unknown>;
815
+ caches: Record<string, import("@xyo-network/xl1-sdk").MapType<string, unknown>>;
816
+ config: {
817
+ chain: {
818
+ id?: import("@xylabs/hex").BrandedHex | undefined;
819
+ genesisRewardAddress?: (Lowercase<string> & {
820
+ readonly __hex: true;
821
+ } & {
822
+ readonly __address: true;
823
+ }) | undefined;
824
+ };
825
+ evm: {
826
+ chainId?: string | undefined;
827
+ infura?: {
828
+ projectId?: string | undefined;
829
+ projectSecret?: string | undefined;
830
+ } | undefined;
831
+ jsonRpc?: {
832
+ url?: string | undefined;
833
+ } | undefined;
834
+ };
835
+ log: {
836
+ logLevel: "log" | "error" | "warn" | "info" | "debug" | "trace";
837
+ silent: boolean;
838
+ };
839
+ remote: {
840
+ rpc?: {
841
+ url: string;
842
+ } | undefined;
843
+ };
844
+ storage: {
845
+ mongo?: {
846
+ connectionString?: string | undefined;
847
+ database?: string | undefined;
848
+ domain?: string | undefined;
849
+ password?: string | undefined;
850
+ username?: string | undefined;
851
+ } | undefined;
852
+ root?: string | undefined;
853
+ };
854
+ telemetry: {
855
+ metrics?: {
856
+ scrape: {
857
+ path: string;
858
+ port?: number | undefined;
859
+ };
860
+ } | undefined;
861
+ otel?: {
862
+ otlpEndpoint?: string | undefined;
863
+ } | undefined;
864
+ };
865
+ validation: {
866
+ allowedRewardRedeemers?: (Lowercase<string> & {
867
+ readonly __hex: true;
868
+ } & {
869
+ readonly __address: true;
870
+ })[] | undefined;
871
+ allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
872
+ readonly __hex: true;
873
+ } & {
874
+ readonly __address: true;
875
+ })[] | undefined;
876
+ };
877
+ name: string;
878
+ host: string;
879
+ port: number;
880
+ initRewardsCache: boolean;
881
+ mnemonic?: string | undefined;
882
+ healthCheckPort?: number | undefined;
883
+ };
884
+ logger?: import("@xylabs/logger").Logger | undefined;
885
+ meterProvider?: import("@opentelemetry/api").MeterProvider | undefined;
886
+ timeBudgetLimit?: number | undefined;
887
+ traceProvider?: import("@opentelemetry/api").TracerProvider | undefined;
888
+ };
889
+ };
890
+ //# sourceMappingURL=Api.d.ts.map