refactor: complete sovereign stack cleanup — all github.com upstream refs purged
Some checks are pending
Build SimApp / build (amd64) (push) Waiting to run
Build SimApp / build (arm64) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Build & Push / build (push) Waiting to run
Run Gosec / Gosec (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Checks dependencies and mocks generation / Check go mod tidy (push) Waiting to run
Checks dependencies and mocks generation / Check up to date mocks (push) Waiting to run
System Tests / setup (push) Waiting to run
System Tests / test-system (push) Blocked by required conditions
System Tests / test-system-legacy (push) Blocked by required conditions
Tests / Code Coverage / split-test-files (push) Waiting to run
Tests / Code Coverage / tests (00) (push) Blocked by required conditions
Tests / Code Coverage / tests (01) (push) Blocked by required conditions
Tests / Code Coverage / tests (02) (push) Blocked by required conditions
Tests / Code Coverage / tests (03) (push) Blocked by required conditions
Tests / Code Coverage / test-integration (push) Waiting to run
Tests / Code Coverage / test-e2e (push) Waiting to run
Tests / Code Coverage / repo-analysis (push) Blocked by required conditions
Tests / Code Coverage / test-sim-nondeterminism (push) Waiting to run
Tests / Code Coverage / test-clientv2 (push) Waiting to run
Tests / Code Coverage / test-core (push) Waiting to run
Tests / Code Coverage / test-depinject (push) Waiting to run
Tests / Code Coverage / test-errors (push) Waiting to run
Tests / Code Coverage / test-math (push) Waiting to run
Tests / Code Coverage / test-schema (push) Waiting to run
Tests / Code Coverage / test-collections (push) Waiting to run
Tests / Code Coverage / test-cosmovisor (push) Waiting to run
Tests / Code Coverage / test-confix (push) Waiting to run
Tests / Code Coverage / test-store (push) Waiting to run
Tests / Code Coverage / test-log (push) Waiting to run
Tests / Code Coverage / test-x-tx (push) Waiting to run
Tests / Code Coverage / test-x-nft (push) Waiting to run
Tests / Code Coverage / test-x-circuit (push) Waiting to run
Tests / Code Coverage / test-x-feegrant (push) Waiting to run
Tests / Code Coverage / test-x-evidence (push) Waiting to run
Tests / Code Coverage / test-x-upgrade (push) Waiting to run
Tests / Code Coverage / test-tools-benchmark (push) Waiting to run
Some checks are pending
Build SimApp / build (amd64) (push) Waiting to run
Build SimApp / build (arm64) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Build & Push / build (push) Waiting to run
Run Gosec / Gosec (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Checks dependencies and mocks generation / Check go mod tidy (push) Waiting to run
Checks dependencies and mocks generation / Check up to date mocks (push) Waiting to run
System Tests / setup (push) Waiting to run
System Tests / test-system (push) Blocked by required conditions
System Tests / test-system-legacy (push) Blocked by required conditions
Tests / Code Coverage / split-test-files (push) Waiting to run
Tests / Code Coverage / tests (00) (push) Blocked by required conditions
Tests / Code Coverage / tests (01) (push) Blocked by required conditions
Tests / Code Coverage / tests (02) (push) Blocked by required conditions
Tests / Code Coverage / tests (03) (push) Blocked by required conditions
Tests / Code Coverage / test-integration (push) Waiting to run
Tests / Code Coverage / test-e2e (push) Waiting to run
Tests / Code Coverage / repo-analysis (push) Blocked by required conditions
Tests / Code Coverage / test-sim-nondeterminism (push) Waiting to run
Tests / Code Coverage / test-clientv2 (push) Waiting to run
Tests / Code Coverage / test-core (push) Waiting to run
Tests / Code Coverage / test-depinject (push) Waiting to run
Tests / Code Coverage / test-errors (push) Waiting to run
Tests / Code Coverage / test-math (push) Waiting to run
Tests / Code Coverage / test-schema (push) Waiting to run
Tests / Code Coverage / test-collections (push) Waiting to run
Tests / Code Coverage / test-cosmovisor (push) Waiting to run
Tests / Code Coverage / test-confix (push) Waiting to run
Tests / Code Coverage / test-store (push) Waiting to run
Tests / Code Coverage / test-log (push) Waiting to run
Tests / Code Coverage / test-x-tx (push) Waiting to run
Tests / Code Coverage / test-x-nft (push) Waiting to run
Tests / Code Coverage / test-x-circuit (push) Waiting to run
Tests / Code Coverage / test-x-feegrant (push) Waiting to run
Tests / Code Coverage / test-x-evidence (push) Waiting to run
Tests / Code Coverage / test-x-upgrade (push) Waiting to run
Tests / Code Coverage / test-tools-benchmark (push) Waiting to run
This commit is contained in:
parent
20afb5db80
commit
abb1ff956e
1194 changed files with 5623 additions and 5621 deletions
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cockroachdb/errors"
|
"github.com/cockroachdb/errors"
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
"github.com/cosmos/gogoproto/proto"
|
"github.com/cosmos/gogoproto/proto"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
grpcstatus "google.golang.org/grpc/status"
|
grpcstatus "google.golang.org/grpc/status"
|
||||||
|
|
@ -20,10 +20,10 @@ import (
|
||||||
snapshottypes "cosmossdk.io/store/snapshots/types"
|
snapshottypes "cosmossdk.io/store/snapshots/types"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/telemetry"
|
"git.cw.tr/mukan-network/mukan-sdk/telemetry"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Supported ABCI Query prefixes and paths
|
// Supported ABCI Query prefixes and paths
|
||||||
|
|
@ -151,7 +151,7 @@ func (app *BaseApp) Info(_ *abci.RequestInfo) (*abci.ResponseInfo, error) {
|
||||||
func (app *BaseApp) Query(_ context.Context, req *abci.RequestQuery) (resp *abci.ResponseQuery, err error) {
|
func (app *BaseApp) Query(_ context.Context, req *abci.RequestQuery) (resp *abci.ResponseQuery, err error) {
|
||||||
// add panic recovery for all queries
|
// add panic recovery for all queries
|
||||||
//
|
//
|
||||||
// Ref: https://github.com/cosmos/cosmos-sdk/pull/8039
|
// Ref: https://git.cw.tr/mukan-network/mukan-sdk/pull/8039
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
resp = sdkerrors.QueryResult(errorsmod.Wrapf(sdkerrors.ErrPanic, "%v", r), app.trace)
|
resp = sdkerrors.QueryResult(errorsmod.Wrapf(sdkerrors.ErrPanic, "%v", r), app.trace)
|
||||||
|
|
@ -283,7 +283,7 @@ func (app *BaseApp) OfferSnapshot(req *abci.RequestOfferSnapshot) (*abci.Respons
|
||||||
return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_REJECT}, nil
|
return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_REJECT}, nil
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// CometBFT errors are defined here: https://github.com/cometbft/cometbft/blob/main/statesync/syncer.go
|
// CometBFT errors are defined here: https://git.cw.tr/mukan-network/mukan-consensus/blob/main/statesync/syncer.go
|
||||||
// It may happen that in case of a CometBFT error, such as a timeout (which occurs after two minutes),
|
// It may happen that in case of a CometBFT error, such as a timeout (which occurs after two minutes),
|
||||||
// the process is aborted. This is done intentionally because deleting the database programmatically
|
// the process is aborted. This is done intentionally because deleting the database programmatically
|
||||||
// can lead to more complicated situations.
|
// can lead to more complicated situations.
|
||||||
|
|
@ -385,8 +385,8 @@ func (app *BaseApp) CheckTx(req *abci.RequestCheckTx) (*abci.ResponseCheckTx, er
|
||||||
// transactions to return based on the mempool's semantics and the MaxTxBytes
|
// transactions to return based on the mempool's semantics and the MaxTxBytes
|
||||||
// provided by the client's request.
|
// provided by the client's request.
|
||||||
//
|
//
|
||||||
// Ref: https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-060-abci-1.0.md
|
// Ref: https://git.cw.tr/mukan-network/mukan-sdk/blob/main/docs/architecture/adr-060-abci-1.0.md
|
||||||
// Ref: https://github.com/cometbft/cometbft/blob/main/spec/abci/abci%2B%2B_basic_concepts.md
|
// Ref: https://git.cw.tr/mukan-network/mukan-consensus/blob/main/spec/abci/abci%2B%2B_basic_concepts.md
|
||||||
func (app *BaseApp) PrepareProposal(req *abci.RequestPrepareProposal) (resp *abci.ResponsePrepareProposal, err error) {
|
func (app *BaseApp) PrepareProposal(req *abci.RequestPrepareProposal) (resp *abci.ResponsePrepareProposal, err error) {
|
||||||
if app.prepareProposal == nil {
|
if app.prepareProposal == nil {
|
||||||
return nil, errors.New("PrepareProposal handler not set")
|
return nil, errors.New("PrepareProposal handler not set")
|
||||||
|
|
@ -406,7 +406,7 @@ func (app *BaseApp) PrepareProposal(req *abci.RequestPrepareProposal) (resp *abc
|
||||||
|
|
||||||
// CometBFT must never call PrepareProposal with a height of 0.
|
// CometBFT must never call PrepareProposal with a height of 0.
|
||||||
//
|
//
|
||||||
// Ref: https://github.com/cometbft/cometbft/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38
|
// Ref: https://git.cw.tr/mukan-network/mukan-consensus/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38
|
||||||
if req.Height < 1 {
|
if req.Height < 1 {
|
||||||
return nil, errors.New("PrepareProposal called with invalid height")
|
return nil, errors.New("PrepareProposal called with invalid height")
|
||||||
}
|
}
|
||||||
|
|
@ -463,15 +463,15 @@ func (app *BaseApp) PrepareProposal(req *abci.RequestPrepareProposal) (resp *abc
|
||||||
// If a panic is detected during execution of an application's ProcessProposal
|
// If a panic is detected during execution of an application's ProcessProposal
|
||||||
// handler, it will be recovered and we will reject the proposal.
|
// handler, it will be recovered and we will reject the proposal.
|
||||||
//
|
//
|
||||||
// Ref: https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-060-abci-1.0.md
|
// Ref: https://git.cw.tr/mukan-network/mukan-sdk/blob/main/docs/architecture/adr-060-abci-1.0.md
|
||||||
// Ref: https://github.com/cometbft/cometbft/blob/main/spec/abci/abci%2B%2B_basic_concepts.md
|
// Ref: https://git.cw.tr/mukan-network/mukan-consensus/blob/main/spec/abci/abci%2B%2B_basic_concepts.md
|
||||||
func (app *BaseApp) ProcessProposal(req *abci.RequestProcessProposal) (resp *abci.ResponseProcessProposal, err error) {
|
func (app *BaseApp) ProcessProposal(req *abci.RequestProcessProposal) (resp *abci.ResponseProcessProposal, err error) {
|
||||||
if app.processProposal == nil {
|
if app.processProposal == nil {
|
||||||
return nil, errors.New("ProcessProposal handler not set")
|
return nil, errors.New("ProcessProposal handler not set")
|
||||||
}
|
}
|
||||||
|
|
||||||
// CometBFT must never call ProcessProposal with a height of 0.
|
// CometBFT must never call ProcessProposal with a height of 0.
|
||||||
// Ref: https://github.com/cometbft/cometbft/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38
|
// Ref: https://git.cw.tr/mukan-network/mukan-consensus/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38
|
||||||
if req.Height < 1 {
|
if req.Height < 1 {
|
||||||
return nil, errors.New("ProcessProposal called with invalid height")
|
return nil, errors.New("ProcessProposal called with invalid height")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
"github.com/cometbft/cometbft/crypto/secp256k1"
|
"git.cw.tr/mukan-network/mukan-consensus/crypto/secp256k1"
|
||||||
cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto"
|
cmtprotocrypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
dbm "github.com/cosmos/cosmos-db"
|
dbm "github.com/cosmos/cosmos-db"
|
||||||
protoio "github.com/cosmos/gogoproto/io"
|
protoio "github.com/cosmos/gogoproto/io"
|
||||||
"github.com/cosmos/gogoproto/jsonpb"
|
"github.com/cosmos/gogoproto/jsonpb"
|
||||||
|
|
@ -32,15 +32,15 @@ import (
|
||||||
snapshottypes "cosmossdk.io/store/snapshots/types"
|
snapshottypes "cosmossdk.io/store/snapshots/types"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp"
|
||||||
baseapptestutil "github.com/cosmos/cosmos-sdk/baseapp/testutil"
|
baseapptestutil "git.cw.tr/mukan-network/mukan-sdk/baseapp/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp/testutil/mock"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp/testutil/mock"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/types/mempool"
|
"git.cw.tr/mukan-network/mukan-sdk/types/mempool"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/signing"
|
"git.cw.tr/mukan-network/mukan-sdk/x/auth/signing"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockABCIListener struct {
|
type mockABCIListener struct {
|
||||||
|
|
|
||||||
|
|
@ -7,18 +7,18 @@ import (
|
||||||
"slices"
|
"slices"
|
||||||
|
|
||||||
"github.com/cockroachdb/errors"
|
"github.com/cockroachdb/errors"
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
cryptoenc "github.com/cometbft/cometbft/crypto/encoding"
|
cryptoenc "git.cw.tr/mukan-network/mukan-consensus/crypto/encoding"
|
||||||
cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto"
|
cmtprotocrypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
cmttypes "github.com/cometbft/cometbft/types"
|
cmttypes "git.cw.tr/mukan-network/mukan-consensus/types"
|
||||||
protoio "github.com/cosmos/gogoproto/io"
|
protoio "github.com/cosmos/gogoproto/io"
|
||||||
"github.com/cosmos/gogoproto/proto"
|
"github.com/cosmos/gogoproto/proto"
|
||||||
|
|
||||||
"cosmossdk.io/core/comet"
|
"cosmossdk.io/core/comet"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/mempool"
|
"git.cw.tr/mukan-network/mukan-sdk/types/mempool"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
@ -153,7 +153,7 @@ func ValidateVoteExtensions(
|
||||||
// validateExtendedCommitAgainstLastCommit validates an ExtendedCommitInfo against a LastCommit. Specifically,
|
// validateExtendedCommitAgainstLastCommit validates an ExtendedCommitInfo against a LastCommit. Specifically,
|
||||||
// it checks that the ExtendedCommit + LastCommit (for the same height), are consistent with each other + that
|
// it checks that the ExtendedCommit + LastCommit (for the same height), are consistent with each other + that
|
||||||
// they are ordered correctly (by voting power) in accordance with
|
// they are ordered correctly (by voting power) in accordance with
|
||||||
// [comet](https://github.com/cometbft/cometbft/blob/4ce0277b35f31985bbf2c25d3806a184a4510010/types/validator_set.go#L784).
|
// [comet](https://git.cw.tr/mukan-network/mukan-consensus/blob/4ce0277b35f31985bbf2c25d3806a184a4510010/types/validator_set.go#L784).
|
||||||
func validateExtendedCommitAgainstLastCommit(ec abci.ExtendedCommitInfo, lc comet.CommitInfo) error {
|
func validateExtendedCommitAgainstLastCommit(ec abci.ExtendedCommitInfo, lc comet.CommitInfo) error {
|
||||||
// check that the rounds are the same
|
// check that the rounds are the same
|
||||||
if ec.Round != lc.Round() {
|
if ec.Round != lc.Round() {
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
cmtsecp256k1 "github.com/cometbft/cometbft/crypto/secp256k1"
|
cmtsecp256k1 "git.cw.tr/mukan-network/mukan-consensus/crypto/secp256k1"
|
||||||
cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto"
|
cmtprotocrypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
cmttypes "github.com/cometbft/cometbft/types"
|
cmttypes "git.cw.tr/mukan-network/mukan-consensus/types"
|
||||||
dbm "github.com/cosmos/cosmos-db"
|
dbm "github.com/cosmos/cosmos-db"
|
||||||
protoio "github.com/cosmos/gogoproto/io"
|
protoio "github.com/cosmos/gogoproto/io"
|
||||||
"github.com/cosmos/gogoproto/proto"
|
"github.com/cosmos/gogoproto/proto"
|
||||||
|
|
@ -21,17 +21,17 @@ import (
|
||||||
"cosmossdk.io/core/header"
|
"cosmossdk.io/core/header"
|
||||||
"cosmossdk.io/log"
|
"cosmossdk.io/log"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp"
|
||||||
baseapptestutil "github.com/cosmos/cosmos-sdk/baseapp/testutil"
|
baseapptestutil "git.cw.tr/mukan-network/mukan-sdk/baseapp/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp/testutil/mock"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp/testutil/mock"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil"
|
codectestutil "git.cw.tr/mukan-network/mukan-sdk/codec/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/secp256k1"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/mempool"
|
"git.cw.tr/mukan-network/mukan-sdk/types/mempool"
|
||||||
signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing"
|
signingtypes "git.cw.tr/mukan-network/mukan-sdk/types/tx/signing"
|
||||||
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
|
authtx "git.cw.tr/mukan-network/mukan-sdk/x/auth/tx"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/cockroachdb/errors"
|
"github.com/cockroachdb/errors"
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
"github.com/cometbft/cometbft/crypto/tmhash"
|
"git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
dbm "github.com/cosmos/cosmos-db"
|
dbm "github.com/cosmos/cosmos-db"
|
||||||
"github.com/cosmos/gogoproto/proto"
|
"github.com/cosmos/gogoproto/proto"
|
||||||
protov2 "google.golang.org/protobuf/proto"
|
protov2 "google.golang.org/protobuf/proto"
|
||||||
|
|
@ -25,15 +25,15 @@ import (
|
||||||
"cosmossdk.io/store/snapshots"
|
"cosmossdk.io/store/snapshots"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp/oe"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp/oe"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
servertypes "github.com/cosmos/cosmos-sdk/server/types"
|
servertypes "git.cw.tr/mukan-network/mukan-sdk/server/types"
|
||||||
"github.com/cosmos/cosmos-sdk/telemetry"
|
"git.cw.tr/mukan-network/mukan-sdk/telemetry"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/types/mempool"
|
"git.cw.tr/mukan-network/mukan-sdk/types/mempool"
|
||||||
"github.com/cosmos/cosmos-sdk/types/msgservice"
|
"git.cw.tr/mukan-network/mukan-sdk/types/msgservice"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
@ -918,7 +918,7 @@ func (app *BaseApp) runTx(mode execMode, txBytes []byte, tx sdk.Tx) (gInfo sdk.G
|
||||||
|
|
||||||
// Branch context before AnteHandler call in case it aborts.
|
// Branch context before AnteHandler call in case it aborts.
|
||||||
// This is required for both CheckTx and DeliverTx.
|
// This is required for both CheckTx and DeliverTx.
|
||||||
// Ref: https://github.com/cosmos/cosmos-sdk/issues/2772
|
// Ref: https://git.cw.tr/mukan-network/mukan-sdk/issues/2772
|
||||||
//
|
//
|
||||||
// NOTE: Alternatively, we could require that AnteHandler ensures that
|
// NOTE: Alternatively, we could require that AnteHandler ensures that
|
||||||
// writes do not happen if aborted/failed. This may have some
|
// writes do not happen if aborted/failed. This may have some
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
dbm "github.com/cosmos/cosmos-db"
|
dbm "github.com/cosmos/cosmos-db"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
@ -24,17 +24,17 @@ import (
|
||||||
snapshottypes "cosmossdk.io/store/snapshots/types"
|
snapshottypes "cosmossdk.io/store/snapshots/types"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp"
|
||||||
baseapptestutil "github.com/cosmos/cosmos-sdk/baseapp/testutil"
|
baseapptestutil "git.cw.tr/mukan-network/mukan-sdk/baseapp/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil"
|
codectestutil "git.cw.tr/mukan-network/mukan-sdk/codec/testutil"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
|
authtx "git.cw.tr/mukan-network/mukan-sdk/x/auth/tx"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
@ -755,8 +755,8 @@ func TestBaseAppPostHandlerErrorHandling(t *testing.T) {
|
||||||
|
|
||||||
// Test and ensure that invalid block heights always cause errors.
|
// Test and ensure that invalid block heights always cause errors.
|
||||||
// See issues:
|
// See issues:
|
||||||
// - https://github.com/cosmos/cosmos-sdk/issues/11220
|
// - https://git.cw.tr/mukan-network/mukan-sdk/issues/11220
|
||||||
// - https://github.com/cosmos/cosmos-sdk/issues/7662
|
// - https://git.cw.tr/mukan-network/mukan-sdk/issues/7662
|
||||||
func TestABCI_CreateQueryContext(t *testing.T) {
|
func TestABCI_CreateQueryContext(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
app := getQueryBaseapp(t)
|
app := getQueryBaseapp(t)
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"math"
|
"math"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
cmtjson "github.com/cometbft/cometbft/libs/json"
|
cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
|
||||||
dbm "github.com/cosmos/cosmos-db"
|
dbm "github.com/cosmos/cosmos-db"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
|
@ -15,25 +15,25 @@ import (
|
||||||
sdkmath "cosmossdk.io/math"
|
sdkmath "cosmossdk.io/math"
|
||||||
store "cosmossdk.io/store/types"
|
store "cosmossdk.io/store/types"
|
||||||
|
|
||||||
baseapptestutil "github.com/cosmos/cosmos-sdk/baseapp/testutil"
|
baseapptestutil "git.cw.tr/mukan-network/mukan-sdk/baseapp/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
"git.cw.tr/mukan-network/mukan-sdk/client/tx"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
"github.com/cosmos/cosmos-sdk/runtime"
|
"git.cw.tr/mukan-network/mukan-sdk/runtime"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/configurator"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/configurator"
|
||||||
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
|
simtestutil "git.cw.tr/mukan-network/mukan-sdk/testutil/sims"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
|
txtypes "git.cw.tr/mukan-network/mukan-sdk/types/tx"
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
"git.cw.tr/mukan-network/mukan-sdk/types/tx/signing"
|
||||||
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
|
authkeeper "git.cw.tr/mukan-network/mukan-sdk/x/auth/keeper"
|
||||||
xauthsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
xauthsigning "git.cw.tr/mukan-network/mukan-sdk/x/auth/signing"
|
||||||
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
|
bankkeeper "git.cw.tr/mukan-network/mukan-sdk/x/bank/keeper"
|
||||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
banktypes "git.cw.tr/mukan-network/mukan-sdk/x/bank/types"
|
||||||
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
|
minttypes "git.cw.tr/mukan-network/mukan-sdk/x/mint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var blockMaxGas = uint64(simtestutil.DefaultConsensusParams.Block.MaxGas)
|
var blockMaxGas = uint64(simtestutil.DefaultConsensusParams.Block.MaxGas)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package baseapp
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/cometbft/cometbft/abci/types"
|
"git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
|
|
||||||
"cosmossdk.io/core/genesis"
|
"cosmossdk.io/core/genesis"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,17 +4,17 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/encoding"
|
"google.golang.org/grpc/encoding"
|
||||||
"google.golang.org/protobuf/runtime/protoiface"
|
"google.golang.org/protobuf/runtime/protoiface"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp/internal/protocompat"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp/internal/protocompat"
|
||||||
"github.com/cosmos/cosmos-sdk/client/grpc/reflection"
|
"git.cw.tr/mukan-network/mukan-sdk/client/grpc/reflection"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GRPCQueryRouter routes ABCI Query requests to GRPC handlers
|
// GRPCQueryRouter routes ABCI Query requests to GRPC handlers
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@ import (
|
||||||
gocontext "context"
|
gocontext "context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// QueryServiceTestHelper provides a helper for making grpc query service
|
// QueryServiceTestHelper provides a helper for making grpc query service
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@ import (
|
||||||
"cosmossdk.io/depinject"
|
"cosmossdk.io/depinject"
|
||||||
"cosmossdk.io/log"
|
"cosmossdk.io/log"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp"
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/runtime"
|
"git.cw.tr/mukan-network/mukan-sdk/runtime"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
testdata_pulsar "github.com/cosmos/cosmos-sdk/testutil/testdata/testpb"
|
testdata_pulsar "git.cw.tr/mukan-network/mukan-sdk/testutil/testdata/testpb"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGRPCQueryRouter(t *testing.T) {
|
func TestGRPCQueryRouter(t *testing.T) {
|
||||||
|
|
@ -128,7 +128,7 @@ func TestRegisterQueryServiceTwice(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests that we don't have data races per
|
// Tests that we don't have data races per
|
||||||
// https://github.com/cosmos/cosmos-sdk/issues/10324
|
// https://git.cw.tr/mukan-network/mukan-sdk/issues/10324
|
||||||
// but with the same client connection being used concurrently.
|
// but with the same client connection being used concurrently.
|
||||||
func TestQueryDataRaces_sameConnectionToSameHandler(t *testing.T) {
|
func TestQueryDataRaces_sameConnectionToSameHandler(t *testing.T) {
|
||||||
var mu sync.Mutex
|
var mu sync.Mutex
|
||||||
|
|
@ -149,7 +149,7 @@ func TestQueryDataRaces_sameConnectionToSameHandler(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests that we don't have data races per
|
// Tests that we don't have data races per
|
||||||
// https://github.com/cosmos/cosmos-sdk/issues/10324
|
// https://git.cw.tr/mukan-network/mukan-sdk/issues/10324
|
||||||
// but with unique client connections requesting from the same handler concurrently.
|
// but with unique client connections requesting from the same handler concurrently.
|
||||||
func TestQueryDataRaces_uniqueConnectionsToSameHandler(t *testing.T) {
|
func TestQueryDataRaces_uniqueConnectionsToSameHandler(t *testing.T) {
|
||||||
// Return a new handler for every single call.
|
// Return a new handler for every single call.
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ import (
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
|
grpctypes "git.cw.tr/mukan-network/mukan-sdk/types/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterGRPCServer registers gRPC services directly with the gRPC server.
|
// RegisterGRPCServer registers gRPC services directly with the gRPC server.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package baseapp
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
|
|
||||||
"cosmossdk.io/core/comet"
|
"cosmossdk.io/core/comet"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"google.golang.org/protobuf/reflect/protoregistry"
|
"google.golang.org/protobuf/reflect/protoregistry"
|
||||||
"google.golang.org/protobuf/runtime/protoiface"
|
"google.golang.org/protobuf/runtime/protoiface"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
@ -122,7 +122,7 @@ func makeGogoHybridHandler(prefMethod protoreflect.MethodDescriptor, cdc codec.B
|
||||||
return fmt.Errorf("invalid request type %T, method %s does not accept protov2 messages", inReq, prefMethod.FullName())
|
return fmt.Errorf("invalid request type %T, method %s does not accept protov2 messages", inReq, prefMethod.FullName())
|
||||||
}
|
}
|
||||||
resp, err := method.Handler(handler, ctx, func(msg any) error {
|
resp, err := method.Handler(handler, ctx, func(msg any) error {
|
||||||
// merge! ref: https://github.com/cosmos/cosmos-sdk/issues/18003
|
// merge! ref: https://git.cw.tr/mukan-network/mukan-sdk/issues/18003
|
||||||
// NOTE: using gogoproto.Merge will fail for some reason unknown to me, but
|
// NOTE: using gogoproto.Merge will fail for some reason unknown to me, but
|
||||||
// using proto.Merge with gogo messages seems to work fine.
|
// using proto.Merge with gogo messages seems to work fine.
|
||||||
proto.Merge(msg.(gogoproto.Message), inReq)
|
proto.Merge(msg.(gogoproto.Message), inReq)
|
||||||
|
|
@ -131,7 +131,7 @@ func makeGogoHybridHandler(prefMethod protoreflect.MethodDescriptor, cdc codec.B
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// merge resp, ref: https://github.com/cosmos/cosmos-sdk/issues/18003
|
// merge resp, ref: https://git.cw.tr/mukan-network/mukan-sdk/issues/18003
|
||||||
// NOTE: using gogoproto.Merge will fail for some reason unknown to me, but
|
// NOTE: using gogoproto.Merge will fail for some reason unknown to me, but
|
||||||
// using proto.Merge with gogo messages seems to work fine.
|
// using proto.Merge with gogo messages seems to work fine.
|
||||||
proto.Merge(outResp.(gogoproto.Message), resp.(gogoproto.Message))
|
proto.Merge(outResp.(gogoproto.Message), resp.(gogoproto.Message))
|
||||||
|
|
@ -166,7 +166,7 @@ func makeGogoHybridHandler(prefMethod protoreflect.MethodDescriptor, cdc codec.B
|
||||||
case gogoproto.Message:
|
case gogoproto.Message:
|
||||||
// we can just call the handler after making a copy of the message, for safety reasons.
|
// we can just call the handler after making a copy of the message, for safety reasons.
|
||||||
resp, err := method.Handler(handler, ctx, func(msg any) error {
|
resp, err := method.Handler(handler, ctx, func(msg any) error {
|
||||||
// ref: https://github.com/cosmos/cosmos-sdk/issues/18003
|
// ref: https://git.cw.tr/mukan-network/mukan-sdk/issues/18003
|
||||||
asGogoProto := msg.(gogoproto.Message)
|
asGogoProto := msg.(gogoproto.Message)
|
||||||
// NOTE: using gogoproto.Merge will fail for some reason unknown to me, but
|
// NOTE: using gogoproto.Merge will fail for some reason unknown to me, but
|
||||||
// using proto.Merge with gogo messages seems to work fine.
|
// using proto.Merge with gogo messages seems to work fine.
|
||||||
|
|
@ -176,7 +176,7 @@ func makeGogoHybridHandler(prefMethod protoreflect.MethodDescriptor, cdc codec.B
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// merge on the resp, ref: https://github.com/cosmos/cosmos-sdk/issues/18003
|
// merge on the resp, ref: https://git.cw.tr/mukan-network/mukan-sdk/issues/18003
|
||||||
// NOTE: using gogoproto.Merge will fail for some reason unknown to me, but
|
// NOTE: using gogoproto.Merge will fail for some reason unknown to me, but
|
||||||
// using proto.Merge with gogo messages seems to work fine.
|
// using proto.Merge with gogo messages seems to work fine.
|
||||||
proto.Merge(outResp.(gogoproto.Message), resp.(gogoproto.Message))
|
proto.Merge(outResp.(gogoproto.Message), resp.(gogoproto.Message))
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,15 @@ import (
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp/internal/protocompat"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp/internal/protocompat"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MessageRouter ADR 031 request type routing
|
// MessageRouter ADR 031 request type routing
|
||||||
// https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-031-msg-service.md
|
// https://git.cw.tr/mukan-network/mukan-sdk/blob/main/docs/architecture/adr-031-msg-service.md
|
||||||
type MessageRouter interface {
|
type MessageRouter interface {
|
||||||
Handler(msg sdk.Msg) MsgServiceHandler
|
Handler(msg sdk.Msg) MsgServiceHandler
|
||||||
HandlerByTypeURL(typeURL string) MsgServiceHandler
|
HandlerByTypeURL(typeURL string) MsgServiceHandler
|
||||||
|
|
|
||||||
|
|
@ -4,21 +4,21 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
dbm "github.com/cosmos/cosmos-db"
|
dbm "github.com/cosmos/cosmos-db"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"cosmossdk.io/depinject"
|
"cosmossdk.io/depinject"
|
||||||
"cosmossdk.io/log"
|
"cosmossdk.io/log"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
"git.cw.tr/mukan-network/mukan-sdk/client/tx"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/runtime"
|
"git.cw.tr/mukan-network/mukan-sdk/runtime"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
"git.cw.tr/mukan-network/mukan-sdk/types/tx/signing"
|
||||||
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
authsigning "git.cw.tr/mukan-network/mukan-sdk/x/auth/signing"
|
||||||
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
|
authtx "git.cw.tr/mukan-network/mukan-sdk/x/auth/tx"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRegisterMsgService(t *testing.T) {
|
func TestRegisterMsgService(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
|
|
||||||
"cosmossdk.io/log"
|
"cosmossdk.io/log"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"cosmossdk.io/log"
|
"cosmossdk.io/log"
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ import (
|
||||||
snapshottypes "cosmossdk.io/store/snapshots/types"
|
snapshottypes "cosmossdk.io/store/snapshots/types"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp/oe"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp/oe"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/mempool"
|
"git.cw.tr/mukan-network/mukan-sdk/types/mempool"
|
||||||
)
|
)
|
||||||
|
|
||||||
// File for storing in-package BaseApp optional functions,
|
// File for storing in-package BaseApp optional functions,
|
||||||
|
|
@ -320,7 +320,7 @@ func (app *BaseApp) SetTxEncoder(txEncoder sdk.TxEncoder) {
|
||||||
|
|
||||||
// SetQueryMultiStore set a alternative MultiStore implementation to support grpc query service.
|
// SetQueryMultiStore set a alternative MultiStore implementation to support grpc query service.
|
||||||
//
|
//
|
||||||
// Ref: https://github.com/cosmos/cosmos-sdk/issues/13317
|
// Ref: https://git.cw.tr/mukan-network/mukan-sdk/issues/13317
|
||||||
func (app *BaseApp) SetQueryMultiStore(ms storetypes.MultiStore) {
|
func (app *BaseApp) SetQueryMultiStore(ms storetypes.MultiStore) {
|
||||||
app.qms = ms
|
app.qms = ms
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package baseapp
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParamStore defines the interface the parameter store used by the BaseApp must
|
// ParamStore defines the interface the parameter store used by the BaseApp must
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,9 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Paramspace = "baseapp"
|
const Paramspace = "baseapp"
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RecoveryHandler handles recovery() object.
|
// RecoveryHandler handles recovery() object.
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Ensures that error checks are performed before sealing the app.
|
// Ensures that error checks are performed before sealing the app.
|
||||||
// Please see https://github.com/cosmos/cosmos-sdk/issues/18726
|
// Please see https://git.cw.tr/mukan-network/mukan-sdk/issues/18726
|
||||||
func TestNilCmsCheckBeforeSeal(t *testing.T) {
|
func TestNilCmsCheckBeforeSeal(t *testing.T) {
|
||||||
app := new(BaseApp)
|
app := new(BaseApp)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
pruningtypes "cosmossdk.io/store/pruning/types"
|
pruningtypes "cosmossdk.io/store/pruning/types"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type state struct {
|
type state struct {
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"cosmossdk.io/store/streaming"
|
"cosmossdk.io/store/streaming"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
servertypes "github.com/cosmos/cosmos-sdk/server/types"
|
servertypes "git.cw.tr/mukan-network/mukan-sdk/server/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
tmproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp"
|
||||||
baseapptestutil "github.com/cosmos/cosmos-sdk/baseapp/testutil"
|
baseapptestutil "git.cw.tr/mukan-network/mukan-sdk/baseapp/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ storetypes.ABCIListener = (*MockABCIListener)(nil)
|
var _ storetypes.ABCIListener = (*MockABCIListener)(nil)
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
package baseapp
|
package baseapp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SimCheck defines a CheckTx helper function that used in tests and simulations.
|
// SimCheck defines a CheckTx helper function that used in tests and simulations.
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@ package testutil
|
||||||
import (
|
import (
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/codec"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/types/msgservice"
|
"git.cw.tr/mukan-network/mukan-sdk/types/msgservice"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ package testutil
|
||||||
import (
|
import (
|
||||||
context "context"
|
context "context"
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
_ "github.com/cosmos/cosmos-sdk/codec/types"
|
_ "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
|
_ "git.cw.tr/mukan-network/mukan-sdk/types/msgservice"
|
||||||
_ "github.com/cosmos/gogoproto/gogoproto"
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
||||||
grpc1 "github.com/cosmos/gogoproto/grpc"
|
grpc1 "github.com/cosmos/gogoproto/grpc"
|
||||||
proto "github.com/cosmos/gogoproto/proto"
|
proto "github.com/cosmos/gogoproto/proto"
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ import (
|
||||||
context "context"
|
context "context"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
crypto "github.com/cometbft/cometbft/proto/tendermint/crypto"
|
crypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
|
||||||
types "github.com/cosmos/cosmos-sdk/types"
|
types "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
gomock "go.uber.org/mock/gomock"
|
gomock "go.uber.org/mock/gomock"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
cmttypes "github.com/cometbft/cometbft/types"
|
cmttypes "git.cw.tr/mukan-network/mukan-consensus/types"
|
||||||
dbm "github.com/cosmos/cosmos-db"
|
dbm "github.com/cosmos/cosmos-db"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
|
@ -27,30 +27,30 @@ import (
|
||||||
"cosmossdk.io/math"
|
"cosmossdk.io/math"
|
||||||
storetypes "cosmossdk.io/store/types"
|
storetypes "cosmossdk.io/store/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp"
|
||||||
baseapptestutil "github.com/cosmos/cosmos-sdk/baseapp/testutil"
|
baseapptestutil "git.cw.tr/mukan-network/mukan-sdk/baseapp/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
addresscodec "github.com/cosmos/cosmos-sdk/codec/address"
|
addresscodec "git.cw.tr/mukan-network/mukan-sdk/codec/address"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/secp256k1"
|
||||||
"github.com/cosmos/cosmos-sdk/runtime"
|
"git.cw.tr/mukan-network/mukan-sdk/runtime"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/mock"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/mock"
|
||||||
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
|
simtestutil "git.cw.tr/mukan-network/mukan-sdk/testutil/sims"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/types/mempool"
|
"git.cw.tr/mukan-network/mukan-sdk/types/mempool"
|
||||||
signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing"
|
signingtypes "git.cw.tr/mukan-network/mukan-sdk/types/tx/signing"
|
||||||
_ "github.com/cosmos/cosmos-sdk/x/auth"
|
_ "git.cw.tr/mukan-network/mukan-sdk/x/auth"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/signing"
|
"git.cw.tr/mukan-network/mukan-sdk/x/auth/signing"
|
||||||
_ "github.com/cosmos/cosmos-sdk/x/auth/tx/config"
|
_ "git.cw.tr/mukan-network/mukan-sdk/x/auth/tx/config"
|
||||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
authtypes "git.cw.tr/mukan-network/mukan-sdk/x/auth/types"
|
||||||
_ "github.com/cosmos/cosmos-sdk/x/bank"
|
_ "git.cw.tr/mukan-network/mukan-sdk/x/bank"
|
||||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
banktypes "git.cw.tr/mukan-network/mukan-sdk/x/bank/types"
|
||||||
_ "github.com/cosmos/cosmos-sdk/x/consensus"
|
_ "git.cw.tr/mukan-network/mukan-sdk/x/consensus"
|
||||||
_ "github.com/cosmos/cosmos-sdk/x/mint"
|
_ "git.cw.tr/mukan-network/mukan-sdk/x/mint"
|
||||||
_ "github.com/cosmos/cosmos-sdk/x/params"
|
_ "git.cw.tr/mukan-network/mukan-sdk/x/params"
|
||||||
_ "github.com/cosmos/cosmos-sdk/x/staking"
|
_ "git.cw.tr/mukan-network/mukan-sdk/x/staking"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ParamStoreKey = []byte("paramstore")
|
var ParamStoreKey = []byte("paramstore")
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package client
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Account defines a read-only version of the auth module's AccountI.
|
// Account defines a read-only version of the auth module's AccountI.
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,15 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/cometbft/cometbft/mempool"
|
"git.cw.tr/mukan-network/mukan-consensus/mempool"
|
||||||
cmttypes "github.com/cometbft/cometbft/types"
|
cmttypes "git.cw.tr/mukan-network/mukan-consensus/types"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx"
|
"git.cw.tr/mukan-network/mukan-sdk/types/tx"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BroadcastTx broadcasts a transactions either synchronously or asynchronously
|
// BroadcastTx broadcasts a transactions either synchronously or asynchronously
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,15 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/cometbft/cometbft/crypto/tmhash"
|
"git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
|
||||||
"github.com/cometbft/cometbft/mempool"
|
"git.cw.tr/mukan-network/mukan-consensus/mempool"
|
||||||
"github.com/cometbft/cometbft/rpc/client/mock"
|
"git.cw.tr/mukan-network/mukan-consensus/rpc/client/mock"
|
||||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
coretypes "git.cw.tr/mukan-network/mukan-consensus/rpc/core/types"
|
||||||
cmttypes "github.com/cometbft/cometbft/types"
|
cmttypes "git.cw.tr/mukan-network/mukan-consensus/types"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MockClient struct {
|
type MockClient struct {
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ import (
|
||||||
|
|
||||||
signingv1beta1 "cosmossdk.io/api/cosmos/tx/signing/v1beta1"
|
signingv1beta1 "cosmossdk.io/api/cosmos/tx/signing/v1beta1"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ClientContextKey defines the context key used to retrieve a client.Context from
|
// ClientContextKey defines the context key used to retrieve a client.Context from
|
||||||
|
|
@ -292,7 +292,7 @@ func readTxCommandFlags(clientCtx Context, flagSet *pflag.FlagSet) (Context, err
|
||||||
|
|
||||||
// If the `from` signer account is a ledger key, we need to use
|
// If the `from` signer account is a ledger key, we need to use
|
||||||
// SIGN_MODE_AMINO_JSON, because ledger doesn't support proto yet.
|
// SIGN_MODE_AMINO_JSON, because ledger doesn't support proto yet.
|
||||||
// ref: https://github.com/cosmos/cosmos-sdk/issues/8109
|
// ref: https://git.cw.tr/mukan-network/mukan-sdk/issues/8109
|
||||||
if keyType == keyring.TypeLedger &&
|
if keyType == keyring.TypeLedger &&
|
||||||
clientCtx.SignModeStr != flags.SignModeLegacyAminoJSON &&
|
clientCtx.SignModeStr != flags.SignModeLegacyAminoJSON &&
|
||||||
clientCtx.SignModeStr != flags.SignModeTextual &&
|
clientCtx.SignModeStr != flags.SignModeTextual &&
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestValidateCmd(t *testing.T) {
|
func TestValidateCmd(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package client
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
rpcclient "github.com/cometbft/cometbft/rpc/client"
|
rpcclient "git.cw.tr/mukan-network/mukan-consensus/rpc/client"
|
||||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
coretypes "git.cw.tr/mukan-network/mukan-consensus/rpc/core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CometRPC defines the interface of a CometBFT RPC client needed for
|
// CometRPC defines the interface of a CometBFT RPC client needed for
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DefaultConfig returns default config for the client.toml
|
// DefaultConfig returns default config for the client.toml
|
||||||
|
|
@ -107,7 +107,7 @@ func ReadFromClientConfig(ctx client.Context) (client.Context, error) {
|
||||||
|
|
||||||
ctx = ctx.WithKeyring(keyring)
|
ctx = ctx.WithKeyring(keyring)
|
||||||
|
|
||||||
// https://github.com/cosmos/cosmos-sdk/issues/8986
|
// https://git.cw.tr/mukan-network/mukan-sdk/issues/8986
|
||||||
client, err := client.NewClientFromNode(conf.Node)
|
client, err := client.NewClientFromNode(conf.Node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctx, fmt.Errorf("couldn't get client from nodeURI: %w", err)
|
return ctx, fmt.Errorf("couldn't get client from nodeURI: %w", err)
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/config"
|
"git.cw.tr/mukan-network/mukan-sdk/client/config"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
clitestutil "git.cw.tr/mukan-network/mukan-sdk/testutil/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@ import (
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"sigs.k8s.io/yaml"
|
"sigs.k8s.io/yaml"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PreprocessTxFn defines a hook by which chains can preprocess transactions before broadcasting
|
// PreprocessTxFn defines a hook by which chains can preprocess transactions before broadcasting
|
||||||
|
|
@ -94,7 +94,7 @@ func (ctx Context) WithKeyringOptions(opts ...keyring.Option) Context {
|
||||||
func (ctx Context) WithInput(r io.Reader) Context {
|
func (ctx Context) WithInput(r io.Reader) Context {
|
||||||
// convert to a bufio.Reader to have a shared buffer between the keyring and the
|
// convert to a bufio.Reader to have a shared buffer between the keyring and the
|
||||||
// the Commands, ensuring a read from one advance the read pointer for the other.
|
// the Commands, ensuring a read from one advance the read pointer for the other.
|
||||||
// see https://github.com/cosmos/cosmos-sdk/issues/9566.
|
// see https://git.cw.tr/mukan-network/mukan-sdk/issues/9566.
|
||||||
ctx.Input = bufio.NewReader(r)
|
ctx.Input = bufio.NewReader(r)
|
||||||
return ctx
|
return ctx
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,14 @@ import (
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
"github.com/cosmos/cosmos-sdk/types/module/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
|
|
|
||||||
|
|
@ -11,14 +11,14 @@ import (
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/ed25519"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/secp256k1"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" //nolint:staticcheck // retain for debug purposes
|
"git.cw.tr/mukan-network/mukan-sdk/types/bech32/legacybech32" //nolint:staticcheck // retain for debug purposes
|
||||||
"github.com/cosmos/cosmos-sdk/types/errors"
|
"git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/version"
|
"git.cw.tr/mukan-network/mukan-sdk/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParseGasSetting(t *testing.T) {
|
func TestParseGasSetting(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/metadata"
|
"google.golang.org/grpc/metadata"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/bank/types"
|
"git.cw.tr/mukan-network/mukan-sdk/x/bank/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fuzzSuite struct {
|
type fuzzSuite struct {
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@ package cmtservice
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
coretypes "git.cw.tr/mukan-network/mukan-consensus/rpc/core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getBlockHeight(ctx context.Context, clientCtx client.Context) (int64, error) {
|
func getBlockHeight(ctx context.Context, clientCtx client.Context) (int64, error) {
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@ package cmtservice
|
||||||
import (
|
import (
|
||||||
context "context"
|
context "context"
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
p2p "github.com/cometbft/cometbft/proto/tendermint/p2p"
|
p2p "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/p2p"
|
||||||
types "github.com/cometbft/cometbft/proto/tendermint/types"
|
types "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
_ "github.com/cosmos/cosmos-proto"
|
_ "github.com/cosmos/cosmos-proto"
|
||||||
query "github.com/cosmos/cosmos-sdk/types/query"
|
query "git.cw.tr/mukan-network/mukan-sdk/types/query"
|
||||||
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
|
_ "git.cw.tr/mukan-network/mukan-sdk/types/tx/amino"
|
||||||
_ "github.com/cosmos/gogoproto/gogoproto"
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
||||||
grpc1 "github.com/cosmos/gogoproto/grpc"
|
grpc1 "github.com/cosmos/gogoproto/grpc"
|
||||||
proto "github.com/cosmos/gogoproto/proto"
|
proto "github.com/cosmos/gogoproto/proto"
|
||||||
|
|
|
||||||
|
|
@ -3,20 +3,20 @@ package cmtservice
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
cryptocodec "git.cw.tr/mukan-network/mukan-sdk/crypto/codec"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
qtypes "github.com/cosmos/cosmos-sdk/types/query"
|
qtypes "git.cw.tr/mukan-network/mukan-sdk/types/query"
|
||||||
"github.com/cosmos/cosmos-sdk/version"
|
"git.cw.tr/mukan-network/mukan-sdk/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ package cmtservice
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
coretypes "git.cw.tr/mukan-network/mukan-consensus/rpc/core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetNodeStatus returns the status of the node.
|
// GetNodeStatus returns the status of the node.
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"git.cw.tr/mukan-network/mukan-sdk/server"
|
||||||
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
clitestutil "git.cw.tr/mukan-network/mukan-sdk/testutil/cli"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/network"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/network"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStatusCommand(t *testing.T) {
|
func TestStatusCommand(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package cmtservice
|
package cmtservice
|
||||||
|
|
||||||
import (
|
import (
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ToABCIRequestQuery converts a gRPC ABCIQueryRequest type to an ABCI
|
// ToABCIRequestQuery converts a gRPC ABCIQueryRequest type to an ABCI
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ package cmtservice
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
types "github.com/cometbft/cometbft/proto/tendermint/types"
|
types "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
version "github.com/cometbft/cometbft/proto/tendermint/version"
|
version "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/version"
|
||||||
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
|
_ "git.cw.tr/mukan-network/mukan-sdk/types/tx/amino"
|
||||||
_ "github.com/cosmos/gogoproto/gogoproto"
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
||||||
proto "github.com/cosmos/gogoproto/proto"
|
proto "github.com/cosmos/gogoproto/proto"
|
||||||
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
|
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
package cmtservice
|
package cmtservice
|
||||||
|
|
||||||
import (
|
import (
|
||||||
cmtprototypes "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmtprototypes "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// convertHeader converts CometBFT header to sdk header
|
// convertHeader converts CometBFT header to sdk header
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ package cmtservice
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
coretypes "git.cw.tr/mukan-network/mukan-consensus/rpc/core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getValidators(ctx context.Context, clientCtx client.Context, height *int64, page, limit int) (*coretypes.ResultValidators, error) {
|
func getValidators(ctx context.Context, clientCtx client.Context, height *int64, page, limit int) (*coretypes.ResultValidators, error) {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import (
|
||||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/server/config"
|
"git.cw.tr/mukan-network/mukan-sdk/server/config"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterNodeService registers the node gRPC service on the provided gRPC router.
|
// RegisterNodeService registers the node gRPC service on the provided gRPC router.
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/server/config"
|
"git.cw.tr/mukan-network/mukan-sdk/server/config"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServiceServer_Config(t *testing.T) {
|
func TestServiceServer_Config(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type reflectionServiceServer struct {
|
type reflectionServiceServer struct {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/encoding"
|
"google.golang.org/grpc/encoding"
|
||||||
|
|
@ -14,12 +14,12 @@ import (
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
"git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/server/config"
|
"git.cw.tr/mukan-network/mukan-sdk/server/config"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
|
grpctypes "git.cw.tr/mukan-network/mukan-sdk/types/grpc"
|
||||||
"github.com/cosmos/cosmos-sdk/types/tx"
|
"git.cw.tr/mukan-network/mukan-sdk/types/tx"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GRPCConn provides a method to get the appropriate gRPC connection based on block height.
|
// GRPCConn provides a method to get the appropriate gRPC connection based on block height.
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
cmtjson "github.com/cometbft/cometbft/libs/json"
|
cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
|
||||||
dbm "github.com/cosmos/cosmos-db"
|
dbm "github.com/cosmos/cosmos-db"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
@ -17,21 +17,21 @@ import (
|
||||||
"cosmossdk.io/log"
|
"cosmossdk.io/log"
|
||||||
"cosmossdk.io/math"
|
"cosmossdk.io/math"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"git.cw.tr/mukan-network/mukan-sdk/baseapp"
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/secp256k1"
|
||||||
"github.com/cosmos/cosmos-sdk/runtime"
|
"git.cw.tr/mukan-network/mukan-sdk/runtime"
|
||||||
"github.com/cosmos/cosmos-sdk/server/config"
|
"git.cw.tr/mukan-network/mukan-sdk/server/config"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/sims"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/sims"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
|
grpctypes "git.cw.tr/mukan-network/mukan-sdk/types/grpc"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/x/auth/testutil"
|
||||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
authtypes "git.cw.tr/mukan-network/mukan-sdk/x/auth/types"
|
||||||
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
|
bankkeeper "git.cw.tr/mukan-network/mukan-sdk/x/bank/keeper"
|
||||||
"github.com/cosmos/cosmos-sdk/x/bank/types"
|
"git.cw.tr/mukan-network/mukan-sdk/x/bank/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IntegrationTestSuite struct {
|
type IntegrationTestSuite struct {
|
||||||
|
|
|
||||||
|
|
@ -16,15 +16,15 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/client/input"
|
"git.cw.tr/mukan-network/mukan-sdk/client/input"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/multisig"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,13 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_runAddCmdLedgerWithCustomCoinType(t *testing.T) {
|
func Test_runAddCmdLedgerWithCustomCoinType(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,14 @@ import (
|
||||||
"github.com/cosmos/go-bip39"
|
"github.com/cosmos/go-bip39"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_runAddCmdBasic(t *testing.T) {
|
func Test_runAddCmdBasic(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/input"
|
"git.cw.tr/mukan-network/mukan-sdk/client/input"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_runDeleteCmd(t *testing.T) {
|
func Test_runDeleteCmd(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,10 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/input"
|
"git.cw.tr/mukan-network/mukan-sdk/client/input"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/types"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_runExportCmd(t *testing.T) {
|
func Test_runExportCmd(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,11 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/client/input"
|
"git.cw.tr/mukan-network/mukan-sdk/client/input"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/version"
|
"git.cw.tr/mukan-network/mukan-sdk/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ImportKeyCommand imports private keys from a keyfile.
|
// ImportKeyCommand imports private keys from a keyfile.
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_runImportCmd(t *testing.T) {
|
func Test_runImportCmd(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package keys
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
)
|
)
|
||||||
|
|
||||||
const flagListNames = "list-names"
|
const flagListNames = "list-names"
|
||||||
|
|
|
||||||
|
|
@ -8,15 +8,15 @@ import (
|
||||||
|
|
||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
clitestutil "git.cw.tr/mukan-network/mukan-sdk/testutil/cli"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func cleanupKeys(t *testing.T, kb keyring.Keyring, keys ...string) func() {
|
func cleanupKeys(t *testing.T, kb keyring.Keyring, keys ...string) func() {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package keys
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MigrateCommand migrates key information from legacy keybase to OS secret store.
|
// MigrateCommand migrates key information from legacy keybase to OS secret store.
|
||||||
|
|
@ -17,7 +17,7 @@ If this is the case, the key is already migrated. Therefore, we skip it and cont
|
||||||
Otherwise, we try to deserialize it using Amino into LegacyInfo. If this attempt is successful, we serialize
|
Otherwise, we try to deserialize it using Amino into LegacyInfo. If this attempt is successful, we serialize
|
||||||
LegacyInfo to Protobuf serialization format and overwrite the keyring entry. If any error occurred, it will be
|
LegacyInfo to Protobuf serialization format and overwrite the keyring entry. If any error occurred, it will be
|
||||||
outputted in CLI and migration will be continued until all keys in the keyring DB are exhausted.
|
outputted in CLI and migration will be continued until all keys in the keyring DB are exhausted.
|
||||||
See https://github.com/cosmos/cosmos-sdk/pull/9695 for more details.
|
See https://git.cw.tr/mukan-network/mukan-sdk/pull/9695 for more details.
|
||||||
`,
|
`,
|
||||||
Args: cobra.NoArgs,
|
Args: cobra.NoArgs,
|
||||||
RunE: runMigrateCmd,
|
RunE: runMigrateCmd,
|
||||||
|
|
|
||||||
|
|
@ -9,15 +9,15 @@ import (
|
||||||
design99keyring "github.com/99designs/keyring"
|
design99keyring "github.com/99designs/keyring"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/multisig"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/secp256k1"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
type setter interface {
|
type setter interface {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"github.com/cosmos/go-bip39"
|
"github.com/cosmos/go-bip39"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/input"
|
"git.cw.tr/mukan-network/mukan-sdk/client/input"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_RunMnemonicCmdNormal(t *testing.T) {
|
func Test_RunMnemonicCmdNormal(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
package keys
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Use protobuf interface marshaler rather then generic JSON
|
// Use protobuf interface marshaler rather then generic JSON
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,14 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
||||||
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
cryptocodec "git.cw.tr/mukan-network/mukan-sdk/crypto/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
|
kmultisig "git.cw.tr/mukan-network/mukan-sdk/crypto/keys/multisig"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/secp256k1"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/types"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func generatePubKeys(n int) []types.PubKey {
|
func generatePubKeys(n int) []types.PubKey {
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/yaml"
|
"sigs.k8s.io/yaml"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/bech32"
|
"git.cw.tr/mukan-network/mukan-sdk/types/bech32"
|
||||||
)
|
)
|
||||||
|
|
||||||
func bech32Prefixes(config *sdk.Config) []string {
|
func bech32Prefixes(config *sdk.Config) []string {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParseKey(t *testing.T) {
|
func TestParseKey(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/input"
|
"git.cw.tr/mukan-network/mukan-sdk/client/input"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RenameKeyCommand renames a key from the key store.
|
// RenameKeyCommand renames a key from the key store.
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,14 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_runRenameCmd(t *testing.T) {
|
func Test_runRenameCmd(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package keys
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Commands registers a sub-tree of commands to interact with
|
// Commands registers a sub-tree of commands to interact with
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,14 @@ import (
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/multisig"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/ledger"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/ledger"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerr "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerr "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -7,17 +7,17 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/hd"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/multisig"
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
|
"git.cw.tr/mukan-network/mukan-sdk/crypto/keys/secp256k1"
|
||||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
cryptotypes "git.cw.tr/mukan-network/mukan-sdk/crypto/types"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
|
moduletestutil "git.cw.tr/mukan-network/mukan-sdk/types/module/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_multiSigKey_Properties(t *testing.T) {
|
func Test_multiSigKey_Properties(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/keys"
|
"git.cw.tr/mukan-network/mukan-sdk/client/keys"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestConstructors(t *testing.T) {
|
func TestConstructors(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
|
|
||||||
"sigs.k8s.io/yaml"
|
"sigs.k8s.io/yaml"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
cryptokeyring "github.com/cosmos/cosmos-sdk/crypto/keyring"
|
cryptokeyring "git.cw.tr/mukan-network/mukan-sdk/crypto/keyring"
|
||||||
)
|
)
|
||||||
|
|
||||||
type bechKeyOutFn func(k *cryptokeyring.Record) (KeyOutput, error)
|
type bechKeyOutFn func(k *cryptokeyring.Record) (KeyOutput, error)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatePromptNotEmpty validates that the input is not empty.
|
// ValidatePromptNotEmpty validates that the input is not empty.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestValidatePromptNotEmpty(t *testing.T) {
|
func TestValidatePromptNotEmpty(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ import (
|
||||||
pruningtypes "cosmossdk.io/store/pruning/types"
|
pruningtypes "cosmossdk.io/store/pruning/types"
|
||||||
"cosmossdk.io/store/rootmulti"
|
"cosmossdk.io/store/rootmulti"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"git.cw.tr/mukan-network/mukan-sdk/server"
|
||||||
servertypes "github.com/cosmos/cosmos-sdk/server/types"
|
servertypes "git.cw.tr/mukan-network/mukan-sdk/server/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const FlagAppDBBackend = "app-db-backend"
|
const FlagAppDBBackend = "app-db-backend"
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,15 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/cockroachdb/errors"
|
"github.com/cockroachdb/errors"
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
rpcclient "github.com/cometbft/cometbft/rpc/client"
|
rpcclient "git.cw.tr/mukan-network/mukan-consensus/rpc/client"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
"cosmossdk.io/store/rootmulti"
|
"cosmossdk.io/store/rootmulti"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetNode returns an RPC client. If the context's client is not defined, an
|
// GetNode returns an RPC client. If the context's client is not defined, an
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
cmt "github.com/cometbft/cometbft/proto/tendermint/types"
|
cmt "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
|
||||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
coretypes "git.cw.tr/mukan-network/mukan-consensus/rpc/core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetChainHeight returns the current blockchain height.
|
// GetChainHeight returns the current blockchain height.
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,17 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/metadata"
|
"google.golang.org/grpc/metadata"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/network"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/network"
|
||||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
"git.cw.tr/mukan-network/mukan-sdk/testutil/testdata"
|
||||||
"github.com/cosmos/cosmos-sdk/types/address"
|
"git.cw.tr/mukan-network/mukan-sdk/types/address"
|
||||||
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
|
grpctypes "git.cw.tr/mukan-network/mukan-sdk/types/grpc"
|
||||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
banktypes "git.cw.tr/mukan-network/mukan-sdk/x/bank/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IntegrationTestSuite struct {
|
type IntegrationTestSuite struct {
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
|
rpchttp "git.cw.tr/mukan-network/mukan-consensus/rpc/client/http"
|
||||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
coretypes "git.cw.tr/mukan-network/mukan-consensus/rpc/core/types"
|
||||||
tmtypes "github.com/cometbft/cometbft/types"
|
tmtypes "git.cw.tr/mukan-network/mukan-consensus/types"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "git.cw.tr/mukan-network/mukan-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/errors"
|
"git.cw.tr/mukan-network/mukan-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/version"
|
"git.cw.tr/mukan-network/mukan-sdk/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
const TimeoutFlag = "timeout"
|
const TimeoutFlag = "timeout"
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"git.cw.tr/mukan-network/mukan-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/client/grpc/cmtservice"
|
"git.cw.tr/mukan-network/mukan-sdk/client/grpc/cmtservice"
|
||||||
"github.com/cosmos/cosmos-sdk/types/query"
|
"git.cw.tr/mukan-network/mukan-sdk/types/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatorCommand returns the validator set for a given height
|
// ValidatorCommand returns the validator set for a given height
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package snapshot
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
servertypes "github.com/cosmos/cosmos-sdk/server/types"
|
servertypes "git.cw.tr/mukan-network/mukan-sdk/server/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Cmd returns the snapshots group command
|
// Cmd returns the snapshots group command
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"git.cw.tr/mukan-network/mukan-sdk/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func DeleteSnapshotCmd() *cobra.Command {
|
func DeleteSnapshotCmd() *cobra.Command {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"git.cw.tr/mukan-network/mukan-sdk/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DumpArchiveCmd returns a command to dump the snapshot as portable archive format
|
// DumpArchiveCmd returns a command to dump the snapshot as portable archive format
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
|
|
||||||
"cosmossdk.io/log"
|
"cosmossdk.io/log"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"git.cw.tr/mukan-network/mukan-sdk/server"
|
||||||
servertypes "github.com/cosmos/cosmos-sdk/server/types"
|
servertypes "git.cw.tr/mukan-network/mukan-sdk/server/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ExportSnapshotCmd returns a command to take a snapshot of the application state
|
// ExportSnapshotCmd returns a command to take a snapshot of the application state
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"git.cw.tr/mukan-network/mukan-sdk/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ListSnapshotsCmd returns the command to list local snapshots
|
// ListSnapshotsCmd returns the command to list local snapshots
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import (
|
||||||
|
|
||||||
snapshottypes "cosmossdk.io/store/snapshots/types"
|
snapshottypes "cosmossdk.io/store/snapshots/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"git.cw.tr/mukan-network/mukan-sdk/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
const SnapshotFileName = "_snapshot"
|
const SnapshotFileName = "_snapshot"
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue