@aztec/bot 0.77.0-testnet-ignition.30 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/config.js +6 -6
- package/package.json +11 -11
- package/src/config.ts +6 -6
package/dest/config.js
CHANGED
|
@@ -24,19 +24,19 @@ export const BotConfigSchema = z.object({
|
|
|
24
24
|
recipientEncryptionSecret: schemas.Fr,
|
|
25
25
|
tokenSalt: schemas.Fr,
|
|
26
26
|
txIntervalSeconds: z.number(),
|
|
27
|
-
privateTransfersPerTx: z.number(),
|
|
28
|
-
publicTransfersPerTx: z.number(),
|
|
27
|
+
privateTransfersPerTx: z.number().int().nonnegative(),
|
|
28
|
+
publicTransfersPerTx: z.number().int().nonnegative(),
|
|
29
29
|
feePaymentMethod: z.literal('fee_juice'),
|
|
30
30
|
noStart: z.boolean(),
|
|
31
31
|
txMinedWaitSeconds: z.number(),
|
|
32
32
|
followChain: z.enum(BotFollowChain),
|
|
33
|
-
maxPendingTxs: z.number(),
|
|
33
|
+
maxPendingTxs: z.number().int().nonnegative(),
|
|
34
34
|
flushSetupTransactions: z.boolean(),
|
|
35
35
|
skipPublicSimulation: z.boolean(),
|
|
36
|
-
l2GasLimit: z.number().optional(),
|
|
37
|
-
daGasLimit: z.number().optional(),
|
|
36
|
+
l2GasLimit: z.number().int().nonnegative().optional(),
|
|
37
|
+
daGasLimit: z.number().int().nonnegative().optional(),
|
|
38
38
|
contract: z.nativeEnum(SupportedTokenContracts),
|
|
39
|
-
maxConsecutiveErrors: z.number(),
|
|
39
|
+
maxConsecutiveErrors: z.number().int().nonnegative(),
|
|
40
40
|
stopWhenUnhealthy: z.boolean()
|
|
41
41
|
}).transform((config)=>({
|
|
42
42
|
nodeUrl: undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/bot",
|
|
3
|
-
"version": "0.77.0
|
|
3
|
+
"version": "0.77.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aztec/accounts": "0.77.0
|
|
56
|
-
"@aztec/aztec.js": "0.77.0
|
|
57
|
-
"@aztec/entrypoints": "0.77.0
|
|
58
|
-
"@aztec/ethereum": "0.77.0
|
|
59
|
-
"@aztec/foundation": "0.77.0
|
|
60
|
-
"@aztec/noir-contracts.js": "0.77.0
|
|
61
|
-
"@aztec/noir-protocol-circuits-types": "0.77.0
|
|
62
|
-
"@aztec/protocol-contracts": "0.77.0
|
|
63
|
-
"@aztec/stdlib": "0.77.0
|
|
64
|
-
"@aztec/telemetry-client": "0.77.0
|
|
55
|
+
"@aztec/accounts": "0.77.0",
|
|
56
|
+
"@aztec/aztec.js": "0.77.0",
|
|
57
|
+
"@aztec/entrypoints": "0.77.0",
|
|
58
|
+
"@aztec/ethereum": "0.77.0",
|
|
59
|
+
"@aztec/foundation": "0.77.0",
|
|
60
|
+
"@aztec/noir-contracts.js": "0.77.0",
|
|
61
|
+
"@aztec/noir-protocol-circuits-types": "0.77.0",
|
|
62
|
+
"@aztec/protocol-contracts": "0.77.0",
|
|
63
|
+
"@aztec/stdlib": "0.77.0",
|
|
64
|
+
"@aztec/telemetry-client": "0.77.0",
|
|
65
65
|
"source-map-support": "^0.5.21",
|
|
66
66
|
"tslib": "^2.4.0",
|
|
67
67
|
"zod": "^3.23.8"
|
package/src/config.ts
CHANGED
|
@@ -82,19 +82,19 @@ export const BotConfigSchema = z
|
|
|
82
82
|
recipientEncryptionSecret: schemas.Fr,
|
|
83
83
|
tokenSalt: schemas.Fr,
|
|
84
84
|
txIntervalSeconds: z.number(),
|
|
85
|
-
privateTransfersPerTx: z.number(),
|
|
86
|
-
publicTransfersPerTx: z.number(),
|
|
85
|
+
privateTransfersPerTx: z.number().int().nonnegative(),
|
|
86
|
+
publicTransfersPerTx: z.number().int().nonnegative(),
|
|
87
87
|
feePaymentMethod: z.literal('fee_juice'),
|
|
88
88
|
noStart: z.boolean(),
|
|
89
89
|
txMinedWaitSeconds: z.number(),
|
|
90
90
|
followChain: z.enum(BotFollowChain),
|
|
91
|
-
maxPendingTxs: z.number(),
|
|
91
|
+
maxPendingTxs: z.number().int().nonnegative(),
|
|
92
92
|
flushSetupTransactions: z.boolean(),
|
|
93
93
|
skipPublicSimulation: z.boolean(),
|
|
94
|
-
l2GasLimit: z.number().optional(),
|
|
95
|
-
daGasLimit: z.number().optional(),
|
|
94
|
+
l2GasLimit: z.number().int().nonnegative().optional(),
|
|
95
|
+
daGasLimit: z.number().int().nonnegative().optional(),
|
|
96
96
|
contract: z.nativeEnum(SupportedTokenContracts),
|
|
97
|
-
maxConsecutiveErrors: z.number(),
|
|
97
|
+
maxConsecutiveErrors: z.number().int().nonnegative(),
|
|
98
98
|
stopWhenUnhealthy: z.boolean(),
|
|
99
99
|
})
|
|
100
100
|
.transform(config => ({
|