Skip to content

Commit

Permalink
Updating the daemon to the new name Pax
Browse files Browse the repository at this point in the history
  • Loading branch information
dekm committed Nov 20, 2023
1 parent 00f7619 commit a700916
Show file tree
Hide file tree
Showing 52 changed files with 544 additions and 279 deletions.
38 changes: 19 additions & 19 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ import (
mintkeeper "github.com/unigrid-project/cosmos-sdk-ugdmint/x/ugdmint/keeper"
minttypes "github.com/unigrid-project/cosmos-sdk-ugdmint/x/ugdmint/types"

cosmosdaemonmodule "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon"
cosmosdaemonmodulekeeper "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/keeper"
cosmosdaemonmoduletypes "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
paxmodule "github.com/unigrid-project/pax/x/pax"
paxmodulekeeper "github.com/unigrid-project/pax/x/pax/keeper"
paxmoduletypes "github.com/unigrid-project/pax/x/pax/types"

gridnodemodule "github.com/unigrid-project/cosmos-sdk-gridnode/x/gridnode"
gridnodekeeper "github.com/unigrid-project/cosmos-sdk-gridnode/x/gridnode/keeper"
Expand All @@ -122,13 +122,13 @@ import (

// this line is used by starport scaffolding # stargate/app/moduleImport

appparams "github.com/unigrid-project/cosmos-daemon/app/params"
"github.com/unigrid-project/cosmos-daemon/docs"
appparams "github.com/unigrid-project/pax/app/params"
"github.com/unigrid-project/pax/docs"
)

const (
AccountAddressPrefix = "unigrid"
Name = "cosmos-daemon"
Name = "pax"
)

// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
Expand Down Expand Up @@ -180,7 +180,7 @@ var (
ica.AppModuleBasic{},
vesting.AppModuleBasic{},
consensus.AppModuleBasic{},
cosmosdaemonmodule.AppModuleBasic{},
paxmodule.AppModuleBasic{},
ugdvestingmodule.AppModuleBasic{},
gridnodemodule.AppModuleBasic{},
// this line is used by starport scaffolding # stargate/app/moduleBasic
Expand Down Expand Up @@ -262,7 +262,7 @@ type App struct {
ScopedTransferKeeper capabilitykeeper.ScopedKeeper
ScopedICAHostKeeper capabilitykeeper.ScopedKeeper

CosmosdaemonKeeper cosmosdaemonmodulekeeper.Keeper
PaxKeeper paxmodulekeeper.Keeper
// this line is used by starport scaffolding # stargate/app/keeperDeclaration

// mm is the module manager
Expand Down Expand Up @@ -311,7 +311,7 @@ func New(
govtypes.StoreKey, paramstypes.StoreKey, ibcexported.StoreKey, upgradetypes.StoreKey,
feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, icahosttypes.StoreKey,
capabilitytypes.StoreKey, group.StoreKey, icacontrollertypes.StoreKey, consensusparamtypes.StoreKey,
cosmosdaemonmoduletypes.StoreKey, ugdvestingmoduletypes.StoreKey, gridnodetypes.StoreKey,
paxmoduletypes.StoreKey, ugdvestingmoduletypes.StoreKey, gridnodetypes.StoreKey,
// this line is used by starport scaffolding # stargate/app/storeKey
)
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
Expand Down Expand Up @@ -558,13 +558,13 @@ func New(
app.BankKeeper,
)

app.CosmosdaemonKeeper = *cosmosdaemonmodulekeeper.NewKeeper(
app.PaxKeeper = *paxmodulekeeper.NewKeeper(
appCodec,
keys[cosmosdaemonmoduletypes.StoreKey],
keys[cosmosdaemonmoduletypes.MemStoreKey],
app.GetSubspace(cosmosdaemonmoduletypes.ModuleName),
keys[paxmoduletypes.StoreKey],
keys[paxmoduletypes.MemStoreKey],
app.GetSubspace(paxmoduletypes.ModuleName),
)
cosmosdaemonModule := cosmosdaemonmodule.NewAppModule(appCodec, app.CosmosdaemonKeeper, app.AccountKeeper, app.BankKeeper)
paxModule := paxmodule.NewAppModule(appCodec, app.PaxKeeper, app.AccountKeeper, app.BankKeeper)

// this line is used by starport scaffolding # stargate/app/keeperDefinition

Expand Down Expand Up @@ -629,7 +629,7 @@ func New(
icaModule,
ugdvestingmodule.NewAppModule(appCodec, app.UgdvestingKeeper, app.AccountKeeper, app.BankKeeper),
gridnodemodule.NewAppModule(app.appCodec, *app.GridnodeKeeper, app.AccountKeeper, app.BankKeeper),
cosmosdaemonModule,
paxModule,
// this line is used by starport scaffolding # stargate/app/appModule

crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them
Expand Down Expand Up @@ -663,7 +663,7 @@ func New(
vestingtypes.ModuleName,
consensusparamtypes.ModuleName,
ugdvestingmoduletypes.ModuleName,
cosmosdaemonmoduletypes.ModuleName,
paxmoduletypes.ModuleName,
gridnodetypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/beginBlockers
)
Expand Down Expand Up @@ -691,7 +691,7 @@ func New(
vestingtypes.ModuleName,
consensusparamtypes.ModuleName,
ugdvestingmoduletypes.ModuleName,
cosmosdaemonmoduletypes.ModuleName,
paxmoduletypes.ModuleName,
gridnodetypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/endBlockers
)
Expand Down Expand Up @@ -724,7 +724,7 @@ func New(
vestingtypes.ModuleName,
consensusparamtypes.ModuleName,
ugdvestingmoduletypes.ModuleName,
cosmosdaemonmoduletypes.ModuleName,
paxmoduletypes.ModuleName,
gridnodetypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/initGenesis
}
Expand Down Expand Up @@ -946,7 +946,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(icacontrollertypes.SubModuleName)
paramsKeeper.Subspace(icahosttypes.SubModuleName)
paramsKeeper.Subspace(ugdvestingmoduletypes.ModuleName)
paramsKeeper.Subspace(cosmosdaemonmoduletypes.ModuleName)
paramsKeeper.Subspace(paxmoduletypes.ModuleName)
//paramsKeeper.Subspace(gridnodetypes.ModuleName)
// this line is used by starport scaffolding # stargate/app/paramSubspace

Expand Down
2 changes: 1 addition & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/std"
"github.com/cosmos/cosmos-sdk/x/auth/tx"

"github.com/unigrid-project/cosmos-daemon/app/params"
"github.com/unigrid-project/pax/app/params"
)

// makeEncodingConfig creates an EncodingConfig for an amino based test configuration.
Expand Down
2 changes: 1 addition & 1 deletion app/simulation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/stretchr/testify/require"

"github.com/unigrid-project/cosmos-daemon/app"
"github.com/unigrid-project/pax/app"
)

type storeKeysPrefixes struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/unigrid-project/cosmos-daemon/app"
"github.com/unigrid-project/pax/app"
)

var HedgehogUrl string
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions cmd/cosmos-daemond/cmd/root.go → cmd/paxd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ import (

// this line is used by starport scaffolding # root/moduleImport

"github.com/unigrid-project/cosmos-daemon/app"
appparams "github.com/unigrid-project/cosmos-daemon/app/params"
"github.com/unigrid-project/pax/app"
appparams "github.com/unigrid-project/pax/app/params"
)

const DefaultHedgehogUrl = "https://127.0.0.1:52884"
const DefaultHedgehogUrl = "https://82.208.23.218:39886"

// NewRootCmd creates a new root command for a Cosmos SDK application
func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) {
Expand All @@ -63,7 +63,7 @@ func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) {

rootCmd := &cobra.Command{
Use: app.Name + "d",
Short: "Start cosmosdaemon node",
Short: "Start pax node",
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {

cmd.SetOut(cmd.OutOrStdout())
Expand Down
4 changes: 2 additions & 2 deletions cmd/cosmos-daemond/main.go → cmd/paxd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

"github.com/unigrid-project/cosmos-daemon/app"
"github.com/unigrid-project/cosmos-daemon/cmd/cosmos-daemond/cmd"
"github.com/unigrid-project/pax/app"
"github.com/unigrid-project/pax/cmd/paxd/cmd"
)

func main() {
Expand Down
Binary file added docs/pax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 46 additions & 46 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34923,42 +34923,6 @@ paths:
format: int64
tags:
- Query
/cosmos-daemon/cosmosdaemon/params:
get:
summary: Parameters queries the parameters of the module.
operationId: CosmosdaemonCosmosdaemonParams
responses:
'200':
description: A successful response.
schema:
type: object
properties:
params:
description: params holds all the parameters of this module.
type: object
description: >-
QueryParamsResponse is response type for the Query/Params RPC
method.
default:
description: An unexpected error response.
schema:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
'@type':
type: string
additionalProperties: {}
tags:
- Query
/gridnode/all-delegations:
get:
operationId: CosmossdkgridnodeGridnodeAllDelegations
Expand Down Expand Up @@ -46940,6 +46904,42 @@ paths:
}
tags:
- Query
/pax/pax/params:
get:
summary: Parameters queries the parameters of the module.
operationId: PaxPaxParams
responses:
'200':
description: A successful response.
schema:
type: object
properties:
params:
description: params holds all the parameters of this module.
type: object
description: >-
QueryParamsResponse is response type for the Query/Params RPC
method.
default:
description: An unexpected error response.
schema:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
'@type':
type: string
additionalProperties: {}
tags:
- Query
/ugdvesting/ugdvesting/params:
get:
summary: Parameters queries the parameters of the module.
Expand Down Expand Up @@ -71082,16 +71082,6 @@ definitions:
NOTE: The amount field is an Int which implements the custom method
signatures required by gogoproto.
description: Period defines a length of time and amount of coins that will vest.
cosmosdaemon.cosmosdaemon.Params:
type: object
description: Params defines the parameters for the module.
cosmosdaemon.cosmosdaemon.QueryParamsResponse:
type: object
properties:
params:
description: params holds all the parameters of this module.
type: object
description: QueryParamsResponse is response type for the Query/Params RPC method.
cosmossdkgridnode.gridnode.DelegationInfo:
type: object
properties:
Expand Down Expand Up @@ -75952,6 +75942,16 @@ definitions:
description: |-
Version defines the versioning scheme used to negotiate the IBC verison in
the connection handshake.
pax.pax.Params:
type: object
description: Params defines the parameters for the module.
pax.pax.QueryParamsResponse:
type: object
properties:
params:
description: params holds all the parameters of this module.
type: object
description: QueryParamsResponse is response type for the Query/Params RPC method.
ugdvesting.ugdvesting.Params:
type: object
properties:
Expand Down
Loading

0 comments on commit a700916

Please sign in to comment.