@xyo-network/xl1-protocol-sdk 1.10.2 → 1.12.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/config/Api.d.ts +5 -13
- package/dist/neutral/config/Api.d.ts.map +1 -1
- package/dist/neutral/config/App.d.ts +4 -7
- package/dist/neutral/config/App.d.ts.map +1 -1
- package/dist/neutral/config/Chain.d.ts +3 -6
- package/dist/neutral/config/Chain.d.ts.map +1 -1
- package/dist/neutral/config/Config.d.ts +39 -225
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/Evm.d.ts +11 -49
- package/dist/neutral/config/Evm.d.ts.map +1 -1
- package/dist/neutral/config/Log.d.ts +12 -7
- package/dist/neutral/config/Log.d.ts.map +1 -1
- package/dist/neutral/config/Producer.d.ts +7 -20
- package/dist/neutral/config/Producer.d.ts.map +1 -1
- package/dist/neutral/config/Telemetry.d.ts +8 -24
- package/dist/neutral/config/Telemetry.d.ts.map +1 -1
- package/dist/neutral/config/UsageMeta.d.ts +27 -0
- package/dist/neutral/config/UsageMeta.d.ts.map +1 -0
- package/dist/neutral/config/index.d.ts +1 -0
- package/dist/neutral/config/index.d.ts.map +1 -1
- package/dist/neutral/config/storage/Storage.d.ts +4 -34
- package/dist/neutral/config/storage/Storage.d.ts.map +1 -1
- package/dist/neutral/config/storage/driver/Mongo.d.ts +3 -15
- package/dist/neutral/config/storage/driver/Mongo.d.ts.map +1 -1
- package/dist/neutral/index.mjs +215 -72
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/instances/transaction/HydratedTransaction.d.ts +2 -2
- package/dist/neutral/instances/transaction/HydratedTransaction.d.ts.map +1 -1
- package/dist/neutral/payload/netBalancesForPayloads.d.ts +5 -2
- package/dist/neutral/payload/netBalancesForPayloads.d.ts.map +1 -1
- package/dist/neutral/transaction/buildTransaction.d.ts +3 -3
- package/dist/neutral/transaction/buildTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts +3 -3
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/confirmSubmittedTransaction.d.ts +2 -2
- package/dist/neutral/transaction/confirmSubmittedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/hydrateTransaction.d.ts +7 -7
- package/dist/neutral/transaction/hydrateTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/primitives/transactionBlockByteCount.d.ts +2 -2
- package/dist/neutral/transaction/primitives/transactionBlockByteCount.d.ts.map +1 -1
- package/dist/neutral/transaction/primitives/transactionElevatedPayloads.d.ts +2 -2
- package/dist/neutral/transaction/primitives/transactionElevatedPayloads.d.ts.map +1 -1
- package/dist/neutral/transaction/primitives/transactionRequiredGas.d.ts +3 -3
- package/dist/neutral/transaction/primitives/transactionRequiredGas.d.ts.map +1 -1
- package/dist/neutral/transaction/script.d.ts +3 -3
- package/dist/neutral/transaction/script.d.ts.map +1 -1
- package/dist/neutral/transaction/signTransaction.d.ts +1 -1
- package/dist/neutral/transaction/signTransaction.d.ts.map +1 -1
- package/dist/neutral/validation/schema/Mnemonic.d.ts +2 -2
- package/dist/neutral/validation/schema/Mnemonic.d.ts.map +1 -1
- package/package.json +21 -21
- package/src/config/Api.ts +21 -7
- package/src/config/App.ts +11 -2
- package/src/config/Chain.ts +10 -3
- package/src/config/Config.ts +19 -25
- package/src/config/Evm.ts +29 -12
- package/src/config/Log.ts +18 -2
- package/src/config/Producer.ts +36 -9
- package/src/config/Telemetry.ts +10 -6
- package/src/config/UsageMeta.ts +41 -0
- package/src/config/index.ts +1 -0
- package/src/config/storage/Storage.ts +10 -6
- package/src/config/storage/driver/Mongo.ts +28 -8
- package/src/instances/transaction/HydratedTransaction.ts +2 -2
- package/src/transaction/buildTransaction.ts +5 -4
- package/src/transaction/buildUnsignedTransaction.ts +5 -4
- package/src/transaction/confirmSubmittedTransaction.ts +2 -2
- package/src/transaction/hydrateTransaction.ts +12 -12
- package/src/transaction/primitives/spec/transactionBlockByteCount.spec.ts +7 -7
- package/src/transaction/primitives/transactionBlockByteCount.ts +2 -2
- package/src/transaction/primitives/transactionElevatedPayloads.ts +2 -2
- package/src/transaction/primitives/transactionRequiredGas.ts +3 -3
- package/src/transaction/script.ts +3 -3
- package/src/transaction/signTransaction.ts +5 -5
- package/src/validation/schema/Mnemonic.ts +2 -2
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
mnemonic: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2
|
+
export declare const ApiConfigZod: z.ZodObject<{
|
|
4
3
|
host: z.ZodDefault<z.ZodString>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
mnemonic?: string | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
mnemonic?: string | undefined;
|
|
12
|
-
host?: string | undefined;
|
|
13
|
-
port?: number | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export type ApiConfig = z.infer<typeof ApiConfigSchema>;
|
|
4
|
+
mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
5
|
+
port: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
6
|
+
}, z.z.core.$strip>;
|
|
7
|
+
export type ApiConfig = z.infer<typeof ApiConfigZod>;
|
|
16
8
|
//# sourceMappingURL=Api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Api.d.ts","sourceRoot":"","sources":["../../../src/config/Api.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Api.d.ts","sourceRoot":"","sources":["../../../src/config/Api.ts"],"names":[],"mappings":"AAAA,OAAO,CAAqB,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,YAAY;;;;mBAkBvB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
port: z.ZodDefault<z.
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
-
}, {
|
|
7
|
-
port?: number | undefined;
|
|
8
|
-
}>;
|
|
2
|
+
export declare const AppConfigZod: z.ZodObject<{
|
|
3
|
+
port: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
4
|
+
}, z.z.core.$strip>;
|
|
5
|
+
export type AppConfig = z.infer<typeof AppConfigZod>;
|
|
9
6
|
//# sourceMappingURL=App.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/config/App.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/config/App.ts"],"names":[],"mappings":"AAAA,OAAO,CAAqB,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,YAAY;;mBAOvB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ChainConfigZod: z.ZodObject<{
|
|
3
3
|
id: z.ZodOptional<z.ZodString>;
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
-
}, {
|
|
7
|
-
id?: string | undefined;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.z.core.$strip>;
|
|
5
|
+
export type ChainConfig = z.infer<typeof ChainConfigZod>;
|
|
9
6
|
//# sourceMappingURL=Chain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chain.d.ts","sourceRoot":"","sources":["../../../src/config/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Chain.d.ts","sourceRoot":"","sources":["../../../src/config/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,CAAqB,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,cAAc;;mBAQzB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -1,102 +1,45 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const Xl1CommonConfigSchema: z.ZodObject<{
|
|
3
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
4
|
+
error: "error";
|
|
5
|
+
warn: "warn";
|
|
6
|
+
info: "info";
|
|
7
|
+
log: "log";
|
|
8
|
+
debug: "debug";
|
|
9
|
+
trace: "trace";
|
|
10
|
+
}>>;
|
|
3
11
|
silent: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
7
|
-
silent: boolean;
|
|
8
|
-
}, {
|
|
9
|
-
logLevel?: "error" | "warn" | "info" | "log" | "debug" | "trace" | undefined;
|
|
10
|
-
silent?: boolean | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const ConfigSchema: z.ZodObject<{
|
|
12
|
+
}, z.z.core.$strip>;
|
|
13
|
+
export declare const ConfigZod: z.ZodObject<{
|
|
13
14
|
api: z.ZodDefault<z.ZodObject<{
|
|
14
|
-
mnemonic: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
15
15
|
host: z.ZodDefault<z.ZodString>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
port: number;
|
|
20
|
-
mnemonic?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
mnemonic?: string | undefined;
|
|
23
|
-
host?: string | undefined;
|
|
24
|
-
port?: number | undefined;
|
|
25
|
-
}>>;
|
|
16
|
+
mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
17
|
+
port: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
18
|
+
}, z.z.core.$strip>>;
|
|
26
19
|
app: z.ZodDefault<z.ZodObject<{
|
|
27
|
-
port: z.ZodDefault<z.
|
|
28
|
-
},
|
|
29
|
-
port: number;
|
|
30
|
-
}, {
|
|
31
|
-
port?: number | undefined;
|
|
32
|
-
}>>;
|
|
20
|
+
port: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
21
|
+
}, z.z.core.$strip>>;
|
|
33
22
|
chain: z.ZodDefault<z.ZodObject<{
|
|
34
23
|
id: z.ZodOptional<z.ZodString>;
|
|
35
|
-
},
|
|
36
|
-
id?: string | undefined;
|
|
37
|
-
}, {
|
|
38
|
-
id?: string | undefined;
|
|
39
|
-
}>>;
|
|
24
|
+
}, z.z.core.$strip>>;
|
|
40
25
|
evm: z.ZodDefault<z.ZodObject<{
|
|
41
26
|
chainId: z.ZodOptional<z.ZodString>;
|
|
42
27
|
infura: z.ZodOptional<z.ZodObject<{
|
|
43
28
|
projectId: z.ZodOptional<z.ZodString>;
|
|
44
29
|
projectSecret: z.ZodOptional<z.ZodString>;
|
|
45
|
-
},
|
|
46
|
-
projectId?: string | undefined;
|
|
47
|
-
projectSecret?: string | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
projectId?: string | undefined;
|
|
50
|
-
projectSecret?: string | undefined;
|
|
51
|
-
}>>;
|
|
30
|
+
}, z.z.core.$strip>>;
|
|
52
31
|
jsonRpc: z.ZodOptional<z.ZodObject<{
|
|
53
|
-
url: z.ZodOptional<z.
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
}, {
|
|
57
|
-
url?: string | undefined;
|
|
58
|
-
}>>;
|
|
59
|
-
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
chainId?: string | undefined;
|
|
61
|
-
infura?: {
|
|
62
|
-
projectId?: string | undefined;
|
|
63
|
-
projectSecret?: string | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
jsonRpc?: {
|
|
66
|
-
url?: string | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
}, {
|
|
69
|
-
chainId?: string | undefined;
|
|
70
|
-
infura?: {
|
|
71
|
-
projectId?: string | undefined;
|
|
72
|
-
projectSecret?: string | undefined;
|
|
73
|
-
} | undefined;
|
|
74
|
-
jsonRpc?: {
|
|
75
|
-
url?: string | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
}>>;
|
|
32
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
33
|
+
}, z.z.core.$strip>>;
|
|
34
|
+
}, z.z.core.$strip>>;
|
|
78
35
|
producer: z.ZodDefault<z.ZodObject<{
|
|
79
|
-
healthCheckPort: z.ZodOptional<z.ZodNumber>;
|
|
80
|
-
minStake: z.ZodDefault<z.ZodNumber>;
|
|
81
|
-
mnemonic: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
82
|
-
port: z.ZodDefault<z.ZodNumber>;
|
|
83
36
|
disableIntentRedeclaration: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
healthCheckPort: z.ZodOptional<z.z.ZodCoercedNumber<unknown>>;
|
|
38
|
+
minStake: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
39
|
+
mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
40
|
+
port: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
84
41
|
rewardAddress: z.ZodOptional<z.ZodString>;
|
|
85
|
-
},
|
|
86
|
-
port: number;
|
|
87
|
-
minStake: number;
|
|
88
|
-
mnemonic?: string | undefined;
|
|
89
|
-
healthCheckPort?: number | undefined;
|
|
90
|
-
disableIntentRedeclaration?: boolean | undefined;
|
|
91
|
-
rewardAddress?: string | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
mnemonic?: string | undefined;
|
|
94
|
-
port?: number | undefined;
|
|
95
|
-
healthCheckPort?: number | undefined;
|
|
96
|
-
minStake?: number | undefined;
|
|
97
|
-
disableIntentRedeclaration?: boolean | undefined;
|
|
98
|
-
rewardAddress?: string | undefined;
|
|
99
|
-
}>>;
|
|
42
|
+
}, z.z.core.$strip>>;
|
|
100
43
|
storage: z.ZodDefault<z.ZodObject<{
|
|
101
44
|
mongo: z.ZodOptional<z.ZodObject<{
|
|
102
45
|
connectionString: z.ZodOptional<z.ZodString>;
|
|
@@ -104,153 +47,24 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
104
47
|
domain: z.ZodOptional<z.ZodString>;
|
|
105
48
|
password: z.ZodOptional<z.ZodString>;
|
|
106
49
|
username: z.ZodOptional<z.ZodString>;
|
|
107
|
-
},
|
|
108
|
-
connectionString?: string | undefined;
|
|
109
|
-
database?: string | undefined;
|
|
110
|
-
domain?: string | undefined;
|
|
111
|
-
password?: string | undefined;
|
|
112
|
-
username?: string | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
connectionString?: string | undefined;
|
|
115
|
-
database?: string | undefined;
|
|
116
|
-
domain?: string | undefined;
|
|
117
|
-
password?: string | undefined;
|
|
118
|
-
username?: string | undefined;
|
|
119
|
-
}>>;
|
|
50
|
+
}, z.z.core.$strip>>;
|
|
120
51
|
root: z.ZodOptional<z.ZodString>;
|
|
121
|
-
},
|
|
122
|
-
root?: string | undefined;
|
|
123
|
-
mongo?: {
|
|
124
|
-
connectionString?: string | undefined;
|
|
125
|
-
database?: string | undefined;
|
|
126
|
-
domain?: string | undefined;
|
|
127
|
-
password?: string | undefined;
|
|
128
|
-
username?: string | undefined;
|
|
129
|
-
} | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
root?: string | undefined;
|
|
132
|
-
mongo?: {
|
|
133
|
-
connectionString?: string | undefined;
|
|
134
|
-
database?: string | undefined;
|
|
135
|
-
domain?: string | undefined;
|
|
136
|
-
password?: string | undefined;
|
|
137
|
-
username?: string | undefined;
|
|
138
|
-
} | undefined;
|
|
139
|
-
}>>;
|
|
52
|
+
}, z.z.core.$strip>>;
|
|
140
53
|
telemetry: z.ZodDefault<z.ZodObject<{
|
|
141
54
|
otel: z.ZodOptional<z.ZodObject<{
|
|
142
|
-
otlpEndpoint: z.ZodOptional<z.
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}, {
|
|
153
|
-
otel?: {
|
|
154
|
-
otlpEndpoint?: string | undefined;
|
|
155
|
-
} | undefined;
|
|
55
|
+
otlpEndpoint: z.ZodOptional<z.ZodURL>;
|
|
56
|
+
}, z.z.core.$strip>>;
|
|
57
|
+
}, z.z.core.$strip>>;
|
|
58
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
59
|
+
error: "error";
|
|
60
|
+
warn: "warn";
|
|
61
|
+
info: "info";
|
|
62
|
+
log: "log";
|
|
63
|
+
debug: "debug";
|
|
64
|
+
trace: "trace";
|
|
156
65
|
}>>;
|
|
157
66
|
silent: z.ZodDefault<z.ZodBoolean>;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
chain: {
|
|
161
|
-
id?: string | undefined;
|
|
162
|
-
};
|
|
163
|
-
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
164
|
-
storage: {
|
|
165
|
-
root?: string | undefined;
|
|
166
|
-
mongo?: {
|
|
167
|
-
connectionString?: string | undefined;
|
|
168
|
-
database?: string | undefined;
|
|
169
|
-
domain?: string | undefined;
|
|
170
|
-
password?: string | undefined;
|
|
171
|
-
username?: string | undefined;
|
|
172
|
-
} | undefined;
|
|
173
|
-
};
|
|
174
|
-
silent: boolean;
|
|
175
|
-
api: {
|
|
176
|
-
host: string;
|
|
177
|
-
port: number;
|
|
178
|
-
mnemonic?: string | undefined;
|
|
179
|
-
};
|
|
180
|
-
app: {
|
|
181
|
-
port: number;
|
|
182
|
-
};
|
|
183
|
-
evm: {
|
|
184
|
-
chainId?: string | undefined;
|
|
185
|
-
infura?: {
|
|
186
|
-
projectId?: string | undefined;
|
|
187
|
-
projectSecret?: string | undefined;
|
|
188
|
-
} | undefined;
|
|
189
|
-
jsonRpc?: {
|
|
190
|
-
url?: string | undefined;
|
|
191
|
-
} | undefined;
|
|
192
|
-
};
|
|
193
|
-
producer: {
|
|
194
|
-
port: number;
|
|
195
|
-
minStake: number;
|
|
196
|
-
mnemonic?: string | undefined;
|
|
197
|
-
healthCheckPort?: number | undefined;
|
|
198
|
-
disableIntentRedeclaration?: boolean | undefined;
|
|
199
|
-
rewardAddress?: string | undefined;
|
|
200
|
-
};
|
|
201
|
-
telemetry: {
|
|
202
|
-
otel?: {
|
|
203
|
-
otlpEndpoint?: string | undefined;
|
|
204
|
-
} | undefined;
|
|
205
|
-
};
|
|
206
|
-
}, {
|
|
207
|
-
chain?: {
|
|
208
|
-
id?: string | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
logLevel?: "error" | "warn" | "info" | "log" | "debug" | "trace" | undefined;
|
|
211
|
-
storage?: {
|
|
212
|
-
root?: string | undefined;
|
|
213
|
-
mongo?: {
|
|
214
|
-
connectionString?: string | undefined;
|
|
215
|
-
database?: string | undefined;
|
|
216
|
-
domain?: string | undefined;
|
|
217
|
-
password?: string | undefined;
|
|
218
|
-
username?: string | undefined;
|
|
219
|
-
} | undefined;
|
|
220
|
-
} | undefined;
|
|
221
|
-
silent?: boolean | undefined;
|
|
222
|
-
api?: {
|
|
223
|
-
mnemonic?: string | undefined;
|
|
224
|
-
host?: string | undefined;
|
|
225
|
-
port?: number | undefined;
|
|
226
|
-
} | undefined;
|
|
227
|
-
app?: {
|
|
228
|
-
port?: number | undefined;
|
|
229
|
-
} | undefined;
|
|
230
|
-
evm?: {
|
|
231
|
-
chainId?: string | undefined;
|
|
232
|
-
infura?: {
|
|
233
|
-
projectId?: string | undefined;
|
|
234
|
-
projectSecret?: string | undefined;
|
|
235
|
-
} | undefined;
|
|
236
|
-
jsonRpc?: {
|
|
237
|
-
url?: string | undefined;
|
|
238
|
-
} | undefined;
|
|
239
|
-
} | undefined;
|
|
240
|
-
producer?: {
|
|
241
|
-
mnemonic?: string | undefined;
|
|
242
|
-
port?: number | undefined;
|
|
243
|
-
healthCheckPort?: number | undefined;
|
|
244
|
-
minStake?: number | undefined;
|
|
245
|
-
disableIntentRedeclaration?: boolean | undefined;
|
|
246
|
-
rewardAddress?: string | undefined;
|
|
247
|
-
} | undefined;
|
|
248
|
-
telemetry?: {
|
|
249
|
-
otel?: {
|
|
250
|
-
otlpEndpoint?: string | undefined;
|
|
251
|
-
} | undefined;
|
|
252
|
-
} | undefined;
|
|
253
|
-
}>;
|
|
254
|
-
export type Config = z.infer<typeof ConfigSchema>;
|
|
67
|
+
}, z.z.core.$strip>;
|
|
68
|
+
export type Config = z.infer<typeof ConfigZod>;
|
|
255
69
|
export declare const getDefaultConfig: () => Config;
|
|
256
70
|
//# 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;AAWnB,eAAO,MAAM,qBAAqB;;;;;;;;;;mBAAmF,CAAA;AAErH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBASpB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAE9C,eAAO,MAAM,gBAAgB,QAAO,MAA6B,CAAA"}
|
|
@@ -1,58 +1,20 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
url: z.ZodOptional<z.ZodString>;
|
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
url?: string | undefined;
|
|
6
|
-
}, {
|
|
7
|
-
url?: string | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const EvmInfuraConfigSchema: z.ZodObject<{
|
|
2
|
+
export declare const EvmInfuraConfigZod: z.ZodObject<{
|
|
10
3
|
projectId: z.ZodOptional<z.ZodString>;
|
|
11
4
|
projectSecret: z.ZodOptional<z.ZodString>;
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
projectSecret?: string | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const EvmConfigSchema: z.ZodObject<{
|
|
5
|
+
}, z.z.core.$strip>;
|
|
6
|
+
export declare const EvmJsonRpcConfigZod: z.ZodObject<{
|
|
7
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
8
|
+
}, z.z.core.$strip>;
|
|
9
|
+
export declare const EvmConfigZod: z.ZodObject<{
|
|
20
10
|
chainId: z.ZodOptional<z.ZodString>;
|
|
21
11
|
infura: z.ZodOptional<z.ZodObject<{
|
|
22
12
|
projectId: z.ZodOptional<z.ZodString>;
|
|
23
13
|
projectSecret: z.ZodOptional<z.ZodString>;
|
|
24
|
-
},
|
|
25
|
-
projectId?: string | undefined;
|
|
26
|
-
projectSecret?: string | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
projectId?: string | undefined;
|
|
29
|
-
projectSecret?: string | undefined;
|
|
30
|
-
}>>;
|
|
14
|
+
}, z.z.core.$strip>>;
|
|
31
15
|
jsonRpc: z.ZodOptional<z.ZodObject<{
|
|
32
|
-
url: z.ZodOptional<z.
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
url?: string | undefined;
|
|
37
|
-
}>>;
|
|
38
|
-
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
chainId?: string | undefined;
|
|
40
|
-
infura?: {
|
|
41
|
-
projectId?: string | undefined;
|
|
42
|
-
projectSecret?: string | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
jsonRpc?: {
|
|
45
|
-
url?: string | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
chainId?: string | undefined;
|
|
49
|
-
infura?: {
|
|
50
|
-
projectId?: string | undefined;
|
|
51
|
-
projectSecret?: string | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
jsonRpc?: {
|
|
54
|
-
url?: string | undefined;
|
|
55
|
-
} | undefined;
|
|
56
|
-
}>;
|
|
57
|
-
export type EvmConfig = z.infer<typeof EvmConfigSchema>;
|
|
16
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
17
|
+
}, z.z.core.$strip>>;
|
|
18
|
+
}, z.z.core.$strip>;
|
|
19
|
+
export type EvmConfig = z.infer<typeof EvmConfigZod>;
|
|
58
20
|
//# sourceMappingURL=Evm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Evm.d.ts","sourceRoot":"","sources":["../../../src/config/Evm.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Evm.d.ts","sourceRoot":"","sources":["../../../src/config/Evm.ts"],"names":[],"mappings":"AAAA,OAAO,CAAqB,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,kBAAkB;;;mBAW7B,CAAA;AAEF,eAAO,MAAM,mBAAmB;;mBAM9B,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;mBAQvB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
export declare const LogConfigZod: z.ZodObject<{
|
|
3
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
4
|
+
error: "error";
|
|
5
|
+
warn: "warn";
|
|
6
|
+
info: "info";
|
|
7
|
+
log: "log";
|
|
8
|
+
debug: "debug";
|
|
9
|
+
trace: "trace";
|
|
10
|
+
}>>;
|
|
11
|
+
silent: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
}, z.z.core.$strip>;
|
|
13
|
+
export type LogConfig = z.infer<typeof LogConfigZod>;
|
|
9
14
|
//# sourceMappingURL=Log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../src/config/Log.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../src/config/Log.ts"],"names":[],"mappings":"AAEA,OAAO,CAAqB,MAAM,KAAK,CAAA;AAGvC,eAAO,MAAM,YAAY;;;;;;;;;;mBAcvB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
healthCheckPort: z.ZodOptional<z.ZodNumber>;
|
|
4
|
-
minStake: z.ZodDefault<z.ZodNumber>;
|
|
5
|
-
mnemonic: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
6
|
-
port: z.ZodDefault<z.ZodNumber>;
|
|
2
|
+
export declare const ProducerConfigZod: z.ZodObject<{
|
|
7
3
|
disableIntentRedeclaration: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
healthCheckPort: z.ZodOptional<z.z.ZodCoercedNumber<unknown>>;
|
|
5
|
+
minStake: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
6
|
+
mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
7
|
+
port: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
8
8
|
rewardAddress: z.ZodOptional<z.ZodString>;
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
minStake: number;
|
|
12
|
-
mnemonic?: string | undefined;
|
|
13
|
-
healthCheckPort?: number | undefined;
|
|
14
|
-
disableIntentRedeclaration?: boolean | undefined;
|
|
15
|
-
rewardAddress?: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
mnemonic?: string | undefined;
|
|
18
|
-
port?: number | undefined;
|
|
19
|
-
healthCheckPort?: number | undefined;
|
|
20
|
-
minStake?: number | undefined;
|
|
21
|
-
disableIntentRedeclaration?: boolean | undefined;
|
|
22
|
-
rewardAddress?: string | undefined;
|
|
23
|
-
}>;
|
|
9
|
+
}, z.z.core.$strip>;
|
|
10
|
+
export type ProducerConfig = z.infer<typeof ProducerConfigZod>;
|
|
24
11
|
//# sourceMappingURL=Producer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Producer.d.ts","sourceRoot":"","sources":["../../../src/config/Producer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Producer.d.ts","sourceRoot":"","sources":["../../../src/config/Producer.ts"],"names":[],"mappings":"AAAA,OAAO,CAAqB,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,iBAAiB;;;;;;;mBAoC5B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
otlpEndpoint: z.ZodOptional<z.
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
-
}, {
|
|
7
|
-
otlpEndpoint?: string | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const TelemetryConfigSchema: z.ZodObject<{
|
|
2
|
+
export declare const OpenTelemetryConfigZod: z.ZodObject<{
|
|
3
|
+
otlpEndpoint: z.ZodOptional<z.ZodURL>;
|
|
4
|
+
}, z.z.core.$strip>;
|
|
5
|
+
export declare const TelemetryConfigZod: z.ZodObject<{
|
|
10
6
|
otel: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
otlpEndpoint: z.ZodOptional<z.
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
otlpEndpoint?: string | undefined;
|
|
16
|
-
}>>;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
otel?: {
|
|
19
|
-
otlpEndpoint?: string | undefined;
|
|
20
|
-
} | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
otel?: {
|
|
23
|
-
otlpEndpoint?: string | undefined;
|
|
24
|
-
} | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
export type TelemetryConfig = z.infer<typeof TelemetryConfigSchema>;
|
|
7
|
+
otlpEndpoint: z.ZodOptional<z.ZodURL>;
|
|
8
|
+
}, z.z.core.$strip>>;
|
|
9
|
+
}, z.z.core.$strip>;
|
|
10
|
+
export type TelemetryConfig = z.infer<typeof TelemetryConfigZod>;
|
|
27
11
|
//# sourceMappingURL=Telemetry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Telemetry.d.ts","sourceRoot":"","sources":["../../../src/config/Telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Telemetry.d.ts","sourceRoot":"","sources":["../../../src/config/Telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,CAAqB,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,sBAAsB;;mBAOjC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;mBAGe,CAAA;AAE9C,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const JSONSchemaMetaSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, z.z.core.$catchall<z.ZodUnknown>>;
|
|
8
|
+
export declare const GlobalMetaSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
title: z.ZodOptional<z.ZodString>;
|
|
11
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, z.z.core.$catchall<z.ZodUnknown>>;
|
|
14
|
+
export declare const UsageMetaSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
choices: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodLiteral<true>, z.ZodUndefined]>>>>;
|
|
18
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
19
|
+
description: z.ZodString;
|
|
20
|
+
group: z.ZodOptional<z.ZodString>;
|
|
21
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"array">, z.ZodLiteral<"count">, z.ZodLiteral<"boolean">, z.ZodLiteral<"number">, z.ZodLiteral<"string">]>;
|
|
24
|
+
}, z.z.core.$catchall<z.ZodUnknown>>;
|
|
25
|
+
export type UsageMeta = z.infer<typeof UsageMetaSchema>;
|
|
26
|
+
export declare function isUsageMeta(v: unknown): v is UsageMeta;
|
|
27
|
+
//# sourceMappingURL=UsageMeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UsageMeta.d.ts","sourceRoot":"","sources":["../../../src/config/UsageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AAKnB,eAAO,MAAM,oBAAoB;;;;;oCAOT,CAAA;AAExB,eAAO,MAAM,gBAAgB;;;;;oCAAkC,CAAA;AAM/D,eAAO,MAAM,eAAe;;;;;;;;;;oCAc1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,SAAS,CAEtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,cAAc,gBAAgB,CAAA"}
|
|
@@ -1,43 +1,13 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const StorageConfigZod: z.ZodObject<{
|
|
3
3
|
mongo: z.ZodOptional<z.ZodObject<{
|
|
4
4
|
connectionString: z.ZodOptional<z.ZodString>;
|
|
5
5
|
database: z.ZodOptional<z.ZodString>;
|
|
6
6
|
domain: z.ZodOptional<z.ZodString>;
|
|
7
7
|
password: z.ZodOptional<z.ZodString>;
|
|
8
8
|
username: z.ZodOptional<z.ZodString>;
|
|
9
|
-
},
|
|
10
|
-
connectionString?: string | undefined;
|
|
11
|
-
database?: string | undefined;
|
|
12
|
-
domain?: string | undefined;
|
|
13
|
-
password?: string | undefined;
|
|
14
|
-
username?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
connectionString?: string | undefined;
|
|
17
|
-
database?: string | undefined;
|
|
18
|
-
domain?: string | undefined;
|
|
19
|
-
password?: string | undefined;
|
|
20
|
-
username?: string | undefined;
|
|
21
|
-
}>>;
|
|
9
|
+
}, z.z.core.$strip>>;
|
|
22
10
|
root: z.ZodOptional<z.ZodString>;
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
mongo?: {
|
|
26
|
-
connectionString?: string | undefined;
|
|
27
|
-
database?: string | undefined;
|
|
28
|
-
domain?: string | undefined;
|
|
29
|
-
password?: string | undefined;
|
|
30
|
-
username?: string | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
root?: string | undefined;
|
|
34
|
-
mongo?: {
|
|
35
|
-
connectionString?: string | undefined;
|
|
36
|
-
database?: string | undefined;
|
|
37
|
-
domain?: string | undefined;
|
|
38
|
-
password?: string | undefined;
|
|
39
|
-
username?: string | undefined;
|
|
40
|
-
} | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
export type StorageConfig = z.infer<typeof StorageConfigSchema>;
|
|
11
|
+
}, z.z.core.$strip>;
|
|
12
|
+
export type StorageConfig = z.infer<typeof StorageConfigZod>;
|
|
43
13
|
//# sourceMappingURL=Storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Storage.d.ts","sourceRoot":"","sources":["../../../../src/config/storage/Storage.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Storage.d.ts","sourceRoot":"","sources":["../../../../src/config/storage/Storage.ts"],"names":[],"mappings":"AAAA,OAAO,CAAqB,MAAM,KAAK,CAAA;AAIvC,eAAO,MAAM,gBAAgB;;;;;;;;;mBAOe,CAAA;AAE5C,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|