@xyo-network/xl1-protocol-sdk 2.0.8 → 2.0.9
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/CreatableProvider/AbstractCreatableProvider.d.ts +5 -5
- package/dist/neutral/config/Actor.d.ts +31 -31
- package/dist/neutral/config/Actors.d.ts +6 -6
- package/dist/neutral/config/Base.d.ts +6 -6
- package/dist/neutral/config/Chain.d.ts +2 -2
- package/dist/neutral/config/Chain.d.ts.map +1 -1
- package/dist/neutral/config/Config.d.ts +22 -22
- package/dist/neutral/config/HostActor.d.ts +31 -31
- package/dist/neutral/config/Validation.d.ts +4 -4
- package/dist/neutral/context/Actor.d.ts +31 -31
- package/dist/neutral/context/HostActor.d.ts +31 -31
- package/dist/neutral/createDeclarationPayload.d.ts +2 -2
- package/dist/neutral/createDeclarationPayload.d.ts.map +1 -1
- package/dist/neutral/createTransferPayload.d.ts +3 -2
- package/dist/neutral/createTransferPayload.d.ts.map +1 -1
- package/dist/neutral/getFileConfig.d.ts +10 -10
- package/dist/neutral/getFileConfig.mjs +6 -5
- package/dist/neutral/getFileConfig.mjs.map +3 -3
- package/dist/neutral/index.mjs +155 -181
- package/dist/neutral/index.mjs.map +3 -3
- package/dist/neutral/instances/Address.d.ts +3 -2
- package/dist/neutral/instances/Address.d.ts.map +1 -1
- package/dist/neutral/instances/Signature.d.ts +3 -2
- package/dist/neutral/instances/Signature.d.ts.map +1 -1
- package/dist/neutral/model/CreatableProviderContext.zod.d.ts +31 -31
- package/dist/neutral/payloads/AddressPairPayload.d.ts +2 -2
- package/dist/neutral/payloads/AddressPairPayload.d.ts.map +1 -1
- package/dist/neutral/payloads/netBalancesForPayloads.d.ts +2 -2
- package/dist/neutral/payloads/netBalancesForPayloads.d.ts.map +1 -1
- package/dist/neutral/payloads/netSchemasForPayloads.d.ts +2 -2
- package/dist/neutral/payloads/netSchemasForPayloads.d.ts.map +1 -1
- package/dist/neutral/payloads/netTransfersForPayloads.d.ts +2 -2
- package/dist/neutral/payloads/netTransfersForPayloads.d.ts.map +1 -1
- package/dist/neutral/primitives/chain/step/chainStepRewardAddress.d.ts +2 -2
- package/dist/neutral/primitives/chain/step/chainStepRewardAddress.d.ts.map +1 -1
- package/dist/neutral/primitives/payload/mergeTransfers.d.ts +2 -2
- package/dist/neutral/primitives/payload/mergeTransfers.d.ts.map +1 -1
- package/dist/neutral/primitives/stake/activeStakeAtTimeByAddress.d.ts +2 -2
- package/dist/neutral/primitives/stake/activeStakeAtTimeByAddress.d.ts.map +1 -1
- package/dist/neutral/primitives/stake/allStakersForRange.d.ts +2 -2
- package/dist/neutral/primitives/stake/allStakersForRange.d.ts.map +1 -1
- package/dist/neutral/primitives/stake/allStakersForStep.d.ts +2 -2
- package/dist/neutral/primitives/stake/allStakersForStep.d.ts.map +1 -1
- package/dist/neutral/primitives/stake/mergedAddRemoveStakeEventsByStaker.d.ts +2 -2
- package/dist/neutral/primitives/stake/mergedAddRemoveStakeEventsByStaker.d.ts.map +1 -1
- package/dist/neutral/primitives/stake/weightedStakeForRangeByPosition.d.ts +2 -2
- package/dist/neutral/primitives/stake/weightedStakeForRangeByPosition.d.ts.map +1 -1
- package/dist/neutral/primitives/uncle/findUncles.d.ts +2 -2
- package/dist/neutral/services/AccountTransfersService.d.ts +4 -3
- package/dist/neutral/services/AccountTransfersService.d.ts.map +1 -1
- package/dist/neutral/services/Election.d.ts +2 -2
- package/dist/neutral/services/Election.d.ts.map +1 -1
- package/dist/neutral/services/StakeIntentService/StakeIntentService.d.ts +4 -4
- package/dist/neutral/services/StakeIntentService/StakeIntentService.d.ts.map +1 -1
- package/dist/neutral/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts +5 -5
- package/dist/neutral/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts.map +1 -1
- package/dist/neutral/simple/StakeViewer/SimpleStakeViewer.d.ts +8 -7
- package/dist/neutral/simple/StakeViewer/SimpleStakeViewer.d.ts.map +1 -1
- package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts +18 -18
- package/dist/neutral/simple/accountBalance/SimpleAccountBalanceViewer.d.ts.map +1 -1
- package/dist/neutral/simple/chainContractViewer/SimpleChainContractViewer.d.ts +8 -7
- package/dist/neutral/simple/chainContractViewer/SimpleChainContractViewer.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +4 -3
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -1
- package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts +4 -3
- package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts.map +1 -1
- package/dist/neutral/summary/model/BalancesStepSummary.d.ts +2 -2
- package/dist/neutral/summary/model/BalancesStepSummary.d.ts.map +1 -1
- package/dist/neutral/summary/model/TransfersSummary.d.ts +2 -2
- package/dist/neutral/summary/model/TransfersSummary.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/balances/balancesSummary.d.ts +2 -2
- package/dist/neutral/summary/primitives/balances/balancesSummary.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/transfers/transfersSummary.d.ts +2 -2
- package/dist/neutral/summary/primitives/transfers/transfersSummary.d.ts.map +1 -1
- package/dist/neutral/test/BuildBlockOptions.d.ts +3 -2
- package/dist/neutral/test/BuildBlockOptions.d.ts.map +1 -1
- package/dist/neutral/test/buildNextBlock.d.ts +2 -5
- package/dist/neutral/test/buildNextBlock.d.ts.map +1 -1
- package/dist/neutral/test/buildRandomChain.d.ts +2 -2
- package/dist/neutral/test/buildRandomChain.d.ts.map +1 -1
- package/dist/neutral/test/buildRandomTransaction.d.ts +2 -2
- package/dist/neutral/test/buildRandomTransaction.d.ts.map +1 -1
- package/dist/neutral/test/createGenesisBlock.d.ts +2 -2
- package/dist/neutral/test/createGenesisBlock.d.ts.map +1 -1
- package/dist/neutral/test/createProducerChainStakeIntentTransaction.d.ts +3 -3
- package/dist/neutral/test/createProducerChainStakeIntentTransaction.d.ts.map +1 -1
- package/dist/neutral/test/getSimpleBlockViewerLocator.d.ts +3 -3
- package/dist/neutral/test/getSimpleBlockViewerLocator.d.ts.map +1 -1
- package/dist/neutral/test/index.mjs +76 -80
- package/dist/neutral/test/index.mjs.map +3 -3
- package/dist/neutral/transaction/TransactionBuilder.d.ts +4 -4
- package/dist/neutral/transaction/TransactionBuilder.d.ts.map +1 -1
- package/dist/neutral/transaction/buildTransaction.d.ts +2 -2
- package/dist/neutral/transaction/buildTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts +2 -2
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/signTransaction.d.ts +2 -2
- package/package.json +12 -10
|
@@ -11,11 +11,11 @@ export declare const ActorConfigContext: z.ZodMiniObject<{
|
|
|
11
11
|
config: z.ZodMiniObject<{
|
|
12
12
|
chain: z.ZodMiniDefault<z.ZodMiniObject<{
|
|
13
13
|
id: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
14
|
-
genesisRewardAddress: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
14
|
+
genesisRewardAddress: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
15
15
|
readonly __hex: true;
|
|
16
16
|
} & {
|
|
17
17
|
readonly __address: true;
|
|
18
|
-
}, string
|
|
18
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
dataLake: z.ZodMiniOptional<import("zod").ZodType<import("../config/index.ts").DataLakeConfig, unknown, z.core.$ZodTypeInternals<import("../config/index.ts").DataLakeConfig, unknown>>>;
|
|
21
21
|
evm: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
@@ -75,16 +75,16 @@ export declare const ActorConfigContext: z.ZodMiniObject<{
|
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
77
|
validation: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
78
|
-
allowedRewardRedeemers: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
78
|
+
allowedRewardRedeemers: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
79
79
|
readonly __hex: true;
|
|
80
80
|
} & {
|
|
81
81
|
readonly __address: true;
|
|
82
|
-
}, string
|
|
83
|
-
allowedRewardEscrowAccountSigners: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
82
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>>;
|
|
83
|
+
allowedRewardEscrowAccountSigners: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
84
84
|
readonly __hex: true;
|
|
85
85
|
} & {
|
|
86
86
|
readonly __address: true;
|
|
87
|
-
}, string
|
|
87
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>>;
|
|
88
88
|
minCandidates: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
89
89
|
backoffMs: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
90
90
|
}, z.core.$strip>>;
|
|
@@ -105,7 +105,7 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
|
|
|
105
105
|
readonly __hex: true;
|
|
106
106
|
} & {
|
|
107
107
|
readonly __address: true;
|
|
108
|
-
}) | undefined;
|
|
108
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
109
109
|
};
|
|
110
110
|
evm: {
|
|
111
111
|
chainId?: string | undefined;
|
|
@@ -160,16 +160,16 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
|
|
|
160
160
|
validation: {
|
|
161
161
|
minCandidates: number;
|
|
162
162
|
backoffMs: number;
|
|
163
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
163
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
164
164
|
readonly __hex: true;
|
|
165
165
|
} & {
|
|
166
166
|
readonly __address: true;
|
|
167
|
-
})[] | undefined;
|
|
168
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
167
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
168
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
169
169
|
readonly __hex: true;
|
|
170
170
|
} & {
|
|
171
171
|
readonly __address: true;
|
|
172
|
-
})[] | undefined;
|
|
172
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
173
173
|
};
|
|
174
174
|
name: string;
|
|
175
175
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
@@ -193,7 +193,7 @@ export declare const asActorConfigContext: {
|
|
|
193
193
|
readonly __hex: true;
|
|
194
194
|
} & {
|
|
195
195
|
readonly __address: true;
|
|
196
|
-
}) | undefined;
|
|
196
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
197
197
|
};
|
|
198
198
|
evm: {
|
|
199
199
|
chainId?: string | undefined;
|
|
@@ -248,16 +248,16 @@ export declare const asActorConfigContext: {
|
|
|
248
248
|
validation: {
|
|
249
249
|
minCandidates: number;
|
|
250
250
|
backoffMs: number;
|
|
251
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
251
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
252
252
|
readonly __hex: true;
|
|
253
253
|
} & {
|
|
254
254
|
readonly __address: true;
|
|
255
|
-
})[] | undefined;
|
|
256
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
255
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
256
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
257
257
|
readonly __hex: true;
|
|
258
258
|
} & {
|
|
259
259
|
readonly __address: true;
|
|
260
|
-
})[] | undefined;
|
|
260
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
261
261
|
};
|
|
262
262
|
name: string;
|
|
263
263
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
@@ -279,7 +279,7 @@ export declare const asActorConfigContext: {
|
|
|
279
279
|
readonly __hex: true;
|
|
280
280
|
} & {
|
|
281
281
|
readonly __address: true;
|
|
282
|
-
}) | undefined;
|
|
282
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
283
283
|
};
|
|
284
284
|
evm: {
|
|
285
285
|
chainId?: string | undefined;
|
|
@@ -334,16 +334,16 @@ export declare const asActorConfigContext: {
|
|
|
334
334
|
validation: {
|
|
335
335
|
minCandidates: number;
|
|
336
336
|
backoffMs: number;
|
|
337
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
337
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
338
338
|
readonly __hex: true;
|
|
339
339
|
} & {
|
|
340
340
|
readonly __address: true;
|
|
341
|
-
})[] | undefined;
|
|
342
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
341
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
342
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
343
343
|
readonly __hex: true;
|
|
344
344
|
} & {
|
|
345
345
|
readonly __address: true;
|
|
346
|
-
})[] | undefined;
|
|
346
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
347
347
|
};
|
|
348
348
|
name: string;
|
|
349
349
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
@@ -368,7 +368,7 @@ export declare const toActorConfigContext: {
|
|
|
368
368
|
readonly __hex: true;
|
|
369
369
|
} & {
|
|
370
370
|
readonly __address: true;
|
|
371
|
-
}) | undefined;
|
|
371
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
372
372
|
};
|
|
373
373
|
evm: {
|
|
374
374
|
chainId?: string | undefined;
|
|
@@ -423,16 +423,16 @@ export declare const toActorConfigContext: {
|
|
|
423
423
|
validation: {
|
|
424
424
|
minCandidates: number;
|
|
425
425
|
backoffMs: number;
|
|
426
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
426
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
427
427
|
readonly __hex: true;
|
|
428
428
|
} & {
|
|
429
429
|
readonly __address: true;
|
|
430
|
-
})[] | undefined;
|
|
431
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
430
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
431
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
432
432
|
readonly __hex: true;
|
|
433
433
|
} & {
|
|
434
434
|
readonly __address: true;
|
|
435
|
-
})[] | undefined;
|
|
435
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
436
436
|
};
|
|
437
437
|
name: string;
|
|
438
438
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
@@ -454,7 +454,7 @@ export declare const toActorConfigContext: {
|
|
|
454
454
|
readonly __hex: true;
|
|
455
455
|
} & {
|
|
456
456
|
readonly __address: true;
|
|
457
|
-
}) | undefined;
|
|
457
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
458
458
|
};
|
|
459
459
|
evm: {
|
|
460
460
|
chainId?: string | undefined;
|
|
@@ -509,16 +509,16 @@ export declare const toActorConfigContext: {
|
|
|
509
509
|
validation: {
|
|
510
510
|
minCandidates: number;
|
|
511
511
|
backoffMs: number;
|
|
512
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
512
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
513
513
|
readonly __hex: true;
|
|
514
514
|
} & {
|
|
515
515
|
readonly __address: true;
|
|
516
|
-
})[] | undefined;
|
|
517
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
516
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
517
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
518
518
|
readonly __hex: true;
|
|
519
519
|
} & {
|
|
520
520
|
readonly __address: true;
|
|
521
|
-
})[] | undefined;
|
|
521
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
522
522
|
};
|
|
523
523
|
name: string;
|
|
524
524
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
@@ -11,11 +11,11 @@ export declare const HostActorConfigContext: z.ZodMiniObject<{
|
|
|
11
11
|
config: z.ZodMiniObject<{
|
|
12
12
|
chain: z.ZodMiniDefault<z.ZodMiniObject<{
|
|
13
13
|
id: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
14
|
-
genesisRewardAddress: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
14
|
+
genesisRewardAddress: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
15
15
|
readonly __hex: true;
|
|
16
16
|
} & {
|
|
17
17
|
readonly __address: true;
|
|
18
|
-
}, string
|
|
18
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
dataLake: z.ZodMiniOptional<import("zod").ZodType<import("../config/index.ts").DataLakeConfig, unknown, z.core.$ZodTypeInternals<import("../config/index.ts").DataLakeConfig, unknown>>>;
|
|
21
21
|
evm: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
@@ -75,16 +75,16 @@ export declare const HostActorConfigContext: z.ZodMiniObject<{
|
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
77
|
validation: z.ZodMiniDefault<import("zod").ZodObject<{
|
|
78
|
-
allowedRewardRedeemers: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
78
|
+
allowedRewardRedeemers: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
79
79
|
readonly __hex: true;
|
|
80
80
|
} & {
|
|
81
81
|
readonly __address: true;
|
|
82
|
-
}, string
|
|
83
|
-
allowedRewardEscrowAccountSigners: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
82
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>>;
|
|
83
|
+
allowedRewardEscrowAccountSigners: import("zod").ZodOptional<import("zod").ZodArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
84
84
|
readonly __hex: true;
|
|
85
85
|
} & {
|
|
86
86
|
readonly __address: true;
|
|
87
|
-
}, string
|
|
87
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/address").XyoQuant1Address, string>>]>>>;
|
|
88
88
|
minCandidates: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
89
89
|
backoffMs: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
90
90
|
}, z.core.$strip>>;
|
|
@@ -107,7 +107,7 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
|
|
|
107
107
|
readonly __hex: true;
|
|
108
108
|
} & {
|
|
109
109
|
readonly __address: true;
|
|
110
|
-
}) | undefined;
|
|
110
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
111
111
|
};
|
|
112
112
|
evm: {
|
|
113
113
|
chainId?: string | undefined;
|
|
@@ -162,16 +162,16 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
|
|
|
162
162
|
validation: {
|
|
163
163
|
minCandidates: number;
|
|
164
164
|
backoffMs: number;
|
|
165
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
165
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
166
166
|
readonly __hex: true;
|
|
167
167
|
} & {
|
|
168
168
|
readonly __address: true;
|
|
169
|
-
})[] | undefined;
|
|
170
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
169
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
170
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
171
171
|
readonly __hex: true;
|
|
172
172
|
} & {
|
|
173
173
|
readonly __address: true;
|
|
174
|
-
})[] | undefined;
|
|
174
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
175
175
|
};
|
|
176
176
|
name: string;
|
|
177
177
|
host: string;
|
|
@@ -197,7 +197,7 @@ export declare const asHostActorConfigContext: {
|
|
|
197
197
|
readonly __hex: true;
|
|
198
198
|
} & {
|
|
199
199
|
readonly __address: true;
|
|
200
|
-
}) | undefined;
|
|
200
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
201
201
|
};
|
|
202
202
|
evm: {
|
|
203
203
|
chainId?: string | undefined;
|
|
@@ -252,16 +252,16 @@ export declare const asHostActorConfigContext: {
|
|
|
252
252
|
validation: {
|
|
253
253
|
minCandidates: number;
|
|
254
254
|
backoffMs: number;
|
|
255
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
255
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
256
256
|
readonly __hex: true;
|
|
257
257
|
} & {
|
|
258
258
|
readonly __address: true;
|
|
259
|
-
})[] | undefined;
|
|
260
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
259
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
260
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
261
261
|
readonly __hex: true;
|
|
262
262
|
} & {
|
|
263
263
|
readonly __address: true;
|
|
264
|
-
})[] | undefined;
|
|
264
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
265
265
|
};
|
|
266
266
|
name: string;
|
|
267
267
|
host: string;
|
|
@@ -285,7 +285,7 @@ export declare const asHostActorConfigContext: {
|
|
|
285
285
|
readonly __hex: true;
|
|
286
286
|
} & {
|
|
287
287
|
readonly __address: true;
|
|
288
|
-
}) | undefined;
|
|
288
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
289
289
|
};
|
|
290
290
|
evm: {
|
|
291
291
|
chainId?: string | undefined;
|
|
@@ -340,16 +340,16 @@ export declare const asHostActorConfigContext: {
|
|
|
340
340
|
validation: {
|
|
341
341
|
minCandidates: number;
|
|
342
342
|
backoffMs: number;
|
|
343
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
343
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
344
344
|
readonly __hex: true;
|
|
345
345
|
} & {
|
|
346
346
|
readonly __address: true;
|
|
347
|
-
})[] | undefined;
|
|
348
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
347
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
348
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
349
349
|
readonly __hex: true;
|
|
350
350
|
} & {
|
|
351
351
|
readonly __address: true;
|
|
352
|
-
})[] | undefined;
|
|
352
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
353
353
|
};
|
|
354
354
|
name: string;
|
|
355
355
|
host: string;
|
|
@@ -376,7 +376,7 @@ export declare const toHostActorConfigContext: {
|
|
|
376
376
|
readonly __hex: true;
|
|
377
377
|
} & {
|
|
378
378
|
readonly __address: true;
|
|
379
|
-
}) | undefined;
|
|
379
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
380
380
|
};
|
|
381
381
|
evm: {
|
|
382
382
|
chainId?: string | undefined;
|
|
@@ -431,16 +431,16 @@ export declare const toHostActorConfigContext: {
|
|
|
431
431
|
validation: {
|
|
432
432
|
minCandidates: number;
|
|
433
433
|
backoffMs: number;
|
|
434
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
434
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
435
435
|
readonly __hex: true;
|
|
436
436
|
} & {
|
|
437
437
|
readonly __address: true;
|
|
438
|
-
})[] | undefined;
|
|
439
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
438
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
439
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
440
440
|
readonly __hex: true;
|
|
441
441
|
} & {
|
|
442
442
|
readonly __address: true;
|
|
443
|
-
})[] | undefined;
|
|
443
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
444
444
|
};
|
|
445
445
|
name: string;
|
|
446
446
|
host: string;
|
|
@@ -464,7 +464,7 @@ export declare const toHostActorConfigContext: {
|
|
|
464
464
|
readonly __hex: true;
|
|
465
465
|
} & {
|
|
466
466
|
readonly __address: true;
|
|
467
|
-
}) | undefined;
|
|
467
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
468
468
|
};
|
|
469
469
|
evm: {
|
|
470
470
|
chainId?: string | undefined;
|
|
@@ -519,16 +519,16 @@ export declare const toHostActorConfigContext: {
|
|
|
519
519
|
validation: {
|
|
520
520
|
minCandidates: number;
|
|
521
521
|
backoffMs: number;
|
|
522
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
522
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
523
523
|
readonly __hex: true;
|
|
524
524
|
} & {
|
|
525
525
|
readonly __address: true;
|
|
526
|
-
})[] | undefined;
|
|
527
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
526
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
527
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
528
528
|
readonly __hex: true;
|
|
529
529
|
} & {
|
|
530
530
|
readonly __address: true;
|
|
531
|
-
})[] | undefined;
|
|
531
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
532
532
|
};
|
|
533
533
|
name: string;
|
|
534
534
|
host: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { XyoAddress } from '@xyo-network/address';
|
|
2
2
|
import { type ChainStakeIntent, type Intent } from '@xyo-network/xl1-protocol-lib';
|
|
3
3
|
/** createDeclarationIntent constant. */
|
|
4
|
-
export declare const createDeclarationIntent: (address:
|
|
4
|
+
export declare const createDeclarationIntent: (address: XyoAddress, intent: Intent, nbf: number, exp?: number) => ChainStakeIntent;
|
|
5
5
|
//# sourceMappingURL=createDeclarationPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDeclarationPayload.d.ts","sourceRoot":"","sources":["../../src/createDeclarationPayload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createDeclarationPayload.d.ts","sourceRoot":"","sources":["../../src/createDeclarationPayload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EACL,KAAK,gBAAgB,EAA0B,KAAK,MAAM,EAC3D,MAAM,+BAA+B,CAAA;AAEtC,wCAAwC;AACxC,eAAO,MAAM,uBAAuB,GAAI,SAAS,UAAU,EAAE,QAAQ,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,KAAG,gBAMxG,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsonObject } from '@xylabs/sdk-js';
|
|
2
|
+
import type { XyoAddress } from '@xyo-network/address';
|
|
2
3
|
import type { Transfer } from '@xyo-network/xl1-protocol-lib';
|
|
3
4
|
/** Creates a TransferPayload instance. */
|
|
4
|
-
export declare function createTransferPayload(from:
|
|
5
|
+
export declare function createTransferPayload(from: XyoAddress, transfers: Record<XyoAddress, bigint>, context?: JsonObject): Transfer;
|
|
5
6
|
//# sourceMappingURL=createTransferPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTransferPayload.d.ts","sourceRoot":"","sources":["../../src/createTransferPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createTransferPayload.d.ts","sourceRoot":"","sources":["../../src/createTransferPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAG7D,0CAA0C;AAC1C,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,CAQ7H"}
|
|
@@ -9,7 +9,7 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
|
|
|
9
9
|
readonly __hex: true;
|
|
10
10
|
} & {
|
|
11
11
|
readonly __address: true;
|
|
12
|
-
}) | undefined;
|
|
12
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
13
13
|
};
|
|
14
14
|
evm: {
|
|
15
15
|
chainId?: string | undefined;
|
|
@@ -64,16 +64,16 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
|
|
|
64
64
|
validation: {
|
|
65
65
|
minCandidates: number;
|
|
66
66
|
backoffMs: number;
|
|
67
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
67
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
68
68
|
readonly __hex: true;
|
|
69
69
|
} & {
|
|
70
70
|
readonly __address: true;
|
|
71
|
-
})[] | undefined;
|
|
72
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
71
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
72
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
73
73
|
readonly __hex: true;
|
|
74
74
|
} & {
|
|
75
75
|
readonly __address: true;
|
|
76
|
-
})[] | undefined;
|
|
76
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
77
77
|
};
|
|
78
78
|
actors: {
|
|
79
79
|
[x: string]: unknown;
|
|
@@ -83,7 +83,7 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
|
|
|
83
83
|
readonly __hex: true;
|
|
84
84
|
} & {
|
|
85
85
|
readonly __address: true;
|
|
86
|
-
}) | undefined;
|
|
86
|
+
}) | import("@xyo-network/address").XyoQuant1Address | undefined;
|
|
87
87
|
};
|
|
88
88
|
evm: {
|
|
89
89
|
chainId?: string | undefined;
|
|
@@ -138,16 +138,16 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
|
|
|
138
138
|
validation: {
|
|
139
139
|
minCandidates: number;
|
|
140
140
|
backoffMs: number;
|
|
141
|
-
allowedRewardRedeemers?: (Lowercase<string> & {
|
|
141
|
+
allowedRewardRedeemers?: ((Lowercase<string> & {
|
|
142
142
|
readonly __hex: true;
|
|
143
143
|
} & {
|
|
144
144
|
readonly __address: true;
|
|
145
|
-
})[] | undefined;
|
|
146
|
-
allowedRewardEscrowAccountSigners?: (Lowercase<string> & {
|
|
145
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
146
|
+
allowedRewardEscrowAccountSigners?: ((Lowercase<string> & {
|
|
147
147
|
readonly __hex: true;
|
|
148
148
|
} & {
|
|
149
149
|
readonly __address: true;
|
|
150
|
-
})[] | undefined;
|
|
150
|
+
}) | import("@xyo-network/address").XyoQuant1Address)[] | undefined;
|
|
151
151
|
};
|
|
152
152
|
name: string;
|
|
153
153
|
dataLake?: import("./config/index.ts").DataLakeConfig | undefined;
|
|
@@ -15,7 +15,8 @@ import { globalRegistry as globalRegistry12, z as z16 } from "zod/mini";
|
|
|
15
15
|
import { z as z15 } from "zod/mini";
|
|
16
16
|
|
|
17
17
|
// src/config/Chain.ts
|
|
18
|
-
import {
|
|
18
|
+
import { HexZod } from "@xylabs/sdk-js";
|
|
19
|
+
import { XyoAddressZod } from "@xyo-network/address";
|
|
19
20
|
import { globalRegistry, z } from "zod/mini";
|
|
20
21
|
var ChainConfigZod = z.object({
|
|
21
22
|
id: z.optional(HexZod).register(globalRegistry, {
|
|
@@ -23,7 +24,7 @@ var ChainConfigZod = z.object({
|
|
|
23
24
|
title: "chain.id",
|
|
24
25
|
type: "string"
|
|
25
26
|
}),
|
|
26
|
-
genesisRewardAddress: z.optional(
|
|
27
|
+
genesisRewardAddress: z.optional(XyoAddressZod).register(globalRegistry, {
|
|
27
28
|
description: "Address to send the initial genesis rewards to, if a new chain is being created.",
|
|
28
29
|
title: "chain.genesisRewardAddress",
|
|
29
30
|
type: "Address"
|
|
@@ -255,7 +256,7 @@ var TelemetryConfigZod = z13.object({
|
|
|
255
256
|
}).describe("Telemetry configuration options");
|
|
256
257
|
|
|
257
258
|
// src/config/Validation.ts
|
|
258
|
-
import {
|
|
259
|
+
import { XyoAddressZod as XyoAddressZod2 } from "@xyo-network/address";
|
|
259
260
|
import { globalRegistry as globalRegistry11, z as z14 } from "zod";
|
|
260
261
|
|
|
261
262
|
// src/primitives/uncle/findBestUncle.ts
|
|
@@ -264,12 +265,12 @@ var DEFAULT_BACKOFF_MS = 12e4;
|
|
|
264
265
|
|
|
265
266
|
// src/config/Validation.ts
|
|
266
267
|
var ValidationConfigZod = z14.object({
|
|
267
|
-
allowedRewardRedeemers: z14.array(
|
|
268
|
+
allowedRewardRedeemers: z14.array(XyoAddressZod2).optional().register(globalRegistry11, {
|
|
268
269
|
description: "List of allowed reward redeemer addresses, if undefined anyone can participate",
|
|
269
270
|
title: "allowedRewardRedeemers",
|
|
270
271
|
type: "array"
|
|
271
272
|
}),
|
|
272
|
-
allowedRewardEscrowAccountSigners: z14.array(
|
|
273
|
+
allowedRewardEscrowAccountSigners: z14.array(XyoAddressZod2).optional().register(globalRegistry11, {
|
|
273
274
|
description: "List of allowed reward escrow account signer addresses, if undefined anyone can participate",
|
|
274
275
|
title: "allowedRewardEscrowAccountSigners",
|
|
275
276
|
type: "array"
|