@@ -53,6 +53,7 @@ type chainJSON struct {
53
53
Staking staking `json:"staking"`
54
54
Codebase codebase `json:"codebase"`
55
55
Description string `json:"description"`
56
+ Apis apis `json:"apis"`
56
57
}
57
58
58
59
type staking struct {
@@ -110,6 +111,17 @@ type feeToken struct {
110
111
HighGasPrice float64 `json:"high_gas_price"`
111
112
}
112
113
114
+ type apis struct {
115
+ RPC []apiProvider `json:"rpc"`
116
+ Rest []apiProvider `json:"rest"`
117
+ Grpc []apiProvider `json:"grpc"`
118
+ }
119
+
120
+ type apiProvider struct {
121
+ Address string `json:"address"`
122
+ Provider string `json:"provider"`
123
+ }
124
+
113
125
// SaveJSON saves the chainJSON to the given out directory.
114
126
func (c chainJSON ) SaveJSON (out string ) error {
115
127
bz , err := json .MarshalIndent (c , "" , " " )
@@ -134,6 +146,7 @@ type asset struct {
134
146
Name string `json:"name"`
135
147
Display string `json:"display"`
136
148
Symbol string `json:"symbol"`
149
+ LogoURIs logoURIs `json:"logo_URIs"`
137
150
CoingeckoID string `json:"coingecko_id,omitempty"`
138
151
Socials socials `json:"socials,omitempty"`
139
152
TypeAsset string `json:"type_asset"`
@@ -149,6 +162,11 @@ type socials struct {
149
162
Twitter string `json:"twitter"`
150
163
}
151
164
165
+ type logoURIs struct {
166
+ Png string `json:"png"`
167
+ Svg string `json:"svg"`
168
+ }
169
+
152
170
// SaveJSON saves the assetList to the given out directory.
153
171
func (c assetListJSON ) SaveJSON (out string ) error {
154
172
bz , err := json .MarshalIndent (c , "" , " " )
@@ -226,7 +244,7 @@ func (s Scaffolder) AddChainRegistryFiles(chain *chain.Chain, cfg *chainconfig.C
226
244
NetworkType : DefaultNetworkType ,
227
245
Website : "https://example.com" ,
228
246
ChainID : chainID ,
229
- Bech32Prefix : "" ,
247
+ Bech32Prefix : "cosmos " ,
230
248
DaemonName : binaryName ,
231
249
NodeHome : chainHome ,
232
250
KeyAlgos : []string {"secp256k1" },
@@ -261,6 +279,26 @@ func (s Scaffolder) AddChainRegistryFiles(chain *chain.Chain, cfg *chainconfig.C
261
279
Ibc : ibc ,
262
280
Cosmwasm : cosmwasm ,
263
281
},
282
+ Apis : apis {
283
+ RPC : []apiProvider {
284
+ {
285
+ Address : "http://localhost:26657" ,
286
+ Provider : "localhost" ,
287
+ },
288
+ },
289
+ Rest : []apiProvider {
290
+ {
291
+ Address : "http://localhost:1317" ,
292
+ Provider : "localhost" ,
293
+ },
294
+ },
295
+ Grpc : []apiProvider {
296
+ {
297
+ Address : "localhost:9090" ,
298
+ Provider : "localhost" ,
299
+ },
300
+ },
301
+ },
264
302
}
265
303
266
304
assetListData := assetListJSON {
@@ -274,12 +312,16 @@ func (s Scaffolder) AddChainRegistryFiles(chain *chain.Chain, cfg *chainconfig.C
274
312
Exponent : 0 ,
275
313
},
276
314
},
277
- Base : defaultDenom ,
278
- Name : chainData .ChainName ,
279
- Symbol : strings .ToUpper (defaultDenom ),
315
+ Base : defaultDenom ,
316
+ Name : chainData .ChainName ,
317
+ Symbol : strings .ToUpper (defaultDenom ),
318
+ LogoURIs : logoURIs {
319
+ Png : "https://ignite.com/favicon.ico" ,
320
+ Svg : "https://ignite.com/favicon.ico" ,
321
+ },
280
322
TypeAsset : "sdk.coin" ,
281
323
Socials : socials {
282
- Website : "https://example .com" ,
324
+ Website : "https://ignite .com" ,
283
325
Twitter : "https://x.com/ignite" ,
284
326
},
285
327
},
0 commit comments