Skip to content

Commit

Permalink
generate a dev chain. save every info in dev-chain folder
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed May 5, 2020
1 parent 9edc85d commit 6ac069e
Show file tree
Hide file tree
Showing 8 changed files with 265 additions and 0 deletions.
30 changes: 30 additions & 0 deletions dev-chain/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Dev chain

For local use only.

## Genesis file

See file `dev-genesis.json`

## Accounts

### Validator

Address: `mesg10cjcxje0jjdxzdq5hpqa4dc4znhuxsax2zh7mp`
Pubkey: `mesgpub1addwnpepq0gwhzul5qcycxxs6r7jdzdn5q29mj2a8gmngfrcfa6l8qs2dar4s2jqycv`
Mnemonic: `fruit lock run bike eyebrow unique embrace cost parade welcome more frown oxygen crane club donate grid harsh marriage host skirt sign warfare cup`
Coins: 100000000stake (but used in gentx)

### CLI

Address: `mesg1s6mqusxaq93d70jeekqehg7aepwt7zs306ctq7`
Pubkey: `mesgpub1addwnpepqvdrcdvg3x4tf0y5aapn47njxapdu4l0jgsjzcm2klp9a7eztva66eqnadt`
Mnemonic: `spike raccoon obscure program raw large unaware dragon hamster round artist case fall wage sample velvet robust legend identify innocent film coral picture organ`
Coins: 1000000000000000000000000atto and 1000000000stake

### Orchestrator

Address: `mesg1t9h20sn3lk2jdnak5eea4lkqxkpwyfaadtqk4t`
Pubkey: `mesgpub1addwnpepqde3ek5edcpxded9w2rw05jm4z3my57f7dey5pwz8hs0uzw0c3xusqmd53d`
Mnemonic: `neutral false together tattoo matrix stamp poem mouse chair chair grain pledge mandate layer shiver embark struggle vicious antenna total faith genre valley mandate`
Coins: 1000000000000000000000000atto
6 changes: 6 additions & 0 deletions dev-chain/cli/config/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
trust-node = "true"
chain-id = "mesg-dev-chain"

# orchestrtor
authorized-pubkeys = "mesgpub1addwnpepqvdrcdvg3x4tf0y5aapn47njxapdu4l0jgsjzcm2klp9a7eztva66eqnadt"
mnemonic = "neutral false together tattoo matrix stamp poem mouse chair chair grain pledge mandate layer shiver embark struggle vicious antenna total faith genre valley mandate"
4 changes: 4 additions & 0 deletions dev-chain/validator/config/app.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# The minimum gas prices a validator is willing to accept for processing a
# transaction. A transaction's fees must meet the minimum of any denomination
# specified in this config (e.g. 0.25token1;0.0001token2).
minimum-gas-prices = "1.0atto"
12 changes: 12 additions & 0 deletions dev-chain/validator/config/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
moniker = "developer"
[rpc]
laddr = "tcp://0.0.0.0:26657"
max_subscriptions_per_client = 100
[consensus]
timeout_commit = "1s"
[p2p]
addr_book_strict = false
[instrumentation]
prometheus = true
[tx_index]
index_all_keys = true
196 changes: 196 additions & 0 deletions dev-chain/validator/config/genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
{
"genesis_time": "2020-05-02T09:36:48.27599Z",
"chain_id": "mesg-dev-chain",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1",
"time_iota_ms": "1000"
},
"evidence": {
"max_age_num_blocks": "100000",
"max_age_duration": "172800000000000"
},
"validator": {
"pub_key_types": [
"ed25519"
]
}
},
"app_hash": "",
"app_state": {
"auth": {
"params": {
"max_memo_characters": "256",
"tx_sig_limit": "7",
"tx_size_cost_per_byte": "10",
"sig_verify_cost_ed25519": "590",
"sig_verify_cost_secp256k1": "1000"
},
"accounts": [
{
"type": "cosmos-sdk/Account",
"value": {
"address": "mesg1t9h20sn3lk2jdnak5eea4lkqxkpwyfaadtqk4t",
"coins": [
{
"denom": "atto",
"amount": "1000000000000000000000000"
}
],
"public_key": "",
"account_number": 0,
"sequence": 0
}
},
{
"type": "cosmos-sdk/Account",
"value": {
"address": "mesg10cjcxje0jjdxzdq5hpqa4dc4znhuxsax2zh7mp",
"coins": [
{
"denom": "stake",
"amount": "100000000"
}
],
"public_key": "",
"account_number": 0,
"sequence": 0
}
},
{
"type": "cosmos-sdk/Account",
"value": {
"address": "mesg1s6mqusxaq93d70jeekqehg7aepwt7zs306ctq7",
"coins": [
{
"denom": "atto",
"amount": "1000000000000000000000000"
},
{
"denom": "stake",
"amount": "1000000000"
}
],
"public_key": "",
"account_number": 0,
"sequence": 0
}
}
]
},
"params": null,
"service": {},
"slashing": {
"params": {
"signed_blocks_window": "100",
"min_signed_per_window": "0.500000000000000000",
"downtime_jail_duration": "600000000000",
"slash_fraction_double_sign": "0.050000000000000000",
"slash_fraction_downtime": "0.010000000000000000"
},
"signing_infos": {},
"missed_blocks": {}
},
"instance": {},
"runner": {},
"distribution": {
"params": {
"community_tax": "0.020000000000000000",
"base_proposer_reward": "0.010000000000000000",
"bonus_proposer_reward": "0.040000000000000000",
"withdraw_addr_enabled": true
},
"fee_pool": {
"community_pool": []
},
"delegator_withdraw_infos": [],
"previous_proposer": "",
"outstanding_rewards": [],
"validator_accumulated_commissions": [],
"validator_historical_rewards": [],
"validator_current_rewards": [],
"delegator_starting_infos": [],
"validator_slash_events": []
},
"supply": {
"supply": []
},
"staking": {
"params": {
"unbonding_time": "1814400000000000",
"max_validators": 100,
"max_entries": 7,
"historical_entries": 0,
"bond_denom": "stake"
},
"last_total_power": "0",
"last_validator_powers": null,
"validators": null,
"delegations": null,
"unbonding_delegations": null,
"redelegations": null,
"exported": false
},
"bank": {
"send_enabled": true
},
"process": {},
"ownership": {},
"genutil": {
"gentxs": [
{
"type": "cosmos-sdk/StdTx",
"value": {
"msg": [
{
"type": "cosmos-sdk/MsgCreateValidator",
"value": {
"description": {
"moniker": "developer",
"identity": "",
"website": "",
"security_contact": "",
"details": ""
},
"commission": {
"rate": "0.100000000000000000",
"max_rate": "0.200000000000000000",
"max_change_rate": "0.010000000000000000"
},
"min_self_delegation": "1",
"delegator_address": "mesg10cjcxje0jjdxzdq5hpqa4dc4znhuxsax2zh7mp",
"validator_address": "mesgvaloper10cjcxje0jjdxzdq5hpqa4dc4znhuxsaxkrzt5d",
"pubkey": "mesgvalconspub1zcjduepqsmu3d8sjzfgc9hv994484kh6g7w6k7hwa6pz6ytx8xl02u0vx7uq3c5hd7",
"value": {
"denom": "stake",
"amount": "100000000"
}
}
}
],
"fee": {
"amount": [],
"gas": "200000"
},
"signatures": [
{
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "A9Dri5+gMEwY0ND9JomzoBRdyV06NzQkeE9184IKb0dY"
},
"signature": "9BgADIZvkzMA5qPU05MBiF4jpnmFXOvLd2/0U9t4MSsRThtvUYNkKpdRed/I8RVzjC3DTsIpbfo7PA8iWb1Hbg=="
}
],
"memo": "[email protected]:26656"
}
}
]
},
"execution": {
"params": {
"minPrice": "10000atto"
}
}
}
}
1 change: 1 addition & 0 deletions dev-chain/validator/config/node_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"WnB/ngV9sCHm6WruylEat+XRbmhnJ1dgTdAPIIHWiKVeZeftLREe8aUjz7+2QKdKQkJwovw3b0rFa2Z+Z2zLXw=="}}
11 changes: 11 additions & 0 deletions dev-chain/validator/config/priv_validator_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"address": "AE7AAC113558ABD2B3D24EDC3774FBE7027F1F35",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "hvkWnhISUYLdhS1qetr6R52reu7ugi0RZjm+9XHsN7g="
},
"priv_key": {
"type": "tendermint/PrivKeyEd25519",
"value": "O8EZc8rbvs5H4+fdFX3uIzxULm4c6/Yxl5+9yIqkc36G+RaeEhJRgt2FLWp62vpHnat67u6CLRFmOb71cew3uA=="
}
}
5 changes: 5 additions & 0 deletions dev-chain/validator/data/priv_validator_state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"height": "0",
"round": "0",
"step": 0
}

0 comments on commit 6ac069e

Please sign in to comment.