Skip to content

Commit

Permalink
Merge pull request #8 from FairBlock/feature/slashing-and-validator-s…
Browse files Browse the repository at this point in the history
…taking-check

Feature/slashing and validator staking check
  • Loading branch information
p0p3yee authored Apr 27, 2023
2 parents 6f83852 + 2536eeb commit eb9edd1
Show file tree
Hide file tree
Showing 40 changed files with 580 additions and 2,598 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
args: chain build --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -t linux:amd64 -t darwin:amd64 -t darwin:arm64

- name: Delete the "latest" Release
uses: dev-drprasad/[email protected].0
uses: dev-drprasad/[email protected].1
if: ${{ steps.vars.outputs.is_release_type_latest == 'true' }}
with:
tag_name: ${{ steps.vars.outputs.tag_name }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ build/
gentx/
DistributedIBE/
*.json
encrypter
8 changes: 7 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,14 @@ func New(
keys[fairyringmoduletypes.StoreKey],
keys[fairyringmoduletypes.MemStoreKey],
app.GetSubspace(fairyringmoduletypes.ModuleName),
app.StakingKeeper,
)
fairyringModule := fairyringmodule.NewAppModule(
appCodec,
app.FairyringKeeper,
app.AccountKeeper,
app.BankKeeper,
)
fairyringModule := fairyringmodule.NewAppModule(appCodec, app.FairyringKeeper, app.AccountKeeper, app.BankKeeper)

scopedFairblockKeeper := app.CapabilityKeeper.ScopeToModule(fairblockmoduletypes.ModuleName)
app.ScopedFairblockKeeper = scopedFairblockKeeper
Expand Down
29 changes: 29 additions & 0 deletions create_multi_sign_account.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

die () {
echo >&2 "$@"
exit 1
}

[ "$#" -eq 3 ] || die "3 argument required, $# provided, Usage: ./create_multi_sign_account {acc1,acc2...} {multi sig account name} {threshold}"

echo $3 | grep -E -q '^[0-9]+$' || die "Numeric argument required, $3 provided"

IFS=',' read -ra ACCOUNTS_ARR <<< "$1"

[ $3 -le ${#ACCOUNTS_ARR[@]} ] || die "Invalid threshold, threshold must be less or equals to the number of accounts. $3 provided as threshold but ${#ACCOUNTS_ARR[@]} accounts provided."

ALICE_ADDRESS=`fairyringd keys show alice | grep "address:" | sed 's/^.*: //'`

for EACH_ACCOUNT in "${ACCOUNTS_ARR[@]}"
do
fairyringd keys add $EACH_ACCOUNT
EACH_ADDRESS=`fairyringd keys show $EACH_ACCOUNT | grep "address:" | sed 's/^.*: //'`
fairyringd tx bank send $ALICE_ADDRESS $EACH_ADDRESS 100frt --from alice --yes
done

fairyringd keys add $2 --multisig $1 --multisig-threshold $3

MULTI_SIGN_ADDRESS=`fairyringd keys show $2 | grep "address:" | sed 's/^.*: //'`

fairyringd tx bank send $ALICE_ADDRESS $MULTI_SIGN_ADDRESS 100frt --from alice --yes
6 changes: 3 additions & 3 deletions fairyring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ build:
accounts:
- name: alice
coins:
- 1000token
- 100000000frt
- 100000000stake
- name: bob
coins:
- 500token
- 100000000frt
- 100000000stake
faucet:
name: bob
coins:
- 5token
- 100000frt
- 100000stake
host: 0.0.0.0:4500
genesis:
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
DistributedIBE v0.0.0
cosmossdk.io/math v1.0.0-beta.3
cosmossdk.io/math v1.0.0
github.com/cosmos/cosmos-sdk v0.46.3
github.com/cosmos/ibc-go/v5 v5.0.0
github.com/drand/kyber v1.1.17
Expand All @@ -16,7 +16,7 @@ require (
github.com/spf13/cast v1.5.0
github.com/spf13/cobra v1.5.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.1
github.com/stretchr/testify v1.8.2
github.com/tendermint/tendermint v0.34.22
github.com/tendermint/tm-db v0.6.7
google.golang.org/genproto v0.0.0-20230223222841-637eb2293923
Expand Down Expand Up @@ -190,7 +190,7 @@ require (
go.etcd.io/bbolt v1.3.6 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.5.0 // indirect
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db // indirect
golang.org/x/mod v0.7.0 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/oauth2 v0.5.0 // indirect
Expand Down
13 changes: 7 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi
collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
cosmossdk.io/errors v1.0.0-beta.7 h1:gypHW76pTQGVnHKo6QBkb4yFOJjC+sUGRc5Al3Odj1w=
cosmossdk.io/errors v1.0.0-beta.7/go.mod h1:mz6FQMJRku4bY7aqS/Gwfcmr/ue91roMEKAmDUDpBfE=
cosmossdk.io/math v1.0.0-beta.3 h1:TbZxSopz2LqjJ7aXYfn7nJSb8vNaBklW6BLpcei1qwM=
cosmossdk.io/math v1.0.0-beta.3/go.mod h1:3LYasri3Zna4XpbrTNdKsWmD5fHHkaNAod/mNT9XdE4=
cosmossdk.io/math v1.0.0 h1:ro9w7eKx23om2tZz/VM2Pf+z2WAbGX1yDQQOJ6iGeJw=
cosmossdk.io/math v1.0.0/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
filippo.io/age v1.1.1 h1:pIpO7l151hCnQ4BdyBujnGP2YlUo0uj6sAVNHGBvXHg=
filippo.io/age v1.1.1/go.mod h1:l03SrzDUrBkdBx8+IILdnn2KZysqQdbEBUQ4p3sqEQE=
Expand Down Expand Up @@ -923,7 +923,7 @@ github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFB
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
Expand Down Expand Up @@ -1327,8 +1327,9 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs=
github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
Expand Down Expand Up @@ -1491,8 +1492,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw=
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA=
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA=
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db h1:D/cFflL63o2KSLJIwjlcIt8PR064j/xsmdEJL/YvY/o=
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
Expand Down
11 changes: 0 additions & 11 deletions proto/fairyring/fairblock/fairblock_executed_nonce.proto

This file was deleted.

4 changes: 1 addition & 3 deletions proto/fairyring/fairblock/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import "gogoproto/gogo.proto";
import "fairyring/fairblock/params.proto";
import "fairyring/fairblock/encrypted_tx.proto";
import "fairyring/fairblock/fairblock_nonce.proto";
import "fairyring/fairblock/fairblock_executed_nonce.proto";
import "fairyring/fairblock/aggregated_key_share.proto";

// this line is used by starport scaffolding # genesis/proto/import
Expand All @@ -19,9 +18,8 @@ message GenesisState {
string port_id = 2;
repeated EncryptedTxArray encryptedTxArray = 3 [(gogoproto.nullable) = false];
repeated FairblockNonce fairblockNonceList = 4 [(gogoproto.nullable) = false];
repeated FairblockExecutedNonce fairblockExecutedNonceList = 5 [(gogoproto.nullable) = false];

// this line is used by starport scaffolding # genesis/proto/state
repeated AggregatedKeyShare aggregatedKeyShareList = 6 [(gogoproto.nullable) = false];
repeated AggregatedKeyShare aggregatedKeyShareList = 5 [(gogoproto.nullable) = false];
}

30 changes: 0 additions & 30 deletions proto/fairyring/fairblock/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "cosmos/base/query/v1beta1/pagination.proto";
import "fairyring/fairblock/params.proto";
import "fairyring/fairblock/encrypted_tx.proto";
import "fairyring/fairblock/fairblock_nonce.proto";
import "fairyring/fairblock/fairblock_executed_nonce.proto";
import "fairyring/fairblock/aggregated_key_share.proto";

// this line is used by starport scaffolding # 1
Expand Down Expand Up @@ -59,18 +58,6 @@ service Query {
option (google.api.http).get = "/fairyring/fairblock/fairblock_nonce";

}

// Queries a FairblockExecutedNonce by index.
rpc FairblockExecutedNonce (QueryGetFairblockExecutedNonceRequest) returns (QueryGetFairblockExecutedNonceResponse) {
option (google.api.http).get = "/fairyring/fairblock/fairblock_executed_nonce/{address}";

}

// Queries a list of FairblockExecutedNonce items.
rpc FairblockExecutedNonceAll (QueryAllFairblockExecutedNonceRequest) returns (QueryAllFairblockExecutedNonceResponse) {
option (google.api.http).get = "/fairyring/fairblock/fairblock_executed_nonce";

}

// this line is used by starport scaffolding # 2
}
Expand Down Expand Up @@ -133,21 +120,4 @@ message QueryAllFairblockNonceResponse {
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

message QueryGetFairblockExecutedNonceRequest {
string address = 1;
}

message QueryGetFairblockExecutedNonceResponse {
FairblockExecutedNonce fairblockExecutedNonce = 1 [(gogoproto.nullable) = false];
}

message QueryAllFairblockExecutedNonceRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}

message QueryAllFairblockExecutedNonceResponse {
repeated FairblockExecutedNonce fairblockExecutedNonce = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

// this line is used by starport scaffolding # 3
6 changes: 3 additions & 3 deletions proto/fairyring/fairyring/validator_set.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ option go_package = "fairyring/x/fairyring/types";

message ValidatorSet {
string index = 1;
string validator = 2;
bool isActive = 3;

string validator = 2;
string consAddr = 3;
bool isActive = 4;
}

60 changes: 60 additions & 0 deletions test_submit_multi_sig_tx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/bash

die () {
echo >&2 "$@"
exit 1
}

[ "$#" -eq 6 ] || die "5 argument required, $# provided, Usage: ./test_submit_multi_sig_tx {acc1,acc2...} {multi sig account} {sender account} {tx_target_height} {to_address} {amount}"

echo $4 | grep -E -q '^[0-9]+$' || die "Numeric argument required, $4 provided"

ACCOUNT_NAME=$2
CHAIN_ID="fairyring"
UNSIGNED_TX_FILE_NAME="script_multi_sig_unsigned.json"
SIGNED_TX_FILE_NAME="script_multi_sig_signed.json"

# Get the address of target account name
MULTI_SIG_ADDRESS=`fairyringd keys show $ACCOUNT_NAME -a`

# Create the unsigned tx data
fairyringd tx bank send $MULTI_SIG_ADDRESS $5 $6 --chain-id $CHAIN_ID --generate-only --yes > $UNSIGNED_TX_FILE_NAME

SIGNED_TX_FILE_LIST=""

IFS=',' read -ra ACCOUNTS_ARR <<< "$1"

MULTI_SIG_ACCOUNT_NUMBER=`fairyringd q account $MULTI_SIG_ADDRESS | grep "account_number: " | sed 's/^.*: //'`
MULTI_SIG_ACCOUNT_NUMBER=`sed -e 's/^"//' -e 's/"$//' <<< "$MULTI_SIG_ACCOUNT_NUMBER"`

ACCOUNT_FAIRBLOCK_NONCE=`fairyringd query fairblock show-fairblock-nonce $MULTI_SIG_ADDRESS | grep "nonce:" | sed 's/^.*: //'`

if [ -z "${ACCOUNT_FAIRBLOCK_NONCE}" ]; then
die "Fairblock Nonce not found"
else # else, remove the string quote from the result
ACCOUNT_FAIRBLOCK_NONCE=`sed -e 's/^"//' -e 's/"$//' <<< "$ACCOUNT_FAIRBLOCK_NONCE"`
fi

for EACH_ACCOUNT in "${ACCOUNTS_ARR[@]}"
do
EACH_ADDRESS=`fairyringd keys show $EACH_ACCOUNT -a`

#EACH_SIGNED_DATA=`fairyringd tx sign $UNSIGNED_TX_FILE_NAME --multisig $ACCOUNT_NAME --from $EACH_ACCOUNT --offline --account-number $MULTI_SIG_ACCOUNT_NUMBER --sequence $ACCOUNT_FAIRBLOCK_NONCE --chain-id $CHAIN_ID --yes --output-document $EACH_ACCOUNT$SIGNED_TX_FILE_NAME`
EACH_SIGNED_DATA=`fairyringd tx sign $UNSIGNED_TX_FILE_NAME --multisig $ACCOUNT_NAME --from $EACH_ACCOUNT --chain-id $CHAIN_ID --yes --output-document $EACH_ACCOUNT$SIGNED_TX_FILE_NAME`

SIGNED_TX_FILE_LIST="$SIGNED_TX_FILE_LIST $EACH_ACCOUNT$SIGNED_TX_FILE_NAME"
done

#FINAL_SIGNED_DATA=`fairyringd tx multisign $UNSIGNED_TX_FILE_NAME $ACCOUNT_NAME $SIGNED_TX_FILE_LIST --offline --account-number $MULTI_SIG_ACCOUNT_NUMBER --sequence $ACCOUNT_FAIRBLOCK_NONCE --chain-id $CHAIN_ID --yes`
FINAL_SIGNED_DATA=`fairyringd tx multisign $UNSIGNED_TX_FILE_NAME $ACCOUNT_NAME $SIGNED_TX_FILE_LIST --chain-id $CHAIN_ID --yes`
echo $FINAL_SIGNED_DATA
PUB_KEY=`fairyringd q fairyring show-latest-pub-key | grep "publicKey: " | sed 's/^.*: //'`

CIPHER=`./encrypter $4 $PUB_KEY $FINAL_SIGNED_DATA`

# Submit encrypted tx with the signed data
fairyringd tx fairblock submit-encrypted-tx $CIPHER $4 --from $3 --yes

rm $SIGNED_TX_FILE_LIST $UNSIGNED_TX_FILE_NAME

printf "\nRun 'fairyringd query bank balances $5' to check target account balance later\n"
22 changes: 13 additions & 9 deletions test_submit_tx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ die () {
exit 1
}

[ "$#" -eq 1 ] || die "1 argument required, $# provided, Usage: ./test_tx_execution {tx_target_height}"
[ "$#" -eq 3 ] || die "3 argument required, $# provided, Usage: ./test_tx_execution {tx_target_height} {to_address} {amount}"

echo $1 | grep -E -q '^[0-9]+$' || die "Numeric argument required, $1 provided"

Expand All @@ -20,10 +20,9 @@ ADDRESS=`fairyringd keys show $ACCOUNT_NAME | grep "address:" | sed 's/^.*: //'`
# Get the fairblock nonce of target account address
FairblockNonce=`fairyringd query fairblock show-fairblock-nonce $ADDRESS | grep "nonce:" | sed 's/^.*: //'`

# Check if get nonce is success, if not assign 1 to the nonce
# Check if get nonce is success, if not assign 0 to the nonce
if [ -z "${FairblockNonce}" ]; then
echo "$ACCOUNT_NAME nonce not found, init nonce as 1"
FairblockNonce=1
die "Fairblock Nonce not found"
else # else, remove the string quote from the result
FairblockNonce=`sed -e 's/^"//' -e 's/"$//' <<< "$FairblockNonce"`
fi
Expand All @@ -33,13 +32,18 @@ printf "Got $ACCOUNT_NAME's FairblockNonce: $FairblockNonce Account Balance:\n\n
fairyringd query bank balances $ADDRESS

# Create the unsigned tx data
fairyringd tx fairyring register-validator --from $ACCOUNT_NAME --generate-only --yes > $UNSIGNED_TX_FILE_NAME
fairyringd tx bank send $ADDRESS $2 $3 --from $ACCOUNT_NAME --generate-only --yes > $UNSIGNED_TX_FILE_NAME

# Sign the unsigned tx that just created
SIGNED_DATA=`fairyringd tx sign $UNSIGNED_TX_FILE_NAME --from $ACCOUNT_NAME --offline --account-number $ACCOUNT_NUMBER --sequence $FairblockNonce --chain-id $CHAIN_ID --yes`
# SIGNED_DATA=`fairyringd tx sign $UNSIGNED_TX_FILE_NAME --from $ACCOUNT_NAME --chain-id $CHAIN_ID --yes`

PUB_KEY=`fairyringd q fairyring show-latest-pub-key | grep "publicKey: " | sed 's/^.*: //'`

CIPHER=`./encrypter $1 $PUB_KEY $SIGNED_DATA`

# Submit encrypted tx with the signed data
fairyringd tx fairblock submit-encrypted-tx $SIGNED_DATA $1 --from $ACCOUNT_NAME --yes
fairyringd tx fairblock submit-encrypted-tx $CIPHER $1 --from $ACCOUNT_NAME --yes

# List all the encrypted txs
printf "\n\nList encrypted Txs:\n\n"
Expand All @@ -52,7 +56,7 @@ printf "\nUnsigned TX JSON File Removed\n"
printf "\nAccount Balance after submitting Encrypted Tx"
fairyringd query bank balances $ADDRESS

printf "\nValidator Set After submitting Encrypted Tx:"
fairyringd query fairyring list-validator-set
printf "\nTarget To Account Balance after submitting Encrypted Tx"
fairyringd query bank balances $2

printf "\nRun 'fairyringd query fairyring list-validator-set' to check validator set later\n"
printf "\nRun 'fairyringd query bank balances $2' to check target account balance later\n"
2 changes: 0 additions & 2 deletions x/fairblock/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ func GetQueryCmd(queryRoute string) *cobra.Command {

cmd.AddCommand(CmdListFairblockNonce())
cmd.AddCommand(CmdShowFairblockNonce())
cmd.AddCommand(CmdListFairblockExecutedNonce())
cmd.AddCommand(CmdShowFairblockExecutedNonce())
// this line is used by starport scaffolding # 1

return cmd
Expand Down
Loading

0 comments on commit eb9edd1

Please sign in to comment.