@prosopo/types 0.2.6 → 0.2.8
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 +557 -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,12 +225,12 @@ 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
|
}>;
|
|
261
235
|
export declare const ProsopoImageServerConfigSchema: z.ZodObject<{
|
|
262
236
|
baseURL: z.ZodString;
|
|
@@ -271,36 +245,34 @@ export declare const ProsopoImageServerConfigSchema: z.ZodObject<{
|
|
|
271
245
|
export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
|
|
272
246
|
requiredNumberOfSolutions: z.ZodNumber;
|
|
273
247
|
solutionWinningPercentage: z.ZodNumber;
|
|
274
|
-
captchaFilePath: z.ZodString;
|
|
275
248
|
captchaBlockRecency: z.ZodNumber;
|
|
276
249
|
}, "strip", z.ZodTypeAny, {
|
|
277
250
|
requiredNumberOfSolutions: number;
|
|
278
251
|
solutionWinningPercentage: number;
|
|
279
|
-
captchaFilePath: string;
|
|
280
252
|
captchaBlockRecency: number;
|
|
281
253
|
}, {
|
|
282
254
|
requiredNumberOfSolutions: number;
|
|
283
255
|
solutionWinningPercentage: number;
|
|
284
|
-
captchaFilePath: string;
|
|
285
256
|
captchaBlockRecency: number;
|
|
286
257
|
}>;
|
|
287
|
-
export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
288
|
-
logLevel: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]
|
|
289
|
-
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "
|
|
258
|
+
export declare const ProsopoClientConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
259
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
260
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
261
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
290
262
|
account: z.ZodObject<{
|
|
291
|
-
address: z.ZodString
|
|
263
|
+
address: z.ZodOptional<z.ZodString>;
|
|
292
264
|
secret: z.ZodOptional<z.ZodString>;
|
|
293
265
|
password: z.ZodOptional<z.ZodString>;
|
|
294
266
|
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
address
|
|
267
|
+
address?: string | undefined;
|
|
296
268
|
secret?: string | undefined;
|
|
297
269
|
password?: string | undefined;
|
|
298
270
|
}, {
|
|
299
|
-
address
|
|
271
|
+
address?: string | undefined;
|
|
300
272
|
secret?: string | undefined;
|
|
301
273
|
password?: string | undefined;
|
|
302
274
|
}>;
|
|
303
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
275
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
304
276
|
endpoint: z.ZodString;
|
|
305
277
|
contract: z.ZodObject<{
|
|
306
278
|
address: z.ZodString;
|
|
@@ -312,23 +284,42 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
312
284
|
address: string;
|
|
313
285
|
name: string;
|
|
314
286
|
}>;
|
|
315
|
-
|
|
287
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
288
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
316
289
|
}, "strip", z.ZodTypeAny, {
|
|
317
290
|
endpoint: string;
|
|
318
291
|
contract: {
|
|
319
292
|
address: string;
|
|
320
293
|
name: string;
|
|
321
294
|
};
|
|
322
|
-
|
|
295
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
296
|
+
ss58Format: number;
|
|
323
297
|
}, {
|
|
324
298
|
endpoint: string;
|
|
325
299
|
contract: {
|
|
326
300
|
address: string;
|
|
327
301
|
name: string;
|
|
328
302
|
};
|
|
329
|
-
|
|
303
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
304
|
+
ss58Format?: number | undefined;
|
|
305
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
306
|
+
endpoint: string;
|
|
307
|
+
contract: {
|
|
308
|
+
address: string;
|
|
309
|
+
name: string;
|
|
310
|
+
};
|
|
311
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
312
|
+
ss58Format: number;
|
|
313
|
+
}>, Record<string, {
|
|
314
|
+
endpoint: string;
|
|
315
|
+
contract: {
|
|
316
|
+
address: string;
|
|
317
|
+
name: string;
|
|
318
|
+
};
|
|
319
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
320
|
+
ss58Format?: number | undefined;
|
|
330
321
|
}>>>;
|
|
331
|
-
database: z.ZodOptional<z.
|
|
322
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
332
323
|
type: z.ZodString;
|
|
333
324
|
endpoint: z.ZodString;
|
|
334
325
|
dbname: z.ZodString;
|
|
@@ -343,33 +334,35 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
343
334
|
endpoint: string;
|
|
344
335
|
dbname: string;
|
|
345
336
|
authSource: string;
|
|
346
|
-
}
|
|
337
|
+
}>>>;
|
|
347
338
|
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
348
|
-
web2: z.ZodBoolean
|
|
349
|
-
solutionThreshold: z.ZodNumber
|
|
350
|
-
dappName: z.ZodString
|
|
339
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
340
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
341
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
351
342
|
serverUrl: z.ZodString;
|
|
352
343
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
logLevel: "
|
|
354
|
-
defaultEnvironment: "development" | "
|
|
344
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
345
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
346
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
355
347
|
account: {
|
|
356
|
-
address
|
|
348
|
+
address?: string | undefined;
|
|
357
349
|
secret?: string | undefined;
|
|
358
350
|
password?: string | undefined;
|
|
359
351
|
};
|
|
360
|
-
networks:
|
|
352
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
361
353
|
endpoint: string;
|
|
362
354
|
contract: {
|
|
363
355
|
address: string;
|
|
364
356
|
name: string;
|
|
365
357
|
};
|
|
366
|
-
|
|
367
|
-
|
|
358
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
359
|
+
ss58Format: number;
|
|
360
|
+
}>;
|
|
368
361
|
web2: boolean;
|
|
369
362
|
solutionThreshold: number;
|
|
370
363
|
dappName: string;
|
|
371
364
|
serverUrl: string;
|
|
372
|
-
database?: Partial<Record<"development" | "
|
|
365
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
373
366
|
type: string;
|
|
374
367
|
endpoint: string;
|
|
375
368
|
dbname: string;
|
|
@@ -377,50 +370,111 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
377
370
|
}>> | undefined;
|
|
378
371
|
userAccountAddress?: string | undefined;
|
|
379
372
|
}, {
|
|
380
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
381
373
|
account: {
|
|
382
|
-
address
|
|
374
|
+
address?: string | undefined;
|
|
375
|
+
secret?: string | undefined;
|
|
376
|
+
password?: string | undefined;
|
|
377
|
+
};
|
|
378
|
+
serverUrl: string;
|
|
379
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
380
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
381
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
382
|
+
networks?: Record<string, {
|
|
383
|
+
endpoint: string;
|
|
384
|
+
contract: {
|
|
385
|
+
address: string;
|
|
386
|
+
name: string;
|
|
387
|
+
};
|
|
388
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
389
|
+
ss58Format?: number | undefined;
|
|
390
|
+
}> | undefined;
|
|
391
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
392
|
+
type: string;
|
|
393
|
+
endpoint: string;
|
|
394
|
+
dbname: string;
|
|
395
|
+
authSource: string;
|
|
396
|
+
}>> | undefined;
|
|
397
|
+
userAccountAddress?: string | undefined;
|
|
398
|
+
web2?: boolean | undefined;
|
|
399
|
+
solutionThreshold?: number | undefined;
|
|
400
|
+
dappName?: string | undefined;
|
|
401
|
+
}>, {
|
|
402
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
403
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
404
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
405
|
+
account: {
|
|
406
|
+
address?: string | undefined;
|
|
383
407
|
secret?: string | undefined;
|
|
384
408
|
password?: string | undefined;
|
|
385
409
|
};
|
|
410
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
411
|
+
endpoint: string;
|
|
412
|
+
contract: {
|
|
413
|
+
address: string;
|
|
414
|
+
name: string;
|
|
415
|
+
};
|
|
416
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
417
|
+
ss58Format: number;
|
|
418
|
+
}>;
|
|
386
419
|
web2: boolean;
|
|
387
420
|
solutionThreshold: number;
|
|
388
421
|
dappName: string;
|
|
389
422
|
serverUrl: string;
|
|
390
|
-
|
|
391
|
-
|
|
423
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
424
|
+
type: string;
|
|
425
|
+
endpoint: string;
|
|
426
|
+
dbname: string;
|
|
427
|
+
authSource: string;
|
|
428
|
+
}>> | undefined;
|
|
429
|
+
userAccountAddress?: string | undefined;
|
|
430
|
+
}, {
|
|
431
|
+
account: {
|
|
432
|
+
address?: string | undefined;
|
|
433
|
+
secret?: string | undefined;
|
|
434
|
+
password?: string | undefined;
|
|
435
|
+
};
|
|
436
|
+
serverUrl: string;
|
|
437
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
438
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
439
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
440
|
+
networks?: Record<string, {
|
|
392
441
|
endpoint: string;
|
|
393
442
|
contract: {
|
|
394
443
|
address: string;
|
|
395
444
|
name: string;
|
|
396
445
|
};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
446
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
447
|
+
ss58Format?: number | undefined;
|
|
448
|
+
}> | undefined;
|
|
449
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
400
450
|
type: string;
|
|
401
451
|
endpoint: string;
|
|
402
452
|
dbname: string;
|
|
403
453
|
authSource: string;
|
|
404
454
|
}>> | undefined;
|
|
405
455
|
userAccountAddress?: string | undefined;
|
|
456
|
+
web2?: boolean | undefined;
|
|
457
|
+
solutionThreshold?: number | undefined;
|
|
458
|
+
dappName?: string | undefined;
|
|
406
459
|
}>;
|
|
407
|
-
export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
408
|
-
logLevel: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]
|
|
409
|
-
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "
|
|
460
|
+
export declare const ProsopoServerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
461
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
462
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
463
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
410
464
|
account: z.ZodObject<{
|
|
411
|
-
address: z.ZodString
|
|
465
|
+
address: z.ZodOptional<z.ZodString>;
|
|
412
466
|
secret: z.ZodOptional<z.ZodString>;
|
|
413
467
|
password: z.ZodOptional<z.ZodString>;
|
|
414
468
|
}, "strip", z.ZodTypeAny, {
|
|
415
|
-
address
|
|
469
|
+
address?: string | undefined;
|
|
416
470
|
secret?: string | undefined;
|
|
417
471
|
password?: string | undefined;
|
|
418
472
|
}, {
|
|
419
|
-
address
|
|
473
|
+
address?: string | undefined;
|
|
420
474
|
secret?: string | undefined;
|
|
421
475
|
password?: string | undefined;
|
|
422
476
|
}>;
|
|
423
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
477
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
424
478
|
endpoint: z.ZodString;
|
|
425
479
|
contract: z.ZodObject<{
|
|
426
480
|
address: z.ZodString;
|
|
@@ -432,23 +486,42 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
|
432
486
|
address: string;
|
|
433
487
|
name: string;
|
|
434
488
|
}>;
|
|
435
|
-
|
|
489
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
490
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
436
491
|
}, "strip", z.ZodTypeAny, {
|
|
437
492
|
endpoint: string;
|
|
438
493
|
contract: {
|
|
439
494
|
address: string;
|
|
440
495
|
name: string;
|
|
441
496
|
};
|
|
442
|
-
|
|
497
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
498
|
+
ss58Format: number;
|
|
443
499
|
}, {
|
|
444
500
|
endpoint: string;
|
|
445
501
|
contract: {
|
|
446
502
|
address: string;
|
|
447
503
|
name: string;
|
|
448
504
|
};
|
|
449
|
-
|
|
505
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
506
|
+
ss58Format?: number | undefined;
|
|
507
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
508
|
+
endpoint: string;
|
|
509
|
+
contract: {
|
|
510
|
+
address: string;
|
|
511
|
+
name: string;
|
|
512
|
+
};
|
|
513
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
514
|
+
ss58Format: number;
|
|
515
|
+
}>, Record<string, {
|
|
516
|
+
endpoint: string;
|
|
517
|
+
contract: {
|
|
518
|
+
address: string;
|
|
519
|
+
name: string;
|
|
520
|
+
};
|
|
521
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
522
|
+
ss58Format?: number | undefined;
|
|
450
523
|
}>>>;
|
|
451
|
-
database: z.ZodOptional<z.
|
|
524
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
452
525
|
type: z.ZodString;
|
|
453
526
|
endpoint: z.ZodString;
|
|
454
527
|
dbname: z.ZodString;
|
|
@@ -463,33 +536,35 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
|
463
536
|
endpoint: string;
|
|
464
537
|
dbname: string;
|
|
465
538
|
authSource: string;
|
|
466
|
-
}
|
|
539
|
+
}>>>;
|
|
467
540
|
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
468
|
-
web2: z.ZodBoolean
|
|
469
|
-
solutionThreshold: z.ZodNumber
|
|
470
|
-
dappName: z.ZodString
|
|
541
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
542
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
543
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
471
544
|
serverUrl: z.ZodString;
|
|
472
545
|
}, "strip", z.ZodTypeAny, {
|
|
473
|
-
logLevel: "
|
|
474
|
-
defaultEnvironment: "development" | "
|
|
546
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
547
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
548
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
475
549
|
account: {
|
|
476
|
-
address
|
|
550
|
+
address?: string | undefined;
|
|
477
551
|
secret?: string | undefined;
|
|
478
552
|
password?: string | undefined;
|
|
479
553
|
};
|
|
480
|
-
networks:
|
|
554
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
481
555
|
endpoint: string;
|
|
482
556
|
contract: {
|
|
483
557
|
address: string;
|
|
484
558
|
name: string;
|
|
485
559
|
};
|
|
486
|
-
|
|
487
|
-
|
|
560
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
561
|
+
ss58Format: number;
|
|
562
|
+
}>;
|
|
488
563
|
web2: boolean;
|
|
489
564
|
solutionThreshold: number;
|
|
490
565
|
dappName: string;
|
|
491
566
|
serverUrl: string;
|
|
492
|
-
database?: Partial<Record<"development" | "
|
|
567
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
493
568
|
type: string;
|
|
494
569
|
endpoint: string;
|
|
495
570
|
dbname: string;
|
|
@@ -497,34 +572,95 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
|
497
572
|
}>> | undefined;
|
|
498
573
|
userAccountAddress?: string | undefined;
|
|
499
574
|
}, {
|
|
500
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
501
575
|
account: {
|
|
502
|
-
address
|
|
576
|
+
address?: string | undefined;
|
|
503
577
|
secret?: string | undefined;
|
|
504
578
|
password?: string | undefined;
|
|
505
579
|
};
|
|
580
|
+
serverUrl: string;
|
|
581
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
582
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
583
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
584
|
+
networks?: Record<string, {
|
|
585
|
+
endpoint: string;
|
|
586
|
+
contract: {
|
|
587
|
+
address: string;
|
|
588
|
+
name: string;
|
|
589
|
+
};
|
|
590
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
591
|
+
ss58Format?: number | undefined;
|
|
592
|
+
}> | undefined;
|
|
593
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
594
|
+
type: string;
|
|
595
|
+
endpoint: string;
|
|
596
|
+
dbname: string;
|
|
597
|
+
authSource: string;
|
|
598
|
+
}>> | undefined;
|
|
599
|
+
userAccountAddress?: string | undefined;
|
|
600
|
+
web2?: boolean | undefined;
|
|
601
|
+
solutionThreshold?: number | undefined;
|
|
602
|
+
dappName?: string | undefined;
|
|
603
|
+
}>, {
|
|
604
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
605
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
606
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
607
|
+
account: {
|
|
608
|
+
address?: string | undefined;
|
|
609
|
+
secret?: string | undefined;
|
|
610
|
+
password?: string | undefined;
|
|
611
|
+
};
|
|
612
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
613
|
+
endpoint: string;
|
|
614
|
+
contract: {
|
|
615
|
+
address: string;
|
|
616
|
+
name: string;
|
|
617
|
+
};
|
|
618
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
619
|
+
ss58Format: number;
|
|
620
|
+
}>;
|
|
506
621
|
web2: boolean;
|
|
507
622
|
solutionThreshold: number;
|
|
508
623
|
dappName: string;
|
|
509
624
|
serverUrl: string;
|
|
510
|
-
|
|
511
|
-
|
|
625
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
626
|
+
type: string;
|
|
627
|
+
endpoint: string;
|
|
628
|
+
dbname: string;
|
|
629
|
+
authSource: string;
|
|
630
|
+
}>> | undefined;
|
|
631
|
+
userAccountAddress?: string | undefined;
|
|
632
|
+
}, {
|
|
633
|
+
account: {
|
|
634
|
+
address?: string | undefined;
|
|
635
|
+
secret?: string | undefined;
|
|
636
|
+
password?: string | undefined;
|
|
637
|
+
};
|
|
638
|
+
serverUrl: string;
|
|
639
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
640
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
641
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
642
|
+
networks?: Record<string, {
|
|
512
643
|
endpoint: string;
|
|
513
644
|
contract: {
|
|
514
645
|
address: string;
|
|
515
646
|
name: string;
|
|
516
647
|
};
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
648
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
649
|
+
ss58Format?: number | undefined;
|
|
650
|
+
}> | undefined;
|
|
651
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
520
652
|
type: string;
|
|
521
653
|
endpoint: string;
|
|
522
654
|
dbname: string;
|
|
523
655
|
authSource: string;
|
|
524
656
|
}>> | undefined;
|
|
525
657
|
userAccountAddress?: string | undefined;
|
|
658
|
+
web2?: boolean | undefined;
|
|
659
|
+
solutionThreshold?: number | undefined;
|
|
660
|
+
dappName?: string | undefined;
|
|
526
661
|
}>;
|
|
527
|
-
export type
|
|
662
|
+
export type ProsopoServerConfigInput = z.input<typeof ProsopoClientConfigSchema>;
|
|
663
|
+
export type ProsopoServerConfigOutput = z.output<typeof ProsopoClientConfigSchema>;
|
|
528
664
|
export declare const AccountCreatorConfigSchema: z.ZodObject<{
|
|
529
665
|
area: z.ZodObject<{
|
|
530
666
|
width: z.ZodNumber;
|
|
@@ -565,24 +701,26 @@ export declare const AccountCreatorConfigSchema: z.ZodObject<{
|
|
|
565
701
|
numberOfRounds: number;
|
|
566
702
|
seed: number;
|
|
567
703
|
}>;
|
|
568
|
-
export type
|
|
569
|
-
export
|
|
570
|
-
|
|
571
|
-
|
|
704
|
+
export type ProsopoClientConfigInput = z.input<typeof ProsopoClientConfigSchema>;
|
|
705
|
+
export type ProsopoClientConfigOutput = z.output<typeof ProsopoClientConfigSchema>;
|
|
706
|
+
export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
707
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
708
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
709
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
572
710
|
account: z.ZodObject<{
|
|
573
|
-
address: z.ZodString
|
|
711
|
+
address: z.ZodOptional<z.ZodString>;
|
|
574
712
|
secret: z.ZodOptional<z.ZodString>;
|
|
575
713
|
password: z.ZodOptional<z.ZodString>;
|
|
576
714
|
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
address
|
|
715
|
+
address?: string | undefined;
|
|
578
716
|
secret?: string | undefined;
|
|
579
717
|
password?: string | undefined;
|
|
580
718
|
}, {
|
|
581
|
-
address
|
|
719
|
+
address?: string | undefined;
|
|
582
720
|
secret?: string | undefined;
|
|
583
721
|
password?: string | undefined;
|
|
584
722
|
}>;
|
|
585
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
723
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
586
724
|
endpoint: z.ZodString;
|
|
587
725
|
contract: z.ZodObject<{
|
|
588
726
|
address: z.ZodString;
|
|
@@ -594,23 +732,42 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
594
732
|
address: string;
|
|
595
733
|
name: string;
|
|
596
734
|
}>;
|
|
597
|
-
|
|
735
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
736
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
598
737
|
}, "strip", z.ZodTypeAny, {
|
|
599
738
|
endpoint: string;
|
|
600
739
|
contract: {
|
|
601
740
|
address: string;
|
|
602
741
|
name: string;
|
|
603
742
|
};
|
|
604
|
-
|
|
743
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
744
|
+
ss58Format: number;
|
|
605
745
|
}, {
|
|
606
746
|
endpoint: string;
|
|
607
747
|
contract: {
|
|
608
748
|
address: string;
|
|
609
749
|
name: string;
|
|
610
750
|
};
|
|
611
|
-
|
|
751
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
752
|
+
ss58Format?: number | undefined;
|
|
753
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
754
|
+
endpoint: string;
|
|
755
|
+
contract: {
|
|
756
|
+
address: string;
|
|
757
|
+
name: string;
|
|
758
|
+
};
|
|
759
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
760
|
+
ss58Format: number;
|
|
761
|
+
}>, Record<string, {
|
|
762
|
+
endpoint: string;
|
|
763
|
+
contract: {
|
|
764
|
+
address: string;
|
|
765
|
+
name: string;
|
|
766
|
+
};
|
|
767
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
768
|
+
ss58Format?: number | undefined;
|
|
612
769
|
}>>>;
|
|
613
|
-
database: z.ZodOptional<z.
|
|
770
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
614
771
|
type: z.ZodString;
|
|
615
772
|
endpoint: z.ZodString;
|
|
616
773
|
dbname: z.ZodString;
|
|
@@ -625,12 +782,129 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
625
782
|
endpoint: string;
|
|
626
783
|
dbname: string;
|
|
627
784
|
authSource: string;
|
|
628
|
-
}
|
|
785
|
+
}>>>;
|
|
629
786
|
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
630
|
-
web2: z.ZodBoolean
|
|
631
|
-
solutionThreshold: z.ZodNumber
|
|
632
|
-
dappName: z.ZodString
|
|
787
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
788
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
789
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
633
790
|
serverUrl: z.ZodString;
|
|
791
|
+
}, "strip", z.ZodTypeAny, {
|
|
792
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
793
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
794
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
795
|
+
account: {
|
|
796
|
+
address?: string | undefined;
|
|
797
|
+
secret?: string | undefined;
|
|
798
|
+
password?: string | undefined;
|
|
799
|
+
};
|
|
800
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
801
|
+
endpoint: string;
|
|
802
|
+
contract: {
|
|
803
|
+
address: string;
|
|
804
|
+
name: string;
|
|
805
|
+
};
|
|
806
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
807
|
+
ss58Format: number;
|
|
808
|
+
}>;
|
|
809
|
+
web2: boolean;
|
|
810
|
+
solutionThreshold: number;
|
|
811
|
+
dappName: string;
|
|
812
|
+
serverUrl: string;
|
|
813
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
814
|
+
type: string;
|
|
815
|
+
endpoint: string;
|
|
816
|
+
dbname: string;
|
|
817
|
+
authSource: string;
|
|
818
|
+
}>> | undefined;
|
|
819
|
+
userAccountAddress?: string | undefined;
|
|
820
|
+
}, {
|
|
821
|
+
account: {
|
|
822
|
+
address?: string | undefined;
|
|
823
|
+
secret?: string | undefined;
|
|
824
|
+
password?: string | undefined;
|
|
825
|
+
};
|
|
826
|
+
serverUrl: string;
|
|
827
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
828
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
829
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
830
|
+
networks?: Record<string, {
|
|
831
|
+
endpoint: string;
|
|
832
|
+
contract: {
|
|
833
|
+
address: string;
|
|
834
|
+
name: string;
|
|
835
|
+
};
|
|
836
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
837
|
+
ss58Format?: number | undefined;
|
|
838
|
+
}> | undefined;
|
|
839
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
840
|
+
type: string;
|
|
841
|
+
endpoint: string;
|
|
842
|
+
dbname: string;
|
|
843
|
+
authSource: string;
|
|
844
|
+
}>> | undefined;
|
|
845
|
+
userAccountAddress?: string | undefined;
|
|
846
|
+
web2?: boolean | undefined;
|
|
847
|
+
solutionThreshold?: number | undefined;
|
|
848
|
+
dappName?: string | undefined;
|
|
849
|
+
}>, {
|
|
850
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
851
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
852
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
853
|
+
account: {
|
|
854
|
+
address?: string | undefined;
|
|
855
|
+
secret?: string | undefined;
|
|
856
|
+
password?: string | undefined;
|
|
857
|
+
};
|
|
858
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
859
|
+
endpoint: string;
|
|
860
|
+
contract: {
|
|
861
|
+
address: string;
|
|
862
|
+
name: string;
|
|
863
|
+
};
|
|
864
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
865
|
+
ss58Format: number;
|
|
866
|
+
}>;
|
|
867
|
+
web2: boolean;
|
|
868
|
+
solutionThreshold: number;
|
|
869
|
+
dappName: string;
|
|
870
|
+
serverUrl: string;
|
|
871
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
872
|
+
type: string;
|
|
873
|
+
endpoint: string;
|
|
874
|
+
dbname: string;
|
|
875
|
+
authSource: string;
|
|
876
|
+
}>> | undefined;
|
|
877
|
+
userAccountAddress?: string | undefined;
|
|
878
|
+
}, {
|
|
879
|
+
account: {
|
|
880
|
+
address?: string | undefined;
|
|
881
|
+
secret?: string | undefined;
|
|
882
|
+
password?: string | undefined;
|
|
883
|
+
};
|
|
884
|
+
serverUrl: string;
|
|
885
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
886
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
887
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
888
|
+
networks?: Record<string, {
|
|
889
|
+
endpoint: string;
|
|
890
|
+
contract: {
|
|
891
|
+
address: string;
|
|
892
|
+
name: string;
|
|
893
|
+
};
|
|
894
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
895
|
+
ss58Format?: number | undefined;
|
|
896
|
+
}> | undefined;
|
|
897
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
898
|
+
type: string;
|
|
899
|
+
endpoint: string;
|
|
900
|
+
dbname: string;
|
|
901
|
+
authSource: string;
|
|
902
|
+
}>> | undefined;
|
|
903
|
+
userAccountAddress?: string | undefined;
|
|
904
|
+
web2?: boolean | undefined;
|
|
905
|
+
solutionThreshold?: number | undefined;
|
|
906
|
+
dappName?: string | undefined;
|
|
907
|
+
}>, z.ZodObject<{
|
|
634
908
|
accountCreator: z.ZodOptional<z.ZodObject<{
|
|
635
909
|
area: z.ZodObject<{
|
|
636
910
|
width: z.ZodNumber;
|
|
@@ -672,33 +946,8 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
672
946
|
seed: number;
|
|
673
947
|
}>>;
|
|
674
948
|
theme: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
|
|
949
|
+
challengeValidLength: z.ZodOptional<z.ZodNumber>;
|
|
675
950
|
}, "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
951
|
accountCreator?: {
|
|
703
952
|
area: {
|
|
704
953
|
width: number;
|
|
@@ -712,33 +961,8 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
712
961
|
seed: number;
|
|
713
962
|
} | undefined;
|
|
714
963
|
theme?: "light" | "dark" | undefined;
|
|
964
|
+
challengeValidLength?: number | undefined;
|
|
715
965
|
}, {
|
|
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
966
|
accountCreator?: {
|
|
743
967
|
area: {
|
|
744
968
|
width: number;
|
|
@@ -752,25 +976,28 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
752
976
|
seed: number;
|
|
753
977
|
} | undefined;
|
|
754
978
|
theme?: "light" | "dark" | undefined;
|
|
755
|
-
|
|
756
|
-
|
|
979
|
+
challengeValidLength?: number | undefined;
|
|
980
|
+
}>>;
|
|
981
|
+
export type ProcaptchaClientConfigInput = z.input<typeof ProcaptchaConfigSchema>;
|
|
982
|
+
export type ProcaptchaClientConfigOutput = z.output<typeof ProcaptchaConfigSchema>;
|
|
757
983
|
export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
758
|
-
logLevel: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]
|
|
759
|
-
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "
|
|
984
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
985
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
986
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden"]>>;
|
|
760
987
|
account: z.ZodObject<{
|
|
761
|
-
address: z.ZodString
|
|
988
|
+
address: z.ZodOptional<z.ZodString>;
|
|
762
989
|
secret: z.ZodOptional<z.ZodString>;
|
|
763
990
|
password: z.ZodOptional<z.ZodString>;
|
|
764
991
|
}, "strip", z.ZodTypeAny, {
|
|
765
|
-
address
|
|
992
|
+
address?: string | undefined;
|
|
766
993
|
secret?: string | undefined;
|
|
767
994
|
password?: string | undefined;
|
|
768
995
|
}, {
|
|
769
|
-
address
|
|
996
|
+
address?: string | undefined;
|
|
770
997
|
secret?: string | undefined;
|
|
771
998
|
password?: string | undefined;
|
|
772
999
|
}>;
|
|
773
|
-
networks: z.ZodDefault<z.ZodRecord<z.
|
|
1000
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
774
1001
|
endpoint: z.ZodString;
|
|
775
1002
|
contract: z.ZodObject<{
|
|
776
1003
|
address: z.ZodString;
|
|
@@ -782,23 +1009,42 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
782
1009
|
address: string;
|
|
783
1010
|
name: string;
|
|
784
1011
|
}>;
|
|
785
|
-
|
|
1012
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
1013
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
786
1014
|
}, "strip", z.ZodTypeAny, {
|
|
787
1015
|
endpoint: string;
|
|
788
1016
|
contract: {
|
|
789
1017
|
address: string;
|
|
790
1018
|
name: string;
|
|
791
1019
|
};
|
|
792
|
-
|
|
1020
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1021
|
+
ss58Format: number;
|
|
793
1022
|
}, {
|
|
794
1023
|
endpoint: string;
|
|
795
1024
|
contract: {
|
|
796
1025
|
address: string;
|
|
797
1026
|
name: string;
|
|
798
1027
|
};
|
|
799
|
-
|
|
1028
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1029
|
+
ss58Format?: number | undefined;
|
|
1030
|
+
}>>, Record<"development" | "rococo" | "shiden", {
|
|
1031
|
+
endpoint: string;
|
|
1032
|
+
contract: {
|
|
1033
|
+
address: string;
|
|
1034
|
+
name: string;
|
|
1035
|
+
};
|
|
1036
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1037
|
+
ss58Format: number;
|
|
1038
|
+
}>, Record<string, {
|
|
1039
|
+
endpoint: string;
|
|
1040
|
+
contract: {
|
|
1041
|
+
address: string;
|
|
1042
|
+
name: string;
|
|
1043
|
+
};
|
|
1044
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1045
|
+
ss58Format?: number | undefined;
|
|
800
1046
|
}>>>;
|
|
801
|
-
database: z.ZodOptional<z.
|
|
1047
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
802
1048
|
type: z.ZodString;
|
|
803
1049
|
endpoint: z.ZodString;
|
|
804
1050
|
dbname: z.ZodString;
|
|
@@ -813,22 +1059,22 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
813
1059
|
endpoint: string;
|
|
814
1060
|
dbname: string;
|
|
815
1061
|
authSource: string;
|
|
816
|
-
}
|
|
817
|
-
captchas: z.ZodObject<{
|
|
818
|
-
solved: z.ZodObject<{
|
|
1062
|
+
}>>>;
|
|
1063
|
+
captchas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1064
|
+
solved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
819
1065
|
count: z.ZodNumber;
|
|
820
1066
|
}, "strip", z.ZodTypeAny, {
|
|
821
1067
|
count: number;
|
|
822
1068
|
}, {
|
|
823
1069
|
count: number;
|
|
824
|
-
}
|
|
825
|
-
unsolved: z.ZodObject<{
|
|
1070
|
+
}>>>;
|
|
1071
|
+
unsolved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
826
1072
|
count: z.ZodNumber;
|
|
827
1073
|
}, "strip", z.ZodTypeAny, {
|
|
828
1074
|
count: number;
|
|
829
1075
|
}, {
|
|
830
1076
|
count: number;
|
|
831
|
-
}
|
|
1077
|
+
}>>>;
|
|
832
1078
|
}, "strip", z.ZodTypeAny, {
|
|
833
1079
|
solved: {
|
|
834
1080
|
count: number;
|
|
@@ -837,39 +1083,36 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
837
1083
|
count: number;
|
|
838
1084
|
};
|
|
839
1085
|
}, {
|
|
840
|
-
solved
|
|
1086
|
+
solved?: {
|
|
841
1087
|
count: number;
|
|
842
|
-
};
|
|
843
|
-
unsolved
|
|
1088
|
+
} | undefined;
|
|
1089
|
+
unsolved?: {
|
|
844
1090
|
count: number;
|
|
845
|
-
};
|
|
846
|
-
}
|
|
847
|
-
captchaSolutions: z.ZodObject<{
|
|
1091
|
+
} | undefined;
|
|
1092
|
+
}>>>;
|
|
1093
|
+
captchaSolutions: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
848
1094
|
requiredNumberOfSolutions: z.ZodNumber;
|
|
849
1095
|
solutionWinningPercentage: z.ZodNumber;
|
|
850
|
-
captchaFilePath: z.ZodString;
|
|
851
1096
|
captchaBlockRecency: z.ZodNumber;
|
|
852
1097
|
}, "strip", z.ZodTypeAny, {
|
|
853
1098
|
requiredNumberOfSolutions: number;
|
|
854
1099
|
solutionWinningPercentage: number;
|
|
855
|
-
captchaFilePath: string;
|
|
856
1100
|
captchaBlockRecency: number;
|
|
857
1101
|
}, {
|
|
858
1102
|
requiredNumberOfSolutions: number;
|
|
859
1103
|
solutionWinningPercentage: number;
|
|
860
|
-
captchaFilePath: string;
|
|
861
1104
|
captchaBlockRecency: number;
|
|
862
|
-
}
|
|
863
|
-
batchCommit: z.ZodObject<{
|
|
864
|
-
interval: z.ZodNumber
|
|
865
|
-
maxBatchExtrinsicPercentage: z.ZodNumber
|
|
1105
|
+
}>>>;
|
|
1106
|
+
batchCommit: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1107
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1108
|
+
maxBatchExtrinsicPercentage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
866
1109
|
}, "strip", z.ZodTypeAny, {
|
|
867
1110
|
interval: number;
|
|
868
1111
|
maxBatchExtrinsicPercentage: number;
|
|
869
1112
|
}, {
|
|
870
|
-
interval
|
|
871
|
-
maxBatchExtrinsicPercentage
|
|
872
|
-
}
|
|
1113
|
+
interval?: number | undefined;
|
|
1114
|
+
maxBatchExtrinsicPercentage?: number | undefined;
|
|
1115
|
+
}>>>;
|
|
873
1116
|
server: z.ZodObject<{
|
|
874
1117
|
baseURL: z.ZodString;
|
|
875
1118
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -881,21 +1124,23 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
881
1124
|
port?: number | undefined;
|
|
882
1125
|
}>;
|
|
883
1126
|
}, "strip", z.ZodTypeAny, {
|
|
884
|
-
logLevel: "
|
|
885
|
-
defaultEnvironment: "development" | "
|
|
1127
|
+
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
1128
|
+
defaultEnvironment: "development" | "staging" | "production";
|
|
1129
|
+
defaultNetwork: "development" | "rococo" | "shiden";
|
|
886
1130
|
account: {
|
|
887
|
-
address
|
|
1131
|
+
address?: string | undefined;
|
|
888
1132
|
secret?: string | undefined;
|
|
889
1133
|
password?: string | undefined;
|
|
890
1134
|
};
|
|
891
|
-
networks:
|
|
1135
|
+
networks: Record<"development" | "rococo" | "shiden", {
|
|
892
1136
|
endpoint: string;
|
|
893
1137
|
contract: {
|
|
894
1138
|
address: string;
|
|
895
1139
|
name: string;
|
|
896
1140
|
};
|
|
897
|
-
|
|
898
|
-
|
|
1141
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1142
|
+
ss58Format: number;
|
|
1143
|
+
}>;
|
|
899
1144
|
captchas: {
|
|
900
1145
|
solved: {
|
|
901
1146
|
count: number;
|
|
@@ -907,7 +1152,6 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
907
1152
|
captchaSolutions: {
|
|
908
1153
|
requiredNumberOfSolutions: number;
|
|
909
1154
|
solutionWinningPercentage: number;
|
|
910
|
-
captchaFilePath: string;
|
|
911
1155
|
captchaBlockRecency: number;
|
|
912
1156
|
};
|
|
913
1157
|
batchCommit: {
|
|
@@ -918,56 +1162,58 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
918
1162
|
baseURL: string;
|
|
919
1163
|
port: number;
|
|
920
1164
|
};
|
|
921
|
-
database?: Partial<Record<"development" | "
|
|
1165
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
922
1166
|
type: string;
|
|
923
1167
|
endpoint: string;
|
|
924
1168
|
dbname: string;
|
|
925
1169
|
authSource: string;
|
|
926
1170
|
}>> | undefined;
|
|
927
1171
|
}, {
|
|
928
|
-
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
929
1172
|
account: {
|
|
930
|
-
address
|
|
1173
|
+
address?: string | undefined;
|
|
931
1174
|
secret?: string | undefined;
|
|
932
1175
|
password?: string | undefined;
|
|
933
1176
|
};
|
|
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
1177
|
server: {
|
|
953
1178
|
baseURL: string;
|
|
954
1179
|
port?: number | undefined;
|
|
955
1180
|
};
|
|
956
|
-
|
|
957
|
-
|
|
1181
|
+
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
1182
|
+
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
1183
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
1184
|
+
networks?: Record<string, {
|
|
958
1185
|
endpoint: string;
|
|
959
1186
|
contract: {
|
|
960
1187
|
address: string;
|
|
961
1188
|
name: string;
|
|
962
1189
|
};
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
1190
|
+
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1191
|
+
ss58Format?: number | undefined;
|
|
1192
|
+
}> | undefined;
|
|
1193
|
+
database?: Partial<Record<"development" | "staging" | "production", {
|
|
966
1194
|
type: string;
|
|
967
1195
|
endpoint: string;
|
|
968
1196
|
dbname: string;
|
|
969
1197
|
authSource: string;
|
|
970
1198
|
}>> | undefined;
|
|
1199
|
+
captchas?: {
|
|
1200
|
+
solved?: {
|
|
1201
|
+
count: number;
|
|
1202
|
+
} | undefined;
|
|
1203
|
+
unsolved?: {
|
|
1204
|
+
count: number;
|
|
1205
|
+
} | undefined;
|
|
1206
|
+
} | undefined;
|
|
1207
|
+
captchaSolutions?: {
|
|
1208
|
+
requiredNumberOfSolutions: number;
|
|
1209
|
+
solutionWinningPercentage: number;
|
|
1210
|
+
captchaBlockRecency: number;
|
|
1211
|
+
} | undefined;
|
|
1212
|
+
batchCommit?: {
|
|
1213
|
+
interval?: number | undefined;
|
|
1214
|
+
maxBatchExtrinsicPercentage?: number | undefined;
|
|
1215
|
+
} | undefined;
|
|
971
1216
|
}>;
|
|
972
|
-
export type
|
|
1217
|
+
export type ProsopoConfigInput = z.input<typeof ProsopoConfigSchema>;
|
|
1218
|
+
export type ProsopoConfigOutput = z.output<typeof ProsopoConfigSchema>;
|
|
973
1219
|
//# sourceMappingURL=config.d.ts.map
|