You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| array.uint | uints | no |[]uint64 | List of unsigned integers types |
2055
-
| coin | - | no | sdk.Coin | Cosmos SDK coin type |
2056
-
| array.coin | coins | no | sdk.Coins | List of Cosmos SDK coin types |
2044
+
Types Usage
2045
+
address use '<FIELD_NAME>:address' to scaffold string types (eg: cosmos1abcdefghijklmnopqrstuvwxyz0123456).
2046
+
array.coin use '<FIELD_NAME>:array.coin' to scaffold sdk.Coins types (eg: 20stake). Disclaimer: Only one `coins` or `dec.coins` field can accept multiple CLI values per command due to AutoCLI limitations.
2047
+
array.dec.coin use '<FIELD_NAME>:array.dec.coin' to scaffold sdk.DecCoins types (eg: 20000002stake). Disclaimer: Only one `coins` or `dec.coins` field can accept multiple CLI values per command due to AutoCLI limitations.
2048
+
array.int use '<FIELD_NAME>:array.int' to scaffold []int64 types (eg: 5,4,3,2,1).
2049
+
array.string use '<FIELD_NAME>:array.string' to scaffold []string types (eg: abc,xyz).
2050
+
array.uint use '<FIELD_NAME>:array.uint' to scaffold []uint64 types (eg: 13,26,31,40).
2051
+
bool use '<FIELD_NAME>:bool' to scaffold bool types (eg: true).
2052
+
bytes use '<FIELD_NAME>:bytes' to scaffold []byte types (eg: 3,2,3,5).
2053
+
coin use '<FIELD_NAME>:coin' to scaffold sdk.Coin types (eg: 10token).
2054
+
coins use '<FIELD_NAME>:array.coin' to scaffold sdk.Coins types (eg: 20stake). Disclaimer: Only one `coins` or `dec.coins` field can accept multiple CLI values per command due to AutoCLI limitations.
2055
+
custom use the custom type to scaffold already created chain types.
2056
+
dec.coin use '<FIELD_NAME>:dec.coin' to scaffold sdk.DecCoin types (eg: 100001token).
2057
+
dec.coins use '<FIELD_NAME>:array.dec.coin' to scaffold sdk.DecCoins types (eg: 20000002stake). Disclaimer: Only one `coins` or `dec.coins` field can accept multiple CLI values per command due to AutoCLI limitations.
2058
+
int use '<FIELD_NAME>:int' to scaffold int64 types (eg: 111).
2059
+
int64 use '<FIELD_NAME>:int' to scaffold int64 types (eg: 111).
2060
+
ints use '<FIELD_NAME>:array.int' to scaffold []int64 types (eg: 5,4,3,2,1).
2061
+
string use '<FIELD_NAME>:string' to scaffold string types (eg: xyz).
2062
+
strings use '<FIELD_NAME>:array.string' to scaffold []string types (eg: abc,xyz).
2063
+
uint use '<FIELD_NAME>:uint' to scaffold uint64 types (eg: 111).
2064
+
uint64 use '<FIELD_NAME>:uint' to scaffold uint64 types (eg: 111).
2065
+
uints use '<FIELD_NAME>:array.uint' to scaffold []uint64 types (eg: 13,26,31,40).
2057
2066
2058
2067
Field Usage:
2059
2068
- fieldName
@@ -2312,3 +2321,42 @@ ignite version [flags]
2312
2321
2313
2322
*[ignite](#ignite) - Ignite CLI offers everything you need to scaffold, test, build, and launch your blockchain
2314
2323
2324
+
# Scaffold Type
2325
+
2326
+
Ignites provides a set of scaffold types that can be used to generate code for your application.
2327
+
These types are used in the `ignite scaffold` command.
2328
+
2329
+
## Available Scaffold Types
2330
+
2331
+
| Type | Usage |
2332
+
| --- | --- |
2333
+
| address | use '<FIELD_NAME>:address' to scaffold string types (eg: cosmos1abcdefghijklmnopqrstuvwxyz0123456). |
2334
+
| array.coin | use '<FIELD_NAME>:array.coin' to scaffold sdk.Coins types (eg: 20stake). Disclaimer: Only one `coins` or `dec.coins` field can accept multiple CLI values per command due to AutoCLI limitations. |
2335
+
| array.dec.coin | use '<FIELD_NAME>:array.dec.coin' to scaffold sdk.DecCoins types (eg: 20000002stake). Disclaimer: Only one `coins` or `dec.coins` field can accept multiple CLI values per command due to AutoCLI limitations. |
2336
+
| array.int | use '<FIELD_NAME>:array.int' to scaffold []int64 types (eg: 5,4,3,2,1). |
2337
+
| array.string | use '<FIELD_NAME>:array.string' to scaffold []string types (eg: abc,xyz). |
2338
+
| array.uint | use '<FIELD_NAME>:array.uint' to scaffold []uint64 types (eg: 13,26,31,40). |
2339
+
| bool | use '<FIELD_NAME>:bool' to scaffold bool types (eg: true). |
2340
+
| bytes | use '<FIELD_NAME>:bytes' to scaffold []byte types (eg: 3,2,3,5). |
2341
+
| coin | use '<FIELD_NAME>:coin' to scaffold sdk.Coin types (eg: 10token). |
2342
+
| coins | use '<FIELD_NAME>:array.coin' to scaffold sdk.Coins types (eg: 20stake). Disclaimer: Only one `coins` or `dec.coins` field can accept multiple CLI values per command due to AutoCLI limitations. |
2343
+
| custom | use the custom type to scaffold already created chain types. |
2344
+
| dec.coin | use '<FIELD_NAME>:dec.coin' to scaffold sdk.DecCoin types (eg: 100001token). |
2345
+
| dec.coins | use '<FIELD_NAME>:array.dec.coin' to scaffold sdk.DecCoins types (eg: 20000002stake). Disclaimer: Only one `coins` or `dec.coins` field can accept multiple CLI values per command due to AutoCLI limitations. |
2346
+
| int | use '<FIELD_NAME>:int' to scaffold int64 types (eg: 111). |
2347
+
| int64 | use '<FIELD_NAME>:int' to scaffold int64 types (eg: 111). |
2348
+
| ints | use '<FIELD_NAME>:array.int' to scaffold []int64 types (eg: 5,4,3,2,1). |
2349
+
| string | use '<FIELD_NAME>:string' to scaffold string types (eg: xyz). |
2350
+
| strings | use '<FIELD_NAME>:array.string' to scaffold []string types (eg: abc,xyz). |
2351
+
| uint | use '<FIELD_NAME>:uint' to scaffold uint64 types (eg: 111). |
2352
+
| uint64 | use '<FIELD_NAME>:uint' to scaffold uint64 types (eg: 111). |
2353
+
| uints | use '<FIELD_NAME>:array.uint' to scaffold []uint64 types (eg: 13,26,31,40). |
| array.uint | uints | no | []uint64 | List of unsigned integers types |
44
-
| coin | - | no | sdk.Coin | Cosmos SDK coin type |
45
-
| array.coin | coins | no | sdk.Coins | List of Cosmos SDK coin types |
46
-
47
-
Field Usage:
48
-
- fieldName
49
-
- fieldName:fieldType
50
-
51
-
If no :fieldType, default (string) is used
32
+
statusScaffolding="Scaffolding..."
33
+
multipleCoinDisclaimer=`**Disclaimer**
34
+
The 'coins' and 'dec.coins' argument types require special attention when used in CLI commands.
35
+
Due to current limitations in the AutoCLI, only one variadic (slice) argument is supported per command.
36
+
If a message contains more than one field of type 'coins' or 'dec.coins', only the last one will accept multiple values via the CLI.
37
+
For the best user experience, manual command handling or scaffolding is recommended when working with messages containing multiple 'coins' or 'dec.coins' fields.
0 commit comments