@@ -96,7 +96,7 @@ export const contractSchema = z
96
96
)
97
97
) ,
98
98
/**
99
- * Constructor or initializer args
99
+ * Constructor or initializer args
100
100
*/
101
101
args : z . array ( argsUnion ) ,
102
102
/**
@@ -163,10 +163,9 @@ export const importSchema = z
163
163
preset : z . string ( ) ,
164
164
/**
165
165
* Previous steps this step is dependent on
166
- * @example
167
166
* ```toml
168
- * depends = ['contract.Storage', 'import.Contract']
169
- * ```
167
+ * depends = ['contract.Storage', 'import.Contract']
168
+ * ```
170
169
*/
171
170
depends : z . array (
172
171
z . string ( ) . refine (
@@ -224,6 +223,9 @@ export const invokeSchema = z
224
223
( val ) => ( { message : `"${ val } " must be a valid ethereum address` } )
225
224
) ,
226
225
226
+ /**
227
+ * Specify a function to use as the 'from' value in a function call. Example `owner()`.
228
+ */
227
229
fromCall : z . object ( {
228
230
/**
229
231
* The name of a view function to call on this contract. The result will be used as the from input.
@@ -244,6 +246,9 @@ export const invokeSchema = z
244
246
* Override transaction settings
245
247
*/
246
248
overrides : z . object ( {
249
+ /**
250
+ * Gas limit to send along with the transaction
251
+ */
247
252
gasLimit : z . string ( ) . refine ( ( val ) => ! ! parseInt ( val ) , { message : 'Gas limit is invalid' } ) ,
248
253
} ) ,
249
254
/**
@@ -361,17 +366,17 @@ export const provisionSchema = z
361
366
. object ( {
362
367
/**
363
368
* ID of the chain to import the package from
364
- * @default - 13370
369
+ * Default - 13370
365
370
*/
366
371
chainId : z . number ( ) . int ( ) ,
367
372
/**
368
373
* Override the preset to use when provisioning this package.
369
- * @default - "main"
374
+ * Default - "main"
370
375
*/
371
376
sourcePreset : z . string ( ) ,
372
377
/**
373
378
* Set the new preset to use for this package.
374
- * @default - "main"
379
+ * Default - "main"
375
380
*/
376
381
targetPreset : z . string ( ) ,
377
382
/**
@@ -399,9 +404,21 @@ export const provisionSchema = z
399
404
) ;
400
405
401
406
export const routerSchema = z . object ( {
407
+ /**
408
+ * Set of contracts that will be passed to the router
409
+ */
402
410
contracts : z . array ( z . string ( ) ) ,
411
+ /**
412
+ * Address to pass to the from call
413
+ */
403
414
from : z . string ( ) . optional ( ) ,
415
+ /**
416
+ * Used to force new copy of a contract (not actually used)
417
+ */
404
418
salt : z . string ( ) . optional ( ) ,
419
+ /**
420
+ * List of steps that this action depends on
421
+ */
405
422
depends : z . array ( z . string ( ) ) . optional ( ) ,
406
423
} ) ;
407
424
@@ -442,7 +459,6 @@ export const chainDefinitionSchema = z
442
459
keywords : z . array ( z . string ( ) ) ,
443
460
/**
444
461
* Object that allows the definition of values for use in next steps
445
- * @example
446
462
* ```toml
447
463
* [settings.owner]
448
464
* defaultValue: "some-eth-address"
@@ -470,9 +486,21 @@ export const chainDefinitionSchema = z
470
486
* @internal
471
487
*/
472
488
import : z . record ( importSchema ) ,
489
+ /**
490
+ * @internal
491
+ */
473
492
provision : z . record ( provisionSchema ) ,
493
+ /**
494
+ * @internal
495
+ */
474
496
contract : z . record ( contractSchema ) ,
497
+ /**
498
+ * @internal
499
+ */
475
500
invoke : z . record ( invokeSchema ) ,
501
+ /**
502
+ * @internal
503
+ */
476
504
router : z . record ( routerSchema ) ,
477
505
// ... there may be others that come from plugins
478
506
} )
0 commit comments