Merge pull request #6085: Move codec/std to std
This commit is contained in:
parent
9b51908597
commit
cc90f2e002
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/codec/std"
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/bank"
|
"github.com/cosmos/cosmos-sdk/x/bank"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
/*
|
|
||||||
Package std defines all the common and standard Cosmos SDK Protocol Buffer
|
|
||||||
message definitions and type implementations. The std package defines and exposes
|
|
||||||
a single concrete Codec type that implements all the necessary module codec
|
|
||||||
interfaces along with all the types necessary to use those modules.
|
|
||||||
|
|
||||||
Applications can choose to either use the codec directly or even extend it without
|
|
||||||
having the need to redefine all the message and type implementations.
|
|
||||||
*/
|
|
||||||
package std
|
|
|
@ -11,7 +11,6 @@ import (
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/std"
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/module"
|
"github.com/cosmos/cosmos-sdk/types/module"
|
||||||
|
@ -141,8 +140,8 @@ func NewSimApp(
|
||||||
) *SimApp {
|
) *SimApp {
|
||||||
|
|
||||||
// TODO: Remove cdc in favor of appCodec once all modules are migrated.
|
// TODO: Remove cdc in favor of appCodec once all modules are migrated.
|
||||||
cdc := codecstd.MakeCodec(ModuleBasics)
|
cdc := std.MakeCodec(ModuleBasics)
|
||||||
appCodec := codecstd.NewAppCodec(cdc)
|
appCodec := std.NewAppCodec(cdc)
|
||||||
|
|
||||||
bApp := baseapp.NewBaseApp(appName, logger, db, auth.DefaultTxDecoder(cdc), baseAppOptions...)
|
bApp := baseapp.NewBaseApp(appName, logger, db, auth.DefaultTxDecoder(cdc), baseAppOptions...)
|
||||||
bApp.SetCommitMultiStoreTracer(traceStore)
|
bApp.SetCommitMultiStoreTracer(traceStore)
|
||||||
|
|
|
@ -5,6 +5,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/tendermint/go-amino"
|
"github.com/tendermint/go-amino"
|
||||||
|
@ -15,7 +17,6 @@ import (
|
||||||
"github.com/cosmos/cosmos-sdk/client/keys"
|
"github.com/cosmos/cosmos-sdk/client/keys"
|
||||||
"github.com/cosmos/cosmos-sdk/client/lcd"
|
"github.com/cosmos/cosmos-sdk/client/lcd"
|
||||||
"github.com/cosmos/cosmos-sdk/client/rpc"
|
"github.com/cosmos/cosmos-sdk/client/rpc"
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
authclient "github.com/cosmos/cosmos-sdk/x/auth/client"
|
authclient "github.com/cosmos/cosmos-sdk/x/auth/client"
|
||||||
|
@ -25,8 +26,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
cdc = codecstd.MakeCodec(simapp.ModuleBasics)
|
cdc = std.MakeCodec(simapp.ModuleBasics)
|
||||||
appCodec = codecstd.NewAppCodec(cdc)
|
appCodec = std.NewAppCodec(cdc)
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -5,6 +5,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
|
@ -12,7 +14,6 @@ import (
|
||||||
"github.com/tendermint/tendermint/libs/cli"
|
"github.com/tendermint/tendermint/libs/cli"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"github.com/cosmos/cosmos-sdk/server"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
@ -32,7 +33,7 @@ const (
|
||||||
|
|
||||||
// AddGenesisAccountCmd returns add-genesis-account cobra Command.
|
// AddGenesisAccountCmd returns add-genesis-account cobra Command.
|
||||||
func AddGenesisAccountCmd(
|
func AddGenesisAccountCmd(
|
||||||
ctx *server.Context, depCdc *amino.Codec, cdc *codecstd.Codec, defaultNodeHome, defaultClientHome string,
|
ctx *server.Context, depCdc *amino.Codec, cdc *std.Codec, defaultNodeHome, defaultClientHome string,
|
||||||
) *cobra.Command {
|
) *cobra.Command {
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
|
|
|
@ -4,6 +4,8 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
|
@ -15,7 +17,6 @@ import (
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
"github.com/cosmos/cosmos-sdk/client/debug"
|
"github.com/cosmos/cosmos-sdk/client/debug"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/server"
|
"github.com/cosmos/cosmos-sdk/server"
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
"github.com/cosmos/cosmos-sdk/store"
|
"github.com/cosmos/cosmos-sdk/store"
|
||||||
|
@ -30,8 +31,8 @@ const flagInvCheckPeriod = "inv-check-period"
|
||||||
var invCheckPeriod uint
|
var invCheckPeriod uint
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cdc := codecstd.MakeCodec(simapp.ModuleBasics)
|
cdc := std.MakeCodec(simapp.ModuleBasics)
|
||||||
appCodec := codecstd.NewAppCodec(cdc)
|
appCodec := std.NewAppCodec(cdc)
|
||||||
|
|
||||||
config := sdk.GetConfig()
|
config := sdk.GetConfig()
|
||||||
config.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub)
|
config.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package simapp
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The genesis state of the blockchain is represented here as a map of raw json
|
// The genesis state of the blockchain is represented here as a map of raw json
|
||||||
|
@ -17,6 +17,6 @@ type GenesisState map[string]json.RawMessage
|
||||||
|
|
||||||
// NewDefaultGenesisState generates the default state for the application.
|
// NewDefaultGenesisState generates the default state for the application.
|
||||||
func NewDefaultGenesisState() GenesisState {
|
func NewDefaultGenesisState() GenesisState {
|
||||||
cdc := codecstd.MakeCodec(ModuleBasics)
|
cdc := std.MakeCodec(ModuleBasics)
|
||||||
return ModuleBasics.DefaultGenesis(cdc)
|
return ModuleBasics.DefaultGenesis(cdc)
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,16 +4,17 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth"
|
"github.com/cosmos/cosmos-sdk/x/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetSimulationLog(t *testing.T) {
|
func TestGetSimulationLog(t *testing.T) {
|
||||||
cdc := codecstd.MakeCodec(ModuleBasics)
|
cdc := std.MakeCodec(ModuleBasics)
|
||||||
|
|
||||||
decoders := make(sdk.StoreDecoderRegistry)
|
decoders := make(sdk.StoreDecoderRegistry)
|
||||||
decoders[auth.StoreKey] = func(kvAs, kvBs tmkv.Pair) string { return "10" }
|
decoders[auth.StoreKey] = func(kvAs, kvBs tmkv.Pair) string { return "10" }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||||
// source: codec/std/codec.proto
|
// source: std/codec.proto
|
||||||
|
|
||||||
package std
|
package std
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ func (m *Account) Reset() { *m = Account{} }
|
||||||
func (m *Account) String() string { return proto.CompactTextString(m) }
|
func (m *Account) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Account) ProtoMessage() {}
|
func (*Account) ProtoMessage() {}
|
||||||
func (*Account) Descriptor() ([]byte, []int) {
|
func (*Account) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{0}
|
return fileDescriptor_ff851c3a98ef46f7, []int{0}
|
||||||
}
|
}
|
||||||
func (m *Account) XXX_Unmarshal(b []byte) error {
|
func (m *Account) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -181,7 +181,7 @@ func (m *Supply) Reset() { *m = Supply{} }
|
||||||
func (m *Supply) String() string { return proto.CompactTextString(m) }
|
func (m *Supply) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Supply) ProtoMessage() {}
|
func (*Supply) ProtoMessage() {}
|
||||||
func (*Supply) Descriptor() ([]byte, []int) {
|
func (*Supply) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{1}
|
return fileDescriptor_ff851c3a98ef46f7, []int{1}
|
||||||
}
|
}
|
||||||
func (m *Supply) XXX_Unmarshal(b []byte) error {
|
func (m *Supply) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -258,7 +258,7 @@ func (m *Evidence) Reset() { *m = Evidence{} }
|
||||||
func (m *Evidence) String() string { return proto.CompactTextString(m) }
|
func (m *Evidence) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Evidence) ProtoMessage() {}
|
func (*Evidence) ProtoMessage() {}
|
||||||
func (*Evidence) Descriptor() ([]byte, []int) {
|
func (*Evidence) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{2}
|
return fileDescriptor_ff851c3a98ef46f7, []int{2}
|
||||||
}
|
}
|
||||||
func (m *Evidence) XXX_Unmarshal(b []byte) error {
|
func (m *Evidence) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -332,7 +332,7 @@ func (m *MsgSubmitEvidence) Reset() { *m = MsgSubmitEvidence{} }
|
||||||
func (m *MsgSubmitEvidence) String() string { return proto.CompactTextString(m) }
|
func (m *MsgSubmitEvidence) String() string { return proto.CompactTextString(m) }
|
||||||
func (*MsgSubmitEvidence) ProtoMessage() {}
|
func (*MsgSubmitEvidence) ProtoMessage() {}
|
||||||
func (*MsgSubmitEvidence) Descriptor() ([]byte, []int) {
|
func (*MsgSubmitEvidence) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{3}
|
return fileDescriptor_ff851c3a98ef46f7, []int{3}
|
||||||
}
|
}
|
||||||
func (m *MsgSubmitEvidence) XXX_Unmarshal(b []byte) error {
|
func (m *MsgSubmitEvidence) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -372,7 +372,7 @@ func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} }
|
||||||
func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) }
|
func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) }
|
||||||
func (*MsgSubmitProposal) ProtoMessage() {}
|
func (*MsgSubmitProposal) ProtoMessage() {}
|
||||||
func (*MsgSubmitProposal) Descriptor() ([]byte, []int) {
|
func (*MsgSubmitProposal) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{4}
|
return fileDescriptor_ff851c3a98ef46f7, []int{4}
|
||||||
}
|
}
|
||||||
func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error {
|
func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -412,7 +412,7 @@ func (m *Proposal) Reset() { *m = Proposal{} }
|
||||||
func (m *Proposal) String() string { return proto.CompactTextString(m) }
|
func (m *Proposal) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Proposal) ProtoMessage() {}
|
func (*Proposal) ProtoMessage() {}
|
||||||
func (*Proposal) Descriptor() ([]byte, []int) {
|
func (*Proposal) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{5}
|
return fileDescriptor_ff851c3a98ef46f7, []int{5}
|
||||||
}
|
}
|
||||||
func (m *Proposal) XXX_Unmarshal(b []byte) error {
|
func (m *Proposal) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -466,7 +466,7 @@ func (m *Content) Reset() { *m = Content{} }
|
||||||
func (m *Content) String() string { return proto.CompactTextString(m) }
|
func (m *Content) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Content) ProtoMessage() {}
|
func (*Content) ProtoMessage() {}
|
||||||
func (*Content) Descriptor() ([]byte, []int) {
|
func (*Content) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{6}
|
return fileDescriptor_ff851c3a98ef46f7, []int{6}
|
||||||
}
|
}
|
||||||
func (m *Content) XXX_Unmarshal(b []byte) error {
|
func (m *Content) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -589,7 +589,7 @@ func (m *Transaction) Reset() { *m = Transaction{} }
|
||||||
func (m *Transaction) String() string { return proto.CompactTextString(m) }
|
func (m *Transaction) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Transaction) ProtoMessage() {}
|
func (*Transaction) ProtoMessage() {}
|
||||||
func (*Transaction) Descriptor() ([]byte, []int) {
|
func (*Transaction) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{7}
|
return fileDescriptor_ff851c3a98ef46f7, []int{7}
|
||||||
}
|
}
|
||||||
func (m *Transaction) XXX_Unmarshal(b []byte) error {
|
func (m *Transaction) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -648,7 +648,7 @@ func (m *Message) Reset() { *m = Message{} }
|
||||||
func (m *Message) String() string { return proto.CompactTextString(m) }
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Message) ProtoMessage() {}
|
func (*Message) ProtoMessage() {}
|
||||||
func (*Message) Descriptor() ([]byte, []int) {
|
func (*Message) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{8}
|
return fileDescriptor_ff851c3a98ef46f7, []int{8}
|
||||||
}
|
}
|
||||||
func (m *Message) XXX_Unmarshal(b []byte) error {
|
func (m *Message) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -913,7 +913,7 @@ func (m *SignDoc) Reset() { *m = SignDoc{} }
|
||||||
func (m *SignDoc) String() string { return proto.CompactTextString(m) }
|
func (m *SignDoc) String() string { return proto.CompactTextString(m) }
|
||||||
func (*SignDoc) ProtoMessage() {}
|
func (*SignDoc) ProtoMessage() {}
|
||||||
func (*SignDoc) Descriptor() ([]byte, []int) {
|
func (*SignDoc) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{9}
|
return fileDescriptor_ff851c3a98ef46f7, []int{9}
|
||||||
}
|
}
|
||||||
func (m *SignDoc) XXX_Unmarshal(b []byte) error {
|
func (m *SignDoc) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -961,7 +961,7 @@ func (m *StdFee) Reset() { *m = StdFee{} }
|
||||||
func (m *StdFee) String() string { return proto.CompactTextString(m) }
|
func (m *StdFee) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StdFee) ProtoMessage() {}
|
func (*StdFee) ProtoMessage() {}
|
||||||
func (*StdFee) Descriptor() ([]byte, []int) {
|
func (*StdFee) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{10}
|
return fileDescriptor_ff851c3a98ef46f7, []int{10}
|
||||||
}
|
}
|
||||||
func (m *StdFee) XXX_Unmarshal(b []byte) error {
|
func (m *StdFee) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -1001,7 +1001,7 @@ func (m *StdSignature) Reset() { *m = StdSignature{} }
|
||||||
func (m *StdSignature) String() string { return proto.CompactTextString(m) }
|
func (m *StdSignature) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StdSignature) ProtoMessage() {}
|
func (*StdSignature) ProtoMessage() {}
|
||||||
func (*StdSignature) Descriptor() ([]byte, []int) {
|
func (*StdSignature) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{11}
|
return fileDescriptor_ff851c3a98ef46f7, []int{11}
|
||||||
}
|
}
|
||||||
func (m *StdSignature) XXX_Unmarshal(b []byte) error {
|
func (m *StdSignature) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -1042,7 +1042,7 @@ func (m *StdTxBase) Reset() { *m = StdTxBase{} }
|
||||||
func (m *StdTxBase) String() string { return proto.CompactTextString(m) }
|
func (m *StdTxBase) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StdTxBase) ProtoMessage() {}
|
func (*StdTxBase) ProtoMessage() {}
|
||||||
func (*StdTxBase) Descriptor() ([]byte, []int) {
|
func (*StdTxBase) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{12}
|
return fileDescriptor_ff851c3a98ef46f7, []int{12}
|
||||||
}
|
}
|
||||||
func (m *StdTxBase) XXX_Unmarshal(b []byte) error {
|
func (m *StdTxBase) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -1106,7 +1106,7 @@ func (m *StdSignDocBase) Reset() { *m = StdSignDocBase{} }
|
||||||
func (m *StdSignDocBase) String() string { return proto.CompactTextString(m) }
|
func (m *StdSignDocBase) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StdSignDocBase) ProtoMessage() {}
|
func (*StdSignDocBase) ProtoMessage() {}
|
||||||
func (*StdSignDocBase) Descriptor() ([]byte, []int) {
|
func (*StdSignDocBase) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_daf09dc2dfa19bb4, []int{13}
|
return fileDescriptor_ff851c3a98ef46f7, []int{13}
|
||||||
}
|
}
|
||||||
func (m *StdSignDocBase) XXX_Unmarshal(b []byte) error {
|
func (m *StdSignDocBase) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
|
@ -1171,136 +1171,136 @@ func (m *StdSignDocBase) GetFee() StdFee {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*Account)(nil), "cosmos_sdk.codec.std.v1.Account")
|
proto.RegisterType((*Account)(nil), "cosmos_sdk.std.v1.Account")
|
||||||
proto.RegisterType((*Supply)(nil), "cosmos_sdk.codec.std.v1.Supply")
|
proto.RegisterType((*Supply)(nil), "cosmos_sdk.std.v1.Supply")
|
||||||
proto.RegisterType((*Evidence)(nil), "cosmos_sdk.codec.std.v1.Evidence")
|
proto.RegisterType((*Evidence)(nil), "cosmos_sdk.std.v1.Evidence")
|
||||||
proto.RegisterType((*MsgSubmitEvidence)(nil), "cosmos_sdk.codec.std.v1.MsgSubmitEvidence")
|
proto.RegisterType((*MsgSubmitEvidence)(nil), "cosmos_sdk.std.v1.MsgSubmitEvidence")
|
||||||
proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos_sdk.codec.std.v1.MsgSubmitProposal")
|
proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos_sdk.std.v1.MsgSubmitProposal")
|
||||||
proto.RegisterType((*Proposal)(nil), "cosmos_sdk.codec.std.v1.Proposal")
|
proto.RegisterType((*Proposal)(nil), "cosmos_sdk.std.v1.Proposal")
|
||||||
proto.RegisterType((*Content)(nil), "cosmos_sdk.codec.std.v1.Content")
|
proto.RegisterType((*Content)(nil), "cosmos_sdk.std.v1.Content")
|
||||||
proto.RegisterType((*Transaction)(nil), "cosmos_sdk.codec.std.v1.Transaction")
|
proto.RegisterType((*Transaction)(nil), "cosmos_sdk.std.v1.Transaction")
|
||||||
proto.RegisterType((*Message)(nil), "cosmos_sdk.codec.std.v1.Message")
|
proto.RegisterType((*Message)(nil), "cosmos_sdk.std.v1.Message")
|
||||||
proto.RegisterType((*SignDoc)(nil), "cosmos_sdk.codec.std.v1.SignDoc")
|
proto.RegisterType((*SignDoc)(nil), "cosmos_sdk.std.v1.SignDoc")
|
||||||
proto.RegisterType((*StdFee)(nil), "cosmos_sdk.codec.std.v1.StdFee")
|
proto.RegisterType((*StdFee)(nil), "cosmos_sdk.std.v1.StdFee")
|
||||||
proto.RegisterType((*StdSignature)(nil), "cosmos_sdk.codec.std.v1.StdSignature")
|
proto.RegisterType((*StdSignature)(nil), "cosmos_sdk.std.v1.StdSignature")
|
||||||
proto.RegisterType((*StdTxBase)(nil), "cosmos_sdk.codec.std.v1.StdTxBase")
|
proto.RegisterType((*StdTxBase)(nil), "cosmos_sdk.std.v1.StdTxBase")
|
||||||
proto.RegisterType((*StdSignDocBase)(nil), "cosmos_sdk.codec.std.v1.StdSignDocBase")
|
proto.RegisterType((*StdSignDocBase)(nil), "cosmos_sdk.std.v1.StdSignDocBase")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("codec/std/codec.proto", fileDescriptor_daf09dc2dfa19bb4) }
|
func init() { proto.RegisterFile("std/codec.proto", fileDescriptor_ff851c3a98ef46f7) }
|
||||||
|
|
||||||
var fileDescriptor_daf09dc2dfa19bb4 = []byte{
|
var fileDescriptor_ff851c3a98ef46f7 = []byte{
|
||||||
// 1753 bytes of a gzipped FileDescriptorProto
|
// 1746 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x41, 0x73, 0x1b, 0x49,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcf, 0x6f, 0x1b, 0xc7,
|
||||||
0x15, 0x9e, 0x89, 0x15, 0x4b, 0x6e, 0x2b, 0x8e, 0xdd, 0x9b, 0x60, 0x61, 0xb2, 0x52, 0xa2, 0x85,
|
0x15, 0xde, 0x8d, 0x68, 0x91, 0x1a, 0xd1, 0xb2, 0x34, 0xb1, 0x6b, 0x46, 0x71, 0x48, 0x9b, 0x29,
|
||||||
0xb0, 0x64, 0x89, 0xb4, 0xd9, 0xc0, 0x2e, 0x51, 0xb1, 0x45, 0x22, 0x3b, 0x2e, 0x99, 0x5d, 0x43,
|
0x8c, 0xd4, 0xa9, 0xc9, 0x38, 0x4e, 0x93, 0x9a, 0xe8, 0x2f, 0x93, 0xb2, 0x40, 0xb5, 0x51, 0x6b,
|
||||||
0x6a, 0x9c, 0x98, 0x82, 0x5a, 0x98, 0x6a, 0xcd, 0xb4, 0xc7, 0x8d, 0xd5, 0xd3, 0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 0xe8, 0x5e, 0xab, 0x8b, 0x38,
|
||||||
0x5e, 0xab, 0x8b, 0x38, 0xd6, 0xc0, 0x9e, 0x61, 0x2d, 0xf7, 0x27, 0x43, 0x38, 0x04, 0x1b, 0x0e,
|
0xd6, 0xc0, 0xbe, 0x61, 0xad, 0x0f, 0xa6, 0x43, 0x38, 0x02, 0xdb, 0x0e, 0xf3, 0x05, 0xf1, 0x23,
|
||||||
0xf3, 0x05, 0xf1, 0x23, 0x16, 0x71, 0x5b, 0xef, 0x43, 0xca, 0x7a, 0x49, 0xb1, 0xbe, 0x5d, 0xc4,
|
0x16, 0x71, 0x5b, 0xef, 0x43, 0xca, 0xfa, 0x8a, 0x62, 0x7d, 0xbf, 0x88, 0x35, 0xf6, 0x94, 0xec,
|
||||||
0x1a, 0x7b, 0x4a, 0xf6, 0xcd, 0x14, 0xbf, 0x1f, 0x4f, 0x4e, 0x42, 0xd5, 0x9c, 0x33, 0x6c, 0x90,
|
0xbd, 0x14, 0x7f, 0x18, 0x4f, 0x4e, 0x43, 0xd5, 0x9c, 0x05, 0x36, 0x48, 0xc1, 0x75, 0x17, 0x0f,
|
||||||
0x82, 0x75, 0x17, 0x0f, 0xd0, 0x18, 0xbb, 0x33, 0x41, 0x17, 0x54, 0xd0, 0xfb, 0xf3, 0x83, 0x6e,
|
0xd1, 0x04, 0xbb, 0x73, 0x41, 0x57, 0x54, 0xd0, 0xfb, 0xcb, 0x83, 0xee, 0xc4, 0xe0, 0xb9, 0x88,
|
||||||
0xc5, 0xe0, 0x99, 0x88, 0xd7, 0xdd, 0x22, 0x03, 0x0c, 0x40, 0x2d, 0xc0, 0x21, 0x61, 0x2e, 0x71,
|
0xd7, 0xdc, 0x22, 0x03, 0x0c, 0x40, 0x2d, 0xc0, 0x21, 0x61, 0x2e, 0x71, 0xe6, 0xe2, 0x95, 0x54,
|
||||||
0x66, 0xe2, 0x95, 0x54, 0xbc, 0xef, 0xcc, 0x8f, 0xf7, 0x44, 0xa3, 0x67, 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||||||
0x53, 0xe7, 0x66, 0xec, 0x67, 0x25, 0x80, 0x8c, 0xca, 0x3f, 0x98, 0xa0, 0x92, 0x8a, 0xfb, 0x41,
|
0x58, 0x89, 0x6b, 0x46, 0xdf, 0x1f, 0x4c, 0x50, 0x49, 0x65, 0x7d, 0x37, 0x27, 0xeb, 0x56, 0xa1,
|
||||||
0x4e, 0xdc, 0xad, 0x42, 0x71, 0x73, 0x35, 0x3d, 0xfc, 0xc2, 0x9a, 0xba, 0x25, 0x49, 0x31, 0x51,
|
0xac, 0xa5, 0x6a, 0x3a, 0xff, 0x83, 0x9a, 0x6e, 0x49, 0x82, 0xa7, 0x9a, 0x4a, 0x4a, 0xcf, 0x5f,
|
||||||
0x56, 0x52, 0xaa, 0xfe, 0x54, 0x02, 0x65, 0xed, 0x00, 0xdf, 0x01, 0x25, 0x81, 0x47, 0x62, 0xae,
|
0x4a, 0xa0, 0xac, 0x1d, 0xe0, 0x07, 0xa0, 0x24, 0xf0, 0x58, 0x2c, 0x95, 0xf3, 0x04, 0x8f, 0xd3,
|
||||||
0xa8, 0xa7, 0x78, 0x94, 0x2e, 0x56, 0xcf, 0xb0, 0x14, 0x00, 0x7e, 0x00, 0x56, 0xd5, 0xd9, 0x8e,
|
0x05, 0xea, 0x1b, 0x96, 0x02, 0xc0, 0x9f, 0x81, 0x4d, 0x75, 0x92, 0x63, 0x81, 0x43, 0xdb, 0x39,
|
||||||
0x05, 0x0e, 0x6d, 0xe7, 0x10, 0xf9, 0x5e, 0xb2, 0xa3, 0x53, 0x49, 0x12, 0x77, 0x00, 0xf5, 0x72,
|
0x42, 0xbe, 0x97, 0xec, 0xdf, 0x4c, 0x4a, 0xc4, 0xe7, 0xbd, 0x7a, 0xad, 0xc4, 0xbf, 0xa7, 0xdc,
|
||||||
0x89, 0xff, 0xa6, 0x72, 0xcf, 0x50, 0x5e, 0x0d, 0xf2, 0x26, 0xf8, 0x73, 0xb0, 0xca, 0xd9, 0x81,
|
0x33, 0x94, 0x57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37,
|
||||||
0x1e, 0xc4, 0xb5, 0x38, 0x64, 0x02, 0xd7, 0x40, 0xd1, 0x15, 0x6b, 0xd2, 0x7d, 0xf7, 0x99, 0xc0,
|
0x62, 0x02, 0xd7, 0x40, 0xd1, 0xc5, 0x69, 0xda, 0x59, 0x0f, 0x99, 0xc0, 0xba, 0xfc, 0xe4, 0x23,
|
||||||
0xba, 0x14, 0xe5, 0x23, 0xec, 0x82, 0x65, 0x09, 0x75, 0x71, 0xc0, 0x38, 0x11, 0xb5, 0x65, 0x85,
|
0xec, 0x82, 0x75, 0x09, 0x75, 0x71, 0xc0, 0x38, 0x11, 0xb5, 0x75, 0x85, 0x6e, 0x2c, 0x42, 0xef,
|
||||||
0x6e, 0x9c, 0x85, 0xde, 0x8a, 0xdd, 0x7a, 0x86, 0x05, 0x68, 0x3a, 0x82, 0x5b, 0x40, 0x8e, 0xec,
|
0xc4, 0x6e, 0x7d, 0xc3, 0x02, 0x34, 0x1d, 0xc1, 0x1d, 0x20, 0x47, 0x76, 0xe4, 0xff, 0x12, 0x91,
|
||||||
0xc8, 0xff, 0x25, 0x22, 0x83, 0x5a, 0xb5, 0xe8, 0xda, 0x99, 0x7c, 0xc4, 0x68, 0x9e, 0x67, 0xca,
|
0x61, 0xad, 0x5a, 0x74, 0x99, 0x4c, 0x3e, 0x4d, 0x34, 0xcf, 0x53, 0xe5, 0xda, 0x37, 0xac, 0x35,
|
||||||
0xb5, 0x67, 0x58, 0x4b, 0x34, 0x19, 0x40, 0x3b, 0x2e, 0x64, 0x27, 0xc4, 0x48, 0xe0, 0x49, 0xda,
|
0x9a, 0x0c, 0xa0, 0x1d, 0x17, 0xaf, 0x13, 0x62, 0x24, 0xf0, 0x34, 0xd5, 0x6a, 0x97, 0x15, 0xdf,
|
||||||
0xd5, 0xae, 0x28, 0xbe, 0x37, 0xa6, 0xf8, 0xe2, 0xcf, 0x1e, 0x4d, 0xb7, 0xa9, 0x30, 0x69, 0x0a,
|
0xdb, 0x33, 0x7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||||||
0xbb, 0xff, 0xd5, 0x04, 0x4b, 0xe9, 0x0d, 0x02, 0xbe, 0x03, 0x16, 0x0e, 0x70, 0xb2, 0x2b, 0x8d,
|
0x3b, 0x02, 0xbc, 0x07, 0x56, 0x9e, 0xe1, 0x64, 0x27, 0x5e, 0x2b, 0xde, 0x89, 0x5d, 0x9c, 0xac,
|
||||||
0x79, 0xbb, 0xb2, 0x8d, 0x93, 0x95, 0x94, 0x08, 0xf8, 0x1e, 0x00, 0x29, 0x73, 0xb2, 0x15, 0xdf,
|
0xa1, 0xf4, 0x85, 0x8f, 0x00, 0x48, 0x39, 0x93, 0xe5, 0x6f, 0x2c, 0xde, 0x43, 0xe5, 0xa7, 0xf1,
|
||||||
0x38, 0x6f, 0x57, 0x95, 0xb7, 0x66, 0xc9, 0xc0, 0x21, 0x04, 0x25, 0x8a, 0x29, 0x53, 0xdd, 0x7c,
|
0x19, 0x20, 0x84, 0xa0, 0x44, 0x31, 0x65, 0xaa, 0x53, 0xaf, 0x59, 0xea, 0xb9, 0xf9, 0x1f, 0x13,
|
||||||
0xc9, 0x52, 0xcf, 0xcd, 0xff, 0x99, 0x60, 0x25, 0x9f, 0x0c, 0xf2, 0x00, 0x74, 0x0e, 0x11, 0xf1,
|
0x6c, 0xe4, 0xb7, 0x5e, 0x1e, 0x74, 0xce, 0x11, 0x22, 0xbe, 0x4d, 0xe2, 0x8b, 0xc6, 0x5a, 0xb7,
|
||||||
0x6d, 0x12, 0x5f, 0x46, 0x96, 0xba, 0xf5, 0xd3, 0x93, 0x46, 0x79, 0x53, 0xce, 0xed, 0x6c, 0xbd,
|
0x7e, 0x76, 0xda, 0x28, 0xf7, 0xe4, 0xdc, 0xde, 0xce, 0xcb, 0xd3, 0xc6, 0x95, 0x78, 0x39, 0x12,
|
||||||
0x3c, 0x69, 0x5c, 0x8d, 0x97, 0x26, 0x71, 0x6a, 0x5a, 0x65, 0xf5, 0xb8, 0xe3, 0xc2, 0x87, 0x60,
|
0xa7, 0xa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1, 0x0e, 0x56,
|
||||||
0x2f, 0xbf, 0xf4, 0x6f, 0xba, 0xfe, 0xa2, 0xfa, 0x63, 0xe7, 0xfe, 0xff, 0x03, 0x00, 0x00, 0xff,
|
0xd5, 0x5f, 0x31, 0xf7, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x66, 0xa7, 0xb1, 0x54, 0x60, 0x13,
|
||||||
0xff, 0x02, 0x85, 0x89, 0xbb, 0xba, 0x13, 0x00, 0x00,
|
0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Supply) Equal(that interface{}) bool {
|
func (this *Supply) Equal(that interface{}) bool {
|
|
@ -1,5 +1,5 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package cosmos_sdk.codec.std.v1;
|
package cosmos_sdk.std.v1;
|
||||||
|
|
||||||
import "third_party/proto/cosmos-proto/cosmos.proto";
|
import "third_party/proto/cosmos-proto/cosmos.proto";
|
||||||
import "third_party/proto/gogoproto/gogo.proto";
|
import "third_party/proto/gogoproto/gogo.proto";
|
||||||
|
@ -16,7 +16,7 @@ import "x/staking/types/types.proto";
|
||||||
import "x/params/types/proposal/types.proto";
|
import "x/params/types/proposal/types.proto";
|
||||||
import "x/upgrade/types/types.proto";
|
import "x/upgrade/types/types.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cosmos/cosmos-sdk/codec/std";
|
option go_package = "github.com/cosmos/cosmos-sdk/std";
|
||||||
|
|
||||||
// Account defines the application-level Account type.
|
// Account defines the application-level Account type.
|
||||||
message Account {
|
message Account {
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec/std"
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence"
|
"github.com/cosmos/cosmos-sdk/x/evidence"
|
||||||
)
|
)
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec/std"
|
std "github.com/cosmos/cosmos-sdk/std"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/bank"
|
"github.com/cosmos/cosmos-sdk/x/bank"
|
||||||
)
|
)
|
|
@ -1,11 +1,11 @@
|
||||||
package keeper_test
|
package keeper_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth"
|
"github.com/cosmos/cosmos-sdk/x/auth"
|
||||||
|
@ -107,7 +107,7 @@ func TestSupply_ValidatePermissions(t *testing.T) {
|
||||||
maccPerms[multiPerm] = []string{types.Burner, types.Minter, types.Staking}
|
maccPerms[multiPerm] = []string{types.Burner, types.Minter, types.Staking}
|
||||||
maccPerms[randomPerm] = []string{"random"}
|
maccPerms[randomPerm] = []string{"random"}
|
||||||
|
|
||||||
appCodec := codecstd.NewAppCodec(app.Codec())
|
appCodec := std.NewAppCodec(app.Codec())
|
||||||
keeper := auth.NewAccountKeeper(
|
keeper := auth.NewAccountKeeper(
|
||||||
appCodec, app.GetKey(types.StoreKey), app.GetSubspace(types.ModuleName),
|
appCodec, app.GetKey(types.StoreKey), app.GetSubspace(types.ModuleName),
|
||||||
types.ProtoBaseAccount, maccPerms,
|
types.ProtoBaseAccount, maccPerms,
|
||||||
|
|
|
@ -4,12 +4,13 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
gogotypes "github.com/gogo/protobuf/types"
|
gogotypes "github.com/gogo/protobuf/types"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/tendermint/tendermint/crypto/ed25519"
|
"github.com/tendermint/tendermint/crypto/ed25519"
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/simulation"
|
"github.com/cosmos/cosmos-sdk/x/auth/simulation"
|
||||||
|
@ -22,7 +23,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeStore(t *testing.T) {
|
func TestDecodeStore(t *testing.T) {
|
||||||
cdc := codecstd.NewAppCodec(codecstd.MakeCodec(simapp.ModuleBasics))
|
cdc := std.NewAppCodec(std.MakeCodec(simapp.ModuleBasics))
|
||||||
acc := types.NewBaseAccountWithAddress(delAddr1)
|
acc := types.NewBaseAccountWithAddress(delAddr1)
|
||||||
dec := simulation.NewDecodeStore(cdc)
|
dec := simulation.NewDecodeStore(cdc)
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package types_test
|
package types_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
app = simapp.Setup(false)
|
app = simapp.Setup(false)
|
||||||
appCodec = codecstd.NewAppCodec(app.Codec())
|
appCodec = std.NewAppCodec(app.Codec())
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package types_test
|
package types_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
app = simapp.Setup(false)
|
app = simapp.Setup(false)
|
||||||
appCodec = codecstd.NewAppCodec(app.Codec())
|
appCodec = std.NewAppCodec(app.Codec())
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package keeper_test
|
package keeper_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -9,7 +10,6 @@ import (
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
tmtime "github.com/tendermint/tendermint/types/time"
|
tmtime "github.com/tendermint/tendermint/types/time"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth"
|
"github.com/cosmos/cosmos-sdk/x/auth"
|
||||||
|
@ -91,7 +91,7 @@ func (suite *IntegrationTestSuite) TestSupply() {
|
||||||
func (suite *IntegrationTestSuite) TestSupply_SendCoins() {
|
func (suite *IntegrationTestSuite) TestSupply_SendCoins() {
|
||||||
app := simapp.Setup(false)
|
app := simapp.Setup(false)
|
||||||
ctx := app.BaseApp.NewContext(false, abci.Header{Height: 1})
|
ctx := app.BaseApp.NewContext(false, abci.Header{Height: 1})
|
||||||
appCodec := codecstd.NewAppCodec(app.Codec())
|
appCodec := std.NewAppCodec(app.Codec())
|
||||||
|
|
||||||
// add module accounts to supply keeper
|
// add module accounts to supply keeper
|
||||||
maccPerms := simapp.GetMaccPerms()
|
maccPerms := simapp.GetMaccPerms()
|
||||||
|
@ -154,7 +154,7 @@ func (suite *IntegrationTestSuite) TestSupply_SendCoins() {
|
||||||
func (suite *IntegrationTestSuite) TestSupply_MintCoins() {
|
func (suite *IntegrationTestSuite) TestSupply_MintCoins() {
|
||||||
app := simapp.Setup(false)
|
app := simapp.Setup(false)
|
||||||
ctx := app.BaseApp.NewContext(false, abci.Header{Height: 1})
|
ctx := app.BaseApp.NewContext(false, abci.Header{Height: 1})
|
||||||
appCodec := codecstd.NewAppCodec(app.Codec())
|
appCodec := std.NewAppCodec(app.Codec())
|
||||||
|
|
||||||
// add module accounts to supply keeper
|
// add module accounts to supply keeper
|
||||||
maccPerms := simapp.GetMaccPerms()
|
maccPerms := simapp.GetMaccPerms()
|
||||||
|
@ -208,7 +208,7 @@ func (suite *IntegrationTestSuite) TestSupply_MintCoins() {
|
||||||
func (suite *IntegrationTestSuite) TestSupply_BurnCoins() {
|
func (suite *IntegrationTestSuite) TestSupply_BurnCoins() {
|
||||||
app := simapp.Setup(false)
|
app := simapp.Setup(false)
|
||||||
ctx := app.BaseApp.NewContext(false, abci.Header{Height: 1})
|
ctx := app.BaseApp.NewContext(false, abci.Header{Height: 1})
|
||||||
appCodec := codecstd.NewAppCodec(app.Codec())
|
appCodec := std.NewAppCodec(app.Codec())
|
||||||
|
|
||||||
// add module accounts to supply keeper
|
// add module accounts to supply keeper
|
||||||
maccPerms := simapp.GetMaccPerms()
|
maccPerms := simapp.GetMaccPerms()
|
||||||
|
|
|
@ -2,12 +2,12 @@ package simulation_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/bank/simulation"
|
"github.com/cosmos/cosmos-sdk/x/bank/simulation"
|
||||||
|
@ -15,7 +15,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeStore(t *testing.T) {
|
func TestDecodeStore(t *testing.T) {
|
||||||
cdc := codecstd.NewAppCodec(codecstd.MakeCodec(simapp.ModuleBasics))
|
cdc := std.NewAppCodec(std.MakeCodec(simapp.ModuleBasics))
|
||||||
dec := simulation.NewDecodeStore(cdc)
|
dec := simulation.NewDecodeStore(cdc)
|
||||||
|
|
||||||
totalSupply := types.NewSupply(sdk.NewCoins(sdk.NewInt64Coin(sdk.DefaultBondDenom, 1000)))
|
totalSupply := types.NewSupply(sdk.NewCoins(sdk.NewInt64Coin(sdk.DefaultBondDenom, 1000)))
|
||||||
|
|
|
@ -2,6 +2,7 @@ package simulation_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
@ -9,7 +10,6 @@ import (
|
||||||
"github.com/tendermint/tendermint/crypto/ed25519"
|
"github.com/tendermint/tendermint/crypto/ed25519"
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/distribution/simulation"
|
"github.com/cosmos/cosmos-sdk/x/distribution/simulation"
|
||||||
|
@ -24,7 +24,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeDistributionStore(t *testing.T) {
|
func TestDecodeDistributionStore(t *testing.T) {
|
||||||
cdc := codecstd.NewAppCodec(codecstd.MakeCodec(simapp.ModuleBasics))
|
cdc := std.NewAppCodec(std.MakeCodec(simapp.ModuleBasics))
|
||||||
dec := simulation.NewDecodeStore(cdc)
|
dec := simulation.NewDecodeStore(cdc)
|
||||||
|
|
||||||
decCoins := sdk.DecCoins{sdk.NewDecCoinFromDec(sdk.DefaultBondDenom, sdk.OneDec())}
|
decCoins := sdk.DecCoins{sdk.NewDecCoinFromDec(sdk.DefaultBondDenom, sdk.OneDec())}
|
||||||
|
|
|
@ -5,12 +5,13 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
"github.com/tendermint/tendermint/crypto/ed25519"
|
"github.com/tendermint/tendermint/crypto/ed25519"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence"
|
"github.com/cosmos/cosmos-sdk/x/evidence"
|
||||||
|
@ -25,8 +26,8 @@ type HandlerTestSuite struct {
|
||||||
app *simapp.SimApp
|
app *simapp.SimApp
|
||||||
}
|
}
|
||||||
|
|
||||||
func testMsgSubmitEvidence(r *require.Assertions, e exported.Evidence, s sdk.AccAddress) codecstd.MsgSubmitEvidence {
|
func testMsgSubmitEvidence(r *require.Assertions, e exported.Evidence, s sdk.AccAddress) std.MsgSubmitEvidence {
|
||||||
msg, err := codecstd.NewMsgSubmitEvidence(e, s)
|
msg, err := std.NewMsgSubmitEvidence(e, s)
|
||||||
r.NoError(err)
|
r.NoError(err)
|
||||||
return msg
|
return msg
|
||||||
}
|
}
|
||||||
|
@ -55,7 +56,7 @@ func (suite *HandlerTestSuite) SetupTest() {
|
||||||
|
|
||||||
// recreate keeper in order to use custom testing types
|
// recreate keeper in order to use custom testing types
|
||||||
evidenceKeeper := evidence.NewKeeper(
|
evidenceKeeper := evidence.NewKeeper(
|
||||||
codecstd.NewAppCodec(app.Codec()), app.GetKey(evidence.StoreKey),
|
std.NewAppCodec(app.Codec()), app.GetKey(evidence.StoreKey),
|
||||||
app.StakingKeeper, app.SlashingKeeper,
|
app.StakingKeeper, app.SlashingKeeper,
|
||||||
)
|
)
|
||||||
router := evidence.NewRouter()
|
router := evidence.NewRouter()
|
||||||
|
@ -118,7 +119,7 @@ func (suite *HandlerTestSuite) TestMsgSubmitEvidence() {
|
||||||
suite.Require().NoError(err, "unexpected error; tc #%d", i)
|
suite.Require().NoError(err, "unexpected error; tc #%d", i)
|
||||||
suite.Require().NotNil(res, "expected non-nil result; tc #%d", i)
|
suite.Require().NotNil(res, "expected non-nil result; tc #%d", i)
|
||||||
|
|
||||||
msg := tc.msg.(codecstd.MsgSubmitEvidence)
|
msg := tc.msg.(std.MsgSubmitEvidence)
|
||||||
suite.Require().Equal(msg.GetEvidence().Hash().Bytes(), res.Data, "invalid hash; tc #%d", i)
|
suite.Require().Equal(msg.GetEvidence().Hash().Bytes(), res.Data, "invalid hash; tc #%d", i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth"
|
"github.com/cosmos/cosmos-sdk/x/auth"
|
||||||
|
@ -83,7 +84,7 @@ func (suite *KeeperTestSuite) SetupTest() {
|
||||||
|
|
||||||
// recreate keeper in order to use custom testing types
|
// recreate keeper in order to use custom testing types
|
||||||
evidenceKeeper := evidence.NewKeeper(
|
evidenceKeeper := evidence.NewKeeper(
|
||||||
codecstd.NewAppCodec(app.Codec()), app.GetKey(evidence.StoreKey),
|
std.NewAppCodec(app.Codec()), app.GetKey(evidence.StoreKey),
|
||||||
app.StakingKeeper, app.SlashingKeeper,
|
app.StakingKeeper, app.SlashingKeeper,
|
||||||
)
|
)
|
||||||
router := evidence.NewRouter()
|
router := evidence.NewRouter()
|
||||||
|
|
|
@ -3,7 +3,8 @@ package keeper_test
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence/exported"
|
"github.com/cosmos/cosmos-sdk/x/evidence/exported"
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence/types"
|
"github.com/cosmos/cosmos-sdk/x/evidence/types"
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@ const (
|
||||||
func (suite *KeeperTestSuite) TestQueryEvidence_Existing() {
|
func (suite *KeeperTestSuite) TestQueryEvidence_Existing() {
|
||||||
ctx := suite.ctx.WithIsCheckTx(false)
|
ctx := suite.ctx.WithIsCheckTx(false)
|
||||||
numEvidence := 100
|
numEvidence := 100
|
||||||
cdc := codecstd.NewAppCodec(suite.app.Codec())
|
cdc := std.NewAppCodec(suite.app.Codec())
|
||||||
|
|
||||||
evidence := suite.populateEvidence(ctx, numEvidence)
|
evidence := suite.populateEvidence(ctx, numEvidence)
|
||||||
query := abci.RequestQuery{
|
query := abci.RequestQuery{
|
||||||
|
@ -36,7 +37,7 @@ func (suite *KeeperTestSuite) TestQueryEvidence_Existing() {
|
||||||
|
|
||||||
func (suite *KeeperTestSuite) TestQueryEvidence_NonExisting() {
|
func (suite *KeeperTestSuite) TestQueryEvidence_NonExisting() {
|
||||||
ctx := suite.ctx.WithIsCheckTx(false)
|
ctx := suite.ctx.WithIsCheckTx(false)
|
||||||
cdc := codecstd.NewAppCodec(suite.app.Codec())
|
cdc := std.NewAppCodec(suite.app.Codec())
|
||||||
numEvidence := 100
|
numEvidence := 100
|
||||||
|
|
||||||
suite.populateEvidence(ctx, numEvidence)
|
suite.populateEvidence(ctx, numEvidence)
|
||||||
|
@ -52,7 +53,7 @@ func (suite *KeeperTestSuite) TestQueryEvidence_NonExisting() {
|
||||||
|
|
||||||
func (suite *KeeperTestSuite) TestQueryAllEvidence() {
|
func (suite *KeeperTestSuite) TestQueryAllEvidence() {
|
||||||
ctx := suite.ctx.WithIsCheckTx(false)
|
ctx := suite.ctx.WithIsCheckTx(false)
|
||||||
cdc := codecstd.NewAppCodec(suite.app.Codec())
|
cdc := std.NewAppCodec(suite.app.Codec())
|
||||||
numEvidence := 100
|
numEvidence := 100
|
||||||
|
|
||||||
suite.populateEvidence(ctx, numEvidence)
|
suite.populateEvidence(ctx, numEvidence)
|
||||||
|
@ -72,7 +73,7 @@ func (suite *KeeperTestSuite) TestQueryAllEvidence() {
|
||||||
|
|
||||||
func (suite *KeeperTestSuite) TestQueryAllEvidence_InvalidPagination() {
|
func (suite *KeeperTestSuite) TestQueryAllEvidence_InvalidPagination() {
|
||||||
ctx := suite.ctx.WithIsCheckTx(false)
|
ctx := suite.ctx.WithIsCheckTx(false)
|
||||||
cdc := codecstd.NewAppCodec(suite.app.Codec())
|
cdc := std.NewAppCodec(suite.app.Codec())
|
||||||
numEvidence := 100
|
numEvidence := 100
|
||||||
|
|
||||||
suite.populateEvidence(ctx, numEvidence)
|
suite.populateEvidence(ctx, numEvidence)
|
||||||
|
|
|
@ -5,11 +5,12 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/tendermint/tendermint/crypto/ed25519"
|
"github.com/tendermint/tendermint/crypto/ed25519"
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence/simulation"
|
"github.com/cosmos/cosmos-sdk/x/evidence/simulation"
|
||||||
|
@ -17,7 +18,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeStore(t *testing.T) {
|
func TestDecodeStore(t *testing.T) {
|
||||||
cdc := codecstd.NewAppCodec(codecstd.MakeCodec(simapp.ModuleBasics))
|
cdc := std.NewAppCodec(std.MakeCodec(simapp.ModuleBasics))
|
||||||
dec := simulation.NewDecodeStore(cdc)
|
dec := simulation.NewDecodeStore(cdc)
|
||||||
|
|
||||||
delPk1 := ed25519.GenPrivKey().PubKey()
|
delPk1 := ed25519.GenPrivKey().PubKey()
|
||||||
|
|
|
@ -4,10 +4,11 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/tendermint/tendermint/crypto/ed25519"
|
"github.com/tendermint/tendermint/crypto/ed25519"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence/exported"
|
"github.com/cosmos/cosmos-sdk/x/evidence/exported"
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence/types"
|
"github.com/cosmos/cosmos-sdk/x/evidence/types"
|
||||||
|
@ -15,7 +16,7 @@ import (
|
||||||
|
|
||||||
func TestCodec(t *testing.T) {
|
func TestCodec(t *testing.T) {
|
||||||
app := simapp.Setup(false)
|
app := simapp.Setup(false)
|
||||||
appCodec := codecstd.NewAppCodec(app.Codec())
|
appCodec := std.NewAppCodec(app.Codec())
|
||||||
pk := ed25519.GenPrivKey()
|
pk := ed25519.GenPrivKey()
|
||||||
|
|
||||||
var e exported.Evidence = &types.Equivocation{
|
var e exported.Evidence = &types.Equivocation{
|
||||||
|
|
|
@ -4,7 +4,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence/exported"
|
"github.com/cosmos/cosmos-sdk/x/evidence/exported"
|
||||||
"github.com/cosmos/cosmos-sdk/x/evidence/types"
|
"github.com/cosmos/cosmos-sdk/x/evidence/types"
|
||||||
|
@ -13,8 +14,8 @@ import (
|
||||||
"github.com/tendermint/tendermint/crypto/ed25519"
|
"github.com/tendermint/tendermint/crypto/ed25519"
|
||||||
)
|
)
|
||||||
|
|
||||||
func testMsgSubmitEvidence(t *testing.T, e exported.Evidence, s sdk.AccAddress) codecstd.MsgSubmitEvidence {
|
func testMsgSubmitEvidence(t *testing.T, e exported.Evidence, s sdk.AccAddress) std.MsgSubmitEvidence {
|
||||||
msg, err := codecstd.NewMsgSubmitEvidence(e, s)
|
msg, err := std.NewMsgSubmitEvidence(e, s)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
return msg
|
return msg
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
package gov_test
|
package gov_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
|
|
||||||
|
@ -29,7 +28,7 @@ func TestTickExpiredDepositPeriod(t *testing.T) {
|
||||||
require.False(t, inactiveQueue.Valid())
|
require.False(t, inactiveQueue.Valid())
|
||||||
inactiveQueue.Close()
|
inactiveQueue.Close()
|
||||||
|
|
||||||
newProposalMsg, err := codecstd.NewMsgSubmitProposal(
|
newProposalMsg, err := std.NewMsgSubmitProposal(
|
||||||
gov.ContentFromProposalType("test", "test", gov.ProposalTypeText),
|
gov.ContentFromProposalType("test", "test", gov.ProposalTypeText),
|
||||||
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
||||||
addrs[0],
|
addrs[0],
|
||||||
|
@ -81,7 +80,7 @@ func TestTickMultipleExpiredDepositPeriod(t *testing.T) {
|
||||||
require.False(t, inactiveQueue.Valid())
|
require.False(t, inactiveQueue.Valid())
|
||||||
inactiveQueue.Close()
|
inactiveQueue.Close()
|
||||||
|
|
||||||
newProposalMsg, err := codecstd.NewMsgSubmitProposal(
|
newProposalMsg, err := std.NewMsgSubmitProposal(
|
||||||
gov.ContentFromProposalType("test", "test", gov.ProposalTypeText),
|
gov.ContentFromProposalType("test", "test", gov.ProposalTypeText),
|
||||||
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
||||||
addrs[0],
|
addrs[0],
|
||||||
|
@ -104,7 +103,7 @@ func TestTickMultipleExpiredDepositPeriod(t *testing.T) {
|
||||||
require.False(t, inactiveQueue.Valid())
|
require.False(t, inactiveQueue.Valid())
|
||||||
inactiveQueue.Close()
|
inactiveQueue.Close()
|
||||||
|
|
||||||
newProposalMsg2, err := codecstd.NewMsgSubmitProposal(
|
newProposalMsg2, err := std.NewMsgSubmitProposal(
|
||||||
gov.ContentFromProposalType("test2", "test2", gov.ProposalTypeText),
|
gov.ContentFromProposalType("test2", "test2", gov.ProposalTypeText),
|
||||||
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
||||||
addrs[0],
|
addrs[0],
|
||||||
|
@ -161,7 +160,7 @@ func TestTickPassedDepositPeriod(t *testing.T) {
|
||||||
require.False(t, activeQueue.Valid())
|
require.False(t, activeQueue.Valid())
|
||||||
activeQueue.Close()
|
activeQueue.Close()
|
||||||
|
|
||||||
newProposalMsg, err := codecstd.NewMsgSubmitProposal(
|
newProposalMsg, err := std.NewMsgSubmitProposal(
|
||||||
gov.ContentFromProposalType("test2", "test2", gov.ProposalTypeText),
|
gov.ContentFromProposalType("test2", "test2", gov.ProposalTypeText),
|
||||||
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
||||||
addrs[0],
|
addrs[0],
|
||||||
|
@ -217,7 +216,7 @@ func TestTickPassedVotingPeriod(t *testing.T) {
|
||||||
activeQueue.Close()
|
activeQueue.Close()
|
||||||
|
|
||||||
proposalCoins := sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, sdk.TokensFromConsensusPower(5))}
|
proposalCoins := sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, sdk.TokensFromConsensusPower(5))}
|
||||||
newProposalMsg, err := codecstd.NewMsgSubmitProposal(TestProposal, proposalCoins, addrs[0])
|
newProposalMsg, err := std.NewMsgSubmitProposal(TestProposal, proposalCoins, addrs[0])
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
res, err := govHandler(ctx, newProposalMsg)
|
res, err := govHandler(ctx, newProposalMsg)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package keeper_test
|
package keeper_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/staking"
|
"github.com/cosmos/cosmos-sdk/x/staking"
|
||||||
|
@ -17,7 +17,7 @@ func createValidators(ctx sdk.Context, app *simapp.SimApp, powers []int64) ([]sd
|
||||||
valAddrs := simapp.ConvertAddrsToValAddrs(addrs)
|
valAddrs := simapp.ConvertAddrsToValAddrs(addrs)
|
||||||
pks := simapp.CreateTestPubKeys(5)
|
pks := simapp.CreateTestPubKeys(5)
|
||||||
|
|
||||||
appCodec := codecstd.NewAppCodec(app.Codec())
|
appCodec := std.NewAppCodec(app.Codec())
|
||||||
app.StakingKeeper = staking.NewKeeper(
|
app.StakingKeeper = staking.NewKeeper(
|
||||||
appCodec,
|
appCodec,
|
||||||
app.GetKey(staking.StoreKey),
|
app.GetKey(staking.StoreKey),
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package keeper_test
|
package keeper_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -10,7 +11,6 @@ import (
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||||
|
@ -147,7 +147,7 @@ func getQueriedVotes(t *testing.T, ctx sdk.Context, cdc codec.JSONMarshaler, que
|
||||||
func TestQueries(t *testing.T) {
|
func TestQueries(t *testing.T) {
|
||||||
app := simapp.Setup(false)
|
app := simapp.Setup(false)
|
||||||
ctx := app.BaseApp.NewContext(false, abci.Header{})
|
ctx := app.BaseApp.NewContext(false, abci.Header{})
|
||||||
appCodec := codecstd.NewAppCodec(app.Codec())
|
appCodec := std.NewAppCodec(app.Codec())
|
||||||
|
|
||||||
querier := keeper.NewQuerier(app.GovKeeper)
|
querier := keeper.NewQuerier(app.GovKeeper)
|
||||||
|
|
||||||
|
@ -295,7 +295,7 @@ func TestQueries(t *testing.T) {
|
||||||
func TestPaginatedVotesQuery(t *testing.T) {
|
func TestPaginatedVotesQuery(t *testing.T) {
|
||||||
app := simapp.Setup(false)
|
app := simapp.Setup(false)
|
||||||
ctx := app.BaseApp.NewContext(false, abci.Header{})
|
ctx := app.BaseApp.NewContext(false, abci.Header{})
|
||||||
appCodec := codecstd.NewAppCodec(app.Codec())
|
appCodec := std.NewAppCodec(app.Codec())
|
||||||
|
|
||||||
proposal := types.Proposal{
|
proposal := types.Proposal{
|
||||||
ProposalBase: types.ProposalBase{
|
ProposalBase: types.ProposalBase{
|
||||||
|
|
|
@ -3,6 +3,7 @@ package simulation_test
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -11,7 +12,6 @@ import (
|
||||||
"github.com/tendermint/tendermint/crypto/ed25519"
|
"github.com/tendermint/tendermint/crypto/ed25519"
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/gov/simulation"
|
"github.com/cosmos/cosmos-sdk/x/gov/simulation"
|
||||||
|
@ -24,7 +24,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeStore(t *testing.T) {
|
func TestDecodeStore(t *testing.T) {
|
||||||
cdc := codecstd.NewAppCodec(codecstd.MakeCodec(simapp.ModuleBasics))
|
cdc := std.NewAppCodec(std.MakeCodec(simapp.ModuleBasics))
|
||||||
dec := simulation.NewDecodeStore(cdc)
|
dec := simulation.NewDecodeStore(cdc)
|
||||||
|
|
||||||
endTime := time.Now().UTC()
|
endTime := time.Now().UTC()
|
||||||
|
|
|
@ -5,12 +5,11 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
"github.com/cosmos/cosmos-sdk/simapp/helpers"
|
"github.com/cosmos/cosmos-sdk/simapp/helpers"
|
||||||
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
|
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
|
||||||
|
std "github.com/cosmos/cosmos-sdk/std"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||||
|
|
|
@ -46,7 +46,7 @@ const (
|
||||||
|
|
||||||
trustingPeriod time.Duration = time.Hour * 24 * 7 * 2
|
trustingPeriod time.Duration = time.Hour * 24 * 7 * 2
|
||||||
ubdPeriod time.Duration = time.Hour * 24 * 7 * 3
|
ubdPeriod time.Duration = time.Hour * 24 * 7 * 3
|
||||||
maxClockDrift time.Duration = time.Second * 10
|
maxClockDrift time.Duration = time.Second * 10
|
||||||
|
|
||||||
timeoutHeight = 100
|
timeoutHeight = 100
|
||||||
timeoutTimestamp = 100
|
timeoutTimestamp = 100
|
||||||
|
|
|
@ -4,11 +4,12 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/mint/simulation"
|
"github.com/cosmos/cosmos-sdk/x/mint/simulation"
|
||||||
|
@ -16,7 +17,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeStore(t *testing.T) {
|
func TestDecodeStore(t *testing.T) {
|
||||||
cdc := codecstd.NewAppCodec(codecstd.MakeCodec(simapp.ModuleBasics))
|
cdc := std.NewAppCodec(std.MakeCodec(simapp.ModuleBasics))
|
||||||
dec := simulation.NewDecodeStore(cdc)
|
dec := simulation.NewDecodeStore(cdc)
|
||||||
|
|
||||||
minter := types.NewMinter(sdk.OneDec(), sdk.NewDec(15))
|
minter := types.NewMinter(sdk.OneDec(), sdk.NewDec(15))
|
||||||
|
|
|
@ -2,6 +2,7 @@ package simulation_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -12,7 +13,6 @@ import (
|
||||||
"github.com/tendermint/tendermint/crypto/ed25519"
|
"github.com/tendermint/tendermint/crypto/ed25519"
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/slashing/simulation"
|
"github.com/cosmos/cosmos-sdk/x/slashing/simulation"
|
||||||
|
@ -28,7 +28,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeStore(t *testing.T) {
|
func TestDecodeStore(t *testing.T) {
|
||||||
cdc := codecstd.NewAppCodec(codecstd.MakeCodec(simapp.ModuleBasics))
|
cdc := std.NewAppCodec(std.MakeCodec(simapp.ModuleBasics))
|
||||||
dec := simulation.NewDecodeStore(cdc)
|
dec := simulation.NewDecodeStore(cdc)
|
||||||
|
|
||||||
info := types.NewValidatorSigningInfo(consAddr1, 0, 1, time.Now().UTC(), false, 0)
|
info := types.NewValidatorSigningInfo(consAddr1, 0, 1, time.Now().UTC(), false, 0)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package staking_test
|
package staking_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
"github.com/tendermint/tendermint/crypto"
|
"github.com/tendermint/tendermint/crypto"
|
||||||
"github.com/tendermint/tendermint/crypto/secp256k1"
|
"github.com/tendermint/tendermint/crypto/secp256k1"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/staking"
|
"github.com/cosmos/cosmos-sdk/x/staking"
|
||||||
|
@ -43,7 +43,7 @@ func getBaseSimappWithCustomKeeper() (*codec.Codec, *simapp.SimApp, sdk.Context)
|
||||||
app := simapp.Setup(false)
|
app := simapp.Setup(false)
|
||||||
ctx := app.BaseApp.NewContext(false, abci.Header{})
|
ctx := app.BaseApp.NewContext(false, abci.Header{})
|
||||||
|
|
||||||
appCodec := codecstd.NewAppCodec(codec.New())
|
appCodec := std.NewAppCodec(codec.New())
|
||||||
|
|
||||||
app.StakingKeeper = keeper.NewKeeper(
|
app.StakingKeeper = keeper.NewKeeper(
|
||||||
appCodec,
|
appCodec,
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package keeper_test
|
package keeper_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/staking"
|
"github.com/cosmos/cosmos-sdk/x/staking"
|
||||||
|
@ -24,7 +24,7 @@ func createTestInput() (*codec.Codec, *simapp.SimApp, sdk.Context) {
|
||||||
app := simapp.Setup(false)
|
app := simapp.Setup(false)
|
||||||
ctx := app.BaseApp.NewContext(false, abci.Header{})
|
ctx := app.BaseApp.NewContext(false, abci.Header{})
|
||||||
|
|
||||||
appCodec := codecstd.NewAppCodec(codec.New())
|
appCodec := std.NewAppCodec(codec.New())
|
||||||
|
|
||||||
app.StakingKeeper = keeper.NewKeeper(
|
app.StakingKeeper = keeper.NewKeeper(
|
||||||
appCodec,
|
appCodec,
|
||||||
|
|
|
@ -2,6 +2,7 @@ package simulation_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/cosmos/cosmos-sdk/std"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -11,7 +12,6 @@ import (
|
||||||
tmkv "github.com/tendermint/tendermint/libs/kv"
|
tmkv "github.com/tendermint/tendermint/libs/kv"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
codecstd "github.com/cosmos/cosmos-sdk/codec/std"
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/staking/simulation"
|
"github.com/cosmos/cosmos-sdk/x/staking/simulation"
|
||||||
|
@ -33,7 +33,7 @@ func makeTestCodec() (cdc *codec.Codec) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDecodeStore(t *testing.T) {
|
func TestDecodeStore(t *testing.T) {
|
||||||
cdc := codecstd.NewAppCodec(codecstd.MakeCodec(simapp.ModuleBasics))
|
cdc := std.NewAppCodec(std.MakeCodec(simapp.ModuleBasics))
|
||||||
dec := simulation.NewDecodeStore(cdc)
|
dec := simulation.NewDecodeStore(cdc)
|
||||||
|
|
||||||
bondTime := time.Now().UTC()
|
bondTime := time.Now().UTC()
|
||||||
|
|
Loading…
Reference in New Issue