Update alias.go, format, clean imports

This commit is contained in:
Ethan Frey
2020-05-13 22:55:07 +02:00
parent c829fcff5a
commit 95bd9e8efa
12 changed files with 48 additions and 20 deletions

View File

@@ -9,11 +9,11 @@ import (
"os" "os"
"testing" "testing"
wasmd "github.com/CosmWasm/wasmd/app"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
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"
authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" authexported "github.com/cosmos/cosmos-sdk/x/auth/exported"
wasmd "github.com/CosmWasm/wasmd/app"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"

View File

@@ -18,14 +18,13 @@ import (
tmtypes "github.com/tendermint/tendermint/types" tmtypes "github.com/tendermint/tendermint/types"
"github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmwasm/wasmd/app"
"github.com/cosmos/cosmos-sdk/tests" "github.com/cosmos/cosmos-sdk/tests"
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"
"github.com/cosmos/cosmos-sdk/x/gov" "github.com/cosmos/cosmos-sdk/x/gov"
"github.com/cosmos/cosmos-sdk/x/mint" "github.com/cosmos/cosmos-sdk/x/mint"
"github.com/CosmWasm/wasmd/app"
) )
func TestGaiaCLIKeysAddMultisig(t *testing.T) { func TestGaiaCLIKeysAddMultisig(t *testing.T) {

View File

@@ -1,8 +1,8 @@
// nolint // nolint
// autogenerated code using github.com/rigelrozanski/multitool // autogenerated code using github.com/rigelrozanski/multitool
// aliases generated for the following subdirectories: // aliases generated for the following subdirectories:
// ALIASGEN: github.com/CosmWasm/wasmd/x/wasm/internal/types // ALIASGEN: github.com/cosmwasm/wasmd/x/wasm/internal/types
// ALIASGEN: github.com/CosmWasm/wasmd/x/wasm/internal/keeper // ALIASGEN: github.com/cosmwasm/wasmd/x/wasm/internal/keeper
package wasm package wasm
import ( import (
@@ -17,13 +17,18 @@ const (
QuerierRoute = types.QuerierRoute QuerierRoute = types.QuerierRoute
RouterKey = types.RouterKey RouterKey = types.RouterKey
MaxWasmSize = types.MaxWasmSize MaxWasmSize = types.MaxWasmSize
MaxLabelSize = types.MaxLabelSize
BuildTagRegexp = types.BuildTagRegexp
MaxBuildTagSize = types.MaxBuildTagSize
CustomEventType = types.CustomEventType
AttributeKeyContractAddr = types.AttributeKeyContractAddr
GasMultiplier = keeper.GasMultiplier GasMultiplier = keeper.GasMultiplier
MaxGas = keeper.MaxGas MaxGas = keeper.MaxGas
QueryListContractByCode = keeper.QueryListContractByCode
QueryGetContract = keeper.QueryGetContract QueryGetContract = keeper.QueryGetContract
QueryGetContractState = keeper.QueryGetContractState QueryGetContractState = keeper.QueryGetContractState
QueryGetCode = keeper.QueryGetCode QueryGetCode = keeper.QueryGetCode
QueryListCode = keeper.QueryListCode QueryListCode = keeper.QueryListCode
QueryListContractByCode = keeper.QueryListContractByCode
QueryMethodContractStateSmart = keeper.QueryMethodContractStateSmart QueryMethodContractStateSmart = keeper.QueryMethodContractStateSmart
QueryMethodContractStateAll = keeper.QueryMethodContractStateAll QueryMethodContractStateAll = keeper.QueryMethodContractStateAll
QueryMethodContractStateRaw = keeper.QueryMethodContractStateRaw QueryMethodContractStateRaw = keeper.QueryMethodContractStateRaw
@@ -37,17 +42,30 @@ var (
GetContractAddressKey = types.GetContractAddressKey GetContractAddressKey = types.GetContractAddressKey
GetContractStorePrefixKey = types.GetContractStorePrefixKey GetContractStorePrefixKey = types.GetContractStorePrefixKey
NewCodeInfo = types.NewCodeInfo NewCodeInfo = types.NewCodeInfo
NewParams = types.NewEnv NewCreatedAt = types.NewCreatedAt
NewWasmCoins = types.NewWasmCoins
NewContractInfo = types.NewContractInfo NewContractInfo = types.NewContractInfo
NewEnv = types.NewEnv
NewWasmCoins = types.NewWasmCoins
CosmosResult = types.CosmosResult CosmosResult = types.CosmosResult
DefaultWasmConfig = types.DefaultWasmConfig DefaultWasmConfig = types.DefaultWasmConfig
InitGenesis = keeper.InitGenesis InitGenesis = keeper.InitGenesis
ExportGenesis = keeper.ExportGenesis ExportGenesis = keeper.ExportGenesis
NewMessageHandler = keeper.NewMessageHandler
DefaultEncoders = keeper.DefaultEncoders
EncodeBankMsg = keeper.EncodeBankMsg
NoCustomMsg = keeper.NoCustomMsg
EncodeStakingMsg = keeper.EncodeStakingMsg
EncodeWasmMsg = keeper.EncodeWasmMsg
NewKeeper = keeper.NewKeeper NewKeeper = keeper.NewKeeper
NewQuerier = keeper.NewQuerier NewQuerier = keeper.NewQuerier
DefaultQueryPlugins = keeper.DefaultQueryPlugins
BankQuerier = keeper.BankQuerier
NoCustomQuerier = keeper.NoCustomQuerier
StakingQuerier = keeper.StakingQuerier
WasmQuerier = keeper.WasmQuerier
MakeTestCodec = keeper.MakeTestCodec MakeTestCodec = keeper.MakeTestCodec
CreateTestInput = keeper.CreateTestInput CreateTestInput = keeper.CreateTestInput
TestHandler = keeper.TestHandler
// variable aliases // variable aliases
ModuleCdc = types.ModuleCdc ModuleCdc = types.ModuleCdc
@@ -60,6 +78,7 @@ var (
ErrInvalidGenesis = types.ErrInvalidGenesis ErrInvalidGenesis = types.ErrInvalidGenesis
ErrNotFound = types.ErrNotFound ErrNotFound = types.ErrNotFound
ErrQueryFailed = types.ErrQueryFailed ErrQueryFailed = types.ErrQueryFailed
ErrInvalidMsg = types.ErrInvalidMsg
KeyLastCodeID = types.KeyLastCodeID KeyLastCodeID = types.KeyLastCodeID
KeyLastInstanceID = types.KeyLastInstanceID KeyLastInstanceID = types.KeyLastInstanceID
CodeKeyPrefix = types.CodeKeyPrefix CodeKeyPrefix = types.CodeKeyPrefix
@@ -77,9 +96,19 @@ type (
Model = types.Model Model = types.Model
CodeInfo = types.CodeInfo CodeInfo = types.CodeInfo
ContractInfo = types.ContractInfo ContractInfo = types.ContractInfo
CreatedAt = types.CreatedAt
WasmConfig = types.WasmConfig WasmConfig = types.WasmConfig
MessageHandler = keeper.MessageHandler
BankEncoder = keeper.BankEncoder
CustomEncoder = keeper.CustomEncoder
StakingEncoder = keeper.StakingEncoder
WasmEncoder = keeper.WasmEncoder
MessageEncoders = keeper.MessageEncoders
Keeper = keeper.Keeper Keeper = keeper.Keeper
ContractInfoWithAddress = keeper.ContractInfoWithAddress ContractInfoWithAddress = keeper.ContractInfoWithAddress
GetCodeResponse = keeper.GetCodeResponse GetCodeResponse = keeper.GetCodeResponse
ListCodeResponse = keeper.ListCodeResponse ListCodeResponse = keeper.ListCodeResponse
QueryHandler = keeper.QueryHandler
CustomQuerier = keeper.CustomQuerier
QueryPlugins = keeper.QueryPlugins
) )

View File

@@ -8,10 +8,10 @@ import (
"net/http" "net/http"
"strconv" "strconv"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/rest"
"github.com/CosmWasm/wasmd/x/wasm/internal/keeper" "github.com/CosmWasm/wasmd/x/wasm/internal/keeper"
"github.com/CosmWasm/wasmd/x/wasm/internal/types" "github.com/CosmWasm/wasmd/x/wasm/internal/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/rest"
"github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/client/context"
"github.com/gorilla/mux" "github.com/gorilla/mux"

View File

@@ -3,8 +3,8 @@ package keeper
import ( import (
"bytes" "bytes"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/CosmWasm/wasmd/x/wasm/internal/types" "github.com/CosmWasm/wasmd/x/wasm/internal/types"
sdk "github.com/cosmos/cosmos-sdk/types"
// authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" // authexported "github.com/cosmos/cosmos-sdk/x/auth/exported"
// "github.com/CosmWasm/wasmd/x/wasm/internal/types" // "github.com/CosmWasm/wasmd/x/wasm/internal/types"
) )

View File

@@ -5,12 +5,12 @@ import (
"fmt" "fmt"
wasmTypes "github.com/CosmWasm/go-cosmwasm/types" wasmTypes "github.com/CosmWasm/go-cosmwasm/types"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/bank"
"github.com/cosmos/cosmos-sdk/x/distribution" "github.com/cosmos/cosmos-sdk/x/distribution"
"github.com/cosmos/cosmos-sdk/x/staking" "github.com/cosmos/cosmos-sdk/x/staking"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
) )
type MessageHandler struct { type MessageHandler struct {

View File

@@ -3,9 +3,9 @@ package keeper
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
"github.com/cosmos/cosmos-sdk/x/distribution" "github.com/cosmos/cosmos-sdk/x/distribution"
"github.com/cosmos/cosmos-sdk/x/staking" "github.com/cosmos/cosmos-sdk/x/staking"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"

View File

@@ -8,10 +8,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
stypes "github.com/cosmos/cosmos-sdk/store/types" stypes "github.com/cosmos/cosmos-sdk/store/types"
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"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"

View File

@@ -2,8 +2,8 @@ package keeper
import ( import (
"encoding/json" "encoding/json"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/CosmWasm/wasmd/x/wasm/internal/types" "github.com/CosmWasm/wasmd/x/wasm/internal/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"io/ioutil" "io/ioutil"
"os" "os"
"strings" "strings"

View File

@@ -5,9 +5,9 @@ import (
"sort" "sort"
"strconv" "strconv"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
tmbytes "github.com/tendermint/tendermint/libs/bytes" tmbytes "github.com/tendermint/tendermint/libs/bytes"

View File

@@ -7,9 +7,9 @@ import (
"os" "os"
"testing" "testing"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
sdkErrors "github.com/cosmos/cosmos-sdk/types/errors" sdkErrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/CosmWasm/wasmd/x/wasm/internal/types"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"

View File

@@ -8,12 +8,12 @@ import (
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
"github.com/CosmWasm/wasmd/x/wasm/client/cli"
"github.com/CosmWasm/wasmd/x/wasm/client/rest"
"github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/client/context"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
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"
"github.com/CosmWasm/wasmd/x/wasm/client/cli"
"github.com/CosmWasm/wasmd/x/wasm/client/rest"
) )
var ( var (