Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

[ENG-4] startport: setup #27

Merged
merged 6 commits into from
May 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ docs-tools-stamp
proto-tools-stamp
golangci-lint
keyring_test_cosmos
./**/node_modules
./**/dist
secret.yml
# vue/

# Testing
coverage.txt
Expand Down Expand Up @@ -59,4 +63,4 @@ dependency-graph.png

# Contracts
*.bin
*.abi
*.abi
4 changes: 2 additions & 2 deletions cmd/ethermintd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func addTxFlags(cmd *cobra.Command) *cobra.Command {
cmd.PersistentFlags().StringVar(&statsdPrefix, "statsd-prefix", "ethermintd", "Specify StatsD compatible metrics prefix.")
cmd.PersistentFlags().StringVar(&statsdAddress, "statsd-address", "localhost:8125", "UDP address of a StatsD compatible metrics aggregator.")
cmd.PersistentFlags().StringVar(&statsdStuckFunc, "statsd-stuck-func", "5m", "Sets a duration to consider a function to be stuck (e.g. in deadlock).")
cmd.PersistentFlags().String(flags.FlagFees, "", "Fees to pay along with transaction; eg: 10uatom")
cmd.PersistentFlags().String(flags.FlagGasPrices, "", "Gas prices to determine the transaction fee (e.g. 10uatom)")
cmd.PersistentFlags().String(flags.FlagFees, "", "Fees to pay along with transaction; eg: 10aphoton")
cmd.PersistentFlags().String(flags.FlagGasPrices, "", "Gas prices to determine the transaction fee (e.g. 10aphoton)")
cmd.PersistentFlags().String(flags.FlagNode, "tcp://localhost:26657", "<host>:<port> to tendermint rpc interface for this chain")
cmd.PersistentFlags().Float64(flags.FlagGasAdjustment, flags.DefaultGasAdjustment, "adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored ")
cmd.PersistentFlags().StringP(flags.FlagBroadcastMode, "b", flags.BroadcastSync, "Transaction broadcasting mode (sync|async|block)")
Expand Down
236 changes: 0 additions & 236 deletions cmd/ethermintd/gentx.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/ethermintd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {
),
genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome),
genutilcli.MigrateGenesisCmd(),
GenTxCmd(app.ModuleBasics, encodingConfig.TxConfig, banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome),
genutilcli.GenTxCmd(app.ModuleBasics, encodingConfig.TxConfig, banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome),
genutilcli.ValidateGenesisCmd(app.ModuleBasics),
AddGenesisAccountCmd(app.DefaultNodeHome),
tmcli.NewCompletionCmd(rootCmd, true),
Expand Down
39 changes: 39 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
accounts:
- name: alice
coins: ["100000000uatom", "100000000000000000000aphoton"]
- name: bob
coins: ["5000000000000aphoton"]
validator:
name: alice
staked: "100000000000000000000aphoton"
faucet:
name: bob
coins: ["10aphoton"]
build:
binary: "ethermintd"
init:
home: "$HOME/.ethermintd"
app:
evm-rpc:
address: "0.0.0.0:1317" # change the JSON-RPC address and port
ws-address: "0.0.0.0:1318" # change the JSON-RPC websocket address and port
genesis:
chain_id: "ethermint-2"
app_state:
staking:
params:
bond_denom: "aphoton"
mint:
params:
mint_denom: "aphoton"
crisis:
constant_fee:
denom: "aphoton"
gov:
deposit_params:
min_deposit:
- amount: "10000000"
denom: "aphoton"
evm:
params:
evm_denom: "aphoton"
7 changes: 5 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/ethereum/go-ethereum v1.10.3
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/gogo/protobuf v1.3.3
github.com/golang/protobuf v1.5.2
github.com/golang/protobuf v1.4.3
github.com/google/uuid v1.2.0
github.com/gorilla/mux v1.8.0
github.com/gorilla/websocket v1.4.2
Expand Down Expand Up @@ -46,9 +46,12 @@ require (
github.com/xlab/closer v0.0.0-20190328110542-03326addb7c2
github.com/xlab/suplog v1.3.0
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4 // indirect
golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6 // indirect
google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384
golang.org/x/text v0.3.5 // indirect
google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea
google.golang.org/grpc v1.37.1
google.golang.org/protobuf v1.26.0-rc.1 // indirect
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
nhooyr.io/websocket v1.8.7 // indirect
Expand Down
Loading