@xyo-network/xl1-protocol 5.4.1 → 5.5.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/README.md +9 -4
- package/dist/neutral/modules/protocol-lib/viewers/DeadLetterQueue.d.ts +2 -2
- package/dist/neutral/modules/protocol-lib/viewers/Evidence.d.ts +3 -3
- package/dist/neutral/modules/protocol-lib/viewers/Mempool.d.ts +2 -2
- package/dist/neutral/modules/protocol-model/TransferPayload.d.ts +118 -36
- package/dist/neutral/modules/protocol-model/TransferPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/block/AllowedBlockPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/evidence/CandidatePairPayload.d.ts +91 -4
- package/dist/neutral/modules/protocol-model/evidence/CandidatePairPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/evidence/CandidateSeenPayload.d.ts +97 -4
- package/dist/neutral/modules/protocol-model/evidence/CandidateSeenPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/evidence/EvidenceNotePayload.d.ts +103 -4
- package/dist/neutral/modules/protocol-model/evidence/EvidenceNotePayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/fields/BlockNumber.d.ts +66 -15
- package/dist/neutral/modules/protocol-model/fields/BlockNumber.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/StepIdentityPayload.d.ts +56 -5
- package/dist/neutral/modules/protocol-model/payload/StepIdentityPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/StepWitness.d.ts +97 -4
- package/dist/neutral/modules/protocol-model/payload/StepWitness.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/application/Exchange/ExchangeOutcome.d.ts +58 -4
- package/dist/neutral/modules/protocol-model/payload/application/Exchange/ExchangeOutcome.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/application/Exchange/ExchangeTerms.d.ts +163 -4
- package/dist/neutral/modules/protocol-model/payload/application/Exchange/ExchangeTerms.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/application/Exchange/PartySecretReveal.d.ts +49 -4
- package/dist/neutral/modules/protocol-model/payload/application/Exchange/PartySecretReveal.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/application/Ordinal/Inscription.d.ts +55 -4
- package/dist/neutral/modules/protocol-model/payload/application/Ordinal/Inscription.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/application/Ordinal/OrdinalTransfer.d.ts +79 -4
- package/dist/neutral/modules/protocol-model/payload/application/Ordinal/OrdinalTransfer.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenDeploy.d.ts +68 -5
- package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenDeploy.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenMint.d.ts +55 -4
- package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenMint.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenTransfer.d.ts +85 -4
- package/dist/neutral/modules/protocol-model/payload/application/Xrc20/TokenTransfer.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts +100 -5
- package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeIntent.d.ts +98 -5
- package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeIntent.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeSourceObservation.d.ts +100 -5
- package/dist/neutral/modules/protocol-model/payload/elevatable/Bridge/BridgeSourceObservation.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/elevatable/ChainStakeIntent.d.ts +105 -10
- package/dist/neutral/modules/protocol-model/payload/elevatable/ChainStakeIntent.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/elevatable/Claim.d.ts +112 -36
- package/dist/neutral/modules/protocol-model/payload/elevatable/Claim.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/elevatable/Hash.d.ts +59 -10
- package/dist/neutral/modules/protocol-model/payload/elevatable/Hash.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/elevatable/StepComplete.d.ts +111 -16
- package/dist/neutral/modules/protocol-model/payload/elevatable/StepComplete.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/elevatable/Time.d.ts +62 -21
- package/dist/neutral/modules/protocol-model/payload/elevatable/Time.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/slash/SlashAdjudicationPayload.d.ts +127 -4
- package/dist/neutral/modules/protocol-model/payload/slash/SlashAdjudicationPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/slash/SlashChallengePayload.d.ts +85 -4
- package/dist/neutral/modules/protocol-model/payload/slash/SlashChallengePayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/slash/SlashCommitPayload.d.ts +79 -4
- package/dist/neutral/modules/protocol-model/payload/slash/SlashCommitPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/slash/SlashEvidencePayload.d.ts +79 -4
- package/dist/neutral/modules/protocol-model/payload/slash/SlashEvidencePayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/payload/slash/SlashRequestPayload.d.ts +139 -4
- package/dist/neutral/modules/protocol-model/payload/slash/SlashRequestPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/rejection/BlockRejectionPayload.d.ts +179 -42
- package/dist/neutral/modules/protocol-model/rejection/BlockRejectionPayload.d.ts.map +1 -1
- package/dist/neutral/modules/protocol-model/rejection/TransactionRejectionPayload.d.ts +210 -49
- package/dist/neutral/modules/protocol-model/rejection/TransactionRejectionPayload.d.ts.map +1 -1
- package/dist/neutral/protocol-model.mjs +969 -684
- package/dist/neutral/protocol-model.mjs.map +3 -3
- package/package.json +3 -3
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Payload } from '@xyo-network/sdk';
|
|
3
|
-
import type { FromFields } from './Executable.js';
|
|
1
|
+
import { z } from 'zod/mini';
|
|
4
2
|
/** Schema identifier for StepComplete payloads. */
|
|
5
3
|
export declare const StepCompleteSchema: "network.xyo.chain.step.complete" & {
|
|
6
4
|
readonly __schema: true;
|
|
@@ -8,20 +6,117 @@ export declare const StepCompleteSchema: "network.xyo.chain.step.complete" & {
|
|
|
8
6
|
/** Schema type for StepComplete payloads. */
|
|
9
7
|
export type StepCompleteSchema = typeof StepCompleteSchema;
|
|
10
8
|
/** Records completion metadata for a reward-eligible network step. */
|
|
11
|
-
export
|
|
12
|
-
|
|
9
|
+
export declare const StepCompleteFieldsZod: z.ZodMiniObject<{
|
|
10
|
+
block: z.ZodMiniNumber<number>;
|
|
11
|
+
from: z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
12
|
+
readonly __hex: true;
|
|
13
|
+
} & {
|
|
14
|
+
readonly __address: true;
|
|
15
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk").XyoQuantAddress, string>>]>;
|
|
16
|
+
hash: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
17
|
+
size: z.ZodMiniNumber<number>;
|
|
18
|
+
stakeBlock: z.ZodMiniNumber<number>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
/** Fields represented by the Step Complete contract. */
|
|
21
|
+
export type StepCompleteFields = z.infer<typeof StepCompleteFieldsZod>;
|
|
22
|
+
/** Zod schema for a complete StepComplete including schema and fields. */
|
|
23
|
+
export declare const StepCompleteZod: z.ZodMiniObject<{
|
|
24
|
+
$version: z.ZodMiniOptional<z.ZodMiniNumberFormat<z.core.$ZodNumberFormats>>;
|
|
25
|
+
schema: z.ZodMiniLiteral<"network.xyo.chain.step.complete" & {
|
|
26
|
+
readonly __schema: true;
|
|
27
|
+
}>;
|
|
28
|
+
block: z.ZodMiniNumber<number>;
|
|
29
|
+
from: z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
30
|
+
readonly __hex: true;
|
|
31
|
+
} & {
|
|
32
|
+
readonly __address: true;
|
|
33
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk").XyoQuantAddress, string>>]>;
|
|
34
|
+
hash: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
35
|
+
size: z.ZodMiniNumber<number>;
|
|
36
|
+
stakeBlock: z.ZodMiniNumber<number>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
/** Validated data representation for Step Complete. */
|
|
39
|
+
export type StepComplete = z.infer<typeof StepCompleteZod>;
|
|
40
|
+
/** Type guard that checks if a value is a valid StepComplete. */
|
|
41
|
+
export declare const isStepComplete: <T>(value: T) => value is T & {
|
|
42
|
+
schema: "network.xyo.chain.step.complete" & {
|
|
43
|
+
readonly __schema: true;
|
|
44
|
+
};
|
|
13
45
|
block: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
46
|
+
from: (Lowercase<string> & {
|
|
47
|
+
readonly __hex: true;
|
|
48
|
+
} & {
|
|
49
|
+
readonly __address: true;
|
|
50
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
51
|
+
hash: import("@ariestools/sdk").BrandedHash;
|
|
17
52
|
size: number;
|
|
18
|
-
/** Reference block number on the external staking system. */
|
|
19
53
|
stakeBlock: number;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
54
|
+
$version?: number | undefined;
|
|
55
|
+
};
|
|
56
|
+
/** Casts a value to StepComplete or returns undefined if invalid. */
|
|
57
|
+
export declare const asStepComplete: {
|
|
58
|
+
<T>(value: T): (T & {
|
|
59
|
+
schema: "network.xyo.chain.step.complete" & {
|
|
60
|
+
readonly __schema: true;
|
|
61
|
+
};
|
|
62
|
+
block: number;
|
|
63
|
+
from: (Lowercase<string> & {
|
|
64
|
+
readonly __hex: true;
|
|
65
|
+
} & {
|
|
66
|
+
readonly __address: true;
|
|
67
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
68
|
+
hash: import("@ariestools/sdk").BrandedHash;
|
|
69
|
+
size: number;
|
|
70
|
+
stakeBlock: number;
|
|
71
|
+
$version?: number | undefined;
|
|
72
|
+
}) | undefined;
|
|
73
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
74
|
+
schema: "network.xyo.chain.step.complete" & {
|
|
75
|
+
readonly __schema: true;
|
|
76
|
+
};
|
|
77
|
+
block: number;
|
|
78
|
+
from: (Lowercase<string> & {
|
|
79
|
+
readonly __hex: true;
|
|
80
|
+
} & {
|
|
81
|
+
readonly __address: true;
|
|
82
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
83
|
+
hash: import("@ariestools/sdk").BrandedHash;
|
|
84
|
+
size: number;
|
|
85
|
+
stakeBlock: number;
|
|
86
|
+
$version?: number | undefined;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
/** Coerces a value to StepComplete or returns undefined if invalid. */
|
|
90
|
+
export declare const toStepComplete: {
|
|
91
|
+
(value: unknown): {
|
|
92
|
+
schema: "network.xyo.chain.step.complete" & {
|
|
93
|
+
readonly __schema: true;
|
|
94
|
+
};
|
|
95
|
+
block: number;
|
|
96
|
+
from: (Lowercase<string> & {
|
|
97
|
+
readonly __hex: true;
|
|
98
|
+
} & {
|
|
99
|
+
readonly __address: true;
|
|
100
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
101
|
+
hash: import("@ariestools/sdk").BrandedHash;
|
|
102
|
+
size: number;
|
|
103
|
+
stakeBlock: number;
|
|
104
|
+
$version?: number | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
(value: unknown, assert: import("@ariestools/sdk").ZodFactoryConfig): {
|
|
107
|
+
schema: "network.xyo.chain.step.complete" & {
|
|
108
|
+
readonly __schema: true;
|
|
109
|
+
};
|
|
110
|
+
block: number;
|
|
111
|
+
from: (Lowercase<string> & {
|
|
112
|
+
readonly __hex: true;
|
|
113
|
+
} & {
|
|
114
|
+
readonly __address: true;
|
|
115
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
116
|
+
hash: import("@ariestools/sdk").BrandedHash;
|
|
117
|
+
size: number;
|
|
118
|
+
stakeBlock: number;
|
|
119
|
+
$version?: number | undefined;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
27
122
|
//# sourceMappingURL=StepComplete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepComplete.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/elevatable/StepComplete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepComplete.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/elevatable/StepComplete.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAE5B,mDAAmD;AACnD,eAAO,MAAM,kBAAkB;;CAAoD,CAAA;AACnF,6CAA6C;AAC7C,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA;AAE1D,sEAAsE;AACtE,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAWhC,CAAA;AAEF,wDAAwD;AACxD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE,0EAA0E;AAC1E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;iBAAgF,CAAA;AAG5G,uDAAuD;AACvD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,iEAAiE;AACjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAAgC,CAAA;AAC3D,qEAAqE;AACrE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkD,CAAA;AAC7E,uEAAuE;AACvE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkD,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WithStorageMeta } from '@xyo-network/sdk';
|
|
1
2
|
import { z } from 'zod/mini';
|
|
2
3
|
/** Supported time domains: xl1 block number, epoch timestamp, or ethereum block number. */
|
|
3
4
|
export type TimeDomain = 'xl1' | 'epoch' | 'ethereum';
|
|
@@ -17,9 +18,11 @@ export declare const EthereumTimeFieldsZod: z.ZodMiniObject<{
|
|
|
17
18
|
ethereum: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
18
19
|
ethereumHash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
19
20
|
}, z.core.$strip>;
|
|
21
|
+
/** Maximum accepted epoch timestamp in milliseconds (~year 2286). */
|
|
22
|
+
export declare const MAX_SAFE_EPOCH = 9999999999999;
|
|
20
23
|
/** Zod schema for epoch time fields in milliseconds. */
|
|
21
24
|
export declare const EpochTimeFieldsZod: z.ZodMiniObject<{
|
|
22
|
-
epoch: z.
|
|
25
|
+
epoch: z.ZodMiniInt;
|
|
23
26
|
}, z.core.$strip>;
|
|
24
27
|
/** Combined Zod schema for all time fields across XL1, Ethereum, and epoch domains. */
|
|
25
28
|
export declare const TimeFieldsZod: z.ZodMiniObject<{
|
|
@@ -27,7 +30,7 @@ export declare const TimeFieldsZod: z.ZodMiniObject<{
|
|
|
27
30
|
xl1Hash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
28
31
|
ethereum: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
29
32
|
ethereumHash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
30
|
-
epoch: z.
|
|
33
|
+
epoch: z.ZodMiniInt;
|
|
31
34
|
}, z.core.$strip>;
|
|
32
35
|
/** Zod schema for a complete time payload including schema and all time fields. */
|
|
33
36
|
export declare const TimePayloadZod: z.ZodMiniObject<{
|
|
@@ -39,18 +42,14 @@ export declare const TimePayloadZod: z.ZodMiniObject<{
|
|
|
39
42
|
xl1Hash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
40
43
|
ethereum: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
41
44
|
ethereumHash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
42
|
-
epoch: z.
|
|
45
|
+
epoch: z.ZodMiniInt;
|
|
43
46
|
}, z.core.$strip>;
|
|
44
47
|
/** A payload containing time information across multiple domains. */
|
|
45
48
|
export type TimePayload = z.infer<typeof TimePayloadZod>;
|
|
46
|
-
/** Maximum accepted epoch timestamp in milliseconds (~year 2286). */
|
|
47
|
-
export declare const MAX_SAFE_EPOCH = 9999999999999;
|
|
48
49
|
/** Checks whether a value is a safe epoch timestamp (nonnegative safe integer within the protocol cap). */
|
|
49
50
|
export declare const isSafeEpoch: (value: unknown) => value is number;
|
|
50
|
-
/** Type guard that
|
|
51
|
-
export declare const isTimePayload: (value:
|
|
52
|
-
/** Casts a value to TimePayload or returns undefined if it does not match. */
|
|
53
|
-
export declare const asTimePayload: import("@ariestools/sdk").AsTypeFunction<{
|
|
51
|
+
/** Type guard that validates the full TimePayload shape (schema, version, and safe epoch). */
|
|
52
|
+
export declare const isTimePayload: <T>(value: T) => value is T & {
|
|
54
53
|
schema: "network.xyo.time" & {
|
|
55
54
|
readonly __schema: true;
|
|
56
55
|
};
|
|
@@ -60,17 +59,59 @@ export declare const asTimePayload: import("@ariestools/sdk").AsTypeFunction<{
|
|
|
60
59
|
xl1Hash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
61
60
|
ethereum?: number | undefined;
|
|
62
61
|
ethereumHash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
63
|
-
}
|
|
64
|
-
/** Casts a value to TimePayload
|
|
65
|
-
export declare const
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
};
|
|
63
|
+
/** Casts a value to TimePayload or returns undefined if it does not match. */
|
|
64
|
+
export declare const asTimePayload: {
|
|
65
|
+
<T>(value: T): (T & {
|
|
66
|
+
schema: "network.xyo.time" & {
|
|
67
|
+
readonly __schema: true;
|
|
68
|
+
};
|
|
69
|
+
epoch: number;
|
|
70
|
+
$version?: 1000000 | undefined;
|
|
71
|
+
xl1?: number | undefined;
|
|
72
|
+
xl1Hash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
73
|
+
ethereum?: number | undefined;
|
|
74
|
+
ethereumHash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
75
|
+
}) | undefined;
|
|
76
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
77
|
+
schema: "network.xyo.time" & {
|
|
78
|
+
readonly __schema: true;
|
|
79
|
+
};
|
|
80
|
+
epoch: number;
|
|
81
|
+
$version?: 1000000 | undefined;
|
|
82
|
+
xl1?: number | undefined;
|
|
83
|
+
xl1Hash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
84
|
+
ethereum?: number | undefined;
|
|
85
|
+
ethereumHash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
68
86
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
87
|
+
};
|
|
88
|
+
/** Coerces a value to TimePayload or returns undefined if it does not match. */
|
|
89
|
+
export declare const toTimePayload: {
|
|
90
|
+
(value: unknown): {
|
|
91
|
+
schema: "network.xyo.time" & {
|
|
92
|
+
readonly __schema: true;
|
|
93
|
+
};
|
|
94
|
+
epoch: number;
|
|
95
|
+
$version?: 1000000 | undefined;
|
|
96
|
+
xl1?: number | undefined;
|
|
97
|
+
xl1Hash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
98
|
+
ethereum?: number | undefined;
|
|
99
|
+
ethereumHash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
(value: unknown, assert: import("@ariestools/sdk").ZodFactoryConfig): {
|
|
102
|
+
schema: "network.xyo.time" & {
|
|
103
|
+
readonly __schema: true;
|
|
104
|
+
};
|
|
105
|
+
epoch: number;
|
|
106
|
+
$version?: 1000000 | undefined;
|
|
107
|
+
xl1?: number | undefined;
|
|
108
|
+
xl1Hash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
109
|
+
ethereum?: number | undefined;
|
|
110
|
+
ethereumHash?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
/** Type guard that checks whether a value is a TimePayload with storage metadata. */
|
|
114
|
+
export declare const isTimePayloadWithStorageMeta: (value: unknown) => value is WithStorageMeta<TimePayload>;
|
|
115
|
+
/** Casts a value to TimePayload with storage metadata or returns undefined. */
|
|
116
|
+
export declare const asTimePayloadWithStorageMeta: (value: unknown) => WithStorageMeta<TimePayload> | undefined;
|
|
76
117
|
//# sourceMappingURL=Time.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Time.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/elevatable/Time.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Time.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/elevatable/Time.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAIvD,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAK5B,2FAA2F;AAC3F,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAA;AAErD,2CAA2C;AAC3C,eAAO,MAAM,UAAU;;CAAqC,CAAA;AAC5D,qCAAqC;AACrC,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAA;AAE1C,sEAAsE;AACtE,eAAO,MAAM,gBAAgB;;;iBAK3B,CAAA;AAEF,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB;;;iBAKhC,CAAA;AAIF,qEAAqE;AACrE,eAAO,MAAM,cAAc,gBAAoB,CAAA;AAE/C,wDAAwD;AACxD,eAAO,MAAM,kBAAkB;;iBAG7B,CAAA;AAEF,uFAAuF;AACvF,eAAO,MAAM,aAAa;;;;;;iBAGzB,CAAA;AAED,mFAAmF;AACnF,eAAO,MAAM,cAAc;;;;;;;;;;iBAGzB,CAAA;AAEF,qEAAqE;AACrE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD,2GAA2G;AAC3G,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAGrD,CAAA;AAED,8FAA8F;AAC9F,eAAO,MAAM,aAAa;;;;;;;;;;CAA+B,CAAA;AACzD,8EAA8E;AAC9E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA;AAC1E,gFAAgF;AAChF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA;AAE1E,qFAAqF;AACrF,eAAO,MAAM,4BAA4B,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,eAAe,CAAC,WAAW,CAEjG,CAAA;AAED,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B,GAAI,OAAO,OAAO,KAAG,eAAe,CAAC,WAAW,CAAC,GAAG,SAE5F,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/sdk';
|
|
2
1
|
import { z } from 'zod/mini';
|
|
3
2
|
/** Possible outcomes of adjudicating a slash request. */
|
|
4
3
|
export declare const SlashOutcomes: readonly ["confirmed", "refuted", "indeterminate", "invalid"];
|
|
@@ -43,9 +42,133 @@ export declare const SlashAdjudicationFieldsZod: z.ZodMiniObject<{
|
|
|
43
42
|
/** Fields represented by the slash adjudication contract. */
|
|
44
43
|
export type SlashAdjudicationFields = z.infer<typeof SlashAdjudicationFieldsZod>;
|
|
45
44
|
/** A slash adjudication payload — the on-chain record closing a report. */
|
|
46
|
-
export
|
|
45
|
+
export declare const SlashAdjudicationZod: z.ZodMiniObject<{
|
|
46
|
+
$version: z.ZodMiniOptional<z.ZodMiniNumberFormat<z.core.$ZodNumberFormats>>;
|
|
47
|
+
schema: z.ZodMiniLiteral<"network.xyo.chain.slash.adjudication" & {
|
|
48
|
+
readonly __schema: true;
|
|
49
|
+
}>;
|
|
50
|
+
claimant: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
51
|
+
readonly __hex: true;
|
|
52
|
+
} & {
|
|
53
|
+
readonly __address: true;
|
|
54
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk").XyoQuantAddress, string>>]>>;
|
|
55
|
+
claimantCommit: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
56
|
+
from: z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
57
|
+
readonly __hex: true;
|
|
58
|
+
} & {
|
|
59
|
+
readonly __address: true;
|
|
60
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk").XyoQuantAddress, string>>]>;
|
|
61
|
+
outcome: z.ZodMiniLiteral<"confirmed" | "refuted" | "indeterminate" | "invalid">;
|
|
62
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
63
|
+
request: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
/** A slash adjudication payload — the on-chain record closing a report. */
|
|
66
|
+
export type SlashAdjudication = z.infer<typeof SlashAdjudicationZod>;
|
|
47
67
|
/** Type guard that checks if a value is a valid SlashAdjudication. */
|
|
48
|
-
export declare const isSlashAdjudication: (
|
|
68
|
+
export declare const isSlashAdjudication: <T>(value: T) => value is T & {
|
|
69
|
+
schema: "network.xyo.chain.slash.adjudication" & {
|
|
70
|
+
readonly __schema: true;
|
|
71
|
+
};
|
|
72
|
+
from: (Lowercase<string> & {
|
|
73
|
+
readonly __hex: true;
|
|
74
|
+
} & {
|
|
75
|
+
readonly __address: true;
|
|
76
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
77
|
+
outcome: "confirmed" | "refuted" | "indeterminate" | "invalid";
|
|
78
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
79
|
+
$version?: number | undefined;
|
|
80
|
+
claimant?: (Lowercase<string> & {
|
|
81
|
+
readonly __hex: true;
|
|
82
|
+
} & {
|
|
83
|
+
readonly __address: true;
|
|
84
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress | undefined;
|
|
85
|
+
claimantCommit?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
86
|
+
reason?: string | undefined;
|
|
87
|
+
};
|
|
49
88
|
/** Casts a value to SlashAdjudication or returns undefined if invalid. */
|
|
50
|
-
export declare const asSlashAdjudication:
|
|
89
|
+
export declare const asSlashAdjudication: {
|
|
90
|
+
<T>(value: T): (T & {
|
|
91
|
+
schema: "network.xyo.chain.slash.adjudication" & {
|
|
92
|
+
readonly __schema: true;
|
|
93
|
+
};
|
|
94
|
+
from: (Lowercase<string> & {
|
|
95
|
+
readonly __hex: true;
|
|
96
|
+
} & {
|
|
97
|
+
readonly __address: true;
|
|
98
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
99
|
+
outcome: "confirmed" | "refuted" | "indeterminate" | "invalid";
|
|
100
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
101
|
+
$version?: number | undefined;
|
|
102
|
+
claimant?: (Lowercase<string> & {
|
|
103
|
+
readonly __hex: true;
|
|
104
|
+
} & {
|
|
105
|
+
readonly __address: true;
|
|
106
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress | undefined;
|
|
107
|
+
claimantCommit?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
108
|
+
reason?: string | undefined;
|
|
109
|
+
}) | undefined;
|
|
110
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
111
|
+
schema: "network.xyo.chain.slash.adjudication" & {
|
|
112
|
+
readonly __schema: true;
|
|
113
|
+
};
|
|
114
|
+
from: (Lowercase<string> & {
|
|
115
|
+
readonly __hex: true;
|
|
116
|
+
} & {
|
|
117
|
+
readonly __address: true;
|
|
118
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
119
|
+
outcome: "confirmed" | "refuted" | "indeterminate" | "invalid";
|
|
120
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
121
|
+
$version?: number | undefined;
|
|
122
|
+
claimant?: (Lowercase<string> & {
|
|
123
|
+
readonly __hex: true;
|
|
124
|
+
} & {
|
|
125
|
+
readonly __address: true;
|
|
126
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress | undefined;
|
|
127
|
+
claimantCommit?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
128
|
+
reason?: string | undefined;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
/** Coerces a value to SlashAdjudication or returns undefined if invalid. */
|
|
132
|
+
export declare const toSlashAdjudication: {
|
|
133
|
+
(value: unknown): {
|
|
134
|
+
schema: "network.xyo.chain.slash.adjudication" & {
|
|
135
|
+
readonly __schema: true;
|
|
136
|
+
};
|
|
137
|
+
from: (Lowercase<string> & {
|
|
138
|
+
readonly __hex: true;
|
|
139
|
+
} & {
|
|
140
|
+
readonly __address: true;
|
|
141
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
142
|
+
outcome: "confirmed" | "refuted" | "indeterminate" | "invalid";
|
|
143
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
144
|
+
$version?: number | undefined;
|
|
145
|
+
claimant?: (Lowercase<string> & {
|
|
146
|
+
readonly __hex: true;
|
|
147
|
+
} & {
|
|
148
|
+
readonly __address: true;
|
|
149
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress | undefined;
|
|
150
|
+
claimantCommit?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
151
|
+
reason?: string | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
(value: unknown, assert: import("@ariestools/sdk").ZodFactoryConfig): {
|
|
154
|
+
schema: "network.xyo.chain.slash.adjudication" & {
|
|
155
|
+
readonly __schema: true;
|
|
156
|
+
};
|
|
157
|
+
from: (Lowercase<string> & {
|
|
158
|
+
readonly __hex: true;
|
|
159
|
+
} & {
|
|
160
|
+
readonly __address: true;
|
|
161
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
162
|
+
outcome: "confirmed" | "refuted" | "indeterminate" | "invalid";
|
|
163
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
164
|
+
$version?: number | undefined;
|
|
165
|
+
claimant?: (Lowercase<string> & {
|
|
166
|
+
readonly __hex: true;
|
|
167
|
+
} & {
|
|
168
|
+
readonly __address: true;
|
|
169
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress | undefined;
|
|
170
|
+
claimantCommit?: import("@ariestools/sdk").BrandedHash | undefined;
|
|
171
|
+
reason?: string | undefined;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
51
174
|
//# sourceMappingURL=SlashAdjudicationPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlashAdjudicationPayload.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/slash/SlashAdjudicationPayload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SlashAdjudicationPayload.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/slash/SlashAdjudicationPayload.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAE5B,yDAAyD;AACzD,eAAO,MAAM,aAAa,+DAAgE,CAAA;AAE1F,mDAAmD;AACnD,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;AAEvD,sCAAsC;AACtC,eAAO,MAAM,eAAe,yEAA2B,CAAA;AAEvD,yDAAyD;AACzD,eAAO,MAAM,uBAAuB;;CAAyD,CAAA;AAC7F,mDAAmD;AACnD,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAarC,CAAA;AAEF,6DAA6D;AAC7D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;iBAA0F,CAAA;AAE3H,2EAA2E;AAC3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE,sEAAsE;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;CAAqC,CAAA;AACrE,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA;AAC5F,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/sdk';
|
|
2
1
|
import { z } from 'zod/mini';
|
|
3
2
|
/** Schema identifier for slash challenge payloads. */
|
|
4
3
|
export declare const SlashChallengeSchema: "network.xyo.chain.slash.challenge" & {
|
|
@@ -25,9 +24,91 @@ export declare const SlashChallengeFieldsZod: z.ZodMiniObject<{
|
|
|
25
24
|
/** Fields represented by the slash challenge contract. */
|
|
26
25
|
export type SlashChallengeFields = z.infer<typeof SlashChallengeFieldsZod>;
|
|
27
26
|
/** A slash challenge payload — counter-evidence against a pending report. */
|
|
28
|
-
export
|
|
27
|
+
export declare const SlashChallengeZod: z.ZodMiniObject<{
|
|
28
|
+
$version: z.ZodMiniOptional<z.ZodMiniNumberFormat<z.core.$ZodNumberFormats>>;
|
|
29
|
+
schema: z.ZodMiniLiteral<"network.xyo.chain.slash.challenge" & {
|
|
30
|
+
readonly __schema: true;
|
|
31
|
+
}>;
|
|
32
|
+
evidence: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>;
|
|
33
|
+
from: z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
34
|
+
readonly __hex: true;
|
|
35
|
+
} & {
|
|
36
|
+
readonly __address: true;
|
|
37
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk").XyoQuantAddress, string>>]>;
|
|
38
|
+
request: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
/** A slash challenge payload — counter-evidence against a pending report. */
|
|
41
|
+
export type SlashChallenge = z.infer<typeof SlashChallengeZod>;
|
|
29
42
|
/** Type guard that checks if a value is a valid SlashChallenge. */
|
|
30
|
-
export declare const isSlashChallenge: (
|
|
43
|
+
export declare const isSlashChallenge: <T>(value: T) => value is T & {
|
|
44
|
+
schema: "network.xyo.chain.slash.challenge" & {
|
|
45
|
+
readonly __schema: true;
|
|
46
|
+
};
|
|
47
|
+
evidence: import("@ariestools/sdk").BrandedHash[];
|
|
48
|
+
from: (Lowercase<string> & {
|
|
49
|
+
readonly __hex: true;
|
|
50
|
+
} & {
|
|
51
|
+
readonly __address: true;
|
|
52
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
53
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
54
|
+
$version?: number | undefined;
|
|
55
|
+
};
|
|
31
56
|
/** Casts a value to SlashChallenge or returns undefined if invalid. */
|
|
32
|
-
export declare const asSlashChallenge:
|
|
57
|
+
export declare const asSlashChallenge: {
|
|
58
|
+
<T>(value: T): (T & {
|
|
59
|
+
schema: "network.xyo.chain.slash.challenge" & {
|
|
60
|
+
readonly __schema: true;
|
|
61
|
+
};
|
|
62
|
+
evidence: import("@ariestools/sdk").BrandedHash[];
|
|
63
|
+
from: (Lowercase<string> & {
|
|
64
|
+
readonly __hex: true;
|
|
65
|
+
} & {
|
|
66
|
+
readonly __address: true;
|
|
67
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
68
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
69
|
+
$version?: number | undefined;
|
|
70
|
+
}) | undefined;
|
|
71
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
72
|
+
schema: "network.xyo.chain.slash.challenge" & {
|
|
73
|
+
readonly __schema: true;
|
|
74
|
+
};
|
|
75
|
+
evidence: import("@ariestools/sdk").BrandedHash[];
|
|
76
|
+
from: (Lowercase<string> & {
|
|
77
|
+
readonly __hex: true;
|
|
78
|
+
} & {
|
|
79
|
+
readonly __address: true;
|
|
80
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
81
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
82
|
+
$version?: number | undefined;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
/** Coerces a value to SlashChallenge or returns undefined if invalid. */
|
|
86
|
+
export declare const toSlashChallenge: {
|
|
87
|
+
(value: unknown): {
|
|
88
|
+
schema: "network.xyo.chain.slash.challenge" & {
|
|
89
|
+
readonly __schema: true;
|
|
90
|
+
};
|
|
91
|
+
evidence: import("@ariestools/sdk").BrandedHash[];
|
|
92
|
+
from: (Lowercase<string> & {
|
|
93
|
+
readonly __hex: true;
|
|
94
|
+
} & {
|
|
95
|
+
readonly __address: true;
|
|
96
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
97
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
98
|
+
$version?: number | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
(value: unknown, assert: import("@ariestools/sdk").ZodFactoryConfig): {
|
|
101
|
+
schema: "network.xyo.chain.slash.challenge" & {
|
|
102
|
+
readonly __schema: true;
|
|
103
|
+
};
|
|
104
|
+
evidence: import("@ariestools/sdk").BrandedHash[];
|
|
105
|
+
from: (Lowercase<string> & {
|
|
106
|
+
readonly __hex: true;
|
|
107
|
+
} & {
|
|
108
|
+
readonly __address: true;
|
|
109
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
110
|
+
request: import("@ariestools/sdk").BrandedHash;
|
|
111
|
+
$version?: number | undefined;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
33
114
|
//# sourceMappingURL=SlashChallengePayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlashChallengePayload.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/slash/SlashChallengePayload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SlashChallengePayload.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/slash/SlashChallengePayload.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAE5B,sDAAsD;AACtD,eAAO,MAAM,oBAAoB;;CAAsD,CAAA;AACvF,gDAAgD;AAChD,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;iBAOlC,CAAA;AAEF,0DAA0D;AAC1D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE1E,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAAoF,CAAA;AAElH,6EAA6E;AAC7E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D,mEAAmE;AACnE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;CAAkC,CAAA;AAC/D,uEAAuE;AACvE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsD,CAAA;AACnF,yEAAyE;AACzE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsD,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/sdk';
|
|
2
1
|
import { z } from 'zod/mini';
|
|
3
2
|
/** Schema identifier for slash commit payloads. */
|
|
4
3
|
export declare const SlashCommitSchema: "network.xyo.chain.slash.commit" & {
|
|
@@ -27,9 +26,85 @@ export declare const SlashCommitFieldsZod: z.ZodMiniObject<{
|
|
|
27
26
|
/** Fields represented by the slash commit contract. */
|
|
28
27
|
export type SlashCommitFields = z.infer<typeof SlashCommitFieldsZod>;
|
|
29
28
|
/** A slash commit payload — reserves a report before its evidence is public. */
|
|
30
|
-
export
|
|
29
|
+
export declare const SlashCommitZod: z.ZodMiniObject<{
|
|
30
|
+
$version: z.ZodMiniOptional<z.ZodMiniNumberFormat<z.core.$ZodNumberFormats>>;
|
|
31
|
+
schema: z.ZodMiniLiteral<"network.xyo.chain.slash.commit" & {
|
|
32
|
+
readonly __schema: true;
|
|
33
|
+
}>;
|
|
34
|
+
commitment: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
|
|
35
|
+
from: z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
36
|
+
readonly __hex: true;
|
|
37
|
+
} & {
|
|
38
|
+
readonly __address: true;
|
|
39
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk").XyoQuantAddress, string>>]>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
/** A slash commit payload — reserves a report before its evidence is public. */
|
|
42
|
+
export type SlashCommit = z.infer<typeof SlashCommitZod>;
|
|
31
43
|
/** Type guard that checks if a value is a valid SlashCommit. */
|
|
32
|
-
export declare const isSlashCommit: (
|
|
44
|
+
export declare const isSlashCommit: <T>(value: T) => value is T & {
|
|
45
|
+
schema: "network.xyo.chain.slash.commit" & {
|
|
46
|
+
readonly __schema: true;
|
|
47
|
+
};
|
|
48
|
+
commitment: import("@ariestools/sdk").BrandedHash;
|
|
49
|
+
from: (Lowercase<string> & {
|
|
50
|
+
readonly __hex: true;
|
|
51
|
+
} & {
|
|
52
|
+
readonly __address: true;
|
|
53
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
54
|
+
$version?: number | undefined;
|
|
55
|
+
};
|
|
33
56
|
/** Casts a value to SlashCommit or returns undefined if invalid. */
|
|
34
|
-
export declare const asSlashCommit:
|
|
57
|
+
export declare const asSlashCommit: {
|
|
58
|
+
<T>(value: T): (T & {
|
|
59
|
+
schema: "network.xyo.chain.slash.commit" & {
|
|
60
|
+
readonly __schema: true;
|
|
61
|
+
};
|
|
62
|
+
commitment: import("@ariestools/sdk").BrandedHash;
|
|
63
|
+
from: (Lowercase<string> & {
|
|
64
|
+
readonly __hex: true;
|
|
65
|
+
} & {
|
|
66
|
+
readonly __address: true;
|
|
67
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
68
|
+
$version?: number | undefined;
|
|
69
|
+
}) | undefined;
|
|
70
|
+
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
71
|
+
schema: "network.xyo.chain.slash.commit" & {
|
|
72
|
+
readonly __schema: true;
|
|
73
|
+
};
|
|
74
|
+
commitment: import("@ariestools/sdk").BrandedHash;
|
|
75
|
+
from: (Lowercase<string> & {
|
|
76
|
+
readonly __hex: true;
|
|
77
|
+
} & {
|
|
78
|
+
readonly __address: true;
|
|
79
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
80
|
+
$version?: number | undefined;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
/** Coerces a value to SlashCommit or returns undefined if invalid. */
|
|
84
|
+
export declare const toSlashCommit: {
|
|
85
|
+
(value: unknown): {
|
|
86
|
+
schema: "network.xyo.chain.slash.commit" & {
|
|
87
|
+
readonly __schema: true;
|
|
88
|
+
};
|
|
89
|
+
commitment: import("@ariestools/sdk").BrandedHash;
|
|
90
|
+
from: (Lowercase<string> & {
|
|
91
|
+
readonly __hex: true;
|
|
92
|
+
} & {
|
|
93
|
+
readonly __address: true;
|
|
94
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
95
|
+
$version?: number | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
(value: unknown, assert: import("@ariestools/sdk").ZodFactoryConfig): {
|
|
98
|
+
schema: "network.xyo.chain.slash.commit" & {
|
|
99
|
+
readonly __schema: true;
|
|
100
|
+
};
|
|
101
|
+
commitment: import("@ariestools/sdk").BrandedHash;
|
|
102
|
+
from: (Lowercase<string> & {
|
|
103
|
+
readonly __hex: true;
|
|
104
|
+
} & {
|
|
105
|
+
readonly __address: true;
|
|
106
|
+
}) | import("@xyo-network/sdk").XyoQuantAddress;
|
|
107
|
+
$version?: number | undefined;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
35
110
|
//# sourceMappingURL=SlashCommitPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlashCommitPayload.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/slash/SlashCommitPayload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SlashCommitPayload.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/protocol-model/payload/slash/SlashCommitPayload.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAE5B,mDAAmD;AACnD,eAAO,MAAM,iBAAiB;;CAAmD,CAAA;AACjF,6CAA6C;AAC7C,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAExD;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;;;;;iBAK/B,CAAA;AAEF,uDAAuD;AACvD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE,gFAAgF;AAChF,eAAO,MAAM,cAAc;;;;;;;;;;;iBAA8E,CAAA;AAEzG,gFAAgF;AAChF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD,gEAAgE;AAChE,eAAO,MAAM,aAAa;;;;;;;;;;;CAA+B,CAAA;AACzD,oEAAoE;AACpE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA;AAC1E,sEAAsE;AACtE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA"}
|