Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simd and simcli commands #5998

Merged
merged 12 commits into from
Apr 20, 2020
Prev Previous commit
Next Next commit
Addressed changes in Makefile
  • Loading branch information
sahith-narahari committed Apr 16, 2020
commit 858e744b1f2a065d00c565a87af0d8038c37f171
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ all: tools build lint test

build: go.sum
@go build -mod=readonly ./...
.PHONY: build

build-sim: go.sum
sahith-narahari marked this conversation as resolved.
Show resolved Hide resolved
ifeq ($(OS),Windows_NT)
Expand All @@ -33,6 +32,10 @@ else
go build -mod=readonly $(BUILD_FLAGS) -o build/simcli ./simapp/cmd/simcli
endif

.PHONY: \
build \
build-sim

mocks: $(MOCKS_DIR)
mockgen -source=x/auth/types/account_retriever.go -package mocks -destination tests/mocks/account_retriever.go
mockgen -package mocks -destination tests/mocks/tendermint_tm_db_DB.go github.com/tendermint/tm-db DB
Expand Down Expand Up @@ -169,7 +172,7 @@ test-sim-after-import \
test-sim-custom-genesis-multi-seed \
test-sim-multi-seed-short \
test-sim-multi-seed-long \
test-sim-benchmark-invariants \
test-sim-benchmark-invariants

SIM_NUM_BLOCKS ?= 500
SIM_BLOCK_SIZE ?= 200
Expand Down
9 changes: 6 additions & 3 deletions simapp/cmd/simd/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import (
"errors"
"fmt"
sahith-narahari marked this conversation as resolved.
Show resolved Hide resolved

"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/libs/cli"

"github.com/cosmos/cosmos-sdk/client/flags"
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
Expand All @@ -15,9 +21,6 @@ import (
authvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting"
"github.com/cosmos/cosmos-sdk/x/bank"
"github.com/cosmos/cosmos-sdk/x/genutil"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/tendermint/tendermint/libs/cli"
)

const (
Expand Down