@xyo-network/xl1-protocol-sdk 1.24.2 → 1.24.4
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/config/Actor.d.ts +854 -0
- package/dist/neutral/config/Actor.d.ts.map +1 -0
- package/dist/neutral/config/Config.d.ts +18 -8
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/HostActor.d.ts +878 -0
- package/dist/neutral/config/HostActor.d.ts.map +1 -0
- package/dist/neutral/config/getFileConfig.d.ts +133 -0
- package/dist/neutral/config/getFileConfig.d.ts.map +1 -0
- package/dist/neutral/config/index-node.d.ts +3 -0
- package/dist/neutral/config/index-node.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/index-node.d.ts +3 -0
- package/dist/neutral/index-node.d.ts.map +1 -0
- package/dist/neutral/index-node.mjs +5747 -0
- package/dist/neutral/index-node.mjs.map +1 -0
- package/dist/neutral/index-shared.d.ts +25 -0
- package/dist/neutral/index-shared.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +1 -24
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2395 -2282
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/model/PayloadBundle/bundledPayloadToHydratedBlock.d.ts.map +1 -1
- package/dist/neutral/model/PayloadBundle/bundledPayloadToHydratedTransaction.d.ts.map +1 -1
- package/dist/neutral/model/PayloadBundle/hydratedBlockToPayloadBundle.d.ts.map +1 -1
- package/dist/neutral/model/PayloadBundle/hydratedTransactionToPayloadBundle.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts +3 -1
- package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +2 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts +2 -2
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts.map +1 -1
- package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/balances/balancesStepSummaryFromRange.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/schemas/schemasStepSummaryFromRange.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts.map +1 -1
- package/dist/neutral/test/buildBlock.d.ts.map +1 -1
- package/dist/neutral/test/buildRandomChain.d.ts +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/createProducerChainStakeIntentTransaction.d.ts +1 -1
- package/dist/neutral/test/createProducerChainStakeIntentTransaction.d.ts.map +1 -1
- package/dist/neutral/test/getSimpleBlockViewerLocator.d.ts +1 -1
- package/dist/neutral/test/getSimpleBlockViewerLocator.d.ts.map +1 -1
- package/dist/neutral/test/index.mjs +118 -61
- package/dist/neutral/test/index.mjs.map +1 -1
- package/dist/neutral/transaction/TransactionBuilder.d.ts +1 -1
- package/dist/neutral/transaction/TransactionBuilder.d.ts.map +1 -1
- package/dist/neutral/transaction/buildRandomTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/buildTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/signTransaction.d.ts +1 -1
- package/package.json +9 -8
- package/src/config/Actor.ts +36 -0
- package/src/config/Config.ts +8 -7
- package/src/config/HostActor.ts +36 -0
- package/src/config/getFileConfig.ts +36 -0
- package/src/config/index-node.ts +3 -0
- package/src/config/index.ts +2 -0
- package/src/createDeclarationPayload.ts +1 -1
- package/src/createTransferPayload.ts +1 -1
- package/src/eip-712/sign.ts +1 -1
- package/src/eip-712/verify.ts +1 -1
- package/src/index-node.ts +3 -0
- package/src/index-shared.ts +24 -0
- package/src/index.ts +1 -24
- package/src/model/PayloadBundle/bundledPayloadToHydratedBlock.ts +1 -1
- package/src/model/PayloadBundle/bundledPayloadToHydratedTransaction.ts +1 -1
- package/src/model/PayloadBundle/hydratedBlockToPayloadBundle.ts +1 -1
- package/src/model/PayloadBundle/hydratedTransactionToPayloadBundle.ts +1 -1
- package/src/simple/blockInvalidation/SimpleBlockInvalidationViewer.ts +1 -1
- package/src/simple/blockValidation/SimpleBlockValidationViewer.ts +1 -1
- package/src/simple/datalake/RestDataLakeRunner.ts +1 -1
- package/src/simple/gateway/SimpleXyoGateway.ts +24 -0
- package/src/simple/gateway/SimpleXyoGatewayRunner.ts +24 -3
- package/src/simple/mempool/SimpleMempoolRunner.ts +1 -1
- package/src/simple/runner/SimpleXyoRunner.ts +1 -1
- package/src/simple/signer/SimpleXyoSigner.ts +1 -2
- package/src/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.ts +1 -1
- package/src/simple/transactionValidation/SimpleTransactionValidationViewer.ts +1 -1
- package/src/summary/primitives/balances/balancesStepSummaryFromRange.ts +1 -1
- package/src/summary/primitives/schemas/schemasStepSummaryFromRange.ts +1 -1
- package/src/summary/primitives/transfers/transfersStepSummaryFromRange.ts +1 -1
- package/src/test/buildBlock.ts +1 -2
- package/src/test/buildRandomChain.ts +1 -2
- package/src/test/buildRandomGenesisBlock.ts +1 -2
- package/src/test/createGenesisBlock.ts +1 -1
- package/src/test/createProducerChainStakeIntentTransaction.ts +1 -1
- package/src/test/getSimpleBlockViewerLocator.ts +1 -1
- package/src/transaction/TransactionBuilder.ts +1 -1
- package/src/transaction/buildRandomTransaction.ts +1 -1
- package/src/transaction/buildTransaction.ts +1 -2
- package/src/transaction/buildUnsignedTransaction.ts +1 -2
- package/src/transaction/primitives/transactionBlockByteCount.ts +1 -1
- package/src/transaction/signTransaction.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Actor.d.ts","s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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2D,CAAA;AAC5F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2D,CAAA"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
+
export type DeepPartial<T> = {
|
|
3
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
4
|
+
};
|
|
2
5
|
export declare const ActorsConfigZod: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3
6
|
chain: z.ZodDefault<z.ZodObject<{
|
|
4
|
-
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
7
|
+
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHex, string>>>;
|
|
5
8
|
genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
6
9
|
readonly __hex: true;
|
|
7
10
|
} & {
|
|
@@ -67,11 +70,14 @@ export declare const ActorsConfigZod: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
67
70
|
readonly __address: true;
|
|
68
71
|
}, string>>>>>;
|
|
69
72
|
}, z.z.core.$strip>>;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
75
|
+
healthCheckPort: z.ZodOptional<z.z.ZodCoercedNumber<unknown>>;
|
|
70
76
|
}, z.z.core.$loose>>>;
|
|
71
77
|
export type ActorsConfig = z.infer<typeof ActorsConfigZod>;
|
|
72
78
|
export declare const ConfigZod: z.ZodObject<{
|
|
73
79
|
chain: z.ZodDefault<z.ZodObject<{
|
|
74
|
-
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
80
|
+
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHex, string>>>;
|
|
75
81
|
genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
76
82
|
readonly __hex: true;
|
|
77
83
|
} & {
|
|
@@ -139,7 +145,7 @@ export declare const ConfigZod: z.ZodObject<{
|
|
|
139
145
|
}, z.z.core.$strip>>;
|
|
140
146
|
actors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
141
147
|
chain: z.ZodDefault<z.ZodObject<{
|
|
142
|
-
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
148
|
+
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHex, string>>>;
|
|
143
149
|
genesisRewardAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
144
150
|
readonly __hex: true;
|
|
145
151
|
} & {
|
|
@@ -205,13 +211,16 @@ export declare const ConfigZod: z.ZodObject<{
|
|
|
205
211
|
readonly __address: true;
|
|
206
212
|
}, string>>>>>;
|
|
207
213
|
}, z.z.core.$strip>>;
|
|
214
|
+
name: z.ZodString;
|
|
215
|
+
mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
216
|
+
healthCheckPort: z.ZodOptional<z.z.ZodCoercedNumber<unknown>>;
|
|
208
217
|
}, z.z.core.$loose>>>;
|
|
209
218
|
}, z.z.core.$strip>;
|
|
210
219
|
export type Config = z.infer<typeof ConfigZod>;
|
|
211
220
|
export type ActorName = keyof ActorsConfig;
|
|
212
|
-
export declare function resolveConfig(config: Config): {
|
|
221
|
+
export declare function resolveConfig(config: DeepPartial<Config>): {
|
|
213
222
|
chain: {
|
|
214
|
-
id?: import("@xylabs/
|
|
223
|
+
id?: import("@xylabs/hex").BrandedHex | undefined;
|
|
215
224
|
genesisRewardAddress?: (Lowercase<string> & {
|
|
216
225
|
readonly __hex: true;
|
|
217
226
|
} & {
|
|
@@ -273,7 +282,7 @@ export declare function resolveConfig(config: Config): {
|
|
|
273
282
|
actors: {
|
|
274
283
|
[x: string]: unknown;
|
|
275
284
|
chain: {
|
|
276
|
-
id?: import("@xylabs/
|
|
285
|
+
id?: import("@xylabs/hex").BrandedHex | undefined;
|
|
277
286
|
genesisRewardAddress?: (Lowercase<string> & {
|
|
278
287
|
readonly __hex: true;
|
|
279
288
|
} & {
|
|
@@ -332,8 +341,9 @@ export declare function resolveConfig(config: Config): {
|
|
|
332
341
|
readonly __address: true;
|
|
333
342
|
})[] | undefined;
|
|
334
343
|
};
|
|
344
|
+
name: string;
|
|
345
|
+
mnemonic?: string | undefined;
|
|
346
|
+
healthCheckPort?: number | undefined;
|
|
335
347
|
}[];
|
|
336
348
|
};
|
|
337
|
-
/** @deprecated Use ConfigZod.parse({}) instead */
|
|
338
|
-
export declare const getDefaultConfig: () => Config;
|
|
339
349
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/config/Config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AAKnB,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAuJ,CAAA;AAEnL,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAC4F,CAAA;AAElH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAC9C,MAAM,MAAM,SAAS,GAAG,MAAM,YAAY,CAAA;AAE1C,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B"}
|