@prosopo/types 0.1.15 → 0.1.17
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/config/config.d.ts +30 -30
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +72 -75
- package/dist/config/config.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +14 -4
- package/dist/config/index.js.map +1 -1
- package/dist/contract/artifacts.d.ts.map +1 -1
- package/dist/contract/artifacts.js +84 -88
- package/dist/contract/artifacts.js.map +1 -1
- package/dist/contract/batch.d.ts +1 -1
- package/dist/contract/batch.d.ts.map +1 -1
- package/dist/contract/batch.js +1 -2
- package/dist/contract/contract.d.ts.map +1 -1
- package/dist/contract/contract.js +11 -14
- package/dist/contract/contract.js.map +1 -1
- package/dist/contract/index.d.ts +5 -5
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +15 -20
- package/dist/contract/index.js.map +1 -1
- package/dist/contract/interface.d.ts +1 -0
- package/dist/contract/interface.js +14 -1
- package/dist/contract/interface.js.map +1 -1
- package/dist/contract/typechain/captcha/index.d.ts +2 -2
- package/dist/contract/typechain/captcha/index.d.ts.map +1 -1
- package/dist/contract/typechain/captcha/index.js +15 -5
- package/dist/contract/typechain/captcha/index.js.map +1 -1
- package/dist/contract/typechain/captcha/types-arguments/captcha.d.ts +13 -13
- package/dist/contract/typechain/captcha/types-arguments/captcha.d.ts.map +1 -1
- package/dist/contract/typechain/captcha/types-arguments/captcha.js +12 -15
- package/dist/contract/typechain/captcha/types-arguments/captcha.js.map +1 -1
- package/dist/contract/typechain/captcha/types-arguments/index.d.ts +1 -1
- package/dist/contract/typechain/captcha/types-arguments/index.d.ts.map +1 -1
- package/dist/contract/typechain/captcha/types-arguments/index.js +14 -5
- package/dist/contract/typechain/captcha/types-arguments/index.js.map +1 -1
- package/dist/contract/typechain/captcha/types-returns/captcha.d.ts.map +1 -1
- package/dist/contract/typechain/captcha/types-returns/captcha.js +12 -15
- package/dist/contract/typechain/captcha/types-returns/captcha.js.map +1 -1
- package/dist/contract/typechain/captcha/types-returns/index.d.ts +1 -1
- package/dist/contract/typechain/captcha/types-returns/index.d.ts.map +1 -1
- package/dist/contract/typechain/captcha/types-returns/index.js +14 -4
- package/dist/contract/typechain/captcha/types-returns/index.js.map +1 -1
- package/dist/contract/typechain/index.d.ts +1 -1
- package/dist/contract/typechain/index.d.ts.map +1 -1
- package/dist/contract/typechain/index.js +14 -4
- package/dist/contract/typechain/index.js.map +1 -1
- package/dist/contract/useWeight.d.ts.map +1 -1
- package/dist/contract/useWeight.js +1 -2
- package/dist/datasets/assets.d.ts.map +1 -1
- package/dist/datasets/assets.js +11 -14
- package/dist/datasets/assets.js.map +1 -1
- package/dist/datasets/captcha.d.ts +250 -31
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js +58 -37
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/datasets/dataset.d.ts +84 -69
- package/dist/datasets/dataset.d.ts.map +1 -1
- package/dist/datasets/dataset.js +20 -23
- package/dist/datasets/dataset.js.map +1 -1
- package/dist/datasets/index.d.ts +4 -4
- package/dist/datasets/index.d.ts.map +1 -1
- package/dist/datasets/index.js +17 -7
- package/dist/datasets/index.js.map +1 -1
- package/dist/datasets/merkle.d.ts.map +1 -1
- package/dist/datasets/merkle.js +11 -14
- package/dist/datasets/merkle.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -8
- package/dist/index.js.map +1 -1
- package/dist/procaptcha/index.d.ts +1 -1
- package/dist/procaptcha/index.d.ts.map +1 -1
- package/dist/procaptcha/index.js +14 -4
- package/dist/procaptcha/index.js.map +1 -1
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/manager.js +23 -13
- package/dist/procaptcha/manager.js.map +1 -1
- package/dist/provider/accounts.d.ts +1 -1
- package/dist/provider/accounts.d.ts.map +1 -1
- package/dist/provider/accounts.js +1 -2
- package/dist/provider/api.d.ts +6 -1
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +23 -24
- package/dist/provider/api.js.map +1 -1
- package/dist/provider/argv.d.ts +2 -6
- package/dist/provider/argv.d.ts.map +1 -1
- package/dist/provider/argv.js +16 -10
- package/dist/provider/argv.js.map +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +5 -8
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/scheduler.d.ts.map +1 -1
- package/dist/provider/scheduler.js +17 -7
- package/dist/provider/scheduler.js.map +1 -1
- package/package.json +37 -37
package/dist/config/config.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogLevel } from '@prosopo/common';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const DatabaseTypes: z.ZodEnum<["mongo", "mongoMemory"]>;
|
|
4
3
|
export declare const EnvironmentTypesSchema: z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>;
|
|
@@ -34,7 +33,7 @@ export declare const BatchCommitConfigSchema: z.ZodObject<{
|
|
|
34
33
|
export type BatchCommitConfig = z.infer<typeof BatchCommitConfigSchema>;
|
|
35
34
|
export type DatabaseConfig = z.infer<typeof DatabaseConfigSchema>;
|
|
36
35
|
export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
37
|
-
logLevel: z.
|
|
36
|
+
logLevel: z.ZodEnum<["Silent", "Error", "Warn", "Log", "Info", "Debug", "Trace", "Verbose"]>;
|
|
38
37
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
|
|
39
38
|
account: z.ZodObject<{
|
|
40
39
|
address: z.ZodString;
|
|
@@ -50,7 +49,7 @@ export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
|
50
49
|
password?: string | undefined;
|
|
51
50
|
}>;
|
|
52
51
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
logLevel:
|
|
52
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
54
53
|
defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
|
|
55
54
|
account: {
|
|
56
55
|
address: string;
|
|
@@ -58,7 +57,7 @@ export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
|
58
57
|
password?: string | undefined;
|
|
59
58
|
};
|
|
60
59
|
}, {
|
|
61
|
-
logLevel:
|
|
60
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
62
61
|
account: {
|
|
63
62
|
address: string;
|
|
64
63
|
secret?: string | undefined;
|
|
@@ -78,21 +77,21 @@ export declare const NetworkConfigSchema: z.ZodObject<{
|
|
|
78
77
|
address: string;
|
|
79
78
|
name: string;
|
|
80
79
|
}>;
|
|
81
|
-
accounts: z.ZodArray<z.ZodString, "many"
|
|
80
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
82
81
|
}, "strip", z.ZodTypeAny, {
|
|
83
82
|
endpoint: string;
|
|
84
83
|
contract: {
|
|
85
84
|
address: string;
|
|
86
85
|
name: string;
|
|
87
86
|
};
|
|
88
|
-
accounts
|
|
87
|
+
accounts?: string[] | undefined;
|
|
89
88
|
}, {
|
|
90
89
|
endpoint: string;
|
|
91
90
|
contract: {
|
|
92
91
|
address: string;
|
|
93
92
|
name: string;
|
|
94
93
|
};
|
|
95
|
-
accounts
|
|
94
|
+
accounts?: string[] | undefined;
|
|
96
95
|
}>;
|
|
97
96
|
export type NetworkConfig = z.infer<typeof NetworkConfigSchema>;
|
|
98
97
|
export declare const ProsopoNetworksSchema: z.ZodDefault<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
|
|
@@ -124,7 +123,7 @@ export declare const ProsopoNetworksSchema: z.ZodDefault<z.ZodRecord<z.ZodEnum<[
|
|
|
124
123
|
accounts: string[];
|
|
125
124
|
}>>>;
|
|
126
125
|
export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
127
|
-
logLevel: z.
|
|
126
|
+
logLevel: z.ZodEnum<["Silent", "Error", "Warn", "Log", "Info", "Debug", "Trace", "Verbose"]>;
|
|
128
127
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
|
|
129
128
|
account: z.ZodObject<{
|
|
130
129
|
address: z.ZodString;
|
|
@@ -184,7 +183,7 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
|
184
183
|
authSource: string;
|
|
185
184
|
}>>>>;
|
|
186
185
|
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
logLevel:
|
|
186
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
188
187
|
defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
|
|
189
188
|
account: {
|
|
190
189
|
address: string;
|
|
@@ -206,7 +205,7 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
|
206
205
|
authSource: string;
|
|
207
206
|
}>> | undefined;
|
|
208
207
|
}, {
|
|
209
|
-
logLevel:
|
|
208
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
210
209
|
account: {
|
|
211
210
|
address: string;
|
|
212
211
|
secret?: string | undefined;
|
|
@@ -262,14 +261,11 @@ export declare const ProsopoCaptchaCountConfigSchema: z.ZodObject<{
|
|
|
262
261
|
export declare const ProsopoImageServerConfigSchema: z.ZodObject<{
|
|
263
262
|
baseURL: z.ZodString;
|
|
264
263
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
265
|
-
fileServePaths: z.ZodString;
|
|
266
264
|
}, "strip", z.ZodTypeAny, {
|
|
267
265
|
baseURL: string;
|
|
268
266
|
port: number;
|
|
269
|
-
fileServePaths: string;
|
|
270
267
|
}, {
|
|
271
268
|
baseURL: string;
|
|
272
|
-
fileServePaths: string;
|
|
273
269
|
port?: number | undefined;
|
|
274
270
|
}>;
|
|
275
271
|
export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
|
|
@@ -289,7 +285,7 @@ export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
|
|
|
289
285
|
captchaBlockRecency: number;
|
|
290
286
|
}>;
|
|
291
287
|
export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
292
|
-
logLevel: z.
|
|
288
|
+
logLevel: z.ZodEnum<["Silent", "Error", "Warn", "Log", "Info", "Debug", "Trace", "Verbose"]>;
|
|
293
289
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
|
|
294
290
|
account: z.ZodObject<{
|
|
295
291
|
address: z.ZodString;
|
|
@@ -352,8 +348,9 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
352
348
|
web2: z.ZodBoolean;
|
|
353
349
|
solutionThreshold: z.ZodNumber;
|
|
354
350
|
dappName: z.ZodString;
|
|
351
|
+
serverUrl: z.ZodString;
|
|
355
352
|
}, "strip", z.ZodTypeAny, {
|
|
356
|
-
logLevel:
|
|
353
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
357
354
|
defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
|
|
358
355
|
account: {
|
|
359
356
|
address: string;
|
|
@@ -371,6 +368,7 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
371
368
|
web2: boolean;
|
|
372
369
|
solutionThreshold: number;
|
|
373
370
|
dappName: string;
|
|
371
|
+
serverUrl: string;
|
|
374
372
|
database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
375
373
|
type: string;
|
|
376
374
|
endpoint: string;
|
|
@@ -379,7 +377,7 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
379
377
|
}>> | undefined;
|
|
380
378
|
userAccountAddress?: string | undefined;
|
|
381
379
|
}, {
|
|
382
|
-
logLevel:
|
|
380
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
383
381
|
account: {
|
|
384
382
|
address: string;
|
|
385
383
|
secret?: string | undefined;
|
|
@@ -388,6 +386,7 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
388
386
|
web2: boolean;
|
|
389
387
|
solutionThreshold: number;
|
|
390
388
|
dappName: string;
|
|
389
|
+
serverUrl: string;
|
|
391
390
|
defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
|
|
392
391
|
networks?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
393
392
|
endpoint: string;
|
|
@@ -406,7 +405,7 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<{
|
|
|
406
405
|
userAccountAddress?: string | undefined;
|
|
407
406
|
}>;
|
|
408
407
|
export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
409
|
-
logLevel: z.
|
|
408
|
+
logLevel: z.ZodEnum<["Silent", "Error", "Warn", "Log", "Info", "Debug", "Trace", "Verbose"]>;
|
|
410
409
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
|
|
411
410
|
account: z.ZodObject<{
|
|
412
411
|
address: z.ZodString;
|
|
@@ -471,7 +470,7 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
|
471
470
|
dappName: z.ZodString;
|
|
472
471
|
serverUrl: z.ZodString;
|
|
473
472
|
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
logLevel:
|
|
473
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
475
474
|
defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
|
|
476
475
|
account: {
|
|
477
476
|
address: string;
|
|
@@ -498,7 +497,7 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<{
|
|
|
498
497
|
}>> | undefined;
|
|
499
498
|
userAccountAddress?: string | undefined;
|
|
500
499
|
}, {
|
|
501
|
-
logLevel:
|
|
500
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
502
501
|
account: {
|
|
503
502
|
address: string;
|
|
504
503
|
secret?: string | undefined;
|
|
@@ -568,7 +567,7 @@ export declare const AccountCreatorConfigSchema: z.ZodObject<{
|
|
|
568
567
|
}>;
|
|
569
568
|
export type ProsopoClientConfig = z.infer<typeof ProsopoClientConfigSchema>;
|
|
570
569
|
export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
571
|
-
logLevel: z.
|
|
570
|
+
logLevel: z.ZodEnum<["Silent", "Error", "Warn", "Log", "Info", "Debug", "Trace", "Verbose"]>;
|
|
572
571
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
|
|
573
572
|
account: z.ZodObject<{
|
|
574
573
|
address: z.ZodString;
|
|
@@ -631,6 +630,7 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
631
630
|
web2: z.ZodBoolean;
|
|
632
631
|
solutionThreshold: z.ZodNumber;
|
|
633
632
|
dappName: z.ZodString;
|
|
633
|
+
serverUrl: z.ZodString;
|
|
634
634
|
accountCreator: z.ZodOptional<z.ZodObject<{
|
|
635
635
|
area: z.ZodObject<{
|
|
636
636
|
width: z.ZodNumber;
|
|
@@ -671,8 +671,9 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
671
671
|
numberOfRounds: number;
|
|
672
672
|
seed: number;
|
|
673
673
|
}>>;
|
|
674
|
+
sx: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
674
675
|
}, "strip", z.ZodTypeAny, {
|
|
675
|
-
logLevel:
|
|
676
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
676
677
|
defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
|
|
677
678
|
account: {
|
|
678
679
|
address: string;
|
|
@@ -690,6 +691,7 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
690
691
|
web2: boolean;
|
|
691
692
|
solutionThreshold: number;
|
|
692
693
|
dappName: string;
|
|
694
|
+
serverUrl: string;
|
|
693
695
|
database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
694
696
|
type: string;
|
|
695
697
|
endpoint: string;
|
|
@@ -709,8 +711,9 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
709
711
|
numberOfRounds: number;
|
|
710
712
|
seed: number;
|
|
711
713
|
} | undefined;
|
|
714
|
+
sx?: Record<string, string> | undefined;
|
|
712
715
|
}, {
|
|
713
|
-
logLevel:
|
|
716
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
714
717
|
account: {
|
|
715
718
|
address: string;
|
|
716
719
|
secret?: string | undefined;
|
|
@@ -719,6 +722,7 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
719
722
|
web2: boolean;
|
|
720
723
|
solutionThreshold: number;
|
|
721
724
|
dappName: string;
|
|
725
|
+
serverUrl: string;
|
|
722
726
|
defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
|
|
723
727
|
networks?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
724
728
|
endpoint: string;
|
|
@@ -747,10 +751,11 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
747
751
|
numberOfRounds: number;
|
|
748
752
|
seed: number;
|
|
749
753
|
} | undefined;
|
|
754
|
+
sx?: Record<string, string> | undefined;
|
|
750
755
|
}>;
|
|
751
756
|
export type ProcaptchaClientConfig = z.infer<typeof ProcaptchaConfigSchema>;
|
|
752
757
|
export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
753
|
-
logLevel: z.
|
|
758
|
+
logLevel: z.ZodEnum<["Silent", "Error", "Warn", "Log", "Info", "Debug", "Trace", "Verbose"]>;
|
|
754
759
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
|
|
755
760
|
account: z.ZodObject<{
|
|
756
761
|
address: z.ZodString;
|
|
@@ -868,18 +873,15 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
868
873
|
server: z.ZodObject<{
|
|
869
874
|
baseURL: z.ZodString;
|
|
870
875
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
871
|
-
fileServePaths: z.ZodString;
|
|
872
876
|
}, "strip", z.ZodTypeAny, {
|
|
873
877
|
baseURL: string;
|
|
874
878
|
port: number;
|
|
875
|
-
fileServePaths: string;
|
|
876
879
|
}, {
|
|
877
880
|
baseURL: string;
|
|
878
|
-
fileServePaths: string;
|
|
879
881
|
port?: number | undefined;
|
|
880
882
|
}>;
|
|
881
883
|
}, "strip", z.ZodTypeAny, {
|
|
882
|
-
logLevel:
|
|
884
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
883
885
|
defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
|
|
884
886
|
account: {
|
|
885
887
|
address: string;
|
|
@@ -915,7 +917,6 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
915
917
|
server: {
|
|
916
918
|
baseURL: string;
|
|
917
919
|
port: number;
|
|
918
|
-
fileServePaths: string;
|
|
919
920
|
};
|
|
920
921
|
database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
|
|
921
922
|
type: string;
|
|
@@ -924,7 +925,7 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
924
925
|
authSource: string;
|
|
925
926
|
}>> | undefined;
|
|
926
927
|
}, {
|
|
927
|
-
logLevel:
|
|
928
|
+
logLevel: "Silent" | "Error" | "Warn" | "Log" | "Info" | "Debug" | "Trace" | "Verbose";
|
|
928
929
|
account: {
|
|
929
930
|
address: string;
|
|
930
931
|
secret?: string | undefined;
|
|
@@ -950,7 +951,6 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
950
951
|
};
|
|
951
952
|
server: {
|
|
952
953
|
baseURL: string;
|
|
953
|
-
fileServePaths: string;
|
|
954
954
|
port?: number | undefined;
|
|
955
955
|
};
|
|
956
956
|
defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,aAAa,qCAAmC,CAAA;AAE7D,eAAO,MAAM,sBAAsB,sEAAoE,CAAA;AAEvG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAGrE,eAAO,MAAM,kBAAkB,sEAAyB,CAAA;AAExD,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAA;AAEpD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;IAUlB,CAAA;AAEf,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,o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;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAG3E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
package/dist/config/config.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// Copyright 2021-2022 Prosopo (UK) Ltd.
|
|
1
|
+
// Copyright 2021-2023 Prosopo (UK) Ltd.
|
|
3
2
|
//
|
|
4
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -12,105 +11,103 @@
|
|
|
12
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
12
|
// See the License for the specific language governing permissions and
|
|
14
13
|
// limitations under the License.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
exports.DatabaseTypes = zod_1.z.enum(['mongo', 'mongoMemory']);
|
|
20
|
-
exports.EnvironmentTypesSchema = zod_1.z.enum(['development', 'rococo', 'kusama', 'polkadot', 'shiden']);
|
|
14
|
+
import { LogLevelSchema } from '@prosopo/common';
|
|
15
|
+
import { z } from 'zod';
|
|
16
|
+
export const DatabaseTypes = z.enum(['mongo', 'mongoMemory']);
|
|
17
|
+
export const EnvironmentTypesSchema = z.enum(['development', 'rococo', 'kusama', 'polkadot', 'shiden']);
|
|
21
18
|
// TODO decide if environment should be development / staging / production instead of rococo / kusama / polkadot
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.record(
|
|
25
|
-
type:
|
|
26
|
-
endpoint:
|
|
27
|
-
dbname:
|
|
28
|
-
authSource:
|
|
19
|
+
export const NetworkNamesSchema = EnvironmentTypesSchema;
|
|
20
|
+
export const DatabaseConfigSchema = z
|
|
21
|
+
.record(EnvironmentTypesSchema, z.object({
|
|
22
|
+
type: z.string(),
|
|
23
|
+
endpoint: z.string(),
|
|
24
|
+
dbname: z.string(),
|
|
25
|
+
authSource: z.string(),
|
|
29
26
|
}))
|
|
30
27
|
.optional();
|
|
31
|
-
|
|
32
|
-
interval:
|
|
33
|
-
maxBatchExtrinsicPercentage:
|
|
28
|
+
export const BatchCommitConfigSchema = z.object({
|
|
29
|
+
interval: z.number().positive(),
|
|
30
|
+
maxBatchExtrinsicPercentage: z.number().positive(),
|
|
34
31
|
});
|
|
35
|
-
|
|
36
|
-
logLevel:
|
|
37
|
-
defaultEnvironment:
|
|
32
|
+
export const ProsopoBaseConfigSchema = z.object({
|
|
33
|
+
logLevel: LogLevelSchema,
|
|
34
|
+
defaultEnvironment: EnvironmentTypesSchema.default(EnvironmentTypesSchema.Values.development),
|
|
38
35
|
// The account with which to query the contract and sign transactions
|
|
39
|
-
account:
|
|
40
|
-
address:
|
|
41
|
-
secret:
|
|
42
|
-
password:
|
|
36
|
+
account: z.object({
|
|
37
|
+
address: z.string(),
|
|
38
|
+
secret: z.string().optional(),
|
|
39
|
+
password: z.string().optional(),
|
|
43
40
|
}),
|
|
44
41
|
});
|
|
45
|
-
|
|
46
|
-
endpoint:
|
|
47
|
-
contract:
|
|
48
|
-
address:
|
|
49
|
-
name:
|
|
42
|
+
export const NetworkConfigSchema = z.object({
|
|
43
|
+
endpoint: z.string().url(),
|
|
44
|
+
contract: z.object({
|
|
45
|
+
address: z.string(),
|
|
46
|
+
name: z.string(),
|
|
50
47
|
}),
|
|
51
|
-
accounts:
|
|
48
|
+
accounts: z.array(z.string()).optional(),
|
|
52
49
|
});
|
|
53
|
-
|
|
50
|
+
export const ProsopoNetworksSchema = z.record(NetworkNamesSchema, NetworkConfigSchema.required()).default({
|
|
54
51
|
development: {
|
|
55
52
|
endpoint: 'ws://127.0.0.1:9944',
|
|
56
53
|
contract: {
|
|
57
54
|
address: '',
|
|
58
55
|
name: '',
|
|
59
56
|
},
|
|
60
|
-
accounts: [
|
|
57
|
+
accounts: [],
|
|
61
58
|
},
|
|
62
59
|
});
|
|
63
|
-
|
|
64
|
-
networks:
|
|
65
|
-
database:
|
|
60
|
+
export const ProsopoBasicConfigSchema = ProsopoBaseConfigSchema.merge(z.object({
|
|
61
|
+
networks: ProsopoNetworksSchema,
|
|
62
|
+
database: DatabaseConfigSchema.optional(),
|
|
66
63
|
}));
|
|
67
|
-
|
|
68
|
-
solved:
|
|
69
|
-
count:
|
|
64
|
+
export const ProsopoCaptchaCountConfigSchema = z.object({
|
|
65
|
+
solved: z.object({
|
|
66
|
+
count: z.number().positive(),
|
|
70
67
|
}),
|
|
71
|
-
unsolved:
|
|
72
|
-
count:
|
|
68
|
+
unsolved: z.object({
|
|
69
|
+
count: z.number().nonnegative(),
|
|
73
70
|
}),
|
|
74
71
|
});
|
|
75
|
-
|
|
76
|
-
baseURL:
|
|
77
|
-
port:
|
|
78
|
-
fileServePaths: zod_1.z.string(),
|
|
72
|
+
export const ProsopoImageServerConfigSchema = z.object({
|
|
73
|
+
baseURL: z.string().url(),
|
|
74
|
+
port: z.number().optional().default(9229),
|
|
79
75
|
});
|
|
80
|
-
|
|
81
|
-
requiredNumberOfSolutions:
|
|
82
|
-
solutionWinningPercentage:
|
|
83
|
-
captchaFilePath:
|
|
84
|
-
captchaBlockRecency:
|
|
76
|
+
export const ProsopoCaptchaSolutionConfigSchema = z.object({
|
|
77
|
+
requiredNumberOfSolutions: z.number().positive().min(2),
|
|
78
|
+
solutionWinningPercentage: z.number().positive().max(100),
|
|
79
|
+
captchaFilePath: z.string(),
|
|
80
|
+
captchaBlockRecency: z.number().positive().min(2),
|
|
85
81
|
});
|
|
86
|
-
|
|
87
|
-
userAccountAddress:
|
|
88
|
-
web2:
|
|
89
|
-
solutionThreshold:
|
|
90
|
-
dappName:
|
|
82
|
+
export const ProsopoClientConfigSchema = ProsopoBasicConfigSchema.merge(z.object({
|
|
83
|
+
userAccountAddress: z.string().optional(),
|
|
84
|
+
web2: z.boolean(),
|
|
85
|
+
solutionThreshold: z.number().positive().max(100),
|
|
86
|
+
dappName: z.string(),
|
|
87
|
+
serverUrl: z.string().url(),
|
|
91
88
|
}));
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
width: zod_1.z.number().positive(),
|
|
98
|
-
height: zod_1.z.number().positive(),
|
|
89
|
+
export const ProsopoServerConfigSchema = ProsopoClientConfigSchema;
|
|
90
|
+
export const AccountCreatorConfigSchema = z.object({
|
|
91
|
+
area: z.object({
|
|
92
|
+
width: z.number().positive(),
|
|
93
|
+
height: z.number().positive(),
|
|
99
94
|
}),
|
|
100
|
-
offsetParameter:
|
|
101
|
-
multiplier:
|
|
102
|
-
fontSizeFactor:
|
|
103
|
-
maxShadowBlur:
|
|
104
|
-
numberOfRounds:
|
|
105
|
-
seed:
|
|
95
|
+
offsetParameter: z.number().positive(),
|
|
96
|
+
multiplier: z.number().positive(),
|
|
97
|
+
fontSizeFactor: z.number().positive(),
|
|
98
|
+
maxShadowBlur: z.number().positive(),
|
|
99
|
+
numberOfRounds: z.number().positive(),
|
|
100
|
+
seed: z.number().positive(),
|
|
106
101
|
});
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
const SxProps = z.record(z.string(), z.string());
|
|
103
|
+
export const ProcaptchaConfigSchema = ProsopoClientConfigSchema.merge(z.object({
|
|
104
|
+
accountCreator: AccountCreatorConfigSchema.optional(),
|
|
105
|
+
sx: SxProps.optional(),
|
|
109
106
|
}));
|
|
110
|
-
|
|
111
|
-
captchas:
|
|
112
|
-
captchaSolutions:
|
|
113
|
-
batchCommit:
|
|
114
|
-
server:
|
|
107
|
+
export const ProsopoConfigSchema = ProsopoBasicConfigSchema.merge(z.object({
|
|
108
|
+
captchas: ProsopoCaptchaCountConfigSchema,
|
|
109
|
+
captchaSolutions: ProsopoCaptchaSolutionConfigSchema,
|
|
110
|
+
batchCommit: BatchCommitConfigSchema,
|
|
111
|
+
server: ProsopoImageServerConfigSchema,
|
|
115
112
|
}));
|
|
116
113
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,aAA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Ae,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAA;AAIF,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAA;AAChD,MAAM,CAAC,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,KAAK,CACjE,CAAC,CAAC,MAAM,CAAC;IACL,cAAc,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IACrD,EAAE,EAAE,OAAO,CAAC,QAAQ,EAAE;CACzB,CAAC,CACL,CAAA;AAID,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,KAAK,CAC7D,CAAC,CAAC,MAAM,CAAC;IACL,QAAQ,EAAE,+BAA+B;IACzC,gBAAgB,EAAE,kCAAkC;IACpD,WAAW,EAAE,uBAAuB;IACpC,MAAM,EAAE,8BAA8B;CACzC,CAAC,CACL,CAAA"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './config';
|
|
1
|
+
export * from './config.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAaA,cAAc,aAAa,CAAA"}
|
package/dist/config/index.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// Copyright 2021-2023 Prosopo (UK) Ltd.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
export * from './config.js';
|
|
5
15
|
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,cAAc,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/contract/artifacts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/contract/artifacts.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAA;AAC5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