cosmosregistry / chain-minimal Goto Github PK
View Code? Open in Web Editor NEWMini - A minimal Cosmos SDK chain template
Home Page: https://cosmod.xyz
License: Apache License 2.0
Mini - A minimal Cosmos SDK chain template
Home Page: https://cosmod.xyz
License: Apache License 2.0
Please consider it a live mainnet, what steps/tutorials/instructions can be followed to achieve this?
I have a network up & running whose ID is conflicting with another live network which causes issues with wallets like MetaMask, and also affects Token symbol being suspicious due to duplicate chain id, which affects the deployed dApps in turn.
Please advise!
Thanks,
I have modified my init.sh
file, to give me 2 accounts and a validator, but still while running the make init
command I am facing, the same error again and again, I've tried using the command directly in the terminal, still it is not working.
Error: failed to get genesis app state from config: open /Users/user1/.minid/config/gentx: no such file or directory [cosmos/[email protected]/x/genutil/client/cli/collect.go:56]
init.sh ::
#!/bin/bash
rm -r ~/.minid || true
MINID_BIN=$(which minid)
# configure minid
$MINID_BIN config set client chain-id demo
$MINID_BIN config set client keyring-backend test
$MINID_BIN keys add alice
$MINID_BIN keys add bob
$MINID_BIN keys add validator --keyring-backend test
$MINID_BIN init test --chain-id demo --default-denom mini
# update genesis
$MINID_BIN genesis add-genesis-account alice 10000000mini --keyring-backend test
$MINID_BIN genesis add-genesis-account bob 1000mini --keyring-backend test
$MINID_BIN genesis add-genesis-account validator 1000000000mini --keyring-backend test
# create default validator
$MINID_BIN genesis gentx validator 1000000000mini --chain-id demo --keyring-backend test
$MINID_BIN genesis collect-gentxs
Hi guys I have tried and tried but I am unable to get this application to start
make init doesn't work and throws some errors
make init
./scripts/init.sh
rm: /Users/username/.minid: No such file or directory
./scripts/init.sh: line 6: config: command not found
./scripts/init.sh: line 7: config: command not found
./scripts/init.sh: line 8: keys: command not found
./scripts/init.sh: line 9: keys: command not found
./scripts/init.sh: line 10: init: command not found
./scripts/init.sh: line 12: genesis: command not found
./scripts/init.sh: line 13: genesis: command not found
./scripts/init.sh: line 15: genesis: command not found
./scripts/init.sh: line 16: genesis: command not found
make: *** [init] Error 127
If there are extra steps please let me know
It would make more sense to use:
#!/usr/bin/env bash
Having a command to craft a testnet locally can be very helpful to be introduced as a feature.
Thanks in advance,
Hi @julienrbrt,
I tried to find Complete guide to Create Your Validator and join existing testnet.
Can we have complete guide where create node (+validators) with genesis transaction?
and instructions where create validators and join the testnet after the genesis.
Seeing as this is a minimalistic project, there still are a lot of sdk modules being used. Are all these necessary?
Note: thank you a lot for this repo, I've been looking for exactly this
There are 2 duplicate codes there.
chain-minimal/cmd/minid/cmd/root.go
Lines 91 to 99 in ec48ad9
Hi,
I tried following script:
rm -r ~/.minid || true
MINID_BIN=$(which minid)
# configure minid
$MINID_BIN config chain-id demo
$MINID_BIN config keyring-backend test
$MINID_BIN config output json
$MINID_BIN keys add alice
#$MINID_BIN keys add bob
$MINID_BIN init test --chain-id demo
# update genesis
$MINID_BIN add-genesis-account alice 1000000000mini
$MINID_BIN add-genesis-account bob 100000mini
dasel put string -f ~/.minid/config/genesis.json '.app_state.staking.params.bond_denom' 'mini'
dasel put string -f ~/.minid/config/genesis.json '.app_state.mint.params.mint_denom' "mini"
# create default validator
$MINID_BIN gentx alice 700000000mini --chain-id demo
$MINID_BIN gentx bob 70000000mini --chain-id demo
$MINID_BIN collect-gentxs
But I got this error for cmd: minid start --minimum-gas-prices 100mini
2:57PM INF ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0
2:57PM INF initializing blockchain state from genesis.json
panic: validator set is empty after InitGenesis, please ensure at least one validator is initialized with a delegation greater than or equal to the DefaultPowerReduction ({824634529792})
Any suggestion?
Following the tutorial at https://tutorials.cosmos.network/hands-on-exercise/0-native/2-build-module.html
I've tried simply cloning chain-minimal
and minimal-module-example
, and then pointing chain-minimal to minimal-module-example, and when running
go mod tidy
make install
make init
minid start
I get
panic: all modules must be defined when setting SetOrderInitGenesis, missing: [checkers]
goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/types/module.(*Manager).assertNoForgottenModules(0x14000c37a00, {0x10666878e, 0x13}, {0x1400092ce00, 0x5, 0x140011f9860?}, 0x1400110f148)
/Users/samlaf/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:634 +0x2dc
github.com/cosmos/cosmos-sdk/types/module.(*Manager).SetOrderInitGenesis(0x14000c37a00, {0x1400092ce00, 0x5, 0x8})
/Users/samlaf/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:347 +0x5c
github.com/cosmos/cosmos-sdk/runtime.(*App).Load(0x14000b3ee70, 0x1)
/Users/samlaf/go/pkg/mod/github.com/cosmos/[email protected]/runtime/app.go:105 +0x44
github.com/cosmosregistry/chain-minimal/app.NewMiniApp({0x1075648c8?, 0x140003c8bd0}, {0x107573e98, 0x140001860e0}, {0x0, 0x0}, 0x88?, {0x107539180?, 0x14000c3ec40}, {0x0, ...})
/Users/samlaf/devel/cosmos/chain-minimal/app/app.go:152 +0x638
github.com/cosmosregistry/chain-minimal/cmd/minid/cmd.appExport({0x1075648c8, 0x140003c8bd0}, {0x107573e98, 0x140001860e0}, {0x0, 0x0}, 0xffffffffffffffff, 0x68?, {0x108886360, 0x0, ...}, ...)
/Users/samlaf/devel/cosmos/chain-minimal/cmd/minid/cmd/commands.go:154 +0x24c
github.com/cosmos/cosmos-sdk/server.ExportCmd.func1(0x1400063ca00?, {0x108886360?, 0x0?, 0x0?})
/Users/samlaf/go/pkg/mod/github.com/cosmos/[email protected]/server/export.go:81 +0x494
github.com/spf13/cobra.(*Command).execute(0x1400093e600, {0x108886360, 0x0, 0x0})
/Users/samlaf/go/pkg/mod/github.com/spf13/[email protected]/command.go:983 +0x82c
github.com/spf13/cobra.(*Command).ExecuteC(0x140008f8000)
/Users/samlaf/go/pkg/mod/github.com/spf13/[email protected]/command.go:1115 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
/Users/samlaf/go/pkg/mod/github.com/spf13/[email protected]/command.go:1039
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/Users/samlaf/go/pkg/mod/github.com/spf13/[email protected]/command.go:1032
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x1400008c6e8?, {0x0, 0x0}, {0x14000baeaf8, 0x14})
/Users/samlaf/go/pkg/mod/github.com/cosmos/[email protected]/server/cmd/execute.go:34 +0x154
main.main()
/Users/samlaf/devel/cosmos/chain-minimal/cmd/minid/main.go:18 +0x40
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.