@prosopo/types 0.2.7 → 0.2.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/cjs/config/config.cjs +34 -43
- package/dist/cjs/config/enumMap.cjs +8 -0
- package/dist/cjs/config/index.cjs +5 -3
- package/dist/cjs/config/network.cjs +32 -0
- package/dist/cjs/contracts/captcha/dist/contract-info/captcha.cjs +2 -2
- package/dist/cjs/datasets/captcha.cjs +7 -0
- package/dist/cjs/datasets/dataset.cjs +4 -0
- package/dist/cjs/datasets/index.cjs +3 -0
- package/dist/cjs/index.cjs +10 -3
- package/dist/cjs/networks/index.cjs +38 -0
- package/dist/config/config.d.ts +558 -311
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +42 -45
- package/dist/config/config.js.map +1 -1
- package/dist/config/enumMap.d.ts +3 -0
- package/dist/config/enumMap.d.ts.map +1 -0
- package/dist/config/enumMap.js +6 -0
- package/dist/config/enumMap.js.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/network.d.ts +84 -0
- package/dist/config/network.d.ts.map +1 -0
- package/dist/config/network.js +27 -0
- package/dist/config/network.js.map +1 -0
- package/dist/datasets/captcha.d.ts +96 -1
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js +5 -0
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/datasets/dataset.d.ts +98 -0
- package/dist/datasets/dataset.d.ts.map +1 -1
- package/dist/datasets/dataset.js +4 -1
- package/dist/datasets/dataset.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/networks/index.d.ts +4 -0
- package/dist/networks/index.d.ts.map +1 -0
- package/dist/networks/index.js +45 -0
- package/dist/networks/index.js.map +1 -0
- package/package.json +3 -3
package/dist/config/config.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { ProsopoNetworksSchema } from './network.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
export declare const DatabaseTypes: z.ZodEnum<["mongo", "mongoMemory"]>;
|
|
3
|
-
export declare const EnvironmentTypesSchema: z.ZodEnum<["development", "
|
|
4
|
+
export declare const EnvironmentTypesSchema: z.ZodEnum<["development", "staging", "production"]>;
|
|
4
5
|
export type EnvironmentTypes = z.infer<typeof EnvironmentTypesSchema>;
|
|
5
|
-
export declare const
|
|
6
|
-
export type NetworkNames = typeof NetworkNamesSchema;
|
|
7
|
-
export declare const DatabaseConfigSchema: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
|
|
6
|
+
export declare const DatabaseConfigSchema: z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
8
7
|
type: z.ZodString;
|
|
9
8
|
endpoint: z.ZodString;
|
|
10
9
|
dbname: z.ZodString;
|
|
@@ -19,126 +18,75 @@ export declare const DatabaseConfigSchema: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
|
19
18
|
endpoint: string;
|
|
20
19
|
dbname: string;
|
|
21
20
|
authSource: string;
|
|
22
|
-
}
|
|
21
|
+
}>>;
|
|
23
22
|
export declare const BatchCommitConfigSchema: z.ZodObject<{
|
|
24
|
-
interval: z.ZodNumber
|
|
25
|
-
maxBatchExtrinsicPercentage: z.ZodNumber
|
|
23
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
24
|
+
maxBatchExtrinsicPercentage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
26
25
|
}, "strip", z.ZodTypeAny, {
|
|
27
26
|
interval: number;
|
|
28
27
|
maxBatchExtrinsicPercentage: number;
|
|
29
28
|
}, {
|
|
30
|
-
interval
|
|
31
|
-
maxBatchExtrinsicPercentage
|
|
29
|
+
interval?: number | undefined;
|
|
30
|
+
maxBatchExtrinsicPercentage?: number | undefined;
|
|
32
31
|
}>;
|
|
33
|
-
export type
|
|
34
|
-
export type
|
|
32
|
+
export type BatchCommitConfigInput = z.input<typeof BatchCommitConfigSchema>;
|
|
33
|
+
export type BatchCommitConfigOutput = z.output<typeof BatchCommitConfigSchema>;
|
|
34
|
+
export type DatabaseConfigInput = z.input<typeof DatabaseConfigSchema>;
|
|
35
|
+
export type DatabaseConfigOutput = z.output<typeof DatabaseConfigSchema>;
|
|
35
36
|
export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
36
|
-
logLevel: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]
|
|
37
|
-
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "
|
|
37
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
38
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
39
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
38
40
|
account: z.ZodObject<{
|
|
39
|
-
address: z.ZodString
|
|
41
|
+
address: z.ZodOptional<z.ZodString>;
|
|
40
42
|
secret: z.ZodOptional<z.ZodString>;
|
|
41
43
|
password: z.ZodOptional<z.ZodString>;
|
|
42
44
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
address
|
|
45
|
+
address?: string | undefined;
|
|
44
46
|
secret?: string | undefined;
|
|
45
47
|
password?: string | undefined;
|
|
46
48
|
}, {
|
|
47
|
-
address
|
|
49
|
+
address?: string | undefined;
|
|
48
50
|
secret?: string | undefined;
|
|
49
51
|
password?: string | undefined;
|
|
50
52
|
}>;
|
|
51
53
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
logLevel: "
|
|
53
|
-
defaultEnvironment: "development" | "
|
|
54
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
55
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
56
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
54
57
|
account: {
|
|
55
|
-
address
|
|
58
|
+
address?: string | undefined;
|
|
56
59
|
secret?: string | undefined;
|
|
57
60
|
password?: string | undefined;
|
|
58
61
|
};
|
|
59
62
|
}, {
|
|
60
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
61
63
|
account: {
|
|
62
|
-
address
|
|
64
|
+
address?: string | undefined;
|
|
63
65
|
secret?: string | undefined;
|
|
64
66
|
password?: string | undefined;
|
|
65
67
|
};
|
|
66
|
-
|
|
68
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
69
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
70
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
67
71
|
}>;
|
|
68
|
-
export declare const NetworkConfigSchema: z.ZodObject<{
|
|
69
|
-
endpoint: z.ZodString;
|
|
70
|
-
contract: z.ZodObject<{
|
|
71
|
-
address: z.ZodString;
|
|
72
|
-
name: z.ZodString;
|
|
73
|
-
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
address: string;
|
|
75
|
-
name: string;
|
|
76
|
-
}, {
|
|
77
|
-
address: string;
|
|
78
|
-
name: string;
|
|
79
|
-
}>;
|
|
80
|
-
accounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
endpoint: string;
|
|
83
|
-
contract: {
|
|
84
|
-
address: string;
|
|
85
|
-
name: string;
|
|
86
|
-
};
|
|
87
|
-
accounts?: string[] | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
endpoint: string;
|
|
90
|
-
contract: {
|
|
91
|
-
address: string;
|
|
92
|
-
name: string;
|
|
93
|
-
};
|
|
94
|
-
accounts?: string[] | undefined;
|
|
95
|
-
}>;
|
|
96
|
-
export type NetworkConfig = z.infer<typeof NetworkConfigSchema>;
|
|
97
|
-
export declare const ProsopoNetworksSchema: z.ZodDefault<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
|
|
98
|
-
endpoint: z.ZodString;
|
|
99
|
-
contract: z.ZodObject<{
|
|
100
|
-
address: z.ZodString;
|
|
101
|
-
name: z.ZodString;
|
|
102
|
-
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
address: string;
|
|
104
|
-
name: string;
|
|
105
|
-
}, {
|
|
106
|
-
address: string;
|
|
107
|
-
name: string;
|
|
108
|
-
}>;
|
|
109
|
-
accounts: z.ZodArray<z.ZodString, "many">;
|
|
110
|
-
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
endpoint: string;
|
|
112
|
-
contract: {
|
|
113
|
-
address: string;
|
|
114
|
-
name: string;
|
|
115
|
-
};
|
|
116
|
-
accounts: string[];
|
|
117
|
-
}, {
|
|
118
|
-
endpoint: string;
|
|
119
|
-
contract: {
|
|
120
|
-
address: string;
|
|
121
|
-
name: string;
|
|
122
|
-
};
|
|
123
|
-
accounts: string[];
|
|
124
|
-
}>>>;
|
|
125
72
|
export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
126
|
-
logLevel: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]
|
|
127
|
-
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "
|
|
73
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
74
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
75
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
128
76
|
account: z.ZodObject<{
|
|
129
|
-
address: z.ZodString
|
|
77
|
+
address: z.ZodOptional<z.ZodString>;
|
|
130
78
|
secret: z.ZodOptional<z.ZodString>;
|
|
131
79
|
password: z.ZodOptional<z.ZodString>;
|
|
132
80
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
address
|
|
81
|
+
address?: string | undefined;
|
|
134
82
|
secret?: string | undefined;
|
|
135
83
|
password?: string | undefined;
|
|
136
84
|
}, {
|
|
137
|
-
address
|
|
85
|
+
address?: string | undefined;
|
|
138
86
|
secret?: string | undefined;
|
|
139
87
|
password?: string | undefined;
|
|
140
88
|
}>;
|
|
141
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
89
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
142
90
|
endpoint: z.ZodString;
|
|
143
91
|
contract: z.ZodObject<{
|
|
144
92
|
address: z.ZodString;
|
|
@@ -150,23 +98,42 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
|
150
98
|
address: string;
|
|
151
99
|
name: string;
|
|
152
100
|
}>;
|
|
153
|
-
|
|
101
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
102
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
154
103
|
}, "strip", z.ZodTypeAny, {
|
|
155
104
|
endpoint: string;
|
|
156
105
|
contract: {
|
|
157
106
|
address: string;
|
|
158
107
|
name: string;
|
|
159
108
|
};
|
|
160
|
-
|
|
109
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
110
|
+
ss58Format: number;
|
|
161
111
|
}, {
|
|
162
112
|
endpoint: string;
|
|
163
113
|
contract: {
|
|
164
114
|
address: string;
|
|
165
115
|
name: string;
|
|
166
116
|
};
|
|
167
|
-
|
|
117
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
118
|
+
ss58Format?: number | undefined;
|
|
119
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
120
|
+
endpoint: string;
|
|
121
|
+
contract: {
|
|
122
|
+
address: string;
|
|
123
|
+
name: string;
|
|
124
|
+
};
|
|
125
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
126
|
+
ss58Format: number;
|
|
127
|
+
}>, Record<string, {
|
|
128
|
+
endpoint: string;
|
|
129
|
+
contract: {
|
|
130
|
+
address: string;
|
|
131
|
+
name: string;
|
|
132
|
+
};
|
|
133
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
134
|
+
ss58Format?: number | undefined;
|
|
168
135
|
}>>>;
|
|
169
|
-
database: z.ZodOptional<z.
|
|
136
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
170
137
|
type: z.ZodString;
|
|
171
138
|
endpoint: z.ZodString;
|
|
172
139
|
dbname: z.ZodString;
|
|
@@ -181,68 +148,75 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
|
181
148
|
endpoint: string;
|
|
182
149
|
dbname: string;
|
|
183
150
|
authSource: string;
|
|
184
|
-
}
|
|
151
|
+
}>>>;
|
|
185
152
|
}, "strip", z.ZodTypeAny, {
|
|
186
|
-
logLevel: "
|
|
187
|
-
defaultEnvironment: "development" | "
|
|
153
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
154
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
155
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
188
156
|
account: {
|
|
189
|
-
address
|
|
157
|
+
address?: string | undefined;
|
|
190
158
|
secret?: string | undefined;
|
|
191
159
|
password?: string | undefined;
|
|
192
160
|
};
|
|
193
|
-
networks:
|
|
161
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
194
162
|
endpoint: string;
|
|
195
163
|
contract: {
|
|
196
164
|
address: string;
|
|
197
165
|
name: string;
|
|
198
166
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
167
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
168
|
+
ss58Format: number;
|
|
169
|
+
}>;
|
|
170
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
202
171
|
type: string;
|
|
203
172
|
endpoint: string;
|
|
204
173
|
dbname: string;
|
|
205
174
|
authSource: string;
|
|
206
175
|
}>> | undefined;
|
|
207
176
|
}, {
|
|
208
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
209
177
|
account: {
|
|
210
|
-
address
|
|
178
|
+
address?: string | undefined;
|
|
211
179
|
secret?: string | undefined;
|
|
212
180
|
password?: string | undefined;
|
|
213
181
|
};
|
|
214
|
-
|
|
215
|
-
|
|
182
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
183
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
184
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
185
|
+
networks?: Record<string, {
|
|
216
186
|
endpoint: string;
|
|
217
187
|
contract: {
|
|
218
188
|
address: string;
|
|
219
189
|
name: string;
|
|
220
190
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
191
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
192
|
+
ss58Format?: number | undefined;
|
|
193
|
+
}> | undefined;
|
|
194
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
224
195
|
type: string;
|
|
225
196
|
endpoint: string;
|
|
226
197
|
dbname: string;
|
|
227
198
|
authSource: string;
|
|
228
199
|
}>> | undefined;
|
|
229
200
|
}>;
|
|
230
|
-
export type
|
|
201
|
+
export type ProsopoNetworksSchemaInput = z.input<typeof ProsopoNetworksSchema>;
|
|
202
|
+
export type ProsopoNetworksSchemaOutput = z.output<typeof ProsopoNetworksSchema>;
|
|
203
|
+
export type ProsopoBasicConfigInput = z.input<typeof ProsopoBasicConfigSchema>;
|
|
204
|
+
export type ProsopoBasicConfigOutput = z.output<typeof ProsopoBasicConfigSchema>;
|
|
231
205
|
export declare const ProsopoCaptchaCountConfigSchema: z.ZodObject<{
|
|
232
|
-
solved: z.ZodObject<{
|
|
206
|
+
solved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
233
207
|
count: z.ZodNumber;
|
|
234
208
|
}, "strip", z.ZodTypeAny, {
|
|
235
209
|
count: number;
|
|
236
210
|
}, {
|
|
237
211
|
count: number;
|
|
238
|
-
}
|
|
239
|
-
unsolved: z.ZodObject<{
|
|
212
|
+
}>>>;
|
|
213
|
+
unsolved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
240
214
|
count: z.ZodNumber;
|
|
241
215
|
}, "strip", z.ZodTypeAny, {
|
|
242
216
|
count: number;
|
|
243
217
|
}, {
|
|
244
218
|
count: number;
|
|
245
|
-
}
|
|
219
|
+
}>>>;
|
|
246
220
|
}, "strip", z.ZodTypeAny, {
|
|
247
221
|
solved: {
|
|
248
222
|
count: number;
|
|
@@ -251,13 +225,14 @@ export declare const ProsopoCaptchaCountConfigSchema: z.ZodObject<{
|
|
|
251
225
|
count: number;
|
|
252
226
|
};
|
|
253
227
|
}, {
|
|
254
|
-
solved
|
|
228
|
+
solved?: {
|
|
255
229
|
count: number;
|
|
256
|
-
};
|
|
257
|
-
unsolved
|
|
230
|
+
} | undefined;
|
|
231
|
+
unsolved?: {
|
|
258
232
|
count: number;
|
|
259
|
-
};
|
|
233
|
+
} | undefined;
|
|
260
234
|
}>;
|
|
235
|
+
export type ProsopoCaptchaCountConfigSchemaInput = z.input<typeof ProsopoCaptchaCountConfigSchema>;
|
|
261
236
|
export declare const ProsopoImageServerConfigSchema: z.ZodObject<{
|
|
262
237
|
baseURL: z.ZodString;
|
|
263
238
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -271,36 +246,34 @@ export declare const ProsopoImageServerConfigSchema: z.ZodObject<{
|
|
|
271
246
|
export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
|
|
272
247
|
requiredNumberOfSolutions: z.ZodNumber;
|
|
273
248
|
solutionWinningPercentage: z.ZodNumber;
|
|
274
|
-
captchaFilePath: z.ZodString;
|
|
275
249
|
captchaBlockRecency: z.ZodNumber;
|
|
276
250
|
}, "strip", z.ZodTypeAny, {
|
|
277
251
|
requiredNumberOfSolutions: number;
|
|
278
252
|
solutionWinningPercentage: number;
|
|
279
|
-
captchaFilePath: string;
|
|
280
253
|
captchaBlockRecency: number;
|
|
281
254
|
}, {
|
|
282
255
|
requiredNumberOfSolutions: number;
|
|
283
256
|
solutionWinningPercentage: number;
|
|
284
|
-
captchaFilePath: string;
|
|
285
257
|
captchaBlockRecency: number;
|
|
286
258
|
}>;
|
|
287
|
-
export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
288
|
-
logLevel: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]
|
|
289
|
-
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "
|
|
259
|
+
export declare const ProsopoClientConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
260
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
261
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
262
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
290
263
|
account: z.ZodObject<{
|
|
291
|
-
address: z.ZodString
|
|
264
|
+
address: z.ZodOptional<z.ZodString>;
|
|
292
265
|
secret: z.ZodOptional<z.ZodString>;
|
|
293
266
|
password: z.ZodOptional<z.ZodString>;
|
|
294
267
|
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
address
|
|
268
|
+
address?: string | undefined;
|
|
296
269
|
secret?: string | undefined;
|
|
297
270
|
password?: string | undefined;
|
|
298
271
|
}, {
|
|
299
|
-
address
|
|
272
|
+
address?: string | undefined;
|
|
300
273
|
secret?: string | undefined;
|
|
301
274
|
password?: string | undefined;
|
|
302
275
|
}>;
|
|
303
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
276
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
304
277
|
endpoint: z.ZodString;
|
|
305
278
|
contract: z.ZodObject<{
|
|
306
279
|
address: z.ZodString;
|
|
@@ -312,23 +285,42 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
312
285
|
address: string;
|
|
313
286
|
name: string;
|
|
314
287
|
}>;
|
|
315
|
-
|
|
288
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
289
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
316
290
|
}, "strip", z.ZodTypeAny, {
|
|
317
291
|
endpoint: string;
|
|
318
292
|
contract: {
|
|
319
293
|
address: string;
|
|
320
294
|
name: string;
|
|
321
295
|
};
|
|
322
|
-
|
|
296
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
297
|
+
ss58Format: number;
|
|
323
298
|
}, {
|
|
324
299
|
endpoint: string;
|
|
325
300
|
contract: {
|
|
326
301
|
address: string;
|
|
327
302
|
name: string;
|
|
328
303
|
};
|
|
329
|
-
|
|
304
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
305
|
+
ss58Format?: number | undefined;
|
|
306
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
307
|
+
endpoint: string;
|
|
308
|
+
contract: {
|
|
309
|
+
address: string;
|
|
310
|
+
name: string;
|
|
311
|
+
};
|
|
312
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
313
|
+
ss58Format: number;
|
|
314
|
+
}>, Record<string, {
|
|
315
|
+
endpoint: string;
|
|
316
|
+
contract: {
|
|
317
|
+
address: string;
|
|
318
|
+
name: string;
|
|
319
|
+
};
|
|
320
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
321
|
+
ss58Format?: number | undefined;
|
|
330
322
|
}>>>;
|
|
331
|
-
database: z.ZodOptional<z.
|
|
323
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
332
324
|
type: z.ZodString;
|
|
333
325
|
endpoint: z.ZodString;
|
|
334
326
|
dbname: z.ZodString;
|
|
@@ -343,33 +335,35 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
343
335
|
endpoint: string;
|
|
344
336
|
dbname: string;
|
|
345
337
|
authSource: string;
|
|
346
|
-
}
|
|
338
|
+
}>>>;
|
|
347
339
|
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
348
|
-
web2: z.ZodBoolean
|
|
349
|
-
solutionThreshold: z.ZodNumber
|
|
350
|
-
dappName: z.ZodString
|
|
340
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
341
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
342
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
351
343
|
serverUrl: z.ZodString;
|
|
352
344
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
logLevel: "
|
|
354
|
-
defaultEnvironment: "development" | "
|
|
345
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
346
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
347
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
355
348
|
account: {
|
|
356
|
-
address
|
|
349
|
+
address?: string | undefined;
|
|
357
350
|
secret?: string | undefined;
|
|
358
351
|
password?: string | undefined;
|
|
359
352
|
};
|
|
360
|
-
networks:
|
|
353
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
361
354
|
endpoint: string;
|
|
362
355
|
contract: {
|
|
363
356
|
address: string;
|
|
364
357
|
name: string;
|
|
365
358
|
};
|
|
366
|
-
|
|
367
|
-
|
|
359
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
360
|
+
ss58Format: number;
|
|
361
|
+
}>;
|
|
368
362
|
web2: boolean;
|
|
369
363
|
solutionThreshold: number;
|
|
370
364
|
dappName: string;
|
|
371
365
|
serverUrl: string;
|
|
372
|
-
database?: Partial<Record<"development" | "
|
|
366
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
373
367
|
type: string;
|
|
374
368
|
endpoint: string;
|
|
375
369
|
dbname: string;
|
|
@@ -377,50 +371,111 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
377
371
|
}>> | undefined;
|
|
378
372
|
userAccountAddress?: string | undefined;
|
|
379
373
|
}, {
|
|
380
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
381
374
|
account: {
|
|
382
|
-
address
|
|
375
|
+
address?: string | undefined;
|
|
376
|
+
secret?: string | undefined;
|
|
377
|
+
password?: string | undefined;
|
|
378
|
+
};
|
|
379
|
+
serverUrl: string;
|
|
380
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
381
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
382
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
383
|
+
networks?: Record<string, {
|
|
384
|
+
endpoint: string;
|
|
385
|
+
contract: {
|
|
386
|
+
address: string;
|
|
387
|
+
name: string;
|
|
388
|
+
};
|
|
389
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
390
|
+
ss58Format?: number | undefined;
|
|
391
|
+
}> | undefined;
|
|
392
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
393
|
+
type: string;
|
|
394
|
+
endpoint: string;
|
|
395
|
+
dbname: string;
|
|
396
|
+
authSource: string;
|
|
397
|
+
}>> | undefined;
|
|
398
|
+
userAccountAddress?: string | undefined;
|
|
399
|
+
web2?: boolean | undefined;
|
|
400
|
+
solutionThreshold?: number | undefined;
|
|
401
|
+
dappName?: string | undefined;
|
|
402
|
+
}>, {
|
|
403
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
404
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
405
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
406
|
+
account: {
|
|
407
|
+
address?: string | undefined;
|
|
383
408
|
secret?: string | undefined;
|
|
384
409
|
password?: string | undefined;
|
|
385
410
|
};
|
|
411
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
412
|
+
endpoint: string;
|
|
413
|
+
contract: {
|
|
414
|
+
address: string;
|
|
415
|
+
name: string;
|
|
416
|
+
};
|
|
417
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
418
|
+
ss58Format: number;
|
|
419
|
+
}>;
|
|
386
420
|
web2: boolean;
|
|
387
421
|
solutionThreshold: number;
|
|
388
422
|
dappName: string;
|
|
389
423
|
serverUrl: string;
|
|
390
|
-
|
|
391
|
-
|
|
424
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
425
|
+
type: string;
|
|
426
|
+
endpoint: string;
|
|
427
|
+
dbname: string;
|
|
428
|
+
authSource: string;
|
|
429
|
+
}>> | undefined;
|
|
430
|
+
userAccountAddress?: string | undefined;
|
|
431
|
+
}, {
|
|
432
|
+
account: {
|
|
433
|
+
address?: string | undefined;
|
|
434
|
+
secret?: string | undefined;
|
|
435
|
+
password?: string | undefined;
|
|
436
|
+
};
|
|
437
|
+
serverUrl: string;
|
|
438
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
439
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
440
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
441
|
+
networks?: Record<string, {
|
|
392
442
|
endpoint: string;
|
|
393
443
|
contract: {
|
|
394
444
|
address: string;
|
|
395
445
|
name: string;
|
|
396
446
|
};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
447
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
448
|
+
ss58Format?: number | undefined;
|
|
449
|
+
}> | undefined;
|
|
450
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
400
451
|
type: string;
|
|
401
452
|
endpoint: string;
|
|
402
453
|
dbname: string;
|
|
403
454
|
authSource: string;
|
|
404
455
|
}>> | undefined;
|
|
405
456
|
userAccountAddress?: string | undefined;
|
|
457
|
+
web2?: boolean | undefined;
|
|
458
|
+
solutionThreshold?: number | undefined;
|
|
459
|
+
dappName?: string | undefined;
|
|
406
460
|
}>;
|
|
407
|
-
export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
408
|
-
logLevel: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]
|
|
409
|
-
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "
|
|
461
|
+
export declare const ProsopoServerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
462
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
463
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
464
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
410
465
|
account: z.ZodObject<{
|
|
411
|
-
address: z.ZodString
|
|
466
|
+
address: z.ZodOptional<z.ZodString>;
|
|
412
467
|
secret: z.ZodOptional<z.ZodString>;
|
|
413
468
|
password: z.ZodOptional<z.ZodString>;
|
|
414
469
|
}, "strip", z.ZodTypeAny, {
|
|
415
|
-
address
|
|
470
|
+
address?: string | undefined;
|
|
416
471
|
secret?: string | undefined;
|
|
417
472
|
password?: string | undefined;
|
|
418
473
|
}, {
|
|
419
|
-
address
|
|
474
|
+
address?: string | undefined;
|
|
420
475
|
secret?: string | undefined;
|
|
421
476
|
password?: string | undefined;
|
|
422
477
|
}>;
|
|
423
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
478
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
424
479
|
endpoint: z.ZodString;
|
|
425
480
|
contract: z.ZodObject<{
|
|
426
481
|
address: z.ZodString;
|
|
@@ -432,23 +487,42 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
|
432
487
|
address: string;
|
|
433
488
|
name: string;
|
|
434
489
|
}>;
|
|
435
|
-
|
|
490
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
491
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
436
492
|
}, "strip", z.ZodTypeAny, {
|
|
437
493
|
endpoint: string;
|
|
438
494
|
contract: {
|
|
439
495
|
address: string;
|
|
440
496
|
name: string;
|
|
441
497
|
};
|
|
442
|
-
|
|
498
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
499
|
+
ss58Format: number;
|
|
443
500
|
}, {
|
|
444
501
|
endpoint: string;
|
|
445
502
|
contract: {
|
|
446
503
|
address: string;
|
|
447
504
|
name: string;
|
|
448
505
|
};
|
|
449
|
-
|
|
506
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
507
|
+
ss58Format?: number | undefined;
|
|
508
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
509
|
+
endpoint: string;
|
|
510
|
+
contract: {
|
|
511
|
+
address: string;
|
|
512
|
+
name: string;
|
|
513
|
+
};
|
|
514
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
515
|
+
ss58Format: number;
|
|
516
|
+
}>, Record<string, {
|
|
517
|
+
endpoint: string;
|
|
518
|
+
contract: {
|
|
519
|
+
address: string;
|
|
520
|
+
name: string;
|
|
521
|
+
};
|
|
522
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
523
|
+
ss58Format?: number | undefined;
|
|
450
524
|
}>>>;
|
|
451
|
-
database: z.ZodOptional<z.
|
|
525
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
452
526
|
type: z.ZodString;
|
|
453
527
|
endpoint: z.ZodString;
|
|
454
528
|
dbname: z.ZodString;
|
|
@@ -463,33 +537,35 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
|
463
537
|
endpoint: string;
|
|
464
538
|
dbname: string;
|
|
465
539
|
authSource: string;
|
|
466
|
-
}
|
|
540
|
+
}>>>;
|
|
467
541
|
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
468
|
-
web2: z.ZodBoolean
|
|
469
|
-
solutionThreshold: z.ZodNumber
|
|
470
|
-
dappName: z.ZodString
|
|
542
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
543
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
544
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
471
545
|
serverUrl: z.ZodString;
|
|
472
546
|
}, "strip", z.ZodTypeAny, {
|
|
473
|
-
logLevel: "
|
|
474
|
-
defaultEnvironment: "development" | "
|
|
547
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
548
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
549
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
475
550
|
account: {
|
|
476
|
-
address
|
|
551
|
+
address?: string | undefined;
|
|
477
552
|
secret?: string | undefined;
|
|
478
553
|
password?: string | undefined;
|
|
479
554
|
};
|
|
480
|
-
networks:
|
|
555
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
481
556
|
endpoint: string;
|
|
482
557
|
contract: {
|
|
483
558
|
address: string;
|
|
484
559
|
name: string;
|
|
485
560
|
};
|
|
486
|
-
|
|
487
|
-
|
|
561
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
562
|
+
ss58Format: number;
|
|
563
|
+
}>;
|
|
488
564
|
web2: boolean;
|
|
489
565
|
solutionThreshold: number;
|
|
490
566
|
dappName: string;
|
|
491
567
|
serverUrl: string;
|
|
492
|
-
database?: Partial<Record<"development" | "
|
|
568
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
493
569
|
type: string;
|
|
494
570
|
endpoint: string;
|
|
495
571
|
dbname: string;
|
|
@@ -497,34 +573,95 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
|
497
573
|
}>> | undefined;
|
|
498
574
|
userAccountAddress?: string | undefined;
|
|
499
575
|
}, {
|
|
500
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
501
576
|
account: {
|
|
502
|
-
address
|
|
577
|
+
address?: string | undefined;
|
|
503
578
|
secret?: string | undefined;
|
|
504
579
|
password?: string | undefined;
|
|
505
580
|
};
|
|
581
|
+
serverUrl: string;
|
|
582
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
583
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
584
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
585
|
+
networks?: Record<string, {
|
|
586
|
+
endpoint: string;
|
|
587
|
+
contract: {
|
|
588
|
+
address: string;
|
|
589
|
+
name: string;
|
|
590
|
+
};
|
|
591
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
592
|
+
ss58Format?: number | undefined;
|
|
593
|
+
}> | undefined;
|
|
594
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
595
|
+
type: string;
|
|
596
|
+
endpoint: string;
|
|
597
|
+
dbname: string;
|
|
598
|
+
authSource: string;
|
|
599
|
+
}>> | undefined;
|
|
600
|
+
userAccountAddress?: string | undefined;
|
|
601
|
+
web2?: boolean | undefined;
|
|
602
|
+
solutionThreshold?: number | undefined;
|
|
603
|
+
dappName?: string | undefined;
|
|
604
|
+
}>, {
|
|
605
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
606
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
607
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
608
|
+
account: {
|
|
609
|
+
address?: string | undefined;
|
|
610
|
+
secret?: string | undefined;
|
|
611
|
+
password?: string | undefined;
|
|
612
|
+
};
|
|
613
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
614
|
+
endpoint: string;
|
|
615
|
+
contract: {
|
|
616
|
+
address: string;
|
|
617
|
+
name: string;
|
|
618
|
+
};
|
|
619
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
620
|
+
ss58Format: number;
|
|
621
|
+
}>;
|
|
506
622
|
web2: boolean;
|
|
507
623
|
solutionThreshold: number;
|
|
508
624
|
dappName: string;
|
|
509
625
|
serverUrl: string;
|
|
510
|
-
|
|
511
|
-
|
|
626
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
627
|
+
type: string;
|
|
628
|
+
endpoint: string;
|
|
629
|
+
dbname: string;
|
|
630
|
+
authSource: string;
|
|
631
|
+
}>> | undefined;
|
|
632
|
+
userAccountAddress?: string | undefined;
|
|
633
|
+
}, {
|
|
634
|
+
account: {
|
|
635
|
+
address?: string | undefined;
|
|
636
|
+
secret?: string | undefined;
|
|
637
|
+
password?: string | undefined;
|
|
638
|
+
};
|
|
639
|
+
serverUrl: string;
|
|
640
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
641
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
642
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
643
|
+
networks?: Record<string, {
|
|
512
644
|
endpoint: string;
|
|
513
645
|
contract: {
|
|
514
646
|
address: string;
|
|
515
647
|
name: string;
|
|
516
648
|
};
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
649
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
650
|
+
ss58Format?: number | undefined;
|
|
651
|
+
}> | undefined;
|
|
652
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
520
653
|
type: string;
|
|
521
654
|
endpoint: string;
|
|
522
655
|
dbname: string;
|
|
523
656
|
authSource: string;
|
|
524
657
|
}>> | undefined;
|
|
525
658
|
userAccountAddress?: string | undefined;
|
|
659
|
+
web2?: boolean | undefined;
|
|
660
|
+
solutionThreshold?: number | undefined;
|
|
661
|
+
dappName?: string | undefined;
|
|
526
662
|
}>;
|
|
527
|
-
export type
|
|
663
|
+
export type ProsopoServerConfigInput = z.input<typeof ProsopoClientConfigSchema>;
|
|
664
|
+
export type ProsopoServerConfigOutput = z.output<typeof ProsopoClientConfigSchema>;
|
|
528
665
|
export declare const AccountCreatorConfigSchema: z.ZodObject<{
|
|
529
666
|
area: z.ZodObject<{
|
|
530
667
|
width: z.ZodNumber;
|
|
@@ -565,24 +702,26 @@ export declare const AccountCreatorConfigSchema: z.ZodObject<{
|
|
|
565
702
|
numberOfRounds: number;
|
|
566
703
|
seed: number;
|
|
567
704
|
}>;
|
|
568
|
-
export type
|
|
569
|
-
export
|
|
570
|
-
|
|
571
|
-
|
|
705
|
+
export type ProsopoClientConfigInput = z.input<typeof ProsopoClientConfigSchema>;
|
|
706
|
+
export type ProsopoClientConfigOutput = z.output<typeof ProsopoClientConfigSchema>;
|
|
707
|
+
export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
708
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
709
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
710
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
572
711
|
account: z.ZodObject<{
|
|
573
|
-
address: z.ZodString
|
|
712
|
+
address: z.ZodOptional<z.ZodString>;
|
|
574
713
|
secret: z.ZodOptional<z.ZodString>;
|
|
575
714
|
password: z.ZodOptional<z.ZodString>;
|
|
576
715
|
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
address
|
|
716
|
+
address?: string | undefined;
|
|
578
717
|
secret?: string | undefined;
|
|
579
718
|
password?: string | undefined;
|
|
580
719
|
}, {
|
|
581
|
-
address
|
|
720
|
+
address?: string | undefined;
|
|
582
721
|
secret?: string | undefined;
|
|
583
722
|
password?: string | undefined;
|
|
584
723
|
}>;
|
|
585
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
724
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
586
725
|
endpoint: z.ZodString;
|
|
587
726
|
contract: z.ZodObject<{
|
|
588
727
|
address: z.ZodString;
|
|
@@ -594,23 +733,42 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
594
733
|
address: string;
|
|
595
734
|
name: string;
|
|
596
735
|
}>;
|
|
597
|
-
|
|
736
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
737
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
598
738
|
}, "strip", z.ZodTypeAny, {
|
|
599
739
|
endpoint: string;
|
|
600
740
|
contract: {
|
|
601
741
|
address: string;
|
|
602
742
|
name: string;
|
|
603
743
|
};
|
|
604
|
-
|
|
744
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
745
|
+
ss58Format: number;
|
|
605
746
|
}, {
|
|
606
747
|
endpoint: string;
|
|
607
748
|
contract: {
|
|
608
749
|
address: string;
|
|
609
750
|
name: string;
|
|
610
751
|
};
|
|
611
|
-
|
|
752
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
753
|
+
ss58Format?: number | undefined;
|
|
754
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
755
|
+
endpoint: string;
|
|
756
|
+
contract: {
|
|
757
|
+
address: string;
|
|
758
|
+
name: string;
|
|
759
|
+
};
|
|
760
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
761
|
+
ss58Format: number;
|
|
762
|
+
}>, Record<string, {
|
|
763
|
+
endpoint: string;
|
|
764
|
+
contract: {
|
|
765
|
+
address: string;
|
|
766
|
+
name: string;
|
|
767
|
+
};
|
|
768
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
769
|
+
ss58Format?: number | undefined;
|
|
612
770
|
}>>>;
|
|
613
|
-
database: z.ZodOptional<z.
|
|
771
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
614
772
|
type: z.ZodString;
|
|
615
773
|
endpoint: z.ZodString;
|
|
616
774
|
dbname: z.ZodString;
|
|
@@ -625,12 +783,129 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
625
783
|
endpoint: string;
|
|
626
784
|
dbname: string;
|
|
627
785
|
authSource: string;
|
|
628
|
-
}
|
|
786
|
+
}>>>;
|
|
629
787
|
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
630
|
-
web2: z.ZodBoolean
|
|
631
|
-
solutionThreshold: z.ZodNumber
|
|
632
|
-
dappName: z.ZodString
|
|
788
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
789
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
790
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
633
791
|
serverUrl: z.ZodString;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
794
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
795
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
796
|
+
account: {
|
|
797
|
+
address?: string | undefined;
|
|
798
|
+
secret?: string | undefined;
|
|
799
|
+
password?: string | undefined;
|
|
800
|
+
};
|
|
801
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
802
|
+
endpoint: string;
|
|
803
|
+
contract: {
|
|
804
|
+
address: string;
|
|
805
|
+
name: string;
|
|
806
|
+
};
|
|
807
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
808
|
+
ss58Format: number;
|
|
809
|
+
}>;
|
|
810
|
+
web2: boolean;
|
|
811
|
+
solutionThreshold: number;
|
|
812
|
+
dappName: string;
|
|
813
|
+
serverUrl: string;
|
|
814
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
815
|
+
type: string;
|
|
816
|
+
endpoint: string;
|
|
817
|
+
dbname: string;
|
|
818
|
+
authSource: string;
|
|
819
|
+
}>> | undefined;
|
|
820
|
+
userAccountAddress?: string | undefined;
|
|
821
|
+
}, {
|
|
822
|
+
account: {
|
|
823
|
+
address?: string | undefined;
|
|
824
|
+
secret?: string | undefined;
|
|
825
|
+
password?: string | undefined;
|
|
826
|
+
};
|
|
827
|
+
serverUrl: string;
|
|
828
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
829
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
830
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
831
|
+
networks?: Record<string, {
|
|
832
|
+
endpoint: string;
|
|
833
|
+
contract: {
|
|
834
|
+
address: string;
|
|
835
|
+
name: string;
|
|
836
|
+
};
|
|
837
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
838
|
+
ss58Format?: number | undefined;
|
|
839
|
+
}> | undefined;
|
|
840
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
841
|
+
type: string;
|
|
842
|
+
endpoint: string;
|
|
843
|
+
dbname: string;
|
|
844
|
+
authSource: string;
|
|
845
|
+
}>> | undefined;
|
|
846
|
+
userAccountAddress?: string | undefined;
|
|
847
|
+
web2?: boolean | undefined;
|
|
848
|
+
solutionThreshold?: number | undefined;
|
|
849
|
+
dappName?: string | undefined;
|
|
850
|
+
}>, {
|
|
851
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
852
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
853
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
854
|
+
account: {
|
|
855
|
+
address?: string | undefined;
|
|
856
|
+
secret?: string | undefined;
|
|
857
|
+
password?: string | undefined;
|
|
858
|
+
};
|
|
859
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
860
|
+
endpoint: string;
|
|
861
|
+
contract: {
|
|
862
|
+
address: string;
|
|
863
|
+
name: string;
|
|
864
|
+
};
|
|
865
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
866
|
+
ss58Format: number;
|
|
867
|
+
}>;
|
|
868
|
+
web2: boolean;
|
|
869
|
+
solutionThreshold: number;
|
|
870
|
+
dappName: string;
|
|
871
|
+
serverUrl: string;
|
|
872
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
873
|
+
type: string;
|
|
874
|
+
endpoint: string;
|
|
875
|
+
dbname: string;
|
|
876
|
+
authSource: string;
|
|
877
|
+
}>> | undefined;
|
|
878
|
+
userAccountAddress?: string | undefined;
|
|
879
|
+
}, {
|
|
880
|
+
account: {
|
|
881
|
+
address?: string | undefined;
|
|
882
|
+
secret?: string | undefined;
|
|
883
|
+
password?: string | undefined;
|
|
884
|
+
};
|
|
885
|
+
serverUrl: string;
|
|
886
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
887
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
888
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
889
|
+
networks?: Record<string, {
|
|
890
|
+
endpoint: string;
|
|
891
|
+
contract: {
|
|
892
|
+
address: string;
|
|
893
|
+
name: string;
|
|
894
|
+
};
|
|
895
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
896
|
+
ss58Format?: number | undefined;
|
|
897
|
+
}> | undefined;
|
|
898
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
899
|
+
type: string;
|
|
900
|
+
endpoint: string;
|
|
901
|
+
dbname: string;
|
|
902
|
+
authSource: string;
|
|
903
|
+
}>> | undefined;
|
|
904
|
+
userAccountAddress?: string | undefined;
|
|
905
|
+
web2?: boolean | undefined;
|
|
906
|
+
solutionThreshold?: number | undefined;
|
|
907
|
+
dappName?: string | undefined;
|
|
908
|
+
}>, z.ZodObject<{
|
|
634
909
|
accountCreator: z.ZodOptional<z.ZodObject<{
|
|
635
910
|
area: z.ZodObject<{
|
|
636
911
|
width: z.ZodNumber;
|
|
@@ -672,33 +947,8 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
672
947
|
seed: number;
|
|
673
948
|
}>>;
|
|
674
949
|
theme: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
|
|
950
|
+
challengeValidLength: z.ZodOptional<z.ZodNumber>;
|
|
675
951
|
}, "strip", z.ZodTypeAny, {
|
|
676
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
677
|
-
defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
|
|
678
|
-
account: {
|
|
679
|
-
address: string;
|
|
680
|
-
secret?: string | undefined;
|
|
681
|
-
password?: string | undefined;
|
|
682
|
-
};
|
|
683
|
-
networks: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
684
|
-
endpoint: string;
|
|
685
|
-
contract: {
|
|
686
|
-
address: string;
|
|
687
|
-
name: string;
|
|
688
|
-
};
|
|
689
|
-
accounts: string[];
|
|
690
|
-
}>>;
|
|
691
|
-
web2: boolean;
|
|
692
|
-
solutionThreshold: number;
|
|
693
|
-
dappName: string;
|
|
694
|
-
serverUrl: string;
|
|
695
|
-
database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
696
|
-
type: string;
|
|
697
|
-
endpoint: string;
|
|
698
|
-
dbname: string;
|
|
699
|
-
authSource: string;
|
|
700
|
-
}>> | undefined;
|
|
701
|
-
userAccountAddress?: string | undefined;
|
|
702
952
|
accountCreator?: {
|
|
703
953
|
area: {
|
|
704
954
|
width: number;
|
|
@@ -712,33 +962,8 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
712
962
|
seed: number;
|
|
713
963
|
} | undefined;
|
|
714
964
|
theme?: "light" | "dark" | undefined;
|
|
965
|
+
challengeValidLength?: number | undefined;
|
|
715
966
|
}, {
|
|
716
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
717
|
-
account: {
|
|
718
|
-
address: string;
|
|
719
|
-
secret?: string | undefined;
|
|
720
|
-
password?: string | undefined;
|
|
721
|
-
};
|
|
722
|
-
web2: boolean;
|
|
723
|
-
solutionThreshold: number;
|
|
724
|
-
dappName: string;
|
|
725
|
-
serverUrl: string;
|
|
726
|
-
defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
|
|
727
|
-
networks?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
728
|
-
endpoint: string;
|
|
729
|
-
contract: {
|
|
730
|
-
address: string;
|
|
731
|
-
name: string;
|
|
732
|
-
};
|
|
733
|
-
accounts: string[];
|
|
734
|
-
}>> | undefined;
|
|
735
|
-
database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
736
|
-
type: string;
|
|
737
|
-
endpoint: string;
|
|
738
|
-
dbname: string;
|
|
739
|
-
authSource: string;
|
|
740
|
-
}>> | undefined;
|
|
741
|
-
userAccountAddress?: string | undefined;
|
|
742
967
|
accountCreator?: {
|
|
743
968
|
area: {
|
|
744
969
|
width: number;
|
|
@@ -752,25 +977,28 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
752
977
|
seed: number;
|
|
753
978
|
} | undefined;
|
|
754
979
|
theme?: "light" | "dark" | undefined;
|
|
755
|
-
|
|
756
|
-
|
|
980
|
+
challengeValidLength?: number | undefined;
|
|
981
|
+
}>>;
|
|
982
|
+
export type ProcaptchaClientConfigInput = z.input<typeof ProcaptchaConfigSchema>;
|
|
983
|
+
export type ProcaptchaClientConfigOutput = z.output<typeof ProcaptchaConfigSchema>;
|
|
757
984
|
export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
758
|
-
logLevel: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]
|
|
759
|
-
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "
|
|
985
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
986
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
987
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
760
988
|
account: z.ZodObject<{
|
|
761
|
-
address: z.ZodString
|
|
989
|
+
address: z.ZodOptional<z.ZodString>;
|
|
762
990
|
secret: z.ZodOptional<z.ZodString>;
|
|
763
991
|
password: z.ZodOptional<z.ZodString>;
|
|
764
992
|
}, "strip", z.ZodTypeAny, {
|
|
765
|
-
address
|
|
993
|
+
address?: string | undefined;
|
|
766
994
|
secret?: string | undefined;
|
|
767
995
|
password?: string | undefined;
|
|
768
996
|
}, {
|
|
769
|
-
address
|
|
997
|
+
address?: string | undefined;
|
|
770
998
|
secret?: string | undefined;
|
|
771
999
|
password?: string | undefined;
|
|
772
1000
|
}>;
|
|
773
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
1001
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
774
1002
|
endpoint: z.ZodString;
|
|
775
1003
|
contract: z.ZodObject<{
|
|
776
1004
|
address: z.ZodString;
|
|
@@ -782,23 +1010,42 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
782
1010
|
address: string;
|
|
783
1011
|
name: string;
|
|
784
1012
|
}>;
|
|
785
|
-
|
|
1013
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
1014
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
786
1015
|
}, "strip", z.ZodTypeAny, {
|
|
787
1016
|
endpoint: string;
|
|
788
1017
|
contract: {
|
|
789
1018
|
address: string;
|
|
790
1019
|
name: string;
|
|
791
1020
|
};
|
|
792
|
-
|
|
1021
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1022
|
+
ss58Format: number;
|
|
793
1023
|
}, {
|
|
794
1024
|
endpoint: string;
|
|
795
1025
|
contract: {
|
|
796
1026
|
address: string;
|
|
797
1027
|
name: string;
|
|
798
1028
|
};
|
|
799
|
-
|
|
1029
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1030
|
+
ss58Format?: number | undefined;
|
|
1031
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
1032
|
+
endpoint: string;
|
|
1033
|
+
contract: {
|
|
1034
|
+
address: string;
|
|
1035
|
+
name: string;
|
|
1036
|
+
};
|
|
1037
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1038
|
+
ss58Format: number;
|
|
1039
|
+
}>, Record<string, {
|
|
1040
|
+
endpoint: string;
|
|
1041
|
+
contract: {
|
|
1042
|
+
address: string;
|
|
1043
|
+
name: string;
|
|
1044
|
+
};
|
|
1045
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1046
|
+
ss58Format?: number | undefined;
|
|
800
1047
|
}>>>;
|
|
801
|
-
database: z.ZodOptional<z.
|
|
1048
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
802
1049
|
type: z.ZodString;
|
|
803
1050
|
endpoint: z.ZodString;
|
|
804
1051
|
dbname: z.ZodString;
|
|
@@ -813,22 +1060,22 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
813
1060
|
endpoint: string;
|
|
814
1061
|
dbname: string;
|
|
815
1062
|
authSource: string;
|
|
816
|
-
}
|
|
817
|
-
captchas: z.ZodObject<{
|
|
818
|
-
solved: z.ZodObject<{
|
|
1063
|
+
}>>>;
|
|
1064
|
+
captchas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1065
|
+
solved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
819
1066
|
count: z.ZodNumber;
|
|
820
1067
|
}, "strip", z.ZodTypeAny, {
|
|
821
1068
|
count: number;
|
|
822
1069
|
}, {
|
|
823
1070
|
count: number;
|
|
824
|
-
}
|
|
825
|
-
unsolved: z.ZodObject<{
|
|
1071
|
+
}>>>;
|
|
1072
|
+
unsolved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
826
1073
|
count: z.ZodNumber;
|
|
827
1074
|
}, "strip", z.ZodTypeAny, {
|
|
828
1075
|
count: number;
|
|
829
1076
|
}, {
|
|
830
1077
|
count: number;
|
|
831
|
-
}
|
|
1078
|
+
}>>>;
|
|
832
1079
|
}, "strip", z.ZodTypeAny, {
|
|
833
1080
|
solved: {
|
|
834
1081
|
count: number;
|
|
@@ -837,39 +1084,36 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
837
1084
|
count: number;
|
|
838
1085
|
};
|
|
839
1086
|
}, {
|
|
840
|
-
solved
|
|
1087
|
+
solved?: {
|
|
841
1088
|
count: number;
|
|
842
|
-
};
|
|
843
|
-
unsolved
|
|
1089
|
+
} | undefined;
|
|
1090
|
+
unsolved?: {
|
|
844
1091
|
count: number;
|
|
845
|
-
};
|
|
846
|
-
}
|
|
847
|
-
captchaSolutions: z.ZodObject<{
|
|
1092
|
+
} | undefined;
|
|
1093
|
+
}>>>;
|
|
1094
|
+
captchaSolutions: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
848
1095
|
requiredNumberOfSolutions: z.ZodNumber;
|
|
849
1096
|
solutionWinningPercentage: z.ZodNumber;
|
|
850
|
-
captchaFilePath: z.ZodString;
|
|
851
1097
|
captchaBlockRecency: z.ZodNumber;
|
|
852
1098
|
}, "strip", z.ZodTypeAny, {
|
|
853
1099
|
requiredNumberOfSolutions: number;
|
|
854
1100
|
solutionWinningPercentage: number;
|
|
855
|
-
captchaFilePath: string;
|
|
856
1101
|
captchaBlockRecency: number;
|
|
857
1102
|
}, {
|
|
858
1103
|
requiredNumberOfSolutions: number;
|
|
859
1104
|
solutionWinningPercentage: number;
|
|
860
|
-
captchaFilePath: string;
|
|
861
1105
|
captchaBlockRecency: number;
|
|
862
|
-
}
|
|
863
|
-
batchCommit: z.ZodObject<{
|
|
864
|
-
interval: z.ZodNumber
|
|
865
|
-
maxBatchExtrinsicPercentage: z.ZodNumber
|
|
1106
|
+
}>>>;
|
|
1107
|
+
batchCommit: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1108
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1109
|
+
maxBatchExtrinsicPercentage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
866
1110
|
}, "strip", z.ZodTypeAny, {
|
|
867
1111
|
interval: number;
|
|
868
1112
|
maxBatchExtrinsicPercentage: number;
|
|
869
1113
|
}, {
|
|
870
|
-
interval
|
|
871
|
-
maxBatchExtrinsicPercentage
|
|
872
|
-
}
|
|
1114
|
+
interval?: number | undefined;
|
|
1115
|
+
maxBatchExtrinsicPercentage?: number | undefined;
|
|
1116
|
+
}>>>;
|
|
873
1117
|
server: z.ZodObject<{
|
|
874
1118
|
baseURL: z.ZodString;
|
|
875
1119
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -881,21 +1125,23 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
881
1125
|
port?: number | undefined;
|
|
882
1126
|
}>;
|
|
883
1127
|
}, "strip", z.ZodTypeAny, {
|
|
884
|
-
logLevel: "
|
|
885
|
-
defaultEnvironment: "development" | "
|
|
1128
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
1129
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
1130
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
886
1131
|
account: {
|
|
887
|
-
address
|
|
1132
|
+
address?: string | undefined;
|
|
888
1133
|
secret?: string | undefined;
|
|
889
1134
|
password?: string | undefined;
|
|
890
1135
|
};
|
|
891
|
-
networks:
|
|
1136
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
892
1137
|
endpoint: string;
|
|
893
1138
|
contract: {
|
|
894
1139
|
address: string;
|
|
895
1140
|
name: string;
|
|
896
1141
|
};
|
|
897
|
-
|
|
898
|
-
|
|
1142
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1143
|
+
ss58Format: number;
|
|
1144
|
+
}>;
|
|
899
1145
|
captchas: {
|
|
900
1146
|
solved: {
|
|
901
1147
|
count: number;
|
|
@@ -907,7 +1153,6 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
907
1153
|
captchaSolutions: {
|
|
908
1154
|
requiredNumberOfSolutions: number;
|
|
909
1155
|
solutionWinningPercentage: number;
|
|
910
|
-
captchaFilePath: string;
|
|
911
1156
|
captchaBlockRecency: number;
|
|
912
1157
|
};
|
|
913
1158
|
batchCommit: {
|
|
@@ -918,56 +1163,58 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
918
1163
|
baseURL: string;
|
|
919
1164
|
port: number;
|
|
920
1165
|
};
|
|
921
|
-
database?: Partial<Record<"development" | "
|
|
1166
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
922
1167
|
type: string;
|
|
923
1168
|
endpoint: string;
|
|
924
1169
|
dbname: string;
|
|
925
1170
|
authSource: string;
|
|
926
1171
|
}>> | undefined;
|
|
927
1172
|
}, {
|
|
928
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
929
1173
|
account: {
|
|
930
|
-
address
|
|
1174
|
+
address?: string | undefined;
|
|
931
1175
|
secret?: string | undefined;
|
|
932
1176
|
password?: string | undefined;
|
|
933
1177
|
};
|
|
934
|
-
captchas: {
|
|
935
|
-
solved: {
|
|
936
|
-
count: number;
|
|
937
|
-
};
|
|
938
|
-
unsolved: {
|
|
939
|
-
count: number;
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
captchaSolutions: {
|
|
943
|
-
requiredNumberOfSolutions: number;
|
|
944
|
-
solutionWinningPercentage: number;
|
|
945
|
-
captchaFilePath: string;
|
|
946
|
-
captchaBlockRecency: number;
|
|
947
|
-
};
|
|
948
|
-
batchCommit: {
|
|
949
|
-
interval: number;
|
|
950
|
-
maxBatchExtrinsicPercentage: number;
|
|
951
|
-
};
|
|
952
1178
|
server: {
|
|
953
1179
|
baseURL: string;
|
|
954
1180
|
port?: number | undefined;
|
|
955
1181
|
};
|
|
956
|
-
|
|
957
|
-
|
|
1182
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
1183
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
1184
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
1185
|
+
networks?: Record<string, {
|
|
958
1186
|
endpoint: string;
|
|
959
1187
|
contract: {
|
|
960
1188
|
address: string;
|
|
961
1189
|
name: string;
|
|
962
1190
|
};
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
1191
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1192
|
+
ss58Format?: number | undefined;
|
|
1193
|
+
}> | undefined;
|
|
1194
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
966
1195
|
type: string;
|
|
967
1196
|
endpoint: string;
|
|
968
1197
|
dbname: string;
|
|
969
1198
|
authSource: string;
|
|
970
1199
|
}>> | undefined;
|
|
1200
|
+
captchas?: {
|
|
1201
|
+
solved?: {
|
|
1202
|
+
count: number;
|
|
1203
|
+
} | undefined;
|
|
1204
|
+
unsolved?: {
|
|
1205
|
+
count: number;
|
|
1206
|
+
} | undefined;
|
|
1207
|
+
} | undefined;
|
|
1208
|
+
captchaSolutions?: {
|
|
1209
|
+
requiredNumberOfSolutions: number;
|
|
1210
|
+
solutionWinningPercentage: number;
|
|
1211
|
+
captchaBlockRecency: number;
|
|
1212
|
+
} | undefined;
|
|
1213
|
+
batchCommit?: {
|
|
1214
|
+
interval?: number | undefined;
|
|
1215
|
+
maxBatchExtrinsicPercentage?: number | undefined;
|
|
1216
|
+
} | undefined;
|
|
971
1217
|
}>;
|
|
972
|
-
export type
|
|
1218
|
+
export type ProsopoConfigInput = z.input<typeof ProsopoConfigSchema>;
|
|
1219
|
+
export type ProsopoConfigOutput = z.output<typeof ProsopoConfigSchema>;
|
|
973
1220
|
//# sourceMappingURL=config.d.ts.map
|