cosmostest -> colinear in dir structure
parent
002adee31e
commit
3fdcaf9a90
40
app/app.go
40
app/app.go
|
@ -98,17 +98,17 @@ import (
|
||||||
monitoringpkeeper "github.com/tendermint/spn/x/monitoringp/keeper"
|
monitoringpkeeper "github.com/tendermint/spn/x/monitoringp/keeper"
|
||||||
monitoringptypes "github.com/tendermint/spn/x/monitoringp/types"
|
monitoringptypes "github.com/tendermint/spn/x/monitoringp/types"
|
||||||
|
|
||||||
"cosmos-test/docs"
|
"colinear/docs"
|
||||||
|
|
||||||
cosmostestmodule "cosmos-test/x/cosmostest"
|
colinearmodule "colinear/x/colinear-core"
|
||||||
cosmostestmodulekeeper "cosmos-test/x/cosmostest/keeper"
|
colinearmodulekeeper "colinear/x/colinear-core/keeper"
|
||||||
cosmostestmoduletypes "cosmos-test/x/cosmostest/types"
|
colinearmoduletypes "colinear/x/colinear-core/types"
|
||||||
// this line is used by starport scaffolding # stargate/app/moduleImport
|
// this line is used by starport scaffolding # stargate/app/moduleImport
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AccountAddressPrefix = "cosmos"
|
AccountAddressPrefix = "cosmos"
|
||||||
Name = "cosmos-test"
|
Name = "colinear"
|
||||||
)
|
)
|
||||||
|
|
||||||
// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
|
// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
|
||||||
|
@ -157,7 +157,7 @@ var (
|
||||||
transfer.AppModuleBasic{},
|
transfer.AppModuleBasic{},
|
||||||
vesting.AppModuleBasic{},
|
vesting.AppModuleBasic{},
|
||||||
monitoringp.AppModuleBasic{},
|
monitoringp.AppModuleBasic{},
|
||||||
cosmostestmodule.AppModuleBasic{},
|
colinearmodule.AppModuleBasic{},
|
||||||
// this line is used by starport scaffolding # stargate/app/moduleBasic
|
// this line is used by starport scaffolding # stargate/app/moduleBasic
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ var (
|
||||||
govtypes.ModuleName: {authtypes.Burner},
|
govtypes.ModuleName: {authtypes.Burner},
|
||||||
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
|
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
|
||||||
// auction module will only need escrow perms, not minting or burning
|
// auction module will only need escrow perms, not minting or burning
|
||||||
cosmostestmoduletypes.ModuleName: nil,
|
colinearmoduletypes.ModuleName: nil,
|
||||||
// this line is used by starport scaffolding # stargate/app/maccPerms
|
// this line is used by starport scaffolding # stargate/app/maccPerms
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -232,7 +232,7 @@ type App struct {
|
||||||
ScopedTransferKeeper capabilitykeeper.ScopedKeeper
|
ScopedTransferKeeper capabilitykeeper.ScopedKeeper
|
||||||
ScopedMonitoringKeeper capabilitykeeper.ScopedKeeper
|
ScopedMonitoringKeeper capabilitykeeper.ScopedKeeper
|
||||||
|
|
||||||
CosmostestKeeper cosmostestmodulekeeper.Keeper
|
ColinearcoreKeeper colinearmodulekeeper.Keeper
|
||||||
// this line is used by starport scaffolding # stargate/app/keeperDeclaration
|
// this line is used by starport scaffolding # stargate/app/keeperDeclaration
|
||||||
|
|
||||||
// mm is the module manager
|
// mm is the module manager
|
||||||
|
@ -269,7 +269,7 @@ func New(
|
||||||
minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
|
minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
|
||||||
govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey,
|
govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey,
|
||||||
evidencetypes.StoreKey, ibctransfertypes.StoreKey, capabilitytypes.StoreKey, monitoringptypes.StoreKey,
|
evidencetypes.StoreKey, ibctransfertypes.StoreKey, capabilitytypes.StoreKey, monitoringptypes.StoreKey,
|
||||||
cosmostestmoduletypes.StoreKey,
|
colinearmoduletypes.StoreKey,
|
||||||
// this line is used by starport scaffolding # stargate/app/storeKey
|
// this line is used by starport scaffolding # stargate/app/storeKey
|
||||||
)
|
)
|
||||||
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
|
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
|
||||||
|
@ -391,14 +391,14 @@ func New(
|
||||||
)
|
)
|
||||||
monitoringModule := monitoringp.NewAppModule(appCodec, app.MonitoringKeeper)
|
monitoringModule := monitoringp.NewAppModule(appCodec, app.MonitoringKeeper)
|
||||||
|
|
||||||
app.CosmostestKeeper = *cosmostestmodulekeeper.NewKeeper(
|
app.ColinearcoreKeeper = *colinearmodulekeeper.NewKeeper(
|
||||||
appCodec,
|
appCodec,
|
||||||
keys[cosmostestmoduletypes.StoreKey],
|
keys[colinearmoduletypes.StoreKey],
|
||||||
keys[cosmostestmoduletypes.MemStoreKey],
|
keys[colinearmoduletypes.MemStoreKey],
|
||||||
app.GetSubspace(cosmostestmoduletypes.ModuleName),
|
app.GetSubspace(colinearmoduletypes.ModuleName),
|
||||||
app.BankKeeper,
|
app.BankKeeper,
|
||||||
)
|
)
|
||||||
cosmostestModule := cosmostestmodule.NewAppModule(appCodec, app.CosmostestKeeper, app.AccountKeeper, app.BankKeeper)
|
colinearModule := colinearmodule.NewAppModule(appCodec, app.ColinearcoreKeeper, app.AccountKeeper, app.BankKeeper)
|
||||||
|
|
||||||
// this line is used by starport scaffolding # stargate/app/keeperDefinition
|
// this line is used by starport scaffolding # stargate/app/keeperDefinition
|
||||||
|
|
||||||
|
@ -441,7 +441,7 @@ func New(
|
||||||
params.NewAppModule(app.ParamsKeeper),
|
params.NewAppModule(app.ParamsKeeper),
|
||||||
transferModule,
|
transferModule,
|
||||||
monitoringModule,
|
monitoringModule,
|
||||||
cosmostestModule,
|
colinearModule,
|
||||||
// this line is used by starport scaffolding # stargate/app/appModule
|
// this line is used by starport scaffolding # stargate/app/appModule
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -469,7 +469,7 @@ func New(
|
||||||
feegrant.ModuleName,
|
feegrant.ModuleName,
|
||||||
paramstypes.ModuleName,
|
paramstypes.ModuleName,
|
||||||
monitoringptypes.ModuleName,
|
monitoringptypes.ModuleName,
|
||||||
cosmostestmoduletypes.ModuleName,
|
colinearmoduletypes.ModuleName,
|
||||||
// this line is used by starport scaffolding # stargate/app/beginBlockers
|
// this line is used by starport scaffolding # stargate/app/beginBlockers
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -493,7 +493,7 @@ func New(
|
||||||
ibchost.ModuleName,
|
ibchost.ModuleName,
|
||||||
ibctransfertypes.ModuleName,
|
ibctransfertypes.ModuleName,
|
||||||
monitoringptypes.ModuleName,
|
monitoringptypes.ModuleName,
|
||||||
cosmostestmoduletypes.ModuleName,
|
colinearmoduletypes.ModuleName,
|
||||||
// this line is used by starport scaffolding # stargate/app/endBlockers
|
// this line is used by starport scaffolding # stargate/app/endBlockers
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ func New(
|
||||||
ibctransfertypes.ModuleName,
|
ibctransfertypes.ModuleName,
|
||||||
feegrant.ModuleName,
|
feegrant.ModuleName,
|
||||||
monitoringptypes.ModuleName,
|
monitoringptypes.ModuleName,
|
||||||
cosmostestmoduletypes.ModuleName,
|
colinearmoduletypes.ModuleName,
|
||||||
// this line is used by starport scaffolding # stargate/app/initGenesis
|
// this line is used by starport scaffolding # stargate/app/initGenesis
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -547,7 +547,7 @@ func New(
|
||||||
ibc.NewAppModule(app.IBCKeeper),
|
ibc.NewAppModule(app.IBCKeeper),
|
||||||
transferModule,
|
transferModule,
|
||||||
monitoringModule,
|
monitoringModule,
|
||||||
cosmostestModule,
|
colinearModule,
|
||||||
// this line is used by starport scaffolding # stargate/app/appModule
|
// this line is used by starport scaffolding # stargate/app/appModule
|
||||||
)
|
)
|
||||||
app.sm.RegisterStoreDecoders()
|
app.sm.RegisterStoreDecoders()
|
||||||
|
@ -737,7 +737,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
|
||||||
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
|
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
|
||||||
paramsKeeper.Subspace(ibchost.ModuleName)
|
paramsKeeper.Subspace(ibchost.ModuleName)
|
||||||
paramsKeeper.Subspace(monitoringptypes.ModuleName)
|
paramsKeeper.Subspace(monitoringptypes.ModuleName)
|
||||||
paramsKeeper.Subspace(cosmostestmoduletypes.ModuleName)
|
paramsKeeper.Subspace(colinearmoduletypes.ModuleName)
|
||||||
// this line is used by starport scaffolding # stargate/app/paramSubspace
|
// this line is used by starport scaffolding # stargate/app/paramSubspace
|
||||||
|
|
||||||
return paramsKeeper
|
return paramsKeeper
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"cosmos-test/app"
|
"colinear/app"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"cosmos-test/app"
|
"colinear/app"
|
||||||
|
|
||||||
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
|
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
|
||||||
"github.com/ignite/cli/ignite/pkg/cosmoscmd"
|
"github.com/ignite/cli/ignite/pkg/cosmoscmd"
|
|
@ -20122,10 +20122,10 @@ paths:
|
||||||
format: int64
|
format: int64
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/cosmos-test/cosmostest/auction:
|
/colinear/colinear/auction:
|
||||||
get:
|
get:
|
||||||
summary: Queries a list of Auction items.
|
summary: Queries a list of Auction items.
|
||||||
operationId: CosmostestCosmostestAuctionAll
|
operationId: ColinearcoreColinearcoreAuctionAll
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: A successful response.
|
description: A successful response.
|
||||||
|
@ -20261,10 +20261,10 @@ paths:
|
||||||
type: boolean
|
type: boolean
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
'/cosmos-test/cosmostest/auction/{index}':
|
'/colinear/colinear/auction/{index}':
|
||||||
get:
|
get:
|
||||||
summary: Queries a Auction by index.
|
summary: Queries a Auction by index.
|
||||||
operationId: CosmostestCosmostestAuction
|
operationId: ColinearcoreColinearcoreAuction
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: A successful response.
|
description: A successful response.
|
||||||
|
@ -20329,10 +20329,10 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
'/cosmos-test/cosmostest/auction_bids/{index}':
|
'/colinear/colinear/auction_bids/{index}':
|
||||||
get:
|
get:
|
||||||
summary: Queries a list of AuctionBids items.
|
summary: Queries a list of AuctionBids items.
|
||||||
operationId: CosmostestCosmostestAuctionBids
|
operationId: ColinearcoreColinearcoreAuctionBids
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: A successful response.
|
description: A successful response.
|
||||||
|
@ -20373,10 +20373,10 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/cosmos-test/cosmostest/next_auction:
|
/colinear/colinear/next_auction:
|
||||||
get:
|
get:
|
||||||
summary: Queries a NextAuction by index.
|
summary: Queries a NextAuction by index.
|
||||||
operationId: CosmostestCosmostestNextAuction
|
operationId: ColinearcoreColinearcoreNextAuction
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: A successful response.
|
description: A successful response.
|
||||||
|
@ -20409,10 +20409,10 @@ paths:
|
||||||
additionalProperties: {}
|
additionalProperties: {}
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/cosmos-test/cosmostest/params:
|
/colinear/colinear/params:
|
||||||
get:
|
get:
|
||||||
summary: Parameters queries the parameters of the module.
|
summary: Parameters queries the parameters of the module.
|
||||||
operationId: CosmostestCosmostestParams
|
operationId: ColinearcoreColinearcoreParams
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: A successful response.
|
description: A successful response.
|
||||||
|
@ -47465,7 +47465,7 @@ definitions:
|
||||||
description: >-
|
description: >-
|
||||||
MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount
|
MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount
|
||||||
response type.
|
response type.
|
||||||
cosmostest.cosmostest.Auction:
|
colinear.colinear.Auction:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
index:
|
index:
|
||||||
|
@ -47498,30 +47498,30 @@ definitions:
|
||||||
format: uint64
|
format: uint64
|
||||||
remaining:
|
remaining:
|
||||||
type: string
|
type: string
|
||||||
cosmostest.cosmostest.Bid:
|
colinear.colinear.Bid:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
owner:
|
owner:
|
||||||
type: string
|
type: string
|
||||||
amount:
|
amount:
|
||||||
type: string
|
type: string
|
||||||
cosmostest.cosmostest.MsgNewAuctionResponse:
|
colinear.colinear.MsgNewAuctionResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
auctionId:
|
auctionId:
|
||||||
type: string
|
type: string
|
||||||
cosmostest.cosmostest.MsgNewBidResponse:
|
colinear.colinear.MsgNewBidResponse:
|
||||||
type: object
|
type: object
|
||||||
cosmostest.cosmostest.NextAuction:
|
colinear.colinear.NextAuction:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
auctionId:
|
auctionId:
|
||||||
type: string
|
type: string
|
||||||
format: uint64
|
format: uint64
|
||||||
cosmostest.cosmostest.Params:
|
colinear.colinear.Params:
|
||||||
type: object
|
type: object
|
||||||
description: Params defines the parameters for the module.
|
description: Params defines the parameters for the module.
|
||||||
cosmostest.cosmostest.QueryAllAuctionResponse:
|
colinear.colinear.QueryAllAuctionResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
auction:
|
auction:
|
||||||
|
@ -47584,7 +47584,7 @@ definitions:
|
||||||
repeated Bar results = 1;
|
repeated Bar results = 1;
|
||||||
PageResponse page = 2;
|
PageResponse page = 2;
|
||||||
}
|
}
|
||||||
cosmostest.cosmostest.QueryAuctionBidsResponse:
|
colinear.colinear.QueryAuctionBidsResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
bids:
|
bids:
|
||||||
|
@ -47596,7 +47596,7 @@ definitions:
|
||||||
type: string
|
type: string
|
||||||
amount:
|
amount:
|
||||||
type: string
|
type: string
|
||||||
cosmostest.cosmostest.QueryGetAuctionResponse:
|
colinear.colinear.QueryGetAuctionResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
auction:
|
auction:
|
||||||
|
@ -47632,7 +47632,7 @@ definitions:
|
||||||
format: uint64
|
format: uint64
|
||||||
remaining:
|
remaining:
|
||||||
type: string
|
type: string
|
||||||
cosmostest.cosmostest.QueryGetNextAuctionResponse:
|
colinear.colinear.QueryGetNextAuctionResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
NextAuction:
|
NextAuction:
|
||||||
|
@ -47641,7 +47641,7 @@ definitions:
|
||||||
auctionId:
|
auctionId:
|
||||||
type: string
|
type: string
|
||||||
format: uint64
|
format: uint64
|
||||||
cosmostest.cosmostest.QueryParamsResponse:
|
colinear.colinear.QueryParamsResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
params:
|
params:
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package cosmostest.cosmostest;
|
package colinear.colinearcore;
|
||||||
|
|
||||||
option go_package = "cosmos-test/x/cosmostest/types";
|
option go_package = "colinear/x/colinear-core/types";
|
||||||
|
|
||||||
import "cosmostest/bid.proto";
|
import "colinear/bid.proto";
|
||||||
|
|
||||||
message Auction {
|
message Auction {
|
||||||
string index = 1;
|
string index = 1;
|
|
@ -0,0 +1,10 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
package colinear.colinearcore;
|
||||||
|
|
||||||
|
option go_package = "colinear/x/colinear-core/types";
|
||||||
|
|
||||||
|
message Bid {
|
||||||
|
|
||||||
|
string owner = 1;
|
||||||
|
string amount = 2;
|
||||||
|
}
|
|
@ -1,15 +1,15 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package cosmostest.cosmostest;
|
package colinear.colinearcore;
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "cosmostest/params.proto";
|
import "colinear/params.proto";
|
||||||
import "cosmostest/next_auction.proto";
|
import "colinear/next_auction.proto";
|
||||||
import "cosmostest/auction.proto";
|
import "colinear/auction.proto";
|
||||||
// this line is used by starport scaffolding # genesis/proto/import
|
// this line is used by starport scaffolding # genesis/proto/import
|
||||||
|
|
||||||
option go_package = "cosmos-test/x/cosmostest/types";
|
option go_package = "colinear/x/colinear-core/types";
|
||||||
|
|
||||||
// GenesisState defines the cosmostest module's genesis state.
|
// GenesisState defines the colinear module's genesis state.
|
||||||
message GenesisState {
|
message GenesisState {
|
||||||
Params params = 1 [(gogoproto.nullable) = false];
|
Params params = 1 [(gogoproto.nullable) = false];
|
||||||
NextAuction nextAuction = 2;
|
NextAuction nextAuction = 2;
|
|
@ -0,0 +1,8 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
package colinear.colinearcore;
|
||||||
|
|
||||||
|
option go_package = "colinear/x/colinear-core/types";
|
||||||
|
|
||||||
|
message NextAuction {
|
||||||
|
uint64 auctionId = 1;
|
||||||
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package cosmostest.cosmostest;
|
package colinear.colinearcore;
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
|
|
||||||
option go_package = "cosmos-test/x/cosmostest/types";
|
option go_package = "colinear/x/colinear-core/types";
|
||||||
|
|
||||||
// Params defines the parameters for the module.
|
// Params defines the parameters for the module.
|
||||||
message Params {
|
message Params {
|
|
@ -1,40 +1,40 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package cosmostest.cosmostest;
|
package colinear.colinearcore;
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "google/api/annotations.proto";
|
import "google/api/annotations.proto";
|
||||||
import "cosmos/base/query/v1beta1/pagination.proto";
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
||||||
import "cosmostest/params.proto";
|
import "colinear/params.proto";
|
||||||
import "cosmostest/next_auction.proto";
|
import "colinear/next_auction.proto";
|
||||||
import "cosmostest/auction.proto";
|
import "colinear/auction.proto";
|
||||||
import "cosmostest/bid.proto";
|
import "colinear/bid.proto";
|
||||||
// this line is used by starport scaffolding # 1
|
// this line is used by starport scaffolding # 1
|
||||||
|
|
||||||
option go_package = "cosmos-test/x/cosmostest/types";
|
option go_package = "colinear/x/colinear-core/types";
|
||||||
|
|
||||||
// Query defines the gRPC querier service.
|
// Query defines the gRPC querier service.
|
||||||
service Query {
|
service Query {
|
||||||
// Parameters queries the parameters of the module.
|
// Parameters queries the parameters of the module.
|
||||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
||||||
option (google.api.http).get = "/cosmos-test/cosmostest/params";
|
option (google.api.http).get = "/colinear/colinear/params";
|
||||||
}
|
}
|
||||||
// Queries a NextAuction by index.
|
// Queries a NextAuction by index.
|
||||||
rpc NextAuction(QueryGetNextAuctionRequest) returns (QueryGetNextAuctionResponse) {
|
rpc NextAuction(QueryGetNextAuctionRequest) returns (QueryGetNextAuctionResponse) {
|
||||||
option (google.api.http).get = "/cosmos-test/cosmostest/next_auction";
|
option (google.api.http).get = "/colinear/colinear/next_auction";
|
||||||
}
|
}
|
||||||
// Queries a Auction by index.
|
// Queries a Auction by index.
|
||||||
rpc Auction(QueryGetAuctionRequest) returns (QueryGetAuctionResponse) {
|
rpc Auction(QueryGetAuctionRequest) returns (QueryGetAuctionResponse) {
|
||||||
option (google.api.http).get = "/cosmos-test/cosmostest/auction/{index}";
|
option (google.api.http).get = "/colinear/colinear/auction/{index}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Queries a list of Auction items.
|
// Queries a list of Auction items.
|
||||||
rpc AuctionAll(QueryAllAuctionRequest) returns (QueryAllAuctionResponse) {
|
rpc AuctionAll(QueryAllAuctionRequest) returns (QueryAllAuctionResponse) {
|
||||||
option (google.api.http).get = "/cosmos-test/cosmostest/auction";
|
option (google.api.http).get = "/colinear/colinear/auction";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Queries a list of AuctionBids items.
|
// Queries a list of AuctionBids items.
|
||||||
rpc AuctionBids(QueryAuctionBidsRequest) returns (QueryAuctionBidsResponse) {
|
rpc AuctionBids(QueryAuctionBidsRequest) returns (QueryAuctionBidsResponse) {
|
||||||
option (google.api.http).get = "/cosmos-test/cosmostest/auction_bids/{index}";
|
option (google.api.http).get = "/colinear/colinear/auction_bids/{index}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// this line is used by starport scaffolding # 2
|
// this line is used by starport scaffolding # 2
|
|
@ -1,9 +1,9 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package cosmostest.cosmostest;
|
package colinear.colinearcore;
|
||||||
|
|
||||||
// this line is used by starport scaffolding # proto/tx/import
|
// this line is used by starport scaffolding # proto/tx/import
|
||||||
|
|
||||||
option go_package = "cosmos-test/x/cosmostest/types";
|
option go_package = "colinear/x/colinear-core/types";
|
||||||
|
|
||||||
// Msg defines the Msg service.
|
// Msg defines the Msg service.
|
||||||
service Msg {
|
service Msg {
|
|
@ -1,10 +0,0 @@
|
||||||
syntax = "proto3";
|
|
||||||
package cosmostest.cosmostest;
|
|
||||||
|
|
||||||
option go_package = "cosmos-test/x/cosmostest/types";
|
|
||||||
|
|
||||||
message Bid {
|
|
||||||
|
|
||||||
string owner = 1;
|
|
||||||
string amount = 2;
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
syntax = "proto3";
|
|
||||||
package cosmostest.cosmostest;
|
|
||||||
|
|
||||||
option go_package = "cosmos-test/x/cosmostest/types";
|
|
||||||
|
|
||||||
message NextAuction {
|
|
||||||
uint64 auctionId = 1;
|
|
||||||
}
|
|
|
@ -1,5 +1,5 @@
|
||||||
# cosmostest
|
# colinear
|
||||||
**cosmostest** is a blockchain built using Cosmos SDK and Tendermint and created with [Ignite CLI](https://ignite.com/cli).
|
**colinear** is a blockchain built using Cosmos SDK and Tendermint and created with [Ignite CLI](https://ignite.com/cli).
|
||||||
|
|
||||||
## Get started
|
## Get started
|
||||||
|
|
||||||
|
@ -39,9 +39,9 @@ After a draft release is created, make your final changes from the release page
|
||||||
To install the latest version of your blockchain node's binary, execute the following command on your machine:
|
To install the latest version of your blockchain node's binary, execute the following command on your machine:
|
||||||
|
|
||||||
```
|
```
|
||||||
curl https://get.ignite.com/username/cosmos-test@latest! | sudo bash
|
curl https://get.ignite.com/username/colinear@latest! | sudo bash
|
||||||
```
|
```
|
||||||
`username/cosmos-test` should match the `username` and `repo_name` of the Github repository to which the source code was pushed. Learn more about [the install process](https://github.com/allinbits/starport-installer).
|
`username/colinear` should match the `username` and `repo_name` of the Github repository to which the source code was pushed. Learn more about [the install process](https://github.com/allinbits/starport-installer).
|
||||||
|
|
||||||
## Learn more
|
## Learn more
|
||||||
|
|
||||||
|
|
|
@ -4,47 +4,47 @@
|
||||||
HERE=$(cd $(dirname $BASH_SOURCE) && pwd)
|
HERE=$(cd $(dirname $BASH_SOURCE) && pwd)
|
||||||
source $HERE/testutil.sh
|
source $HERE/testutil.sh
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-auction asdf asdf 200 token $(now + 3500) \
|
colineard tx colinear new-auction asdf asdf 200 token $(now + 3500) \
|
||||||
-y --from bob \
|
-y --from bob \
|
||||||
| expect_fail "Can't create auction below min lease period"
|
| expect_fail "Can't create auction below min lease period"
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-auction asdf asdf 200 token $(now + 8200000) \
|
colineard tx colinear new-auction asdf asdf 200 token $(now + 8200000) \
|
||||||
-y --from bob \
|
-y --from bob \
|
||||||
| expect_fail "Can't create auction above max lease period"
|
| expect_fail "Can't create auction above max lease period"
|
||||||
|
|
||||||
before=$(get_balance $BOB token)
|
before=$(get_balance $BOB token)
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-auction asdf asdf 200 token $(now + 3700) \
|
colineard tx colinear new-auction asdf asdf 200 token $(now + 3700) \
|
||||||
-y --from bob \
|
-y --from bob \
|
||||||
| expect_success "New auction is created"
|
| expect_success "New auction is created"
|
||||||
|
|
||||||
get_balance $BOB token | expect_change -200 $before "Change in Bob's balance"
|
get_balance $BOB token | expect_change -200 $before "Change in Bob's balance"
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-bid $(get_last_auction_index) 100 \
|
colineard tx colinear new-bid $(get_last_auction_index) 100 \
|
||||||
-y --from alice \
|
-y --from alice \
|
||||||
| expect_success "New bid is correctly created"
|
| expect_success "New bid is correctly created"
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-bid $(get_last_auction_index) 90 \
|
colineard tx colinear new-bid $(get_last_auction_index) 90 \
|
||||||
-y --from alice \
|
-y --from alice \
|
||||||
| expect_success "Can bid below price ceiling"
|
| expect_success "Can bid below price ceiling"
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-bid $(get_last_auction_index) 100 \
|
colineard tx colinear new-bid $(get_last_auction_index) 100 \
|
||||||
-y --from alice \
|
-y --from alice \
|
||||||
| expect_fail "Can't create duplicate bids"
|
| expect_fail "Can't create duplicate bids"
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-bid $(get_next_auction_index) 100 \
|
colineard tx colinear new-bid $(get_next_auction_index) 100 \
|
||||||
-y --from alice \
|
-y --from alice \
|
||||||
| expect_fail "Can't create bids for nonexistent auctions"
|
| expect_fail "Can't create bids for nonexistent auctions"
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-bid $(get_last_auction_index) 600 \
|
colineard tx colinear new-bid $(get_last_auction_index) 600 \
|
||||||
-y --from alice \
|
-y --from alice \
|
||||||
| expect_fail "Can't bid over price ceiling"
|
| expect_fail "Can't bid over price ceiling"
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-bid $(get_last_auction_index) 0 \
|
colineard tx colinear new-bid $(get_last_auction_index) 0 \
|
||||||
-y --from alice \
|
-y --from alice \
|
||||||
| expect_fail "Can't bid 0 tokens"
|
| expect_fail "Can't bid 0 tokens"
|
||||||
|
|
||||||
cosmos-testd q cosmostest auction-bids $(get_last_auction_index) \
|
colineard q colinear auction-bids $(get_last_auction_index) \
|
||||||
| jq -M ".bids | length" \
|
| jq -M ".bids | length" \
|
||||||
| assert_eq 2 "Number of auction bids"
|
| assert_eq 2 "Number of auction bids"
|
||||||
|
|
||||||
|
@ -55,11 +55,11 @@ before=$(get_balance $BOB token)
|
||||||
log_info "Waiting 12s until auction expires..."
|
log_info "Waiting 12s until auction expires..."
|
||||||
sleep 12
|
sleep 12
|
||||||
|
|
||||||
cosmos-testd tx cosmostest new-bid $(get_last_auction_index) 50 \
|
colineard tx colinear new-bid $(get_last_auction_index) 50 \
|
||||||
-y --from alice \
|
-y --from alice \
|
||||||
| expect_fail "Can't add bids after auction expiry"
|
| expect_fail "Can't add bids after auction expiry"
|
||||||
|
|
||||||
cosmos-testd q cosmostest show-auction $(get_last_auction_index) \
|
colineard q colinear show-auction $(get_last_auction_index) \
|
||||||
| jq -rM ".auction.best.amount" \
|
| jq -rM ".auction.best.amount" \
|
||||||
| assert_eq 90 "Remaining vested amount from finalized top bid"
|
| assert_eq 90 "Remaining vested amount from finalized top bid"
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
# Configuration options that all tests must include
|
# Configuration options that all tests must include
|
||||||
set -e
|
set -e
|
||||||
cosmos-testd config chain-id cosmostest
|
colineard config chain-id colinear
|
||||||
cosmos-testd config output json
|
colineard config output json
|
||||||
cosmos-testd config broadcast-mode block
|
colineard config broadcast-mode block
|
||||||
|
|
||||||
# Test config addresses (Alice & Bob)
|
# Test config addresses (Alice & Bob)
|
||||||
accounts=$(curl -s http://localhost:1317/cosmos/auth/v1beta1/accounts | jq -M ".accounts")
|
accounts=$(curl -s http://localhost:1317/cosmos/auth/v1beta1/accounts | jq -M ".accounts")
|
||||||
|
@ -44,7 +44,7 @@ function expect_change {
|
||||||
function get_balance {
|
function get_balance {
|
||||||
local addr=$1
|
local addr=$1
|
||||||
local denom=$2
|
local denom=$2
|
||||||
cosmos-testd q bank balances $addr \
|
colineard q bank balances $addr \
|
||||||
| jq -rM ".balances[] | select(.denom == \"$denom\") | .amount"
|
| jq -rM ".balances[] | select(.denom == \"$denom\") | .amount"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,12 +69,12 @@ function get_key {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_last_auction_index {
|
function get_last_auction_index {
|
||||||
res=$(cosmos-testd q cosmostest show-next-auction | jq -M ".NextAuction.auctionId | tonumber")
|
res=$(colineard q colinear show-next-auction | jq -M ".NextAuction.auctionId | tonumber")
|
||||||
echo "$res-1" | bc
|
echo "$res-1" | bc
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_next_auction_index {
|
function get_next_auction_index {
|
||||||
cosmos-testd q cosmostest show-next-auction | jq -M ".NextAuction.auctionId | tonumber"
|
colineard q colinear show-next-auction | jq -M ".NextAuction.auctionId | tonumber"
|
||||||
}
|
}
|
||||||
|
|
||||||
function now {
|
function now {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package keeper
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||||
|
@ -18,7 +18,7 @@ import (
|
||||||
tmdb "github.com/tendermint/tm-db"
|
tmdb "github.com/tendermint/tm-db"
|
||||||
)
|
)
|
||||||
|
|
||||||
func CosmostestKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
|
func ColinearcoreKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
|
||||||
storeKey := sdk.NewKVStoreKey(types.StoreKey)
|
storeKey := sdk.NewKVStoreKey(types.StoreKey)
|
||||||
memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey)
|
memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey)
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ func CosmostestKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
|
||||||
types.Amino,
|
types.Amino,
|
||||||
storeKey,
|
storeKey,
|
||||||
memStoreKey,
|
memStoreKey,
|
||||||
"CosmostestParams",
|
"ColinearcoreParams",
|
||||||
)
|
)
|
||||||
|
|
||||||
k := keeper.NewKeeper(
|
k := keeper.NewKeeper(
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
tmrand "github.com/tendermint/tendermint/libs/rand"
|
tmrand "github.com/tendermint/tendermint/libs/rand"
|
||||||
tmdb "github.com/tendermint/tm-db"
|
tmdb "github.com/tendermint/tm-db"
|
||||||
|
|
||||||
"cosmos-test/app"
|
"colinear/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -10,12 +10,12 @@ import (
|
||||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
// sdk "github.com/cosmos/cosmos-sdk/types"
|
// sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetQueryCmd returns the cli query commands for this module
|
// GetQueryCmd returns the cli query commands for this module
|
||||||
func GetQueryCmd(queryRoute string) *cobra.Command {
|
func GetQueryCmd(queryRoute string) *cobra.Command {
|
||||||
// Group cosmostest queries under a subcommand
|
// Group colinear queries under a subcommand
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: types.ModuleName,
|
Use: types.ModuleName,
|
||||||
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
|
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
|
|
@ -3,7 +3,8 @@ package cli
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
|
@ -3,7 +3,8 @@ package cli
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
"cosmos-test/testutil/network"
|
"colinear/testutil/network"
|
||||||
"cosmos-test/testutil/nullify"
|
"colinear/testutil/nullify"
|
||||||
"cosmos-test/x/cosmostest/client/cli"
|
"colinear/x/colinear-core/client/cli"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Prevent strconv unused error
|
// Prevent strconv unused error
|
|
@ -3,7 +3,8 @@ package cli
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
|
@ -9,10 +9,10 @@ import (
|
||||||
tmcli "github.com/tendermint/tendermint/libs/cli"
|
tmcli "github.com/tendermint/tendermint/libs/cli"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
"cosmos-test/testutil/network"
|
"colinear/testutil/network"
|
||||||
"cosmos-test/testutil/nullify"
|
"colinear/testutil/nullify"
|
||||||
"cosmos-test/x/cosmostest/client/cli"
|
"colinear/x/colinear-core/client/cli"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func networkWithNextAuctionObjects(t *testing.T) (*network.Network, types.NextAuction) {
|
func networkWithNextAuctionObjects(t *testing.T) (*network.Network, types.NextAuction) {
|
|
@ -3,7 +3,8 @@ package cli
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -3,7 +3,7 @@ package cli
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
|
@ -3,7 +3,7 @@ package cli
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
|
@ -1,8 +1,9 @@
|
||||||
package cosmostest
|
package colinearcore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package cosmostest_test
|
package colinearcore_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
keepertest "cosmos-test/testutil/keeper"
|
keepertest "colinear/testutil/keeper"
|
||||||
"cosmos-test/testutil/nullify"
|
"colinear/testutil/nullify"
|
||||||
"cosmos-test/x/cosmostest"
|
colinear "colinear/x/colinear-core"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
@ -29,9 +29,9 @@ func TestGenesis(t *testing.T) {
|
||||||
// this line is used by starport scaffolding # genesis/test/state
|
// this line is used by starport scaffolding # genesis/test/state
|
||||||
}
|
}
|
||||||
|
|
||||||
k, ctx := keepertest.CosmostestKeeper(t)
|
k, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
cosmostest.InitGenesis(ctx, *k, genesisState)
|
colinear.InitGenesis(ctx, *k, genesisState)
|
||||||
got := cosmostest.ExportGenesis(ctx, *k)
|
got := colinear.ExportGenesis(ctx, *k)
|
||||||
require.NotNil(t, got)
|
require.NotNil(t, got)
|
||||||
|
|
||||||
nullify.Fill(&genesisState)
|
nullify.Fill(&genesisState)
|
|
@ -1,10 +1,11 @@
|
||||||
package cosmostest
|
package colinearcore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/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"
|
||||||
)
|
)
|
|
@ -1,7 +1,7 @@
|
||||||
package keeper
|
package keeper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
@ -1,9 +1,9 @@
|
||||||
package keeper
|
package keeper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/math"
|
"colinear/x/colinear-core/math"
|
||||||
"cosmos-test/x/cosmostest/memdb"
|
"colinear/x/colinear-core/memdb"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
"log"
|
"log"
|
||||||
"math/big"
|
"math/big"
|
||||||
"time"
|
"time"
|
||||||
|
@ -107,7 +107,7 @@ func (k *Keeper) PayAuctionAmountDue(ctx sdk.Context, auctionId string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
coins := sdk.NewCoins(sdk.NewCoin(auction.Denom, sdk.NewIntFromBigInt(amt)))
|
coins := sdk.NewCoins(sdk.NewCoin(auction.Denom, sdk.NewIntFromBigInt(amt)))
|
||||||
err = k.bank.SendCoinsFromModuleToAccount(ctx, "cosmostest", sdk.AccAddress(auction.Best.Owner), coins)
|
err = k.bank.SendCoinsFromModuleToAccount(ctx, "colinear", sdk.AccAddress(auction.Best.Owner), coins)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,10 +4,11 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
keepertest "cosmos-test/testutil/keeper"
|
keepertest "colinear/testutil/keeper"
|
||||||
"cosmos-test/testutil/nullify"
|
"colinear/testutil/nullify"
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
@ -26,7 +27,7 @@ func createNAuction(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Aucti
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAuctionGet(t *testing.T) {
|
func TestAuctionGet(t *testing.T) {
|
||||||
keeper, ctx := keepertest.CosmostestKeeper(t)
|
keeper, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
items := createNAuction(keeper, ctx, 10)
|
items := createNAuction(keeper, ctx, 10)
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
rst, found := keeper.GetAuction(ctx,
|
rst, found := keeper.GetAuction(ctx,
|
||||||
|
@ -40,7 +41,7 @@ func TestAuctionGet(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func TestAuctionRemove(t *testing.T) {
|
func TestAuctionRemove(t *testing.T) {
|
||||||
keeper, ctx := keepertest.CosmostestKeeper(t)
|
keeper, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
items := createNAuction(keeper, ctx, 10)
|
items := createNAuction(keeper, ctx, 10)
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
keeper.RemoveAuction(ctx,
|
keeper.RemoveAuction(ctx,
|
||||||
|
@ -54,7 +55,7 @@ func TestAuctionRemove(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAuctionGetAll(t *testing.T) {
|
func TestAuctionGetAll(t *testing.T) {
|
||||||
keeper, ctx := keepertest.CosmostestKeeper(t)
|
keeper, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
items := createNAuction(keeper, ctx, 10)
|
items := createNAuction(keeper, ctx, 10)
|
||||||
require.ElementsMatch(t,
|
require.ElementsMatch(t,
|
||||||
nullify.Fill(items),
|
nullify.Fill(items),
|
|
@ -1,7 +1,7 @@
|
||||||
package keeper
|
package keeper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ types.QueryServer = Keeper{}
|
var _ types.QueryServer = Keeper{}
|
|
@ -3,7 +3,8 @@ package keeper
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/types/query"
|
"github.com/cosmos/cosmos-sdk/types/query"
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/memdb"
|
"colinear/x/colinear-core/memdb"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
|
@ -10,16 +10,16 @@ import (
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
keepertest "cosmos-test/testutil/keeper"
|
keepertest "colinear/testutil/keeper"
|
||||||
"cosmos-test/testutil/nullify"
|
"colinear/testutil/nullify"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Prevent strconv unused error
|
// Prevent strconv unused error
|
||||||
var _ = strconv.IntSize
|
var _ = strconv.IntSize
|
||||||
|
|
||||||
func TestAuctionQuerySingle(t *testing.T) {
|
func TestAuctionQuerySingle(t *testing.T) {
|
||||||
keeper, ctx := keepertest.CosmostestKeeper(t)
|
keeper, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
wctx := sdk.WrapSDKContext(ctx)
|
wctx := sdk.WrapSDKContext(ctx)
|
||||||
msgs := createNAuction(keeper, ctx, 2)
|
msgs := createNAuction(keeper, ctx, 2)
|
||||||
for _, tc := range []struct {
|
for _, tc := range []struct {
|
||||||
|
@ -70,7 +70,7 @@ func TestAuctionQuerySingle(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAuctionQueryPaginated(t *testing.T) {
|
func TestAuctionQueryPaginated(t *testing.T) {
|
||||||
keeper, ctx := keepertest.CosmostestKeeper(t)
|
keeper, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
wctx := sdk.WrapSDKContext(ctx)
|
wctx := sdk.WrapSDKContext(ctx)
|
||||||
msgs := createNAuction(keeper, ctx, 5)
|
msgs := createNAuction(keeper, ctx, 5)
|
||||||
|
|
|
@ -3,7 +3,8 @@ package keeper
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
|
@ -8,13 +8,13 @@ import (
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
keepertest "cosmos-test/testutil/keeper"
|
keepertest "colinear/testutil/keeper"
|
||||||
"cosmos-test/testutil/nullify"
|
"colinear/testutil/nullify"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNextAuctionQuery(t *testing.T) {
|
func TestNextAuctionQuery(t *testing.T) {
|
||||||
keeper, ctx := keepertest.CosmostestKeeper(t)
|
keeper, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
wctx := sdk.WrapSDKContext(ctx)
|
wctx := sdk.WrapSDKContext(ctx)
|
||||||
item := createTestNextAuction(keeper, ctx)
|
item := createTestNextAuction(keeper, ctx)
|
||||||
for _, tc := range []struct {
|
for _, tc := range []struct {
|
|
@ -3,7 +3,7 @@ package keeper
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
|
@ -3,14 +3,15 @@ package keeper_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
testkeeper "cosmos-test/testutil/keeper"
|
testkeeper "colinear/testutil/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParamsQuery(t *testing.T) {
|
func TestParamsQuery(t *testing.T) {
|
||||||
keeper, ctx := testkeeper.CosmostestKeeper(t)
|
keeper, ctx := testkeeper.ColinearcoreKeeper(t)
|
||||||
wctx := sdk.WrapSDKContext(ctx)
|
wctx := sdk.WrapSDKContext(ctx)
|
||||||
params := types.DefaultParams()
|
params := types.DefaultParams()
|
||||||
keeper.SetParams(ctx, params)
|
keeper.SetParams(ctx, params)
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/tendermint/tendermint/libs/log"
|
"github.com/tendermint/tendermint/libs/log"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"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"
|
|
@ -3,8 +3,8 @@
|
||||||
package keeper
|
package keeper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest"
|
"colinear/x/colinear-core"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -26,14 +26,14 @@ import (
|
||||||
type IntegrationTestSuite struct {
|
type IntegrationTestSuite struct {
|
||||||
suite.Suite
|
suite.Suite
|
||||||
|
|
||||||
app cosmostest.AppModule
|
app colinear.AppModule
|
||||||
msgServer types.MsgServer
|
msgServer types.MsgServer
|
||||||
ctx sdk.Context
|
ctx sdk.Context
|
||||||
queryClient types.QueryClient
|
queryClient types.QueryClient
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *IntegrationTestSuite) SetupTest() {
|
func (suite *IntegrationTestSuite) SetupTest() {
|
||||||
suite.app = cosmostest.AppModule{
|
suite.app = colinear.AppModule{
|
||||||
Keeper: NewKeeper(cdc)
|
Keeper: NewKeeper(cdc)
|
||||||
}
|
}
|
||||||
suite.ctx = suite.app.NewContext(false, tendermintTypes.Header{Time: time.Now()})
|
suite.ctx = suite.app.NewContext(false, tendermintTypes.Header{Time: time.Now()})
|
|
@ -1,7 +1,7 @@
|
||||||
package keeper
|
package keeper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type msgServer struct {
|
type msgServer struct {
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"math/big"
|
"math/big"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/auctionconfig"
|
"colinear/x/colinear-core/auctionconfig"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"math/big"
|
"math/big"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/memdb"
|
"colinear/x/colinear-core/memdb"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
keepertest "cosmos-test/testutil/keeper"
|
keepertest "colinear/testutil/keeper"
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) {
|
func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) {
|
||||||
k, ctx := keepertest.CosmostestKeeper(t)
|
k, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
return keeper.NewMsgServerImpl(*k), sdk.WrapSDKContext(ctx)
|
return keeper.NewMsgServerImpl(*k), sdk.WrapSDKContext(ctx)
|
||||||
}
|
}
|
|
@ -1,7 +1,8 @@
|
||||||
package keeper
|
package keeper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
|
@ -6,10 +6,10 @@ import (
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
keepertest "cosmos-test/testutil/keeper"
|
keepertest "colinear/testutil/keeper"
|
||||||
"cosmos-test/testutil/nullify"
|
"colinear/testutil/nullify"
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func createTestNextAuction(keeper *keeper.Keeper, ctx sdk.Context) types.NextAuction {
|
func createTestNextAuction(keeper *keeper.Keeper, ctx sdk.Context) types.NextAuction {
|
||||||
|
@ -19,7 +19,7 @@ func createTestNextAuction(keeper *keeper.Keeper, ctx sdk.Context) types.NextAuc
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNextAuctionGet(t *testing.T) {
|
func TestNextAuctionGet(t *testing.T) {
|
||||||
keeper, ctx := keepertest.CosmostestKeeper(t)
|
keeper, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
item := createTestNextAuction(keeper, ctx)
|
item := createTestNextAuction(keeper, ctx)
|
||||||
rst, found := keeper.GetNextAuction(ctx)
|
rst, found := keeper.GetNextAuction(ctx)
|
||||||
require.True(t, found)
|
require.True(t, found)
|
||||||
|
@ -30,7 +30,7 @@ func TestNextAuctionGet(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNextAuctionRemove(t *testing.T) {
|
func TestNextAuctionRemove(t *testing.T) {
|
||||||
keeper, ctx := keepertest.CosmostestKeeper(t)
|
keeper, ctx := keepertest.ColinearcoreKeeper(t)
|
||||||
createTestNextAuction(keeper, ctx)
|
createTestNextAuction(keeper, ctx)
|
||||||
keeper.RemoveNextAuction(ctx)
|
keeper.RemoveNextAuction(ctx)
|
||||||
_, found := keeper.GetNextAuction(ctx)
|
_, found := keeper.GetNextAuction(ctx)
|
|
@ -1,7 +1,8 @@
|
||||||
package keeper
|
package keeper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,13 +3,14 @@ package keeper_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
testkeeper "cosmos-test/testutil/keeper"
|
testkeeper "colinear/testutil/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetParams(t *testing.T) {
|
func TestGetParams(t *testing.T) {
|
||||||
k, ctx := testkeeper.CosmostestKeeper(t)
|
k, ctx := testkeeper.ColinearcoreKeeper(t)
|
||||||
params := types.DefaultParams()
|
params := types.DefaultParams()
|
||||||
|
|
||||||
k.SetParams(ctx, params)
|
k.SetParams(ctx, params)
|
|
@ -2,13 +2,13 @@ package memdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
"encoding/gob"
|
"encoding/gob"
|
||||||
"errors"
|
"errors"
|
||||||
"log"
|
"log"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
"github.com/dgraph-io/badger/v3"
|
badger "github.com/dgraph-io/badger/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type bidDB struct {
|
type bidDB struct {
|
|
@ -1,7 +1,7 @@
|
||||||
package memdb
|
package memdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package cosmostest
|
package colinearcore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -11,10 +11,10 @@ import (
|
||||||
|
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
abci "github.com/tendermint/tendermint/abci/types"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/client/cli"
|
"colinear/x/colinear-core/client/cli"
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/memdb"
|
"colinear/x/colinear-core/memdb"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
@ -1,11 +1,12 @@
|
||||||
package cosmostest
|
package colinearcore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
|
||||||
"cosmos-test/testutil/sample"
|
"colinear/testutil/sample"
|
||||||
cosmostestsimulation "cosmos-test/x/cosmostest/simulation"
|
colinearsimulation "colinear/x/colinear-core/simulation"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
|
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
|
@ -17,7 +18,7 @@ import (
|
||||||
// avoid unused import issue
|
// avoid unused import issue
|
||||||
var (
|
var (
|
||||||
_ = sample.AccAddress
|
_ = sample.AccAddress
|
||||||
_ = cosmostestsimulation.FindAccount
|
_ = colinearsimulation.FindAccount
|
||||||
_ = simappparams.StakePerAccount
|
_ = simappparams.StakePerAccount
|
||||||
_ = simulation.MsgEntryKind
|
_ = simulation.MsgEntryKind
|
||||||
_ = baseapp.Paramspace
|
_ = baseapp.Paramspace
|
||||||
|
@ -41,11 +42,11 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
|
||||||
for i, acc := range simState.Accounts {
|
for i, acc := range simState.Accounts {
|
||||||
accs[i] = acc.Address.String()
|
accs[i] = acc.Address.String()
|
||||||
}
|
}
|
||||||
cosmostestGenesis := types.GenesisState{
|
colinearGenesis := types.GenesisState{
|
||||||
Params: types.DefaultParams(),
|
Params: types.DefaultParams(),
|
||||||
// this line is used by starport scaffolding # simapp/module/genesisState
|
// this line is used by starport scaffolding # simapp/module/genesisState
|
||||||
}
|
}
|
||||||
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&cosmostestGenesis)
|
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&colinearGenesis)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ProposalContents doesn't return any content functions for governance proposals
|
// ProposalContents doesn't return any content functions for governance proposals
|
||||||
|
@ -74,7 +75,7 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp
|
||||||
)
|
)
|
||||||
operations = append(operations, simulation.NewWeightedOperation(
|
operations = append(operations, simulation.NewWeightedOperation(
|
||||||
weightMsgNewAuction,
|
weightMsgNewAuction,
|
||||||
cosmostestsimulation.SimulateMsgNewAuction(am.accountKeeper, am.bankKeeper, am.keeper),
|
colinearsimulation.SimulateMsgNewAuction(am.accountKeeper, am.bankKeeper, am.keeper),
|
||||||
))
|
))
|
||||||
|
|
||||||
var weightMsgNewBid int
|
var weightMsgNewBid int
|
||||||
|
@ -85,7 +86,7 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp
|
||||||
)
|
)
|
||||||
operations = append(operations, simulation.NewWeightedOperation(
|
operations = append(operations, simulation.NewWeightedOperation(
|
||||||
weightMsgNewBid,
|
weightMsgNewBid,
|
||||||
cosmostestsimulation.SimulateMsgNewBid(am.accountKeeper, am.bankKeeper, am.keeper),
|
colinearsimulation.SimulateMsgNewBid(am.accountKeeper, am.bankKeeper, am.keeper),
|
||||||
))
|
))
|
||||||
|
|
||||||
// this line is used by starport scaffolding # simapp/module/operation
|
// this line is used by starport scaffolding # simapp/module/operation
|
|
@ -1,7 +1,7 @@
|
||||||
package cosmostest
|
package colinearcore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
|
@ -3,8 +3,9 @@ package simulation
|
||||||
import (
|
import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
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"
|
|
@ -3,8 +3,9 @@ package simulation
|
||||||
import (
|
import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/keeper"
|
"colinear/x/colinear-core/keeper"
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
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"
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||||
// source: cosmostest/auction.proto
|
// source: colinear/auction.proto
|
||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
|
@ -147,10 +147,10 @@ func (m *Auction) GetRemaining() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*Auction)(nil), "cosmostest.cosmostest.Auction")
|
proto.RegisterType((*Auction)(nil), "colinear.colinear.Auction")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("cosmostest/auction.proto", fileDescriptor_631f6f59914101d9) }
|
func init() { proto.RegisterFile("colinear/auction.proto", fileDescriptor_631f6f59914101d9) }
|
||||||
|
|
||||||
var fileDescriptor_631f6f59914101d9 = []byte{
|
var fileDescriptor_631f6f59914101d9 = []byte{
|
||||||
// 298 bytes of a gzipped FileDescriptorProto
|
// 298 bytes of a gzipped FileDescriptorProto
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||||
// source: cosmostest/bid.proto
|
// source: colinear/bid.proto
|
||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
|
@ -75,10 +75,10 @@ func (m *Bid) GetAmount() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*Bid)(nil), "cosmostest.cosmostest.Bid")
|
proto.RegisterType((*Bid)(nil), "colinear.colinear.Bid")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("cosmostest/bid.proto", fileDescriptor_74e391fc4965aac8) }
|
func init() { proto.RegisterFile("colinear/bid.proto", fileDescriptor_74e391fc4965aac8) }
|
||||||
|
|
||||||
var fileDescriptor_74e391fc4965aac8 = []byte{
|
var fileDescriptor_74e391fc4965aac8 = []byte{
|
||||||
// 142 bytes of a gzipped FileDescriptorProto
|
// 142 bytes of a gzipped FileDescriptorProto
|
|
@ -8,8 +8,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func RegisterCodec(cdc *codec.LegacyAmino) {
|
func RegisterCodec(cdc *codec.LegacyAmino) {
|
||||||
cdc.RegisterConcrete(&MsgNewAuction{}, "cosmostest/NewAuction", nil)
|
cdc.RegisterConcrete(&MsgNewAuction{}, "colinear/NewAuction", nil)
|
||||||
cdc.RegisterConcrete(&MsgNewBid{}, "cosmostest/NewBid", nil)
|
cdc.RegisterConcrete(&MsgNewBid{}, "colinear/NewBid", nil)
|
||||||
// this line is used by starport scaffolding # 2
|
// this line is used by starport scaffolding # 2
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// x/cosmostest module sentinel errors
|
// x/colinear-core module sentinel errors
|
||||||
var (
|
var (
|
||||||
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
|
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
|
||||||
)
|
)
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||||
// source: cosmostest/genesis.proto
|
// source: colinear/genesis.proto
|
||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ var _ = math.Inf
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
// GenesisState defines the cosmostest module's genesis state.
|
// GenesisState defines the colinear module's genesis state.
|
||||||
type GenesisState struct {
|
type GenesisState struct {
|
||||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||||
NextAuction *NextAuction `protobuf:"bytes,2,opt,name=nextAuction,proto3" json:"nextAuction,omitempty"`
|
NextAuction *NextAuction `protobuf:"bytes,2,opt,name=nextAuction,proto3" json:"nextAuction,omitempty"`
|
||||||
|
@ -85,10 +85,10 @@ func (m *GenesisState) GetAuctionList() []Auction {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*GenesisState)(nil), "cosmostest.cosmostest.GenesisState")
|
proto.RegisterType((*GenesisState)(nil), "colinear.colinear.GenesisState")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("cosmostest/genesis.proto", fileDescriptor_78c0d8c25fe3d9a9) }
|
func init() { proto.RegisterFile("colinear/genesis.proto", fileDescriptor_78c0d8c25fe3d9a9) }
|
||||||
|
|
||||||
var fileDescriptor_78c0d8c25fe3d9a9 = []byte{
|
var fileDescriptor_78c0d8c25fe3d9a9 = []byte{
|
||||||
// 247 bytes of a gzipped FileDescriptorProto
|
// 247 bytes of a gzipped FileDescriptorProto
|
|
@ -3,7 +3,8 @@ package types_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"cosmos-test/x/cosmostest/types"
|
"colinear/x/colinear-core/types"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@ package types
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// ModuleName defines the module name
|
// ModuleName defines the module name
|
||||||
ModuleName = "cosmostest"
|
ModuleName = "colinear"
|
||||||
|
|
||||||
// StoreKey defines the primary module store key
|
// StoreKey defines the primary module store key
|
||||||
StoreKey = ModuleName
|
StoreKey = ModuleName
|
||||||
|
@ -14,7 +14,7 @@ const (
|
||||||
QuerierRoute = ModuleName
|
QuerierRoute = ModuleName
|
||||||
|
|
||||||
// MemStoreKey defines the in-memory store key
|
// MemStoreKey defines the in-memory store key
|
||||||
MemStoreKey = "mem_cosmostest"
|
MemStoreKey = "mem_colinear"
|
||||||
)
|
)
|
||||||
|
|
||||||
func KeyPrefix(p string) []byte {
|
func KeyPrefix(p string) []byte {
|
|
@ -3,7 +3,8 @@ package types
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"cosmos-test/testutil/sample"
|
"colinear/testutil/sample"
|
||||||
|
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
|
@ -3,7 +3,8 @@ package types
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"cosmos-test/testutil/sample"
|
"colinear/testutil/sample"
|
||||||
|
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||||
// source: cosmostest/next_auction.proto
|
// source: colinear/next_auction.proto
|
||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
|
@ -67,10 +67,10 @@ func (m *NextAuction) GetAuctionId() uint64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*NextAuction)(nil), "cosmostest.cosmostest.NextAuction")
|
proto.RegisterType((*NextAuction)(nil), "colinear.colinear.NextAuction")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("cosmostest/next_auction.proto", fileDescriptor_403ab8ae798c785d) }
|
func init() { proto.RegisterFile("colinear/next_auction.proto", fileDescriptor_403ab8ae798c785d) }
|
||||||
|
|
||||||
var fileDescriptor_403ab8ae798c785d = []byte{
|
var fileDescriptor_403ab8ae798c785d = []byte{
|
||||||
// 139 bytes of a gzipped FileDescriptorProto
|
// 139 bytes of a gzipped FileDescriptorProto
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||||
// source: cosmostest/params.proto
|
// source: colinear/params.proto
|
||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
|
@ -60,10 +60,10 @@ func (m *Params) XXX_DiscardUnknown() {
|
||||||
var xxx_messageInfo_Params proto.InternalMessageInfo
|
var xxx_messageInfo_Params proto.InternalMessageInfo
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*Params)(nil), "cosmostest.cosmostest.Params")
|
proto.RegisterType((*Params)(nil), "colinear.colinear.Params")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("cosmostest/params.proto", fileDescriptor_dec10d5375a626c5) }
|
func init() { proto.RegisterFile("colinear/params.proto", fileDescriptor_dec10d5375a626c5) }
|
||||||
|
|
||||||
var fileDescriptor_dec10d5375a626c5 = []byte{
|
var fileDescriptor_dec10d5375a626c5 = []byte{
|
||||||
// 131 bytes of a gzipped FileDescriptorProto
|
// 131 bytes of a gzipped FileDescriptorProto
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||||
// source: cosmostest/query.proto
|
// source: colinear/query.proto
|
||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
|
@ -466,19 +466,19 @@ func (m *QueryAuctionBidsResponse) GetBids() []*Bid {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*QueryParamsRequest)(nil), "cosmostest.cosmostest.QueryParamsRequest")
|
proto.RegisterType((*QueryParamsRequest)(nil), "colinear.colinear.QueryParamsRequest")
|
||||||
proto.RegisterType((*QueryParamsResponse)(nil), "cosmostest.cosmostest.QueryParamsResponse")
|
proto.RegisterType((*QueryParamsResponse)(nil), "colinear.colinear.QueryParamsResponse")
|
||||||
proto.RegisterType((*QueryGetNextAuctionRequest)(nil), "cosmostest.cosmostest.QueryGetNextAuctionRequest")
|
proto.RegisterType((*QueryGetNextAuctionRequest)(nil), "colinear.colinear.QueryGetNextAuctionRequest")
|
||||||
proto.RegisterType((*QueryGetNextAuctionResponse)(nil), "cosmostest.cosmostest.QueryGetNextAuctionResponse")
|
proto.RegisterType((*QueryGetNextAuctionResponse)(nil), "colinear.colinear.QueryGetNextAuctionResponse")
|
||||||
proto.RegisterType((*QueryGetAuctionRequest)(nil), "cosmostest.cosmostest.QueryGetAuctionRequest")
|
proto.RegisterType((*QueryGetAuctionRequest)(nil), "colinear.colinear.QueryGetAuctionRequest")
|
||||||
proto.RegisterType((*QueryGetAuctionResponse)(nil), "cosmostest.cosmostest.QueryGetAuctionResponse")
|
proto.RegisterType((*QueryGetAuctionResponse)(nil), "colinear.colinear.QueryGetAuctionResponse")
|
||||||
proto.RegisterType((*QueryAllAuctionRequest)(nil), "cosmostest.cosmostest.QueryAllAuctionRequest")
|
proto.RegisterType((*QueryAllAuctionRequest)(nil), "colinear.colinear.QueryAllAuctionRequest")
|
||||||
proto.RegisterType((*QueryAllAuctionResponse)(nil), "cosmostest.cosmostest.QueryAllAuctionResponse")
|
proto.RegisterType((*QueryAllAuctionResponse)(nil), "colinear.colinear.QueryAllAuctionResponse")
|
||||||
proto.RegisterType((*QueryAuctionBidsRequest)(nil), "cosmostest.cosmostest.QueryAuctionBidsRequest")
|
proto.RegisterType((*QueryAuctionBidsRequest)(nil), "colinear.colinear.QueryAuctionBidsRequest")
|
||||||
proto.RegisterType((*QueryAuctionBidsResponse)(nil), "cosmostest.cosmostest.QueryAuctionBidsResponse")
|
proto.RegisterType((*QueryAuctionBidsResponse)(nil), "colinear.colinear.QueryAuctionBidsResponse")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("cosmostest/query.proto", fileDescriptor_540d26b2788a5d10) }
|
func init() { proto.RegisterFile("colinear/query.proto", fileDescriptor_540d26b2788a5d10) }
|
||||||
|
|
||||||
var fileDescriptor_540d26b2788a5d10 = []byte{
|
var fileDescriptor_540d26b2788a5d10 = []byte{
|
||||||
// 605 bytes of a gzipped FileDescriptorProto
|
// 605 bytes of a gzipped FileDescriptorProto
|
||||||
|
@ -556,7 +556,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient {
|
||||||
|
|
||||||
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
|
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
|
||||||
out := new(QueryParamsResponse)
|
out := new(QueryParamsResponse)
|
||||||
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Query/Params", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/colinear.colinear.Query/Params", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -565,7 +565,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
||||||
|
|
||||||
func (c *queryClient) NextAuction(ctx context.Context, in *QueryGetNextAuctionRequest, opts ...grpc.CallOption) (*QueryGetNextAuctionResponse, error) {
|
func (c *queryClient) NextAuction(ctx context.Context, in *QueryGetNextAuctionRequest, opts ...grpc.CallOption) (*QueryGetNextAuctionResponse, error) {
|
||||||
out := new(QueryGetNextAuctionResponse)
|
out := new(QueryGetNextAuctionResponse)
|
||||||
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Query/NextAuction", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/colinear.colinear.Query/NextAuction", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -574,7 +574,7 @@ func (c *queryClient) NextAuction(ctx context.Context, in *QueryGetNextAuctionRe
|
||||||
|
|
||||||
func (c *queryClient) Auction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error) {
|
func (c *queryClient) Auction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error) {
|
||||||
out := new(QueryGetAuctionResponse)
|
out := new(QueryGetAuctionResponse)
|
||||||
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Query/Auction", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/colinear.colinear.Query/Auction", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -583,7 +583,7 @@ func (c *queryClient) Auction(ctx context.Context, in *QueryGetAuctionRequest, o
|
||||||
|
|
||||||
func (c *queryClient) AuctionAll(ctx context.Context, in *QueryAllAuctionRequest, opts ...grpc.CallOption) (*QueryAllAuctionResponse, error) {
|
func (c *queryClient) AuctionAll(ctx context.Context, in *QueryAllAuctionRequest, opts ...grpc.CallOption) (*QueryAllAuctionResponse, error) {
|
||||||
out := new(QueryAllAuctionResponse)
|
out := new(QueryAllAuctionResponse)
|
||||||
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Query/AuctionAll", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/colinear.colinear.Query/AuctionAll", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -592,7 +592,7 @@ func (c *queryClient) AuctionAll(ctx context.Context, in *QueryAllAuctionRequest
|
||||||
|
|
||||||
func (c *queryClient) AuctionBids(ctx context.Context, in *QueryAuctionBidsRequest, opts ...grpc.CallOption) (*QueryAuctionBidsResponse, error) {
|
func (c *queryClient) AuctionBids(ctx context.Context, in *QueryAuctionBidsRequest, opts ...grpc.CallOption) (*QueryAuctionBidsResponse, error) {
|
||||||
out := new(QueryAuctionBidsResponse)
|
out := new(QueryAuctionBidsResponse)
|
||||||
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Query/AuctionBids", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/colinear.colinear.Query/AuctionBids", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -647,7 +647,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||||
}
|
}
|
||||||
info := &grpc.UnaryServerInfo{
|
info := &grpc.UnaryServerInfo{
|
||||||
Server: srv,
|
Server: srv,
|
||||||
FullMethod: "/cosmostest.cosmostest.Query/Params",
|
FullMethod: "/colinear.colinear.Query/Params",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
|
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
|
||||||
|
@ -665,7 +665,7 @@ func _Query_NextAuction_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||||
}
|
}
|
||||||
info := &grpc.UnaryServerInfo{
|
info := &grpc.UnaryServerInfo{
|
||||||
Server: srv,
|
Server: srv,
|
||||||
FullMethod: "/cosmostest.cosmostest.Query/NextAuction",
|
FullMethod: "/colinear.colinear.Query/NextAuction",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(QueryServer).NextAuction(ctx, req.(*QueryGetNextAuctionRequest))
|
return srv.(QueryServer).NextAuction(ctx, req.(*QueryGetNextAuctionRequest))
|
||||||
|
@ -683,7 +683,7 @@ func _Query_Auction_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||||
}
|
}
|
||||||
info := &grpc.UnaryServerInfo{
|
info := &grpc.UnaryServerInfo{
|
||||||
Server: srv,
|
Server: srv,
|
||||||
FullMethod: "/cosmostest.cosmostest.Query/Auction",
|
FullMethod: "/colinear.colinear.Query/Auction",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(QueryServer).Auction(ctx, req.(*QueryGetAuctionRequest))
|
return srv.(QueryServer).Auction(ctx, req.(*QueryGetAuctionRequest))
|
||||||
|
@ -701,7 +701,7 @@ func _Query_AuctionAll_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||||
}
|
}
|
||||||
info := &grpc.UnaryServerInfo{
|
info := &grpc.UnaryServerInfo{
|
||||||
Server: srv,
|
Server: srv,
|
||||||
FullMethod: "/cosmostest.cosmostest.Query/AuctionAll",
|
FullMethod: "/colinear.colinear.Query/AuctionAll",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(QueryServer).AuctionAll(ctx, req.(*QueryAllAuctionRequest))
|
return srv.(QueryServer).AuctionAll(ctx, req.(*QueryAllAuctionRequest))
|
||||||
|
@ -719,7 +719,7 @@ func _Query_AuctionBids_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||||
}
|
}
|
||||||
info := &grpc.UnaryServerInfo{
|
info := &grpc.UnaryServerInfo{
|
||||||
Server: srv,
|
Server: srv,
|
||||||
FullMethod: "/cosmostest.cosmostest.Query/AuctionBids",
|
FullMethod: "/colinear.colinear.Query/AuctionBids",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(QueryServer).AuctionBids(ctx, req.(*QueryAuctionBidsRequest))
|
return srv.(QueryServer).AuctionBids(ctx, req.(*QueryAuctionBidsRequest))
|
||||||
|
@ -728,7 +728,7 @@ func _Query_AuctionBids_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||||
}
|
}
|
||||||
|
|
||||||
var _Query_serviceDesc = grpc.ServiceDesc{
|
var _Query_serviceDesc = grpc.ServiceDesc{
|
||||||
ServiceName: "cosmostest.cosmostest.Query",
|
ServiceName: "colinear.colinear.Query",
|
||||||
HandlerType: (*QueryServer)(nil),
|
HandlerType: (*QueryServer)(nil),
|
||||||
Methods: []grpc.MethodDesc{
|
Methods: []grpc.MethodDesc{
|
||||||
{
|
{
|
||||||
|
@ -753,7 +753,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "cosmostest/query.proto",
|
Metadata: "colinear/query.proto",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
|
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||||
// source: cosmostest/query.proto
|
// source: colinear/query.proto
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Package types is a reverse proxy.
|
Package types is a reverse proxy.
|
||||||
|
@ -479,15 +479,15 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"cosmos-test", "cosmostest", "params"}, "", runtime.AssumeColonVerbOpt(true)))
|
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"colinear", "colinear", "params"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||||
|
|
||||||
pattern_Query_NextAuction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"cosmos-test", "cosmostest", "next_auction"}, "", runtime.AssumeColonVerbOpt(true)))
|
pattern_Query_NextAuction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"colinear", "colinear", "next_auction"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||||
|
|
||||||
pattern_Query_Auction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"cosmos-test", "cosmostest", "auction", "index"}, "", runtime.AssumeColonVerbOpt(true)))
|
pattern_Query_Auction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"colinear", "colinear", "auction", "index"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||||
|
|
||||||
pattern_Query_AuctionAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"cosmos-test", "cosmostest", "auction"}, "", runtime.AssumeColonVerbOpt(true)))
|
pattern_Query_AuctionAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"colinear", "colinear", "auction"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||||
|
|
||||||
pattern_Query_AuctionBids_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"cosmos-test", "cosmostest", "auction_bids", "index"}, "", runtime.AssumeColonVerbOpt(true)))
|
pattern_Query_AuctionBids_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"colinear", "colinear", "auction_bids", "index"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||||
// source: cosmostest/tx.proto
|
// source: colinear/tx.proto
|
||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
|
@ -252,13 +252,13 @@ func (m *MsgNewBidResponse) XXX_DiscardUnknown() {
|
||||||
var xxx_messageInfo_MsgNewBidResponse proto.InternalMessageInfo
|
var xxx_messageInfo_MsgNewBidResponse proto.InternalMessageInfo
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*MsgNewAuction)(nil), "cosmostest.cosmostest.MsgNewAuction")
|
proto.RegisterType((*MsgNewAuction)(nil), "colinear.colinear.MsgNewAuction")
|
||||||
proto.RegisterType((*MsgNewAuctionResponse)(nil), "cosmostest.cosmostest.MsgNewAuctionResponse")
|
proto.RegisterType((*MsgNewAuctionResponse)(nil), "colinear.colinear.MsgNewAuctionResponse")
|
||||||
proto.RegisterType((*MsgNewBid)(nil), "cosmostest.cosmostest.MsgNewBid")
|
proto.RegisterType((*MsgNewBid)(nil), "colinear.colinear.MsgNewBid")
|
||||||
proto.RegisterType((*MsgNewBidResponse)(nil), "cosmostest.cosmostest.MsgNewBidResponse")
|
proto.RegisterType((*MsgNewBidResponse)(nil), "colinear.colinear.MsgNewBidResponse")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("cosmostest/tx.proto", fileDescriptor_2fcd5aa4ac15d93c) }
|
func init() { proto.RegisterFile("colinear/tx.proto", fileDescriptor_2fcd5aa4ac15d93c) }
|
||||||
|
|
||||||
var fileDescriptor_2fcd5aa4ac15d93c = []byte{
|
var fileDescriptor_2fcd5aa4ac15d93c = []byte{
|
||||||
// 338 bytes of a gzipped FileDescriptorProto
|
// 338 bytes of a gzipped FileDescriptorProto
|
||||||
|
@ -312,7 +312,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient {
|
||||||
|
|
||||||
func (c *msgClient) NewAuction(ctx context.Context, in *MsgNewAuction, opts ...grpc.CallOption) (*MsgNewAuctionResponse, error) {
|
func (c *msgClient) NewAuction(ctx context.Context, in *MsgNewAuction, opts ...grpc.CallOption) (*MsgNewAuctionResponse, error) {
|
||||||
out := new(MsgNewAuctionResponse)
|
out := new(MsgNewAuctionResponse)
|
||||||
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Msg/NewAuction", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/colinear.colinear.Msg/NewAuction", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -321,7 +321,7 @@ func (c *msgClient) NewAuction(ctx context.Context, in *MsgNewAuction, opts ...g
|
||||||
|
|
||||||
func (c *msgClient) NewBid(ctx context.Context, in *MsgNewBid, opts ...grpc.CallOption) (*MsgNewBidResponse, error) {
|
func (c *msgClient) NewBid(ctx context.Context, in *MsgNewBid, opts ...grpc.CallOption) (*MsgNewBidResponse, error) {
|
||||||
out := new(MsgNewBidResponse)
|
out := new(MsgNewBidResponse)
|
||||||
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Msg/NewBid", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/colinear.colinear.Msg/NewBid", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -359,7 +359,7 @@ func _Msg_NewAuction_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||||
}
|
}
|
||||||
info := &grpc.UnaryServerInfo{
|
info := &grpc.UnaryServerInfo{
|
||||||
Server: srv,
|
Server: srv,
|
||||||
FullMethod: "/cosmostest.cosmostest.Msg/NewAuction",
|
FullMethod: "/colinear.colinear.Msg/NewAuction",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(MsgServer).NewAuction(ctx, req.(*MsgNewAuction))
|
return srv.(MsgServer).NewAuction(ctx, req.(*MsgNewAuction))
|
||||||
|
@ -377,7 +377,7 @@ func _Msg_NewBid_Handler(srv interface{}, ctx context.Context, dec func(interfac
|
||||||
}
|
}
|
||||||
info := &grpc.UnaryServerInfo{
|
info := &grpc.UnaryServerInfo{
|
||||||
Server: srv,
|
Server: srv,
|
||||||
FullMethod: "/cosmostest.cosmostest.Msg/NewBid",
|
FullMethod: "/colinear.colinear.Msg/NewBid",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(MsgServer).NewBid(ctx, req.(*MsgNewBid))
|
return srv.(MsgServer).NewBid(ctx, req.(*MsgNewBid))
|
||||||
|
@ -386,7 +386,7 @@ func _Msg_NewBid_Handler(srv interface{}, ctx context.Context, dec func(interfac
|
||||||
}
|
}
|
||||||
|
|
||||||
var _Msg_serviceDesc = grpc.ServiceDesc{
|
var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||||
ServiceName: "cosmostest.cosmostest.Msg",
|
ServiceName: "colinear.colinear.Msg",
|
||||||
HandlerType: (*MsgServer)(nil),
|
HandlerType: (*MsgServer)(nil),
|
||||||
Methods: []grpc.MethodDesc{
|
Methods: []grpc.MethodDesc{
|
||||||
{
|
{
|
||||||
|
@ -399,7 +399,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "cosmostest/tx.proto",
|
Metadata: "colinear/tx.proto",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgNewAuction) Marshal() (dAtA []byte, err error) {
|
func (m *MsgNewAuction) Marshal() (dAtA []byte, err error) {
|
Loading…
Reference in New Issue