mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-06-06 14:16:39 +00:00
[go.mod] Switch module to github.com (#86)
This is the quasi-standard and fixes the error below: ``` $ go get -u github.com/planetmint/planetmint-go@v0.1.0 go: github.com/planetmint/planetmint-go@v0.1.0: parsing go.mod: module declares its path as: planetmint-go but was required as: github.com/planetmint/planetmint-go ``` Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
parent
b215f7a5db
commit
d4eed021c8
@ -1,8 +1,8 @@
|
||||
package ante
|
||||
|
||||
import (
|
||||
assettypes "planetmint-go/x/asset/types"
|
||||
machinetypes "planetmint-go/x/machine/types"
|
||||
assettypes "github.com/planetmint/planetmint-go/x/asset/types"
|
||||
machinetypes "github.com/planetmint/planetmint-go/x/machine/types"
|
||||
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package ante
|
||||
|
||||
import (
|
||||
"planetmint-go/x/machine/types"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
|
24
app/app.go
24
app/app.go
@ -109,23 +109,23 @@ import (
|
||||
ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
machinemodule "planetmint-go/x/machine"
|
||||
machinemodulekeeper "planetmint-go/x/machine/keeper"
|
||||
machinemoduletypes "planetmint-go/x/machine/types"
|
||||
machinemodule "github.com/planetmint/planetmint-go/x/machine"
|
||||
machinemodulekeeper "github.com/planetmint/planetmint-go/x/machine/keeper"
|
||||
machinemoduletypes "github.com/planetmint/planetmint-go/x/machine/types"
|
||||
|
||||
assetmodule "planetmint-go/x/asset"
|
||||
assetmodulekeeper "planetmint-go/x/asset/keeper"
|
||||
assetmoduletypes "planetmint-go/x/asset/types"
|
||||
assetmodule "github.com/planetmint/planetmint-go/x/asset"
|
||||
assetmodulekeeper "github.com/planetmint/planetmint-go/x/asset/keeper"
|
||||
assetmoduletypes "github.com/planetmint/planetmint-go/x/asset/types"
|
||||
|
||||
daomodule "planetmint-go/x/dao"
|
||||
daomodulekeeper "planetmint-go/x/dao/keeper"
|
||||
daomoduletypes "planetmint-go/x/dao/types"
|
||||
daomodule "github.com/planetmint/planetmint-go/x/dao"
|
||||
daomodulekeeper "github.com/planetmint/planetmint-go/x/dao/keeper"
|
||||
daomoduletypes "github.com/planetmint/planetmint-go/x/dao/types"
|
||||
|
||||
// this line is used by starport scaffolding # stargate/app/moduleImport
|
||||
|
||||
pmante "planetmint-go/app/ante"
|
||||
appparams "planetmint-go/app/params"
|
||||
"planetmint-go/docs"
|
||||
pmante "github.com/planetmint/planetmint-go/app/ante"
|
||||
appparams "github.com/planetmint/planetmint-go/app/params"
|
||||
"github.com/planetmint/planetmint-go/docs"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/std"
|
||||
"github.com/cosmos/cosmos-sdk/x/auth/tx"
|
||||
|
||||
"planetmint-go/app/params"
|
||||
"github.com/planetmint/planetmint-go/app/params"
|
||||
)
|
||||
|
||||
// makeEncodingConfig creates an EncodingConfig for an amino based test configuration.
|
||||
|
@ -36,7 +36,7 @@ import (
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"planetmint-go/app"
|
||||
"github.com/planetmint/planetmint-go/app"
|
||||
)
|
||||
|
||||
const SIMULATION_SETUP_FAILED = "simulation setup failed"
|
||||
|
@ -3,7 +3,7 @@ package cmd
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"planetmint-go/app"
|
||||
"github.com/planetmint/planetmint-go/app"
|
||||
)
|
||||
|
||||
func initSDKConfig() *sdk.Config {
|
||||
|
@ -39,9 +39,9 @@ import (
|
||||
|
||||
// this line is used by starport scaffolding # root/moduleImport
|
||||
|
||||
"planetmint-go/app"
|
||||
appparams "planetmint-go/app/params"
|
||||
planetmintconfig "planetmint-go/config"
|
||||
"github.com/planetmint/planetmint-go/app"
|
||||
appparams "github.com/planetmint/planetmint-go/app/params"
|
||||
planetmintconfig "github.com/planetmint/planetmint-go/config"
|
||||
)
|
||||
|
||||
// NewRootCmd creates a new root command for a Cosmos SDK application
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/server"
|
||||
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
|
||||
|
||||
"planetmint-go/app"
|
||||
"planetmint-go/cmd/planetmint-god/cmd"
|
||||
"github.com/planetmint/planetmint-go/app"
|
||||
"github.com/planetmint/planetmint-go/cmd/planetmint-god/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
10
docs/static/openapi.yml
vendored
10
docs/static/openapi.yml
vendored
@ -46437,7 +46437,7 @@ paths:
|
||||
}
|
||||
tags:
|
||||
- Query
|
||||
/planetmint-go/asset/params:
|
||||
/github.com/planetmint/planetmint-go/asset/params:
|
||||
get:
|
||||
summary: Parameters queries the parameters of the module.
|
||||
operationId: PlanetmintgoAssetParams
|
||||
@ -46473,7 +46473,7 @@ paths:
|
||||
additionalProperties: {}
|
||||
tags:
|
||||
- Query
|
||||
/planetmint-go/dao/params:
|
||||
/github.com/planetmint/planetmint-go/dao/params:
|
||||
get:
|
||||
summary: Parameters queries the parameters of the module.
|
||||
operationId: PlanetmintgoDaoParams
|
||||
@ -46509,7 +46509,7 @@ paths:
|
||||
additionalProperties: {}
|
||||
tags:
|
||||
- Query
|
||||
/planetmint-go/machine/get_machine_by_public_key/{publicKey}:
|
||||
/github.com/planetmint/planetmint-go/machine/get_machine_by_public_key/{publicKey}:
|
||||
get:
|
||||
summary: Queries a list of GetMachineByPublicKey items.
|
||||
operationId: PlanetmintgoMachineGetMachineByPublicKey
|
||||
@ -46583,7 +46583,7 @@ paths:
|
||||
type: string
|
||||
tags:
|
||||
- Query
|
||||
/planetmint-go/machine/get_trust_anchor_status/{machineid}:
|
||||
/github.com/planetmint/planetmint-go/machine/get_trust_anchor_status/{machineid}:
|
||||
get:
|
||||
summary: Queries a list of GetTrustAnchorStatus items.
|
||||
operationId: PlanetmintgoMachineGetTrustAnchorStatus
|
||||
@ -46622,7 +46622,7 @@ paths:
|
||||
type: string
|
||||
tags:
|
||||
- Query
|
||||
/planetmint-go/machine/params:
|
||||
/github.com/planetmint/planetmint-go/machine/params:
|
||||
get:
|
||||
summary: Parameters queries the parameters of the module.
|
||||
operationId: PlanetmintgoMachineParams
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module planetmint-go
|
||||
module github.com/planetmint/planetmint-go
|
||||
|
||||
go 1.19
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package planetmintgo.asset;
|
||||
|
||||
option go_package = "planetmint-go/x/asset/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/asset/types";
|
||||
|
||||
message Asset {
|
||||
|
||||
|
@ -4,7 +4,7 @@ package planetmintgo.asset;
|
||||
import "gogoproto/gogo.proto";
|
||||
import "planetmintgo/asset/params.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/asset/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/asset/types";
|
||||
|
||||
// GenesisState defines the asset module's genesis state.
|
||||
message GenesisState {
|
||||
|
@ -3,7 +3,7 @@ package planetmintgo.asset;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/asset/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/asset/types";
|
||||
|
||||
// Params defines the parameters for the module.
|
||||
message Params {
|
||||
|
@ -6,13 +6,13 @@ import "google/api/annotations.proto";
|
||||
import "cosmos/base/query/v1beta1/pagination.proto";
|
||||
import "planetmintgo/asset/params.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/asset/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/asset/types";
|
||||
|
||||
// Query defines the gRPC querier service.
|
||||
service Query {
|
||||
// Parameters queries the parameters of the module.
|
||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
||||
option (google.api.http).get = "/planetmint-go/asset/params";
|
||||
option (google.api.http).get = "/github.com/planetmint/planetmint-go/asset/params";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
||||
|
||||
package planetmintgo.asset;
|
||||
|
||||
option go_package = "planetmint-go/x/asset/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/asset/types";
|
||||
|
||||
// Msg defines the Msg service.
|
||||
service Msg {
|
||||
|
@ -4,7 +4,7 @@ package planetmintgo.dao;
|
||||
import "gogoproto/gogo.proto";
|
||||
import "planetmintgo/dao/params.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/dao/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/dao/types";
|
||||
|
||||
// GenesisState defines the dao module's genesis state.
|
||||
message GenesisState {
|
||||
|
@ -3,7 +3,7 @@ package planetmintgo.dao;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/dao/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/dao/types";
|
||||
|
||||
// Params defines the parameters for the module.
|
||||
message Params {
|
||||
|
@ -6,13 +6,13 @@ import "google/api/annotations.proto";
|
||||
import "cosmos/base/query/v1beta1/pagination.proto";
|
||||
import "planetmintgo/dao/params.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/dao/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/dao/types";
|
||||
|
||||
// Query defines the gRPC querier service.
|
||||
service Query {
|
||||
// Parameters queries the parameters of the module.
|
||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
||||
option (google.api.http).get = "/planetmint-go/dao/params";
|
||||
option (google.api.http).get = "/github.com/planetmint/planetmint-go/dao/params";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package planetmintgo.dao;
|
||||
|
||||
option go_package = "planetmint-go/x/dao/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/dao/types";
|
||||
|
||||
// Msg defines the Msg service.
|
||||
service Msg {}
|
@ -4,7 +4,7 @@ package planetmintgo.machine;
|
||||
import "gogoproto/gogo.proto";
|
||||
import "planetmintgo/machine/params.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/machine/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/machine/types";
|
||||
|
||||
// GenesisState defines the machine module's genesis state.
|
||||
message GenesisState {
|
||||
|
@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package planetmintgo.machine;
|
||||
|
||||
option go_package = "planetmint-go/x/machine/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/machine/types";
|
||||
|
||||
message Machine {
|
||||
|
||||
|
@ -3,7 +3,7 @@ package planetmintgo.machine;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/machine/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/machine/types";
|
||||
|
||||
// Params defines the parameters for the module.
|
||||
message Params {
|
||||
|
@ -8,26 +8,26 @@ import "cosmos/base/query/v1beta1/pagination.proto";
|
||||
import "planetmintgo/machine/params.proto";
|
||||
import "planetmintgo/machine/machine.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/machine/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/machine/types";
|
||||
|
||||
// Query defines the gRPC querier service.
|
||||
service Query {
|
||||
|
||||
// Parameters queries the parameters of the module.
|
||||
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {
|
||||
option (google.api.http).get = "/planetmint-go/machine/params";
|
||||
option (google.api.http).get = "/github.com/planetmint/planetmint-go/machine/params";
|
||||
|
||||
}
|
||||
|
||||
// Queries a list of GetMachineByPublicKey items.
|
||||
rpc GetMachineByPublicKey (QueryGetMachineByPublicKeyRequest) returns (QueryGetMachineByPublicKeyResponse) {
|
||||
option (google.api.http).get = "/planetmint-go/machine/get_machine_by_public_key/{publicKey}";
|
||||
option (google.api.http).get = "/github.com/planetmint/planetmint-go/machine/get_machine_by_public_key/{publicKey}";
|
||||
|
||||
}
|
||||
|
||||
// Queries a list of GetTrustAnchorStatus items.
|
||||
rpc GetTrustAnchorStatus (QueryGetTrustAnchorStatusRequest) returns (QueryGetTrustAnchorStatusResponse) {
|
||||
option (google.api.http).get = "/planetmint-go/machine/get_trust_anchor_status/{machineid}";
|
||||
option (google.api.http).get = "/github.com/planetmint/planetmint-go/machine/get_trust_anchor_status/{machineid}";
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package planetmintgo.machine;
|
||||
|
||||
option go_package = "planetmint-go/x/machine/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/machine/types";
|
||||
|
||||
message TrustAnchor {
|
||||
string pubkey = 1;
|
||||
|
@ -5,7 +5,7 @@ package planetmintgo.machine;
|
||||
import "planetmintgo/machine/machine.proto";
|
||||
import "planetmintgo/machine/trust_anchor.proto";
|
||||
|
||||
option go_package = "planetmint-go/x/machine/types";
|
||||
option go_package = "github.com/planetmint/planetmint-go/x/machine/types";
|
||||
|
||||
// Msg defines the Msg service.
|
||||
service Msg {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package asset
|
||||
|
||||
import (
|
||||
"planetmint-go/testutil/network"
|
||||
"github.com/planetmint/planetmint-go/testutil/network"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
|
@ -3,12 +3,12 @@ package asset
|
||||
import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"planetmint-go/testutil"
|
||||
"planetmint-go/testutil/sample"
|
||||
"github.com/planetmint/planetmint-go/testutil"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
|
||||
"github.com/btcsuite/btcd/btcutil/hdkeychain"
|
||||
|
||||
assettypes "planetmint-go/x/asset/types"
|
||||
assettypes "github.com/planetmint/planetmint-go/x/asset/types"
|
||||
|
||||
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
|
||||
)
|
||||
|
@ -4,13 +4,14 @@ import (
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"planetmint-go/config"
|
||||
"planetmint-go/testutil/network"
|
||||
"planetmint-go/testutil/sample"
|
||||
|
||||
clitestutil "planetmint-go/testutil/cli"
|
||||
assetcli "planetmint-go/x/asset/client/cli"
|
||||
machinecli "planetmint-go/x/machine/client/cli"
|
||||
"github.com/planetmint/planetmint-go/config"
|
||||
"github.com/planetmint/planetmint-go/testutil/network"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
|
||||
clitestutil "github.com/planetmint/planetmint-go/testutil/cli"
|
||||
assetcli "github.com/planetmint/planetmint-go/x/asset/client/cli"
|
||||
machinecli "github.com/planetmint/planetmint-go/x/machine/client/cli"
|
||||
|
||||
"github.com/btcsuite/btcd/btcutil/hdkeychain"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"planetmint-go/testutil/network"
|
||||
"github.com/planetmint/planetmint-go/testutil/network"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
|
@ -2,15 +2,15 @@ package dao
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"planetmint-go/config"
|
||||
"planetmint-go/testutil/network"
|
||||
"planetmint-go/testutil/sample"
|
||||
"github.com/planetmint/planetmint-go/config"
|
||||
"github.com/planetmint/planetmint-go/testutil/network"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
|
||||
"cosmossdk.io/math"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
clitestutil "planetmint-go/testutil/cli"
|
||||
clitestutil "github.com/planetmint/planetmint-go/testutil/cli"
|
||||
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
bank "github.com/cosmos/cosmos-sdk/x/bank/client/cli"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"planetmint-go/testutil/network"
|
||||
"github.com/planetmint/planetmint-go/testutil/network"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
|
@ -2,9 +2,9 @@ package machine
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"planetmint-go/testutil"
|
||||
"planetmint-go/testutil/sample"
|
||||
machinetypes "planetmint-go/x/machine/types"
|
||||
"github.com/planetmint/planetmint-go/testutil"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
machinetypes "github.com/planetmint/planetmint-go/x/machine/types"
|
||||
|
||||
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
|
||||
)
|
||||
@ -58,7 +58,7 @@ func (s *E2ETestSuite) TestAttestMachineREST() {
|
||||
s.Require().NoError(err)
|
||||
s.Require().Equal(uint32(0), txRes.TxResponse.Code)
|
||||
|
||||
queryMachineUrl := fmt.Sprintf("%s/planetmint-go/machine/get_machine_by_public_key/%s", baseURL, pubKey)
|
||||
queryMachineUrl := fmt.Sprintf("%s/github.com/planetmint/planetmint-go/machine/get_machine_by_public_key/%s", baseURL, pubKey)
|
||||
queryMachineRes, err := testutil.GetRequest(queryMachineUrl)
|
||||
s.Require().NoError(err)
|
||||
|
||||
|
@ -3,10 +3,10 @@ package machine
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
clitestutil "planetmint-go/testutil/cli"
|
||||
"planetmint-go/testutil/network"
|
||||
"planetmint-go/testutil/sample"
|
||||
machinecli "planetmint-go/x/machine/client/cli"
|
||||
clitestutil "github.com/planetmint/planetmint-go/testutil/cli"
|
||||
"github.com/planetmint/planetmint-go/testutil/network"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
machinecli "github.com/planetmint/planetmint-go/x/machine/client/cli"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
||||
|
@ -3,7 +3,7 @@ package cli
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"planetmint-go/testutil"
|
||||
"github.com/planetmint/planetmint-go/testutil"
|
||||
"regexp"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/testutil/network"
|
||||
|
@ -3,12 +3,12 @@ package keeper
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"planetmint-go/config"
|
||||
"planetmint-go/testutil/sample"
|
||||
"planetmint-go/x/asset/keeper"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/config"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
"github.com/planetmint/planetmint-go/x/asset/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
|
||||
assettestutils "planetmint-go/x/asset/testutil"
|
||||
assettestutils "github.com/planetmint/planetmint-go/x/asset/testutil"
|
||||
|
||||
tmdb "github.com/cometbft/cometbft-db"
|
||||
"github.com/cometbft/cometbft/libs/log"
|
||||
|
@ -12,9 +12,9 @@ import (
|
||||
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
"planetmint-go/x/dao/keeper"
|
||||
"planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
func DaoKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
|
||||
|
@ -3,8 +3,8 @@ package keeper
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"planetmint-go/x/machine/keeper"
|
||||
"planetmint-go/x/machine/types"
|
||||
"github.com/planetmint/planetmint-go/x/machine/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
|
||||
tmdb "github.com/cometbft/cometbft-db"
|
||||
"github.com/cometbft/cometbft/libs/log"
|
||||
|
@ -17,7 +17,7 @@ import (
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"planetmint-go/app"
|
||||
"github.com/planetmint/planetmint-go/app"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
|
||||
"planetmint-go/config"
|
||||
machinetypes "planetmint-go/x/machine/types"
|
||||
"github.com/planetmint/planetmint-go/config"
|
||||
machinetypes "github.com/planetmint/planetmint-go/x/machine/types"
|
||||
|
||||
"github.com/btcsuite/btcd/btcutil/hdkeychain"
|
||||
"github.com/btcsuite/btcd/chaincfg"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
// sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
func CmdQueryParams() *cobra.Command {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
"github.com/spf13/cobra"
|
||||
"planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
@ -2,8 +2,8 @@ package asset
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"planetmint-go/x/asset/keeper"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
// InitGenesis initializes the module's state from a provided genesis state.
|
||||
|
@ -3,11 +3,11 @@ package asset_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
keepertest "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/testutil/nullify"
|
||||
"github.com/planetmint/planetmint-go/x/asset"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
keepertest "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/testutil/nullify"
|
||||
"planetmint-go/x/asset"
|
||||
"planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
func TestGenesis(t *testing.T) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
keepertest "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/x/asset/keeper"
|
||||
"planetmint-go/x/asset/types"
|
||||
keepertest "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
|
||||
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -1,7 +1,7 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
type msgServer struct {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"planetmint-go/util"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/util"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
@ -5,11 +5,11 @@ import (
|
||||
"encoding/hex"
|
||||
"testing"
|
||||
|
||||
"planetmint-go/config"
|
||||
keepertest "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/testutil/sample"
|
||||
"planetmint-go/x/asset/keeper"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/config"
|
||||
keepertest "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
"github.com/planetmint/planetmint-go/x/asset/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
|
||||
"github.com/btcsuite/btcd/btcutil/hdkeychain"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
@ -2,7 +2,7 @@ package keeper
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
// GetParams get all parameters as types.Params
|
||||
|
@ -3,9 +3,9 @@ package keeper_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
testkeeper "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
testkeeper "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
func TestGetParams(t *testing.T) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
var _ types.QueryServer = Keeper{}
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
"planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"testing"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
testkeeper "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
testkeeper "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
func TestParamsQuery(t *testing.T) {
|
||||
|
@ -16,9 +16,9 @@ import (
|
||||
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/module"
|
||||
"planetmint-go/x/asset/client/cli"
|
||||
"planetmint-go/x/asset/keeper"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/client/cli"
|
||||
"github.com/planetmint/planetmint-go/x/asset/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/types/module"
|
||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
"github.com/cosmos/cosmos-sdk/x/simulation"
|
||||
"planetmint-go/testutil/sample"
|
||||
assetsimulation "planetmint-go/x/asset/simulation"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
assetsimulation "github.com/planetmint/planetmint-go/x/asset/simulation"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
// avoid unused import issue
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
"planetmint-go/x/asset/keeper"
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
)
|
||||
|
||||
func SimulateMsgNotarizeAsset(
|
||||
|
@ -5,7 +5,7 @@
|
||||
package testutil
|
||||
|
||||
import (
|
||||
types1 "planetmint-go/x/machine/types"
|
||||
types1 "github.com/planetmint/planetmint-go/x/machine/types"
|
||||
reflect "reflect"
|
||||
|
||||
types "github.com/cosmos/cosmos-sdk/types"
|
||||
|
@ -89,18 +89,19 @@ func init() {
|
||||
func init() { proto.RegisterFile("planetmintgo/asset/asset.proto", fileDescriptor_03dd37a25f684e6e) }
|
||||
|
||||
var fileDescriptor_03dd37a25f684e6e = []byte{
|
||||
// 166 bytes of a gzipped FileDescriptorProto
|
||||
// 179 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0xc8, 0x49, 0xcc,
|
||||
0x4b, 0x2d, 0xc9, 0xcd, 0xcc, 0x2b, 0x49, 0xcf, 0xd7, 0x4f, 0x2c, 0x2e, 0x4e, 0x2d, 0x81, 0x90,
|
||||
0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x42, 0xc8, 0xf2, 0x7a, 0x60, 0x19, 0xa5, 0x40, 0x2e,
|
||||
0x56, 0x47, 0x10, 0x43, 0x48, 0x88, 0x8b, 0x25, 0x23, 0xb1, 0x38, 0x43, 0x82, 0x51, 0x81, 0x51,
|
||||
0x83, 0x33, 0x08, 0xcc, 0x16, 0x92, 0xe1, 0xe2, 0x2c, 0xce, 0x4c, 0xcf, 0x4b, 0x2c, 0x29, 0x2d,
|
||||
0x4a, 0x95, 0x60, 0x02, 0x4b, 0x20, 0x04, 0x84, 0xc4, 0xb8, 0xd8, 0x0a, 0x4a, 0x93, 0xb2, 0x53,
|
||||
0x2b, 0x25, 0x98, 0xc1, 0x52, 0x50, 0x9e, 0x93, 0xe9, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9,
|
||||
0x2b, 0x25, 0x98, 0xc1, 0x52, 0x50, 0x9e, 0x93, 0xf7, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9,
|
||||
0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e,
|
||||
0xcb, 0x31, 0x44, 0x49, 0x23, 0x1c, 0xa0, 0x9b, 0x9e, 0xaf, 0x5f, 0x01, 0x75, 0x63, 0x49, 0x65,
|
||||
0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x91, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x35,
|
||||
0x90, 0xe0, 0xc6, 0x00, 0x00, 0x00,
|
||||
0xcb, 0x31, 0x44, 0x19, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x23,
|
||||
0xdc, 0x82, 0xc4, 0xd4, 0x4d, 0xcf, 0xd7, 0xaf, 0x80, 0xba, 0xbc, 0xa4, 0xb2, 0x20, 0xb5, 0x38,
|
||||
0x89, 0x0d, 0xec, 0x74, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9b, 0xe4, 0xfc, 0x55, 0xdc,
|
||||
0x00, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Asset) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
machinetypes "planetmint-go/x/machine/types"
|
||||
machinetypes "github.com/planetmint/planetmint-go/x/machine/types"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
|
@ -75,7 +75,7 @@ func init() {
|
||||
func init() { proto.RegisterFile("planetmintgo/asset/genesis.proto", fileDescriptor_419cf47a856cde82) }
|
||||
|
||||
var fileDescriptor_419cf47a856cde82 = []byte{
|
||||
// 181 bytes of a gzipped FileDescriptorProto
|
||||
// 194 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0xc8, 0x49, 0xcc,
|
||||
0x4b, 0x2d, 0xc9, 0xcd, 0xcc, 0x2b, 0x49, 0xcf, 0xd7, 0x4f, 0x2c, 0x2e, 0x4e, 0x2d, 0xd1, 0x4f,
|
||||
0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0x56,
|
||||
@ -83,11 +83,12 @@ var fileDescriptor_419cf47a856cde82 = []byte{
|
||||
0xa5, 0xe4, 0xb1, 0x98, 0x55, 0x90, 0x58, 0x94, 0x98, 0x0b, 0x35, 0x4a, 0xc9, 0x83, 0x8b, 0xc7,
|
||||
0x1d, 0x62, 0x76, 0x70, 0x49, 0x62, 0x49, 0xaa, 0x90, 0x05, 0x17, 0x1b, 0x44, 0x5e, 0x82, 0x51,
|
||||
0x81, 0x51, 0x83, 0xdb, 0x48, 0x4a, 0x0f, 0xd3, 0x2e, 0xbd, 0x00, 0xb0, 0x0a, 0x27, 0x96, 0x13,
|
||||
0xf7, 0xe4, 0x19, 0x82, 0xa0, 0xea, 0x9d, 0x4c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e,
|
||||
0xf7, 0xe4, 0x19, 0x82, 0xa0, 0xea, 0x9d, 0xbc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e,
|
||||
0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58,
|
||||
0x8e, 0x21, 0x4a, 0x1a, 0x61, 0x84, 0x6e, 0x7a, 0xbe, 0x7e, 0x05, 0xd4, 0x1d, 0x25, 0x95, 0x05,
|
||||
0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x77, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x6f, 0x0f,
|
||||
0x6a, 0xf6, 0x00, 0x00, 0x00,
|
||||
0x8e, 0x21, 0xca, 0x30, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x61,
|
||||
0x1a, 0x12, 0x53, 0x37, 0x3d, 0x5f, 0xbf, 0x02, 0xea, 0xba, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24,
|
||||
0x36, 0xb0, 0xeb, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x16, 0xce, 0x42, 0x0c, 0x01,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -3,7 +3,7 @@ package types_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"planetmint-go/x/asset/types"
|
||||
"github.com/planetmint/planetmint-go/x/asset/types"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
@ -3,7 +3,7 @@ package types
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"planetmint-go/testutil/sample"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -66,16 +66,17 @@ func init() {
|
||||
func init() { proto.RegisterFile("planetmintgo/asset/params.proto", fileDescriptor_155e455f6ba362d5) }
|
||||
|
||||
var fileDescriptor_155e455f6ba362d5 = []byte{
|
||||
// 139 bytes of a gzipped FileDescriptorProto
|
||||
// 152 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2f, 0xc8, 0x49, 0xcc,
|
||||
0x4b, 0x2d, 0xc9, 0xcd, 0xcc, 0x2b, 0x49, 0xcf, 0xd7, 0x4f, 0x2c, 0x2e, 0x4e, 0x2d, 0xd1, 0x2f,
|
||||
0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0x56, 0xa0,
|
||||
0x07, 0x56, 0x20, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x96, 0xd6, 0x07, 0xb1, 0x20, 0x2a, 0x95,
|
||||
0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x3a, 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, 0x32, 0x3d, 0xf1,
|
||||
0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x3a, 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, 0xf2, 0x3e, 0xf1,
|
||||
0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8,
|
||||
0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x69, 0x84, 0x99, 0xba, 0xe9, 0xf9, 0xfa,
|
||||
0x15, 0x50, 0x7b, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xa6, 0x19, 0x03, 0x02, 0x00,
|
||||
0x00, 0xff, 0xff, 0x02, 0xc0, 0xe1, 0x6c, 0x9a, 0x00, 0x00, 0x00,
|
||||
0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xc3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24,
|
||||
0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x84, 0xf1, 0x48, 0x4c, 0xdd, 0xf4, 0x7c, 0xfd, 0x0a, 0xa8, 0x6b,
|
||||
0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x76, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff,
|
||||
0x56, 0x29, 0xd1, 0x61, 0xb0, 0x00, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Params) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -121,26 +121,26 @@ func init() {
|
||||
func init() { proto.RegisterFile("planetmintgo/asset/query.proto", fileDescriptor_5832a953a81817c0) }
|
||||
|
||||
var fileDescriptor_5832a953a81817c0 = []byte{
|
||||
// 290 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4b, 0x03, 0x31,
|
||||
0x14, 0xc7, 0x2f, 0xa2, 0x1d, 0xe2, 0x16, 0x3b, 0xc8, 0x55, 0x53, 0x39, 0x41, 0x45, 0xf0, 0x42,
|
||||
0x2b, 0x82, 0x73, 0xbf, 0x80, 0xda, 0xd1, 0x2d, 0x27, 0x21, 0x1c, 0xf4, 0xf2, 0xd2, 0x7b, 0xa9,
|
||||
0xd8, 0xc5, 0xc1, 0xc5, 0x55, 0xf0, 0x4b, 0x75, 0x2c, 0xb8, 0x38, 0x89, 0xdc, 0xf9, 0x41, 0xa4,
|
||||
0xc9, 0x81, 0xd6, 0x16, 0xdc, 0x8e, 0xf7, 0xff, 0xfd, 0xde, 0xfd, 0x5f, 0x28, 0xb7, 0x23, 0x69,
|
||||
0x94, 0x2b, 0x72, 0xe3, 0x34, 0x08, 0x89, 0xa8, 0x9c, 0x18, 0x4f, 0x54, 0x39, 0x4d, 0x6d, 0x09,
|
||||
0x0e, 0x18, 0xfb, 0x9d, 0xa7, 0x3e, 0x8f, 0xdb, 0x1a, 0x34, 0xf8, 0x58, 0x2c, 0xbe, 0x02, 0x19,
|
||||
0xef, 0x69, 0x00, 0x3d, 0x52, 0x42, 0xda, 0x5c, 0x48, 0x63, 0xc0, 0x49, 0x97, 0x83, 0xc1, 0x26,
|
||||
0x3d, 0xbd, 0x03, 0x2c, 0x00, 0x45, 0x26, 0x51, 0x85, 0x1f, 0x88, 0xfb, 0x5e, 0xa6, 0x9c, 0xec,
|
||||
0x09, 0x2b, 0x75, 0x6e, 0x3c, 0xdc, 0xb0, 0xdd, 0x35, 0x9d, 0xac, 0x2c, 0x65, 0xd1, 0x2c, 0x4b,
|
||||
0xda, 0x94, 0xdd, 0x2c, 0x56, 0x5c, 0xfb, 0xe1, 0x50, 0x8d, 0x27, 0x0a, 0x5d, 0x72, 0x45, 0x77,
|
||||
0x96, 0xa6, 0x68, 0xc1, 0xa0, 0x62, 0x97, 0xb4, 0x15, 0xe4, 0x5d, 0x72, 0x40, 0x4e, 0xb6, 0xfb,
|
||||
0x71, 0xba, 0x7a, 0x52, 0x1a, 0x9c, 0xc1, 0xe6, 0xec, 0xa3, 0x1b, 0x0d, 0x1b, 0xbe, 0xff, 0x4c,
|
||||
0xe8, 0x96, 0xdf, 0xc8, 0x1e, 0x69, 0x2b, 0x10, 0xec, 0x68, 0x9d, 0xbd, 0x5a, 0x26, 0x3e, 0xfe,
|
||||
0x97, 0x0b, 0xf5, 0x92, 0xc3, 0xa7, 0xb7, 0xaf, 0xd7, 0x8d, 0x7d, 0xd6, 0x11, 0x3f, 0xc2, 0xd9,
|
||||
0x9f, 0xb3, 0x07, 0x17, 0xb3, 0x8a, 0x93, 0x79, 0xc5, 0xc9, 0x67, 0xc5, 0xc9, 0x4b, 0xcd, 0xa3,
|
||||
0x79, 0xcd, 0xa3, 0xf7, 0x9a, 0x47, 0xb7, 0x9d, 0x65, 0xeb, 0xa1, 0xf1, 0xdc, 0xd4, 0x2a, 0xcc,
|
||||
0x5a, 0xfe, 0xb9, 0xce, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x70, 0x5a, 0x0b, 0x62, 0xe5, 0x01,
|
||||
0x00, 0x00,
|
||||
// 302 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0x4b, 0x03, 0x31,
|
||||
0x14, 0xc6, 0x2f, 0xa2, 0x37, 0xc4, 0x2d, 0x76, 0x90, 0x43, 0x52, 0xb9, 0x41, 0x45, 0xf0, 0xc2,
|
||||
0xb5, 0x8b, 0xae, 0x5d, 0x1d, 0xd4, 0x8e, 0x6e, 0xb9, 0x12, 0xe2, 0x41, 0x2f, 0x2f, 0xbd, 0xe4,
|
||||
0xc4, 0xae, 0xfe, 0x05, 0x82, 0xce, 0xfe, 0x3d, 0x1d, 0x0b, 0x2e, 0x4e, 0x22, 0x77, 0xfe, 0x21,
|
||||
0xd2, 0xe4, 0xc0, 0x6a, 0x0b, 0x76, 0x7b, 0xbc, 0xef, 0xf7, 0x7d, 0xf9, 0xf2, 0x30, 0xd5, 0x63,
|
||||
0xae, 0x84, 0x2d, 0x72, 0x65, 0x25, 0x30, 0x6e, 0x8c, 0xb0, 0x6c, 0x52, 0x89, 0x72, 0x9a, 0xe8,
|
||||
0x12, 0x2c, 0x10, 0xb2, 0xac, 0x27, 0x4e, 0x8f, 0x3a, 0x12, 0x24, 0x38, 0x99, 0x2d, 0x26, 0x4f,
|
||||
0x46, 0x07, 0x12, 0x40, 0x8e, 0x05, 0xe3, 0x3a, 0x67, 0x5c, 0x29, 0xb0, 0xdc, 0xe6, 0xa0, 0x4c,
|
||||
0xab, 0x9e, 0x8e, 0xc0, 0x14, 0x60, 0x58, 0xc6, 0x8d, 0xf0, 0x0f, 0xb0, 0xfb, 0x34, 0x13, 0x96,
|
||||
0xa7, 0x4c, 0x73, 0x99, 0x2b, 0x07, 0xb7, 0x6c, 0x77, 0x4d, 0x27, 0xcd, 0x4b, 0x5e, 0xb4, 0x61,
|
||||
0x71, 0x07, 0x93, 0x9b, 0x45, 0xc4, 0xb5, 0x5b, 0x0e, 0xc5, 0xa4, 0x12, 0xc6, 0xc6, 0x57, 0x78,
|
||||
0xef, 0xd7, 0xd6, 0x68, 0x50, 0x46, 0x90, 0x73, 0x1c, 0x7a, 0xf3, 0x3e, 0x3a, 0x44, 0x27, 0xbb,
|
||||
0xbd, 0x28, 0x59, 0xfd, 0x52, 0xe2, 0x3d, 0x83, 0xed, 0xd9, 0x47, 0x37, 0x18, 0xb6, 0x7c, 0xef,
|
||||
0x15, 0xe1, 0x1d, 0x97, 0x48, 0x5e, 0x10, 0x0e, 0x3d, 0x42, 0x8e, 0xd6, 0xd9, 0x57, 0xdb, 0x44,
|
||||
0xc7, 0xff, 0x72, 0xbe, 0x5f, 0x7c, 0xf1, 0xf8, 0xf6, 0xf5, 0xbc, 0xd5, 0x27, 0x29, 0x93, 0xb9,
|
||||
0xbd, 0xab, 0xb2, 0x64, 0x04, 0x05, 0xfb, 0xf1, 0x2e, 0x8d, 0x67, 0x7f, 0xae, 0x31, 0xb8, 0x9c,
|
||||
0xd5, 0x14, 0xcd, 0x6b, 0x8a, 0x3e, 0x6b, 0x8a, 0x9e, 0x1a, 0x1a, 0xcc, 0x1b, 0x1a, 0xbc, 0x37,
|
||||
0x34, 0xb8, 0x4d, 0x37, 0xc9, 0x7a, 0x68, 0xd3, 0xec, 0x54, 0x0b, 0x93, 0x85, 0xee, 0xb6, 0xfd,
|
||||
0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x8d, 0x19, 0xe9, 0x12, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
@ -145,7 +145,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
}
|
||||
|
||||
var (
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"planetmint-go", "asset", "params"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"github.com", "planetmint", "planetmint-go", "asset", "params"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -139,7 +139,7 @@ func init() {
|
||||
func init() { proto.RegisterFile("planetmintgo/asset/tx.proto", fileDescriptor_1b35a44a96ae014b) }
|
||||
|
||||
var fileDescriptor_1b35a44a96ae014b = []byte{
|
||||
// 235 bytes of a gzipped FileDescriptorProto
|
||||
// 249 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0xc8, 0x49, 0xcc,
|
||||
0x4b, 0x2d, 0xc9, 0xcd, 0xcc, 0x2b, 0x49, 0xcf, 0xd7, 0x4f, 0x2c, 0x2e, 0x4e, 0x2d, 0xd1, 0x2f,
|
||||
0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0x96, 0xd4, 0x03, 0x4b, 0x2a, 0x95,
|
||||
@ -150,11 +150,12 @@ var fileDescriptor_1b35a44a96ae014b = []byte{
|
||||
0x0c, 0x96, 0x40, 0x08, 0x08, 0x89, 0x71, 0xb1, 0x15, 0x94, 0x26, 0x79, 0xa7, 0x56, 0x4a, 0xb0,
|
||||
0x80, 0xa5, 0xa0, 0x3c, 0x25, 0x29, 0x2e, 0x09, 0x74, 0x7b, 0x83, 0x52, 0x8b, 0x0b, 0xf2, 0xf3,
|
||||
0x8a, 0x53, 0x8d, 0xb2, 0xb8, 0x98, 0x7d, 0x8b, 0xd3, 0x85, 0x92, 0xb9, 0x78, 0x51, 0xdd, 0xa5,
|
||||
0xa2, 0x87, 0xe9, 0x01, 0x3d, 0x74, 0x53, 0xa4, 0x74, 0x88, 0x51, 0x05, 0xb3, 0xcb, 0xc9, 0xf4,
|
||||
0xa2, 0x87, 0xe9, 0x01, 0x3d, 0x74, 0x53, 0xa4, 0x74, 0x88, 0x51, 0x05, 0xb3, 0xcb, 0xc9, 0xfb,
|
||||
0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e,
|
||||
0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x90, 0x82, 0x52, 0x37, 0x3d, 0x5f,
|
||||
0xbf, 0x02, 0x16, 0x9a, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0x10, 0x35, 0x06, 0x04, 0x00,
|
||||
0x00, 0xff, 0xff, 0x96, 0xd8, 0x0d, 0x33, 0x70, 0x01, 0x00, 0x00,
|
||||
0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x0c, 0xd3, 0x33, 0x4b, 0x32, 0x4a,
|
||||
0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x11, 0x26, 0x22, 0x31, 0x75, 0xd3, 0xf3, 0xf5, 0x2b, 0x60,
|
||||
0x61, 0x5c, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x67, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff,
|
||||
0xff, 0x74, 0x66, 0x6a, 0x3f, 0x86, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
@ -1,7 +1,7 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"planetmint-go/x/dao/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/dao/keeper"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
func CmdQueryParams() *cobra.Command {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -2,8 +2,8 @@ package dao
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"planetmint-go/x/dao/keeper"
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
// InitGenesis initializes the module's state from a provided genesis state.
|
||||
|
@ -3,11 +3,11 @@ package dao_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
keepertest "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/testutil/nullify"
|
||||
"github.com/planetmint/planetmint-go/x/dao"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
keepertest "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/testutil/nullify"
|
||||
"planetmint-go/x/dao"
|
||||
"planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
func TestGenesis(t *testing.T) {
|
||||
|
@ -12,8 +12,8 @@ import (
|
||||
disttypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
|
||||
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
|
||||
|
||||
"planetmint-go/config"
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/config"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -1,7 +1,7 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
type msgServer struct {
|
||||
|
@ -5,10 +5,10 @@ import (
|
||||
"testing"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
keepertest "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/dao/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
keepertest "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/x/dao/keeper"
|
||||
"planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) {
|
||||
|
@ -2,7 +2,7 @@ package keeper
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
// GetParams get all parameters as types.Params
|
||||
|
@ -3,9 +3,9 @@ package keeper_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
testkeeper "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
testkeeper "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
func TestGetParams(t *testing.T) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
var _ types.QueryServer = Keeper{}
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
"planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"testing"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
testkeeper "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
testkeeper "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
func TestParamsQuery(t *testing.T) {
|
||||
|
@ -12,9 +12,9 @@ import (
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
|
||||
"planetmint-go/x/dao/client/cli"
|
||||
"planetmint-go/x/dao/keeper"
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/x/dao/client/cli"
|
||||
"github.com/planetmint/planetmint-go/x/dao/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
|
@ -3,9 +3,9 @@ package dao
|
||||
import (
|
||||
"math/rand"
|
||||
|
||||
"planetmint-go/testutil/sample"
|
||||
daosimulation "planetmint-go/x/dao/simulation"
|
||||
"planetmint-go/x/dao/types"
|
||||
"github.com/planetmint/planetmint-go/testutil/sample"
|
||||
daosimulation "github.com/planetmint/planetmint-go/x/dao/simulation"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
@ -75,7 +75,7 @@ func init() {
|
||||
func init() { proto.RegisterFile("planetmintgo/dao/genesis.proto", fileDescriptor_cae3132315bdc9f8) }
|
||||
|
||||
var fileDescriptor_cae3132315bdc9f8 = []byte{
|
||||
// 180 bytes of a gzipped FileDescriptorProto
|
||||
// 192 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0xc8, 0x49, 0xcc,
|
||||
0x4b, 0x2d, 0xc9, 0xcd, 0xcc, 0x2b, 0x49, 0xcf, 0xd7, 0x4f, 0x49, 0xcc, 0xd7, 0x4f, 0x4f, 0xcd,
|
||||
0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x40, 0x96, 0xd7, 0x4b,
|
||||
@ -83,11 +83,11 @@ var fileDescriptor_cae3132315bdc9f8 = []byte{
|
||||
0xb2, 0x18, 0xe6, 0x14, 0x24, 0x16, 0x25, 0xe6, 0x42, 0x8d, 0x51, 0x72, 0xe3, 0xe2, 0x71, 0x87,
|
||||
0x98, 0x1b, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0x64, 0xc6, 0xc5, 0x06, 0x91, 0x97, 0x60, 0x54, 0x60,
|
||||
0xd4, 0xe0, 0x36, 0x92, 0xd0, 0x43, 0xb7, 0x47, 0x2f, 0x00, 0x2c, 0xef, 0xc4, 0x72, 0xe2, 0x9e,
|
||||
0x3c, 0x43, 0x10, 0x54, 0xb5, 0x93, 0xf1, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e,
|
||||
0x3c, 0x43, 0x10, 0x54, 0xb5, 0x93, 0xe7, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e,
|
||||
0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31,
|
||||
0x44, 0x49, 0x22, 0x0c, 0xd0, 0x4d, 0xcf, 0xd7, 0xaf, 0x00, 0xbb, 0xa1, 0xa4, 0xb2, 0x20, 0xb5,
|
||||
0x38, 0x89, 0x0d, 0xec, 0x06, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x6a, 0x86, 0x44,
|
||||
0xec, 0x00, 0x00, 0x00,
|
||||
0x44, 0xe9, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x23, 0xcc, 0x42,
|
||||
0x62, 0xea, 0xa6, 0xe7, 0xeb, 0x57, 0x80, 0x5d, 0x56, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06,
|
||||
0x76, 0x99, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x23, 0x6c, 0x19, 0x02, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -3,8 +3,8 @@ package types_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
"planetmint-go/x/dao/types"
|
||||
)
|
||||
|
||||
func TestGenesisState_Validate(t *testing.T) {
|
||||
|
@ -66,16 +66,17 @@ func init() {
|
||||
func init() { proto.RegisterFile("planetmintgo/dao/params.proto", fileDescriptor_a58575036b3ad531) }
|
||||
|
||||
var fileDescriptor_a58575036b3ad531 = []byte{
|
||||
// 138 bytes of a gzipped FileDescriptorProto
|
||||
// 151 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0xc8, 0x49, 0xcc,
|
||||
0x4b, 0x2d, 0xc9, 0xcd, 0xcc, 0x2b, 0x49, 0xcf, 0xd7, 0x4f, 0x49, 0xcc, 0xd7, 0x2f, 0x48, 0x2c,
|
||||
0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x40, 0x96, 0xd6, 0x4b, 0x49,
|
||||
0xcc, 0x97, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xea, 0x83, 0x58, 0x10, 0x75, 0x4a, 0x7c,
|
||||
0x5c, 0x6c, 0x01, 0x60, 0x7d, 0x56, 0x2c, 0x33, 0x16, 0xc8, 0x33, 0x38, 0x19, 0x9f, 0x78, 0x24,
|
||||
0x5c, 0x6c, 0x01, 0x60, 0x7d, 0x56, 0x2c, 0x33, 0x16, 0xc8, 0x33, 0x38, 0x79, 0x9e, 0x78, 0x24,
|
||||
0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78,
|
||||
0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x24, 0xc2, 0x44, 0xdd, 0xf4, 0x7c, 0xfd, 0x0a,
|
||||
0xb0, 0x9d, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xb3, 0x8c, 0x01, 0x01, 0x00, 0x00,
|
||||
0xff, 0xff, 0x0a, 0x81, 0x96, 0x2f, 0x94, 0x00, 0x00, 0x00,
|
||||
0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x7e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e,
|
||||
0x72, 0x7e, 0xae, 0x3e, 0xc2, 0x70, 0x24, 0xa6, 0x6e, 0x7a, 0xbe, 0x7e, 0x05, 0xd8, 0x25, 0x25,
|
||||
0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x1b, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x41,
|
||||
0x65, 0x38, 0xbf, 0xaa, 0x00, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Params) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -121,26 +121,26 @@ func init() {
|
||||
func init() { proto.RegisterFile("planetmintgo/dao/query.proto", fileDescriptor_07bad0eeb5b27724) }
|
||||
|
||||
var fileDescriptor_07bad0eeb5b27724 = []byte{
|
||||
// 290 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0xc8, 0x49, 0xcc,
|
||||
0x4b, 0x2d, 0xc9, 0xcd, 0xcc, 0x2b, 0x49, 0xcf, 0xd7, 0x4f, 0x49, 0xcc, 0xd7, 0x2f, 0x2c, 0x4d,
|
||||
0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x40, 0x96, 0xd5, 0x4b, 0x49, 0xcc,
|
||||
0x97, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xea, 0x83, 0x58, 0x10, 0x75, 0x52, 0x32, 0xe9,
|
||||
0xf9, 0xf9, 0xe9, 0x39, 0xa9, 0xfa, 0x89, 0x05, 0x99, 0xfa, 0x89, 0x79, 0x79, 0xf9, 0x25, 0x89,
|
||||
0x25, 0x99, 0xf9, 0x79, 0xc5, 0x50, 0x59, 0xad, 0xe4, 0xfc, 0xe2, 0xdc, 0xfc, 0x62, 0xfd, 0xa4,
|
||||
0xc4, 0xe2, 0x54, 0x88, 0xf1, 0xfa, 0x65, 0x86, 0x49, 0xa9, 0x25, 0x89, 0x86, 0xfa, 0x05, 0x89,
|
||||
0xe9, 0x99, 0x79, 0x60, 0xc5, 0x50, 0xb5, 0xb2, 0x18, 0xee, 0x29, 0x48, 0x2c, 0x4a, 0xcc, 0x85,
|
||||
0x1a, 0xa5, 0x24, 0xc2, 0x25, 0x14, 0x08, 0x32, 0x20, 0x00, 0x2c, 0x18, 0x94, 0x5a, 0x58, 0x9a,
|
||||
0x5a, 0x5c, 0xa2, 0xe4, 0xcb, 0x25, 0x8c, 0x22, 0x5a, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0x2a, 0x64,
|
||||
0xc6, 0xc5, 0x06, 0xd1, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa1, 0x87, 0xee, 0x1d,
|
||||
0x3d, 0x88, 0x0e, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0xa0, 0xaa, 0x8d, 0x1a, 0x19, 0xb9,
|
||||
0x58, 0xc1, 0xe6, 0x09, 0x55, 0x70, 0xb1, 0x41, 0x54, 0x08, 0xa9, 0x60, 0xea, 0xc5, 0x74, 0x88,
|
||||
0x94, 0x2a, 0x01, 0x55, 0x10, 0x87, 0x29, 0x29, 0x36, 0x5d, 0x7e, 0x32, 0x99, 0x49, 0x5a, 0x48,
|
||||
0x52, 0x1f, 0xa1, 0x5c, 0x17, 0xc5, 0xbb, 0x4e, 0xc6, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24,
|
||||
0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78,
|
||||
0x2c, 0xc7, 0x10, 0x25, 0x89, 0xaa, 0xa7, 0x02, 0xac, 0xab, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89,
|
||||
0x0d, 0x1c, 0x48, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8b, 0xac, 0x64, 0x90, 0xd5, 0x01,
|
||||
0x00, 0x00,
|
||||
// 301 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x31, 0x4b, 0x03, 0x31,
|
||||
0x14, 0xc7, 0x2f, 0xa2, 0x1d, 0xe2, 0x22, 0xb1, 0x43, 0x29, 0x35, 0xca, 0xa1, 0x20, 0x82, 0x17,
|
||||
0xae, 0x82, 0xee, 0xdd, 0x1c, 0x04, 0xed, 0xe8, 0x96, 0x6b, 0x43, 0x3c, 0xe8, 0xe5, 0xa5, 0x97,
|
||||
0x9c, 0xd8, 0xd5, 0x0f, 0x20, 0x82, 0x8b, 0x1f, 0xa9, 0x63, 0xc1, 0xc5, 0x49, 0xe4, 0xce, 0x0f,
|
||||
0x22, 0x4d, 0x0e, 0x6c, 0xbd, 0x41, 0xb7, 0xf0, 0xde, 0xef, 0xff, 0xe3, 0x9f, 0x87, 0x7b, 0x7a,
|
||||
0xc2, 0x95, 0xb0, 0x59, 0xaa, 0xac, 0x04, 0x36, 0xe6, 0xc0, 0xa6, 0x85, 0xc8, 0x67, 0x91, 0xce,
|
||||
0xc1, 0x02, 0xd9, 0x59, 0xdd, 0x46, 0x63, 0x0e, 0xdd, 0xb6, 0x04, 0x09, 0x6e, 0xc9, 0x96, 0x2f,
|
||||
0xcf, 0x75, 0x7b, 0x12, 0x40, 0x4e, 0x04, 0xe3, 0x3a, 0x65, 0x5c, 0x29, 0xb0, 0xdc, 0xa6, 0xa0,
|
||||
0x4c, 0xbd, 0x3d, 0x19, 0x81, 0xc9, 0xc0, 0xb0, 0x84, 0x1b, 0xe1, 0xf5, 0xec, 0x3e, 0x4e, 0x84,
|
||||
0xe5, 0x31, 0xd3, 0x5c, 0xa6, 0xca, 0xc1, 0x35, 0xbb, 0xd7, 0xe8, 0xa3, 0x79, 0xce, 0xb3, 0x5a,
|
||||
0x15, 0xb6, 0x31, 0xb9, 0x59, 0x0a, 0xae, 0xdd, 0x70, 0x28, 0xa6, 0x85, 0x30, 0x36, 0xbc, 0xc2,
|
||||
0xbb, 0x6b, 0x53, 0xa3, 0x41, 0x19, 0x41, 0xce, 0x71, 0xcb, 0x87, 0x3b, 0xe8, 0x00, 0x1d, 0x6f,
|
||||
0xf7, 0x3b, 0xd1, 0xef, 0xef, 0x44, 0x3e, 0x31, 0xd8, 0x9c, 0x7f, 0xec, 0x07, 0xc3, 0x9a, 0xee,
|
||||
0xbf, 0x22, 0xbc, 0xe5, 0x7c, 0xe4, 0x09, 0xe1, 0x96, 0x47, 0xc8, 0x61, 0x33, 0xdc, 0x6c, 0xd2,
|
||||
0x3d, 0xfa, 0x83, 0xf2, 0xcd, 0xc2, 0x8b, 0xc7, 0xb7, 0xaf, 0x97, 0x8d, 0x98, 0x30, 0x26, 0x53,
|
||||
0x7b, 0x57, 0x24, 0xd1, 0x08, 0x32, 0xf6, 0x93, 0x5c, 0x79, 0x9e, 0xae, 0x5d, 0x61, 0x70, 0x39,
|
||||
0x2f, 0x29, 0x5a, 0x94, 0x14, 0x7d, 0x96, 0x14, 0x3d, 0x57, 0x34, 0x58, 0x54, 0x34, 0x78, 0xaf,
|
||||
0x68, 0x70, 0xfb, 0x2f, 0xd3, 0x83, 0x73, 0xd9, 0x99, 0x16, 0x26, 0x69, 0xb9, 0x8b, 0x9e, 0x7d,
|
||||
0x07, 0x00, 0x00, 0xff, 0xff, 0x20, 0xd5, 0xef, 0x17, 0x02, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
@ -145,7 +145,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
}
|
||||
|
||||
var (
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"planetmint-go", "dao", "params"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"github.com", "planetmint", "planetmint-go", "dao", "params"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -26,15 +26,15 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
func init() { proto.RegisterFile("planetmintgo/dao/tx.proto", fileDescriptor_7117c47dbc1828c7) }
|
||||
|
||||
var fileDescriptor_7117c47dbc1828c7 = []byte{
|
||||
// 113 bytes of a gzipped FileDescriptorProto
|
||||
// 127 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0xc8, 0x49, 0xcc,
|
||||
0x4b, 0x2d, 0xc9, 0xcd, 0xcc, 0x2b, 0x49, 0xcf, 0xd7, 0x4f, 0x49, 0xcc, 0xd7, 0x2f, 0xa9, 0xd0,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x40, 0x96, 0xd2, 0x4b, 0x49, 0xcc, 0x37, 0x62, 0xe5,
|
||||
0x62, 0xf6, 0x2d, 0x4e, 0x77, 0x32, 0x3e, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07,
|
||||
0x62, 0xf6, 0x2d, 0x4e, 0x77, 0xf2, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07,
|
||||
0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86,
|
||||
0x28, 0x24, 0xd3, 0x74, 0xd3, 0xf3, 0xf5, 0x2b, 0x20, 0x06, 0x56, 0x16, 0xa4, 0x16, 0x27, 0xb1,
|
||||
0x81, 0x0d, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x41, 0x8a, 0x85, 0xdb, 0x71, 0x00, 0x00,
|
||||
0x00,
|
||||
0x28, 0xfd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x84, 0x6e, 0x24,
|
||||
0xa6, 0x6e, 0x7a, 0xbe, 0x7e, 0x05, 0xc4, 0x9a, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x55,
|
||||
0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x38, 0xd4, 0x79, 0xef, 0x87, 0x00, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
// sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"planetmint-go/x/machine/types"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
"github.com/spf13/cobra"
|
||||
"planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
"github.com/spf13/cobra"
|
||||
"planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"planetmint-go/x/machine/types"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
func CmdQueryParams() *cobra.Command {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"planetmint-go/x/machine/types"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
"github.com/spf13/cobra"
|
||||
"planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
"github.com/spf13/cobra"
|
||||
"planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
@ -2,8 +2,8 @@ package machine
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"planetmint-go/x/machine/keeper"
|
||||
"planetmint-go/x/machine/types"
|
||||
"github.com/planetmint/planetmint-go/x/machine/keeper"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
// InitGenesis initializes the module's state from a provided genesis state.
|
||||
|
@ -3,11 +3,11 @@ package machine_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
keepertest "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/testutil/nullify"
|
||||
"github.com/planetmint/planetmint-go/x/machine"
|
||||
"github.com/planetmint/planetmint-go/x/machine/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
keepertest "planetmint-go/testutil/keeper"
|
||||
"planetmint-go/testutil/nullify"
|
||||
"planetmint-go/x/machine"
|
||||
"planetmint-go/x/machine/types"
|
||||
)
|
||||
|
||||
func TestGenesis(t *testing.T) {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user