@xyo-network/xl1-protocol-sdk 2.2.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/ChainContextHelpers.d.ts +1 -1
- package/dist/neutral/ChainContextHelpers.d.ts.map +1 -1
- package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts +35 -2
- package/dist/neutral/CreatableProvider/AbstractCreatableProvider.d.ts.map +1 -1
- package/dist/neutral/CreatableProvider/ProviderFactory.d.ts.map +1 -1
- package/dist/neutral/CreatableProvider/ProviderFactoryLocator.d.ts.map +1 -1
- package/dist/neutral/amount/index.d.ts +1 -1
- package/dist/neutral/amount/splitOnDecimalToString.d.ts.map +1 -1
- package/dist/neutral/amount/{XL1Amount.d.ts → xl1Amount.d.ts} +1 -1
- package/dist/neutral/amount/{XL1Amount.d.ts.map → xl1Amount.d.ts.map} +1 -1
- package/dist/neutral/block/hydrate/hydrateBlock.d.ts.map +1 -1
- package/dist/neutral/block/hydrate/tryHydrateBlock.d.ts.map +1 -1
- package/dist/neutral/block/primitives/hashFromBlockNumber.d.ts.map +1 -1
- package/dist/neutral/block/primitives/validateTransactionOpcodes.d.ts.map +1 -1
- package/dist/neutral/capabilities/Capability.d.ts +1 -8
- package/dist/neutral/capabilities/Capability.d.ts.map +1 -1
- package/dist/neutral/capabilities/Provider.d.ts +14 -23
- package/dist/neutral/capabilities/Provider.d.ts.map +1 -1
- package/dist/neutral/capabilities/connectionTypes.d.ts +9 -0
- package/dist/neutral/capabilities/connectionTypes.d.ts.map +1 -0
- package/dist/neutral/capabilities/index.d.ts +1 -0
- package/dist/neutral/capabilities/index.d.ts.map +1 -1
- package/dist/neutral/capabilities/resolveProviders.d.ts +27 -20
- package/dist/neutral/capabilities/resolveProviders.d.ts.map +1 -1
- package/dist/neutral/config/Actor.d.ts +216 -12
- package/dist/neutral/config/Actor.d.ts.map +1 -1
- package/dist/neutral/config/Actors.d.ts +41 -2
- package/dist/neutral/config/Actors.d.ts.map +1 -1
- package/dist/neutral/config/Base.d.ts +41 -2
- package/dist/neutral/config/Base.d.ts.map +1 -1
- package/dist/neutral/config/Config.d.ts +152 -8
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/HostActor.d.ts +216 -12
- package/dist/neutral/config/HostActor.d.ts.map +1 -1
- package/dist/neutral/config/ProviderBinding.d.ts +4 -5
- package/dist/neutral/config/ProviderBinding.d.ts.map +1 -1
- package/dist/neutral/config/adaptLegacyConfig.d.ts +2 -3
- package/dist/neutral/config/adaptLegacyConfig.d.ts.map +1 -1
- package/dist/neutral/config/connections/index.d.ts +6 -0
- package/dist/neutral/config/connections/index.d.ts.map +1 -0
- package/dist/neutral/config/index.d.ts +2 -0
- package/dist/neutral/config/index.d.ts.map +1 -1
- package/dist/neutral/config/normalizeConnectionsConfig.d.ts +20 -0
- package/dist/neutral/config/normalizeConnectionsConfig.d.ts.map +1 -0
- package/dist/neutral/config/transports/Transport.d.ts +18 -3
- package/dist/neutral/config/transports/Transport.d.ts.map +1 -1
- package/dist/neutral/context/Actor.d.ts +216 -12
- package/dist/neutral/context/Actor.d.ts.map +1 -1
- package/dist/neutral/context/HostActor.d.ts +216 -12
- package/dist/neutral/context/HostActor.d.ts.map +1 -1
- package/dist/neutral/createDeclarationPayload.d.ts.map +1 -1
- package/dist/neutral/createTransferPayload.d.ts.map +1 -1
- package/dist/neutral/getFileConfig.d.ts +70 -4
- package/dist/neutral/getFileConfig.d.ts.map +1 -1
- package/dist/neutral/getFileConfig.mjs +206 -192
- package/dist/neutral/getFileConfig.mjs.map +4 -4
- package/dist/neutral/index.mjs +953 -656
- package/dist/neutral/index.mjs.map +4 -4
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts +216 -12
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts.map +1 -1
- package/dist/neutral/primitives/chain/step/chainStepRewardAddress.d.ts.map +1 -1
- package/dist/neutral/primitives/chain/step/stepRewardTotal.d.ts.map +1 -1
- package/dist/neutral/primitives/chain/time/{externalBlockNumberFromXL1BlockNumber.d.ts → externalBlockNumberFromXl1BlockNumber.d.ts} +1 -1
- package/dist/neutral/primitives/chain/time/{externalBlockNumberFromXL1BlockNumber.d.ts.map → externalBlockNumberFromXl1BlockNumber.d.ts.map} +1 -1
- package/dist/neutral/primitives/chain/time/{externalBlockRangeFromXL1BlockRange.d.ts → externalBlockRangeFromXl1BlockRange.d.ts} +1 -1
- package/dist/neutral/primitives/chain/time/{externalBlockRangeFromXL1BlockRange.d.ts.map → externalBlockRangeFromXl1BlockRange.d.ts.map} +1 -1
- package/dist/neutral/primitives/chain/time/index.d.ts +2 -2
- package/dist/neutral/primitives/datalake/PayloadLocator.d.ts.map +1 -1
- package/dist/neutral/primitives/datalake/addDataLakePayloadsToPayloads.d.ts.map +1 -1
- package/dist/neutral/primitives/readPayloadMapFromStore.d.ts.map +1 -1
- package/dist/neutral/primitives/stake/activeStakeAtTimeByAddress.d.ts.map +1 -1
- package/dist/neutral/primitives/stake/activeStakeAtTimeByPosition.d.ts.map +1 -1
- package/dist/neutral/primitives/stake/weightedStakeForRangeByPosition.d.ts.map +1 -1
- package/dist/neutral/primitives/state/findMostRecentBlock.d.ts.map +1 -1
- package/dist/neutral/primitives/uncle/findUncles.d.ts.map +1 -1
- package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts +3 -6
- package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts.map +1 -1
- package/dist/neutral/simple/block/SimpleBlockViewer.d.ts.map +1 -1
- package/dist/neutral/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts.map +1 -1
- package/dist/neutral/simple/blockValidation/SimpleBlockValidationViewer.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/AbstractRestDataLake.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/RestDataLakeRunner.d.ts.map +1 -1
- package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts.map +1 -1
- package/dist/neutral/simple/finalization/SimpleFinalizationRunner.d.ts.map +1 -1
- package/dist/neutral/simple/finalization/SimpleFinalizationViewer.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts.map +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolViewer.d.ts +2 -0
- package/dist/neutral/simple/mempool/SimpleMempoolViewer.d.ts.map +1 -1
- package/dist/neutral/simple/network/SimpleXyoNetwork.d.ts.map +1 -1
- package/dist/neutral/simple/timeSync2/SimpleTimeSyncViewer.d.ts.map +1 -1
- package/dist/neutral/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts.map +1 -1
- package/dist/neutral/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/balances/balancesStepSummaryFromRange.d.ts.map +1 -1
- package/dist/neutral/test/buildBlock.d.ts.map +1 -1
- package/dist/neutral/test/buildRandomChain.d.ts.map +1 -1
- package/dist/neutral/test/buildRandomGenesisBlock.d.ts.map +1 -1
- package/dist/neutral/test/buildRandomTransaction.d.ts.map +1 -1
- package/dist/neutral/test/createProducerChainStakeIntentTransaction.d.ts.map +1 -1
- package/dist/neutral/test/index.mjs +344 -279
- package/dist/neutral/test/index.mjs.map +4 -4
- package/dist/neutral/transaction/buildTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/confirmSubmittedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/hydrateTransaction.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -32,8 +32,42 @@ export declare const ConfigZod: z.ZodMiniObject<{
|
|
|
32
32
|
}>>;
|
|
33
33
|
silent: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
34
34
|
}, z.core.$strip>>;
|
|
35
|
+
connections: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
36
|
+
access: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
37
|
+
read: "read";
|
|
38
|
+
write: "write";
|
|
39
|
+
}>>;
|
|
40
|
+
root: import("zod").ZodString;
|
|
41
|
+
store: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
+
type: import("zod").ZodLiteral<"lmdb">;
|
|
43
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
44
|
+
type: import("zod").ZodLiteral<"mongo">;
|
|
45
|
+
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
database: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
51
|
+
protocol: import("zod").ZodDefault<import("zod").ZodString>;
|
|
52
|
+
url: import("zod").ZodString;
|
|
53
|
+
type: import("zod").ZodLiteral<"rpc">;
|
|
54
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
55
|
+
type: import("zod").ZodLiteral<"rest">;
|
|
56
|
+
baseUrl: import("zod").ZodString;
|
|
57
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
58
|
+
bucket: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
readUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
type: import("zod").ZodLiteral<"s3">;
|
|
62
|
+
accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
+
secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
66
|
+
type: import("zod").ZodLiteral<"evm-rpc">;
|
|
67
|
+
url: import("zod").ZodString;
|
|
68
|
+
}, z.core.$strip>], "type">>>>;
|
|
35
69
|
providerBindings: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
36
|
-
|
|
70
|
+
connection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
71
|
transport: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
72
|
}, z.core.$strip>>>>;
|
|
39
73
|
providers: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -51,8 +85,13 @@ export declare const ConfigZod: z.ZodMiniObject<{
|
|
|
51
85
|
}, z.core.$strip>]>>;
|
|
52
86
|
}, z.core.$strip>>;
|
|
53
87
|
transports: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
54
|
-
|
|
88
|
+
access: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
89
|
+
read: "read";
|
|
90
|
+
write: "write";
|
|
91
|
+
}>>;
|
|
55
92
|
root: import("zod").ZodString;
|
|
93
|
+
store: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
type: import("zod").ZodLiteral<"lmdb">;
|
|
56
95
|
}, z.core.$strip>, import("zod").ZodObject<{
|
|
57
96
|
type: import("zod").ZodLiteral<"mongo">;
|
|
58
97
|
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -175,8 +214,42 @@ export declare const ConfigZod: z.ZodMiniObject<{
|
|
|
175
214
|
}>>;
|
|
176
215
|
silent: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
177
216
|
}, z.core.$strip>>;
|
|
217
|
+
connections: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
218
|
+
access: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
219
|
+
read: "read";
|
|
220
|
+
write: "write";
|
|
221
|
+
}>>;
|
|
222
|
+
root: import("zod").ZodString;
|
|
223
|
+
store: import("zod").ZodOptional<import("zod").ZodString>;
|
|
224
|
+
type: import("zod").ZodLiteral<"lmdb">;
|
|
225
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
226
|
+
type: import("zod").ZodLiteral<"mongo">;
|
|
227
|
+
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
228
|
+
database: import("zod").ZodOptional<import("zod").ZodString>;
|
|
229
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
230
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
231
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
232
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
233
|
+
protocol: import("zod").ZodDefault<import("zod").ZodString>;
|
|
234
|
+
url: import("zod").ZodString;
|
|
235
|
+
type: import("zod").ZodLiteral<"rpc">;
|
|
236
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
237
|
+
type: import("zod").ZodLiteral<"rest">;
|
|
238
|
+
baseUrl: import("zod").ZodString;
|
|
239
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
240
|
+
bucket: import("zod").ZodOptional<import("zod").ZodString>;
|
|
241
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
242
|
+
readUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
243
|
+
type: import("zod").ZodLiteral<"s3">;
|
|
244
|
+
accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
245
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
246
|
+
secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
247
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
248
|
+
type: import("zod").ZodLiteral<"evm-rpc">;
|
|
249
|
+
url: import("zod").ZodString;
|
|
250
|
+
}, z.core.$strip>], "type">>>>;
|
|
178
251
|
providerBindings: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
179
|
-
|
|
252
|
+
connection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
253
|
transport: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
254
|
}, z.core.$strip>>>>;
|
|
182
255
|
providers: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -194,8 +267,13 @@ export declare const ConfigZod: z.ZodMiniObject<{
|
|
|
194
267
|
}, z.core.$strip>]>>;
|
|
195
268
|
}, z.core.$strip>>;
|
|
196
269
|
transports: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
197
|
-
|
|
270
|
+
access: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
271
|
+
read: "read";
|
|
272
|
+
write: "write";
|
|
273
|
+
}>>;
|
|
198
274
|
root: import("zod").ZodString;
|
|
275
|
+
store: import("zod").ZodOptional<import("zod").ZodString>;
|
|
276
|
+
type: import("zod").ZodLiteral<"lmdb">;
|
|
199
277
|
}, z.core.$strip>, import("zod").ZodObject<{
|
|
200
278
|
type: import("zod").ZodLiteral<"mongo">;
|
|
201
279
|
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -318,8 +396,39 @@ export declare function resolveConfig(config: DeepPartial<Config>): {
|
|
|
318
396
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
319
397
|
silent: boolean;
|
|
320
398
|
};
|
|
399
|
+
connections: Record<string, {
|
|
400
|
+
root: string;
|
|
401
|
+
type: "lmdb";
|
|
402
|
+
access?: "read" | "write" | undefined;
|
|
403
|
+
store?: string | undefined;
|
|
404
|
+
} | {
|
|
405
|
+
type: "mongo";
|
|
406
|
+
connectionString?: string | undefined;
|
|
407
|
+
database?: string | undefined;
|
|
408
|
+
domain?: string | undefined;
|
|
409
|
+
password?: string | undefined;
|
|
410
|
+
username?: string | undefined;
|
|
411
|
+
} | {
|
|
412
|
+
protocol: string;
|
|
413
|
+
url: string;
|
|
414
|
+
type: "rpc";
|
|
415
|
+
} | {
|
|
416
|
+
type: "rest";
|
|
417
|
+
baseUrl: string;
|
|
418
|
+
} | {
|
|
419
|
+
type: "s3";
|
|
420
|
+
bucket?: string | undefined;
|
|
421
|
+
prefix?: string | undefined;
|
|
422
|
+
readUrl?: string | undefined;
|
|
423
|
+
accessKeyId?: string | undefined;
|
|
424
|
+
accountId?: string | undefined;
|
|
425
|
+
secretAccessKey?: string | undefined;
|
|
426
|
+
} | {
|
|
427
|
+
type: "evm-rpc";
|
|
428
|
+
url: string;
|
|
429
|
+
}>;
|
|
321
430
|
providerBindings: Record<string, {
|
|
322
|
-
|
|
431
|
+
connection?: string | undefined;
|
|
323
432
|
transport?: string | undefined;
|
|
324
433
|
}>;
|
|
325
434
|
providers: {
|
|
@@ -338,8 +447,10 @@ export declare function resolveConfig(config: DeepPartial<Config>): {
|
|
|
338
447
|
} | undefined;
|
|
339
448
|
};
|
|
340
449
|
transports: Record<string, {
|
|
341
|
-
type: "lmdb";
|
|
342
450
|
root: string;
|
|
451
|
+
type: "lmdb";
|
|
452
|
+
access?: "read" | "write" | undefined;
|
|
453
|
+
store?: string | undefined;
|
|
343
454
|
} | {
|
|
344
455
|
type: "mongo";
|
|
345
456
|
connectionString?: string | undefined;
|
|
@@ -455,8 +566,39 @@ export declare function resolveConfig(config: DeepPartial<Config>): {
|
|
|
455
566
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
456
567
|
silent: boolean;
|
|
457
568
|
};
|
|
569
|
+
connections: Record<string, {
|
|
570
|
+
root: string;
|
|
571
|
+
type: "lmdb";
|
|
572
|
+
access?: "read" | "write" | undefined;
|
|
573
|
+
store?: string | undefined;
|
|
574
|
+
} | {
|
|
575
|
+
type: "mongo";
|
|
576
|
+
connectionString?: string | undefined;
|
|
577
|
+
database?: string | undefined;
|
|
578
|
+
domain?: string | undefined;
|
|
579
|
+
password?: string | undefined;
|
|
580
|
+
username?: string | undefined;
|
|
581
|
+
} | {
|
|
582
|
+
protocol: string;
|
|
583
|
+
url: string;
|
|
584
|
+
type: "rpc";
|
|
585
|
+
} | {
|
|
586
|
+
type: "rest";
|
|
587
|
+
baseUrl: string;
|
|
588
|
+
} | {
|
|
589
|
+
type: "s3";
|
|
590
|
+
bucket?: string | undefined;
|
|
591
|
+
prefix?: string | undefined;
|
|
592
|
+
readUrl?: string | undefined;
|
|
593
|
+
accessKeyId?: string | undefined;
|
|
594
|
+
accountId?: string | undefined;
|
|
595
|
+
secretAccessKey?: string | undefined;
|
|
596
|
+
} | {
|
|
597
|
+
type: "evm-rpc";
|
|
598
|
+
url: string;
|
|
599
|
+
}>;
|
|
458
600
|
providerBindings: Record<string, {
|
|
459
|
-
|
|
601
|
+
connection?: string | undefined;
|
|
460
602
|
transport?: string | undefined;
|
|
461
603
|
}>;
|
|
462
604
|
providers: {
|
|
@@ -475,8 +617,10 @@ export declare function resolveConfig(config: DeepPartial<Config>): {
|
|
|
475
617
|
} | undefined;
|
|
476
618
|
};
|
|
477
619
|
transports: Record<string, {
|
|
478
|
-
type: "lmdb";
|
|
479
620
|
root: string;
|
|
621
|
+
type: "lmdb";
|
|
622
|
+
access?: "read" | "write" | undefined;
|
|
623
|
+
store?: string | undefined;
|
|
480
624
|
} | {
|
|
481
625
|
type: "mongo";
|
|
482
626
|
connectionString?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,0BAA0B;AAC1B,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,0BAA0B;AAC1B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOqG,CAAA;AAE3H,mBAAmB;AACnB,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAE9C,qCAAqC;AACrC,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU5B"}
|
|
@@ -31,8 +31,42 @@ export declare const HostActorConfigZod: z.ZodMiniObject<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
silent: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
|
+
connections: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
35
|
+
access: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
36
|
+
read: "read";
|
|
37
|
+
write: "write";
|
|
38
|
+
}>>;
|
|
39
|
+
root: import("zod").ZodString;
|
|
40
|
+
store: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
type: import("zod").ZodLiteral<"lmdb">;
|
|
42
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
43
|
+
type: import("zod").ZodLiteral<"mongo">;
|
|
44
|
+
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
database: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
50
|
+
protocol: import("zod").ZodDefault<import("zod").ZodString>;
|
|
51
|
+
url: import("zod").ZodString;
|
|
52
|
+
type: import("zod").ZodLiteral<"rpc">;
|
|
53
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
54
|
+
type: import("zod").ZodLiteral<"rest">;
|
|
55
|
+
baseUrl: import("zod").ZodString;
|
|
56
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
57
|
+
bucket: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
readUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
type: import("zod").ZodLiteral<"s3">;
|
|
61
|
+
accessKeyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
secretAccessKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
+
}, z.core.$strip>, import("zod").ZodObject<{
|
|
65
|
+
type: import("zod").ZodLiteral<"evm-rpc">;
|
|
66
|
+
url: import("zod").ZodString;
|
|
67
|
+
}, z.core.$strip>], "type">>>>;
|
|
34
68
|
providerBindings: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
35
|
-
|
|
69
|
+
connection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
70
|
transport: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
71
|
}, z.core.$strip>>>>;
|
|
38
72
|
providers: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -50,8 +84,13 @@ export declare const HostActorConfigZod: z.ZodMiniObject<{
|
|
|
50
84
|
}, z.core.$strip>]>>;
|
|
51
85
|
}, z.core.$strip>>;
|
|
52
86
|
transports: z.ZodMiniDefault<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
53
|
-
|
|
87
|
+
access: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
88
|
+
read: "read";
|
|
89
|
+
write: "write";
|
|
90
|
+
}>>;
|
|
54
91
|
root: import("zod").ZodString;
|
|
92
|
+
store: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
+
type: import("zod").ZodLiteral<"lmdb">;
|
|
55
94
|
}, z.core.$strip>, import("zod").ZodObject<{
|
|
56
95
|
type: import("zod").ZodLiteral<"mongo">;
|
|
57
96
|
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -174,8 +213,39 @@ export declare const isHostActorConfig: <T>(value: T) => value is T & {
|
|
|
174
213
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
175
214
|
silent: boolean;
|
|
176
215
|
};
|
|
216
|
+
connections: Record<string, {
|
|
217
|
+
root: string;
|
|
218
|
+
type: "lmdb";
|
|
219
|
+
access?: "read" | "write" | undefined;
|
|
220
|
+
store?: string | undefined;
|
|
221
|
+
} | {
|
|
222
|
+
type: "mongo";
|
|
223
|
+
connectionString?: string | undefined;
|
|
224
|
+
database?: string | undefined;
|
|
225
|
+
domain?: string | undefined;
|
|
226
|
+
password?: string | undefined;
|
|
227
|
+
username?: string | undefined;
|
|
228
|
+
} | {
|
|
229
|
+
protocol: string;
|
|
230
|
+
url: string;
|
|
231
|
+
type: "rpc";
|
|
232
|
+
} | {
|
|
233
|
+
type: "rest";
|
|
234
|
+
baseUrl: string;
|
|
235
|
+
} | {
|
|
236
|
+
type: "s3";
|
|
237
|
+
bucket?: string | undefined;
|
|
238
|
+
prefix?: string | undefined;
|
|
239
|
+
readUrl?: string | undefined;
|
|
240
|
+
accessKeyId?: string | undefined;
|
|
241
|
+
accountId?: string | undefined;
|
|
242
|
+
secretAccessKey?: string | undefined;
|
|
243
|
+
} | {
|
|
244
|
+
type: "evm-rpc";
|
|
245
|
+
url: string;
|
|
246
|
+
}>;
|
|
177
247
|
providerBindings: Record<string, {
|
|
178
|
-
|
|
248
|
+
connection?: string | undefined;
|
|
179
249
|
transport?: string | undefined;
|
|
180
250
|
}>;
|
|
181
251
|
providers: {
|
|
@@ -194,8 +264,10 @@ export declare const isHostActorConfig: <T>(value: T) => value is T & {
|
|
|
194
264
|
} | undefined;
|
|
195
265
|
};
|
|
196
266
|
transports: Record<string, {
|
|
197
|
-
type: "lmdb";
|
|
198
267
|
root: string;
|
|
268
|
+
type: "lmdb";
|
|
269
|
+
access?: "read" | "write" | undefined;
|
|
270
|
+
store?: string | undefined;
|
|
199
271
|
} | {
|
|
200
272
|
type: "mongo";
|
|
201
273
|
connectionString?: string | undefined;
|
|
@@ -318,8 +390,39 @@ export declare const asHostActorConfig: {
|
|
|
318
390
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
319
391
|
silent: boolean;
|
|
320
392
|
};
|
|
393
|
+
connections: Record<string, {
|
|
394
|
+
root: string;
|
|
395
|
+
type: "lmdb";
|
|
396
|
+
access?: "read" | "write" | undefined;
|
|
397
|
+
store?: string | undefined;
|
|
398
|
+
} | {
|
|
399
|
+
type: "mongo";
|
|
400
|
+
connectionString?: string | undefined;
|
|
401
|
+
database?: string | undefined;
|
|
402
|
+
domain?: string | undefined;
|
|
403
|
+
password?: string | undefined;
|
|
404
|
+
username?: string | undefined;
|
|
405
|
+
} | {
|
|
406
|
+
protocol: string;
|
|
407
|
+
url: string;
|
|
408
|
+
type: "rpc";
|
|
409
|
+
} | {
|
|
410
|
+
type: "rest";
|
|
411
|
+
baseUrl: string;
|
|
412
|
+
} | {
|
|
413
|
+
type: "s3";
|
|
414
|
+
bucket?: string | undefined;
|
|
415
|
+
prefix?: string | undefined;
|
|
416
|
+
readUrl?: string | undefined;
|
|
417
|
+
accessKeyId?: string | undefined;
|
|
418
|
+
accountId?: string | undefined;
|
|
419
|
+
secretAccessKey?: string | undefined;
|
|
420
|
+
} | {
|
|
421
|
+
type: "evm-rpc";
|
|
422
|
+
url: string;
|
|
423
|
+
}>;
|
|
321
424
|
providerBindings: Record<string, {
|
|
322
|
-
|
|
425
|
+
connection?: string | undefined;
|
|
323
426
|
transport?: string | undefined;
|
|
324
427
|
}>;
|
|
325
428
|
providers: {
|
|
@@ -338,8 +441,10 @@ export declare const asHostActorConfig: {
|
|
|
338
441
|
} | undefined;
|
|
339
442
|
};
|
|
340
443
|
transports: Record<string, {
|
|
341
|
-
type: "lmdb";
|
|
342
444
|
root: string;
|
|
445
|
+
type: "lmdb";
|
|
446
|
+
access?: "read" | "write" | undefined;
|
|
447
|
+
store?: string | undefined;
|
|
343
448
|
} | {
|
|
344
449
|
type: "mongo";
|
|
345
450
|
connectionString?: string | undefined;
|
|
@@ -460,8 +565,39 @@ export declare const asHostActorConfig: {
|
|
|
460
565
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
461
566
|
silent: boolean;
|
|
462
567
|
};
|
|
568
|
+
connections: Record<string, {
|
|
569
|
+
root: string;
|
|
570
|
+
type: "lmdb";
|
|
571
|
+
access?: "read" | "write" | undefined;
|
|
572
|
+
store?: string | undefined;
|
|
573
|
+
} | {
|
|
574
|
+
type: "mongo";
|
|
575
|
+
connectionString?: string | undefined;
|
|
576
|
+
database?: string | undefined;
|
|
577
|
+
domain?: string | undefined;
|
|
578
|
+
password?: string | undefined;
|
|
579
|
+
username?: string | undefined;
|
|
580
|
+
} | {
|
|
581
|
+
protocol: string;
|
|
582
|
+
url: string;
|
|
583
|
+
type: "rpc";
|
|
584
|
+
} | {
|
|
585
|
+
type: "rest";
|
|
586
|
+
baseUrl: string;
|
|
587
|
+
} | {
|
|
588
|
+
type: "s3";
|
|
589
|
+
bucket?: string | undefined;
|
|
590
|
+
prefix?: string | undefined;
|
|
591
|
+
readUrl?: string | undefined;
|
|
592
|
+
accessKeyId?: string | undefined;
|
|
593
|
+
accountId?: string | undefined;
|
|
594
|
+
secretAccessKey?: string | undefined;
|
|
595
|
+
} | {
|
|
596
|
+
type: "evm-rpc";
|
|
597
|
+
url: string;
|
|
598
|
+
}>;
|
|
463
599
|
providerBindings: Record<string, {
|
|
464
|
-
|
|
600
|
+
connection?: string | undefined;
|
|
465
601
|
transport?: string | undefined;
|
|
466
602
|
}>;
|
|
467
603
|
providers: {
|
|
@@ -480,8 +616,10 @@ export declare const asHostActorConfig: {
|
|
|
480
616
|
} | undefined;
|
|
481
617
|
};
|
|
482
618
|
transports: Record<string, {
|
|
483
|
-
type: "lmdb";
|
|
484
619
|
root: string;
|
|
620
|
+
type: "lmdb";
|
|
621
|
+
access?: "read" | "write" | undefined;
|
|
622
|
+
store?: string | undefined;
|
|
485
623
|
} | {
|
|
486
624
|
type: "mongo";
|
|
487
625
|
connectionString?: string | undefined;
|
|
@@ -605,8 +743,39 @@ export declare const toHostActorConfig: {
|
|
|
605
743
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
606
744
|
silent: boolean;
|
|
607
745
|
};
|
|
746
|
+
connections: Record<string, {
|
|
747
|
+
root: string;
|
|
748
|
+
type: "lmdb";
|
|
749
|
+
access?: "read" | "write" | undefined;
|
|
750
|
+
store?: string | undefined;
|
|
751
|
+
} | {
|
|
752
|
+
type: "mongo";
|
|
753
|
+
connectionString?: string | undefined;
|
|
754
|
+
database?: string | undefined;
|
|
755
|
+
domain?: string | undefined;
|
|
756
|
+
password?: string | undefined;
|
|
757
|
+
username?: string | undefined;
|
|
758
|
+
} | {
|
|
759
|
+
protocol: string;
|
|
760
|
+
url: string;
|
|
761
|
+
type: "rpc";
|
|
762
|
+
} | {
|
|
763
|
+
type: "rest";
|
|
764
|
+
baseUrl: string;
|
|
765
|
+
} | {
|
|
766
|
+
type: "s3";
|
|
767
|
+
bucket?: string | undefined;
|
|
768
|
+
prefix?: string | undefined;
|
|
769
|
+
readUrl?: string | undefined;
|
|
770
|
+
accessKeyId?: string | undefined;
|
|
771
|
+
accountId?: string | undefined;
|
|
772
|
+
secretAccessKey?: string | undefined;
|
|
773
|
+
} | {
|
|
774
|
+
type: "evm-rpc";
|
|
775
|
+
url: string;
|
|
776
|
+
}>;
|
|
608
777
|
providerBindings: Record<string, {
|
|
609
|
-
|
|
778
|
+
connection?: string | undefined;
|
|
610
779
|
transport?: string | undefined;
|
|
611
780
|
}>;
|
|
612
781
|
providers: {
|
|
@@ -625,8 +794,10 @@ export declare const toHostActorConfig: {
|
|
|
625
794
|
} | undefined;
|
|
626
795
|
};
|
|
627
796
|
transports: Record<string, {
|
|
628
|
-
type: "lmdb";
|
|
629
797
|
root: string;
|
|
798
|
+
type: "lmdb";
|
|
799
|
+
access?: "read" | "write" | undefined;
|
|
800
|
+
store?: string | undefined;
|
|
630
801
|
} | {
|
|
631
802
|
type: "mongo";
|
|
632
803
|
connectionString?: string | undefined;
|
|
@@ -747,8 +918,39 @@ export declare const toHostActorConfig: {
|
|
|
747
918
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
748
919
|
silent: boolean;
|
|
749
920
|
};
|
|
921
|
+
connections: Record<string, {
|
|
922
|
+
root: string;
|
|
923
|
+
type: "lmdb";
|
|
924
|
+
access?: "read" | "write" | undefined;
|
|
925
|
+
store?: string | undefined;
|
|
926
|
+
} | {
|
|
927
|
+
type: "mongo";
|
|
928
|
+
connectionString?: string | undefined;
|
|
929
|
+
database?: string | undefined;
|
|
930
|
+
domain?: string | undefined;
|
|
931
|
+
password?: string | undefined;
|
|
932
|
+
username?: string | undefined;
|
|
933
|
+
} | {
|
|
934
|
+
protocol: string;
|
|
935
|
+
url: string;
|
|
936
|
+
type: "rpc";
|
|
937
|
+
} | {
|
|
938
|
+
type: "rest";
|
|
939
|
+
baseUrl: string;
|
|
940
|
+
} | {
|
|
941
|
+
type: "s3";
|
|
942
|
+
bucket?: string | undefined;
|
|
943
|
+
prefix?: string | undefined;
|
|
944
|
+
readUrl?: string | undefined;
|
|
945
|
+
accessKeyId?: string | undefined;
|
|
946
|
+
accountId?: string | undefined;
|
|
947
|
+
secretAccessKey?: string | undefined;
|
|
948
|
+
} | {
|
|
949
|
+
type: "evm-rpc";
|
|
950
|
+
url: string;
|
|
951
|
+
}>;
|
|
750
952
|
providerBindings: Record<string, {
|
|
751
|
-
|
|
953
|
+
connection?: string | undefined;
|
|
752
954
|
transport?: string | undefined;
|
|
753
955
|
}>;
|
|
754
956
|
providers: {
|
|
@@ -767,8 +969,10 @@ export declare const toHostActorConfig: {
|
|
|
767
969
|
} | undefined;
|
|
768
970
|
};
|
|
769
971
|
transports: Record<string, {
|
|
770
|
-
type: "lmdb";
|
|
771
972
|
root: string;
|
|
973
|
+
type: "lmdb";
|
|
974
|
+
access?: "read" | "write" | undefined;
|
|
975
|
+
store?: string | undefined;
|
|
772
976
|
} | {
|
|
773
977
|
type: "mongo";
|
|
774
978
|
connectionString?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostActor.d.ts","sourceRoot":"","sources":["../../../src/config/HostActor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,CAAC,EAAE,MAAM,UAAU,CAAA;AAI5C,mCAAmC;AACnC,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"HostActor.d.ts","sourceRoot":"","sources":["../../../src/config/HostActor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,CAAC,EAAE,MAAM,UAAU,CAAA;AAI5C,mCAAmC;AACnC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa7B,CAAA;AAEF,4BAA4B;AAC5B,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEhE,oEAAoE;AACpE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA;AACjE,gEAAgE;AAChE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwD,CAAA;AACtF,kCAAkC;AAClC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwD,CAAA"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
* Binds a capability moniker to
|
|
4
|
-
*
|
|
5
|
-
* `BlockViewer`).
|
|
3
|
+
* Binds a capability moniker to a named connection profile.
|
|
4
|
+
* Keys in `providerBindings` use the provider moniker (e.g. `BlockViewer`).
|
|
6
5
|
*/
|
|
7
6
|
export declare const ProviderBindingConfigZod: z.ZodObject<{
|
|
8
|
-
|
|
7
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
9
8
|
transport: z.ZodOptional<z.ZodString>;
|
|
10
9
|
}, z.core.$strip>;
|
|
11
10
|
export type ProviderBindingConfig = z.infer<typeof ProviderBindingConfigZod>;
|
|
12
11
|
/** Map of provider moniker → binding. */
|
|
13
12
|
export declare const ProviderBindingsConfigZod: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14
|
-
|
|
13
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
15
14
|
transport: z.ZodOptional<z.ZodString>;
|
|
16
15
|
}, z.core.$strip>>>;
|
|
17
16
|
export type ProviderBindingsConfig = z.infer<typeof ProviderBindingsConfigZod>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderBinding.d.ts","sourceRoot":"","sources":["../../../src/config/ProviderBinding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":"ProviderBinding.d.ts","sourceRoot":"","sources":["../../../src/config/ProviderBinding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvC;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;iBAWK,CAAA;AAE1C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE5E,yCAAyC;AACzC,eAAO,MAAM,yBAAyB;;;mBAA6D,CAAA;AAEnG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { Config } from './Config.ts';
|
|
2
2
|
import type { DeepPartial } from './DeepPartial.ts';
|
|
3
3
|
/**
|
|
4
|
-
* Synthesizes `transports` and `providerBindings` from legacy
|
|
5
|
-
* `remote`, and `evm` fields when the new sections are absent.
|
|
6
|
-
* configs that already declare transports — those are returned unchanged.
|
|
4
|
+
* Synthesizes `connections` / `transports` and `providerBindings` from legacy
|
|
5
|
+
* `storage`, `remote`, and `evm` fields when the new sections are absent.
|
|
7
6
|
*/
|
|
8
7
|
export declare function adaptLegacyConfig(config: DeepPartial<Config>): Config;
|
|
9
8
|
//# sourceMappingURL=adaptLegacyConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adaptLegacyConfig.d.ts","sourceRoot":"","sources":["../../../src/config/adaptLegacyConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"adaptLegacyConfig.d.ts","sourceRoot":"","sources":["../../../src/config/adaptLegacyConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAwJnD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CA+CrE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Named connection profiles (successor to `transports`).
|
|
3
|
+
* Schemas are shared with `transports` during the migration period.
|
|
4
|
+
*/
|
|
5
|
+
export { type TransportConfig as ConnectionConfig, TransportConfigZod as ConnectionConfigZod, type TransportKind as ConnectionKind, type TransportsConfig as ConnectionsConfig, TransportsConfigZod as ConnectionsConfigZod, type EvmRpcTransportConfig as EvmConnectionConfig, EvmRpcTransportConfigZod as EvmConnectionConfigZod, type LmdbTransportConfig as LmdbConnectionConfig, LmdbTransportConfigZod as LmdbConnectionConfigZod, type MongoTransportConfig as MongoConnectionConfig, MongoTransportConfigZod as MongoConnectionConfigZod, type RestTransportConfig as RestConnectionConfig, RestTransportConfigZod as RestConnectionConfigZod, type RpcTransportConfig as RpcConnectionConfig, RpcTransportConfigZod as RpcConnectionConfigZod, type S3TransportConfig as S3ConnectionConfig, S3TransportConfigZod as S3ConnectionConfigZod, } from '../transports/Transport.ts';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/connections/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,KAAK,eAAe,IAAI,gBAAgB,EACxC,kBAAkB,IAAI,mBAAmB,EACzC,KAAK,aAAa,IAAI,cAAc,EACpC,KAAK,gBAAgB,IAAI,iBAAiB,EAC1C,mBAAmB,IAAI,oBAAoB,EAC3C,KAAK,qBAAqB,IAAI,mBAAmB,EACjD,wBAAwB,IAAI,sBAAsB,EAClD,KAAK,mBAAmB,IAAI,oBAAoB,EAChD,sBAAsB,IAAI,uBAAuB,EACjD,KAAK,oBAAoB,IAAI,qBAAqB,EAClD,uBAAuB,IAAI,wBAAwB,EACnD,KAAK,mBAAmB,IAAI,oBAAoB,EAChD,sBAAsB,IAAI,uBAAuB,EACjD,KAAK,kBAAkB,IAAI,mBAAmB,EAC9C,qBAAqB,IAAI,sBAAsB,EAC/C,KAAK,iBAAiB,IAAI,kBAAkB,EAC5C,oBAAoB,IAAI,qBAAqB,GAC9C,MAAM,4BAA4B,CAAA"}
|
|
@@ -3,8 +3,10 @@ export * from './Actors.ts';
|
|
|
3
3
|
export * from './adaptLegacyConfig.ts';
|
|
4
4
|
export * from './Base.ts';
|
|
5
5
|
export * from './Config.ts';
|
|
6
|
+
export * from './connections/index.ts';
|
|
6
7
|
export * from './DataLake/index.ts';
|
|
7
8
|
export * from './HostActor.ts';
|
|
9
|
+
export * from './normalizeConnectionsConfig.ts';
|
|
8
10
|
export * from './Provider.ts';
|
|
9
11
|
export * from './ProviderBinding.ts';
|
|
10
12
|
export * from './Providers.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,YAAY,EACV,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,GACzD,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,cAAc,EAAE,WAAW,EAAE,eAAe,GAC7C,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,YAAY,EACV,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,GACzD,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,cAAc,EAAE,WAAW,EAAE,eAAe,GAC7C,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ConnectionsConfig } from './connections/index.ts';
|
|
2
|
+
import type { ProviderBindingsConfig } from './ProviderBinding.ts';
|
|
3
|
+
import type { TransportsConfig } from './transports/index.ts';
|
|
4
|
+
interface ConnectionsBootFields {
|
|
5
|
+
connections?: ConnectionsConfig;
|
|
6
|
+
providerBindings?: ProviderBindingsConfig;
|
|
7
|
+
transports?: TransportsConfig;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Keeps `connections` and `transports` in sync and normalizes `providerBindings`
|
|
11
|
+
* so `connection` and legacy `transport` reference the same named profile.
|
|
12
|
+
*/
|
|
13
|
+
export declare function normalizeConnectionsConfig<T extends ConnectionsBootFields>(config: T): T & {
|
|
14
|
+
connections: ConnectionsConfig;
|
|
15
|
+
providerBindings: ProviderBindingsConfig;
|
|
16
|
+
transports: TransportsConfig;
|
|
17
|
+
};
|
|
18
|
+
export declare function hasDeclaredConnectionProfiles(config: ConnectionsBootFields): boolean;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=normalizeConnectionsConfig.d.ts.map
|