diff --git a/LICENSE b/LICENSE index 35358221..5a4f35a8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 eve-network +Copyright (c) 2024 lime Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -9,10 +9,10 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -* no one except Hyperia is permitted to use this code until eve's mainnet genesis. - * this restriction refers to all code in the eve-network gitbub organization and this repository. -* if you do want to use this code before genesis, please see: github.com/CosmWasm/wasmd -- the initial code here came from there and everything there is apache2. You can use that stuff before eve's genesis. -* The hyperia community has perpetual license to use this work without restriction, including before the launch of Eve. +* no one except Hyperia is permitted to use this code until lime's mainnet genesis. + * this restriction refers to all code in the lime gitbub organization and this repository. +* if you do want to use this code before genesis, please see: github.com/CosmWasm/wasmd -- the initial code here came from there anlimerything there is apache2. You can use that stuff before lime's genesis. +* The hyperia community has perpetual license to use this work without restriction, including before the launch of Lime. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. diff --git a/Makefile b/Makefile index 800d551c..10aec4be 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ SIMAPP = ./app DOCKER := $(shell which docker) BUF_IMAGE=bufbuild/buf@sha256:3cb1f8a4b48bd5ad8f09168f10f607ddc318af202f5c057d52a45216793d85e5 #v1.4.0 DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(BUF_IMAGE) -HTTPS_GIT := https://github.com/eve-network/eve.git +HTTPS_GIT := https://github.com/LimeChain/lime.git export GO111MODULE = on @@ -55,11 +55,11 @@ build_tags_comma_sep := $(subst $(empty),$(comma),$(build_tags)) # process linker flags -ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=eve \ - -X github.com/cosmos/cosmos-sdk/version.AppName=eved \ +ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=lime \ + -X github.com/cosmos/cosmos-sdk/version.AppName=limed \ -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ - -X github.com/eve-network/eve/app.Bech32Prefix=eve \ + -X github.com/LimeChain/lime/app.Bech32Prefix=lime \ -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" ifeq ($(WITH_CLEVELDB),yes) @@ -80,14 +80,14 @@ all: install lint test build: go.sum ifeq ($(OS),Windows_NT) - $(error eved server not supported. Use "make build-windows-client" for client) + $(error limed server not supported. Use "make build-windows-client" for client) exit 1 else - go build $(BUILD_FLAGS) -o build/eved ./cmd/eved + go build $(BUILD_FLAGS) -o build/limed ./cmd/limed endif build-windows-client: go.sum - GOOS=windows GOARCH=amd64 go build $(BUILD_FLAGS) -o build/eved.exe ./cmd/eved + GOOS=windows GOARCH=amd64 go build $(BUILD_FLAGS) -o build/limed.exe ./cmd/limed build-contract-tests-hooks: ifeq ($(OS),Windows_NT) @@ -97,7 +97,7 @@ else endif install: go.sum - go install $(BUILD_FLAGS) ./cmd/eved + go install $(BUILD_FLAGS) ./cmd/limed ######################################## ### Tools & dependencies @@ -113,7 +113,7 @@ go.sum: go.mod draw-deps: @# requires brew install graphviz or apt-get install graphviz go install github.com/RobotsAndPencils/goviz@latest - @goviz -i ./cmd/eved -d 2 | dot -Tpng -o dependency-graph.png + @goviz -i ./cmd/limed -d 2 | dot -Tpng -o dependency-graph.png clean: rm -rf snapcraft-local.yaml build/ @@ -170,11 +170,11 @@ init-test-framework: clean-testing-data install ./scripts/tests/relayer/interchain-acc-config/rly-init.sh clean-testing-data: - @echo "Killing eved and removing previous data" + @echo "Killing limed and removing previous data" -@pkill $(BINARY) 2>/dev/null -@pkill rly 2>/dev/null - -@pkill eved_new 2>/dev/null - -@pkill eved_old 2>/dev/null + -@pkill limed_new 2>/dev/null + -@pkill limed_old 2>/dev/null -@rm -rf ./data ############################################################################### @@ -193,7 +193,7 @@ lint: format-tools format: format-tools find . -name '*.go' -type f -not -path "./vendor*" -not -path "./tests/system/vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w find . -name '*.go' -type f -not -path "./vendor*" -not -path "./tests/system/vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs misspell -w - find . -name '*.go' -type f -not -path "./vendor*" -not -path "./tests/system/vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gci write --skip-generated -s standard -s default -s "prefix(cosmossdk.io)" -s "prefix(github.com/cosmos/cosmos-sdk)" -s "prefix(github.com/eve-network/eve)" --custom-order + find . -name '*.go' -type f -not -path "./vendor*" -not -path "./tests/system/vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gci write --skip-generated -s standard -s default -s "prefix(cosmossdk.io)" -s "prefix(github.com/cosmos/cosmos-sdk)" -s "prefix(github.com/LimeChain/lime)" --custom-order ############################################################################### diff --git a/README.md b/README.md index faa28bf7..4b55bfd4 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# eve +# lime -Eve is a governance minimized CosmWasm blockchain intended to push forward the state of the art in Cosmos. +Lime is a governance minimized CosmWasm blockchain intended to push forward the state of the art in Cosmos. Contract uploads are not permissioned in any way, and governance thresholds have been adjusted to ensure that contract authors are not disturbed in their work. This chain emphasizes decentralization, interchain capability and governance minimization. -Eve won't compete with your contracts, and views herself as a beautiful, fertile platform for authors to bring their visions to life. +Lime won't compete with your contracts, and views herself as a beautiful, fertile platform for authors to bring their visions to life. ## Software at launch @@ -16,7 +16,7 @@ Eve won't compete with your contracts, and views herself as a beautiful, fertile * Token Factory * IBC Hooks -This also means that Eve, as a loving mother and repeatable template, is committed to ensuring that the modules and middlewares above are kept up to date rigorously, with "up to date" being defined as supporting the latest release of cosmos-sdk, **regardless of the decisions of other teams**. Eve is very confident in the current cosmos-sdk and ibc-go maintenance teams and smiles warmly at them. +This also means that Lime, as a loving mother and repeatable template, is committed to ensuring that the modules and middlewares above are kept up to date rigorously, with "up to date" being defined as supporting the latest release of cosmos-sdk, **regardless of the decisions of other teams**. Lime is very confident in the current cosmos-sdk and ibc-go maintenance teams and smiles warmly at them. ## Planned software @@ -38,32 +38,31 @@ Likely stuff built and tested here feeds into White Whale, Composable, Cyber, Sp Contributors == team. -Quicksilver and affiliated teams plan to use eve to put the newest SDK, IBC and WASMD into produciton quickly. If you have ideas for eve, please feel free to fork and make a PR. +Quicksilver and affiliated teams plan to use lime to put the newest SDK, IBC and WASMD into produciton quickly. If you have ideas for lime, please feel free to fork and make a PR. -If you want to write an upgrade for Eve, it can be shipped from any repository, and you can just reference the url and commit hash. +If you want to write an upgrade for Lime, it can be shipped from any repository, and you can just reference the url and commit hash. ## Promises -Eve will remain as simple as possible, while using the latest cosmos ecosystem libraries. Eve won't use her community pool to compete with your contracts, becasue eve does not have a community pool. +Lime will remain as simple as possible, while using the latest cosmos ecosystem libraries. Lime won't use her community pool to compete with your contracts, becasue lime does not have a community pool. ## No Promises -Eve doesn't make promises and may not be exactly as described because she's an exploration of ideas first and foremost. This includes the airdrop. +Lime doesn't make promises and may not be exactly as described because she's an exploration of ideas first and foremost. This includes the airdrop. ## Economic Information -Eve thinks that beauty comes from simplicity, and economic design follows this. +Lime thinks that beauty comes from simplicity, and economic design follows this. ## Imperative -From eve will flow new designs and techniques that increase development velocity and ease of use across Cosmos. +From lime will flow new designs and techniques that increase development velocity and ease of use across Cosmos. ## Contributing * Contributors will be added to this repository with write access. * Chronic contributors will be added as owners -* We'll move this out of notional-labs sooner or later and owners will own the eve-network (or such) GitHub org -* you contribute here, in this repository, and there are many ways to contribute +* There are many ways to contribute * code == docs * docs == code * logo == code diff --git a/app/ante/ante.go b/app/ante/ante.go index 3167ffea..4783cb62 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -91,7 +91,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { return sdk.ChainAnteDecorators(anteDecorators...), nil } -// DenomResolverImpl is Eve's implementation of x/feemarket's DenomResolver +// DenomResolverImpl is Lime's implementation of x/feemarket's DenomResolver type DenomResolverImpl struct { FeeabsKeeper feeabskeeper.Keeper StakingKeeper feeabstypes.StakingKeeper diff --git a/app/ante/ante_test.go b/app/ante/ante_test.go index 26d260a1..eee259fe 100644 --- a/app/ante/ante_test.go +++ b/app/ante/ante_test.go @@ -20,9 +20,9 @@ import ( func TestMempoolDecorator(t *testing.T) { gasLimit := uint64(200000) - minGasPrice := sdk.NewDecCoinsFromCoins(sdk.NewInt64Coin("ueve", feemarkettypes.DefaultMinBaseGasPrice.TruncateInt64())) + minGasPrice := sdk.NewDecCoinsFromCoins(sdk.NewInt64Coin("ulime", feemarkettypes.DefaultMinBaseGasPrice.TruncateInt64())) validFeeAmount := feemarkettypes.DefaultMinBaseGasPrice.MulInt64(int64(gasLimit)) - validFee := sdk.NewCoins(sdk.NewCoin("ueve", validFeeAmount.TruncateInt())) + validFee := sdk.NewCoins(sdk.NewCoin("ulime", validFeeAmount.TruncateInt())) validIbcFee := sdk.NewCoins(sdk.NewCoin("ibcfee", validFeeAmount.TruncateInt())) // mockHostZoneConfig is used to mock the host zone config, with ibcfee as the ibc fee denom to be used as alternative fee mockHostZoneConfig := types.HostChainFeeAbsConfig{ @@ -60,7 +60,7 @@ func TestMempoolDecorator(t *testing.T) { err := suite.feeabsKeeper.SetHostZoneConfig(suite.ctx, mockHostZoneConfig) require.NoError(t, err) suite.feeabsKeeper.SetTwapRate(suite.ctx, "ibcfee", math.LegacyNewDec(1)) - suite.stakingKeeper.EXPECT().BondDenom(gomock.Any()).Return("ueve", nil).AnyTimes() + suite.stakingKeeper.EXPECT().BondDenom(gomock.Any()).Return("ulime", nil).AnyTimes() suite.bankKeeper.On("SendCoinsFromAccountToModule", mock.Anything, mock.Anything, feemarkettypes.FeeCollectorName, mock.Anything).Return(nil).Once() }, @@ -73,7 +73,7 @@ func TestMempoolDecorator(t *testing.T) { err := suite.feeabsKeeper.SetHostZoneConfig(suite.ctx, mockHostZoneConfig) require.NoError(t, err) suite.feeabsKeeper.SetTwapRate(suite.ctx, "ibcfee", math.LegacyNewDec(1)) - suite.stakingKeeper.EXPECT().BondDenom(gomock.Any()).Return("ueve", nil).AnyTimes() + suite.stakingKeeper.EXPECT().BondDenom(gomock.Any()).Return("ulime", nil).AnyTimes() }, sdkerrors.ErrInsufficientFee, }, @@ -81,7 +81,7 @@ func TestMempoolDecorator(t *testing.T) { "fee in unsupported denom, should fail", sdk.NewCoins(sdk.NewCoin("unsupported", validFeeAmount.TruncateInt())), func(suite *AnteTestSuite) { - suite.stakingKeeper.EXPECT().BondDenom(gomock.Any()).Return("ueve", nil).AnyTimes() + suite.stakingKeeper.EXPECT().BondDenom(gomock.Any()).Return("ulime", nil).AnyTimes() }, ErrDenomNotRegistered("unsupported"), }, diff --git a/app/ante/suite.go b/app/ante/suite.go index 1413c21a..2ab59095 100644 --- a/app/ante/suite.go +++ b/app/ante/suite.go @@ -115,7 +115,7 @@ func SetupTestSuite(t *testing.T, isCheckTx bool) *AnteTestSuite { // setup feemarket feemarketParams := feemarkettypes.DefaultParams() - feemarketParams.FeeDenom = "ueve" + feemarketParams.FeeDenom = "ulime" suite.feemarketKeeper = feemarketkeeper.NewKeeper(suite.encCfg.Codec, key, suite.accountKeeper, &DenomResolverImpl{ FeeabsKeeper: suite.feeabsKeeper, StakingKeeper: suite.stakingKeeper, diff --git a/app/app.go b/app/app.go index 6b523bc7..eb62ab29 100644 --- a/app/app.go +++ b/app/app.go @@ -10,6 +10,7 @@ import ( "sync" wasmvm "github.com/CosmWasm/wasmvm/v2" + "github.com/LimeChain/lime/app/ante" abci "github.com/cometbft/cometbft/abci/types" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" @@ -44,7 +45,6 @@ import ( ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint" - "github.com/eve-network/eve/app/ante" feeabsmodule "github.com/osmosis-labs/fee-abstraction/v8/x/feeabs" feeabskeeper "github.com/osmosis-labs/fee-abstraction/v8/x/feeabs/keeper" feeabstypes "github.com/osmosis-labs/fee-abstraction/v8/x/feeabs/types" @@ -159,7 +159,7 @@ import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" ) -const appName = "EveApp" +const appName = "LimeApp" const ( // ContractMemoryLimit is the memory limit of each contract execution (in MiB) @@ -169,8 +169,8 @@ const ( // We pull these out so we can set them with LDFLAGS in the Makefile var ( - NodeDir = ".eved" - Bech32Prefix = "eve" + NodeDir = ".limed" + Bech32Prefix = "lime" ) // These constants are derived from the above variables. @@ -215,12 +215,12 @@ var maccPerms = map[string][]string{ } var ( - _ runtime.AppI = (*EveApp)(nil) - _ servertypes.Application = (*EveApp)(nil) + _ runtime.AppI = (*LimeApp)(nil) + _ servertypes.Application = (*LimeApp)(nil) ) -// EveApp extended ABCI application -type EveApp struct { +// LimeApp extended ABCI application +type LimeApp struct { *baseapp.BaseApp legacyAmino *codec.LegacyAmino appCodec codec.Codec @@ -286,8 +286,8 @@ type EveApp struct { once sync.Once } -// NewEveApp returns a reference to an initialized EveApp. -func NewEveApp( +// NewLimeApp returns a reference to an initialized LimeApp. +func NewLimeApp( logger log.Logger, db dbm.DB, traceStore io.Writer, @@ -295,7 +295,7 @@ func NewEveApp( appOpts servertypes.AppOptions, wasmOpts []wasmkeeper.Option, baseAppOptions ...func(*baseapp.BaseApp), -) *EveApp { +) *LimeApp { interfaceRegistry, err := types.NewInterfaceRegistryWithOptions(types.InterfaceRegistryOptions{ ProtoFiles: proto.HybridResolver, SigningOptions: signing.Options{ @@ -348,7 +348,7 @@ func NewEveApp( panic(err) } - app := &EveApp{ + app := &LimeApp{ BaseApp: bApp, legacyAmino: legacyAmino, appCodec: appCodec, @@ -1038,7 +1038,7 @@ func NewEveApp( return app } -func (app *EveApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) { +func (app *LimeApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) { // when skipping sdk 47 for sdk 50, the upgrade handler is called too late in BaseApp // this is a hack to ensure that the migration is executed when needed and not panics app.once.Do(func() { @@ -1059,7 +1059,7 @@ func (app *EveApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.Response return app.BaseApp.FinalizeBlock(req) } -func (app *EveApp) setAnteHandler(txConfig client.TxConfig, wasmConfig wasmtypes.WasmConfig, txCounterStoreKey *storetypes.KVStoreKey) { +func (app *LimeApp) setAnteHandler(txConfig client.TxConfig, wasmConfig wasmtypes.WasmConfig, txCounterStoreKey *storetypes.KVStoreKey) { anteHandler, err := ante.NewAnteHandler( ante.HandlerOptions{ HandlerOptions: authante.HandlerOptions{ @@ -1088,7 +1088,7 @@ func (app *EveApp) setAnteHandler(txConfig client.TxConfig, wasmConfig wasmtypes app.SetAnteHandler(anteHandler) } -func (app *EveApp) setPostHandler() { +func (app *LimeApp) setPostHandler() { postHandler := feemarketapp.PostHandlerOptions{ AccountKeeper: app.AccountKeeper, BankKeeper: app.BankKeeper, @@ -1103,29 +1103,29 @@ func (app *EveApp) setPostHandler() { } // Name returns the name of the App -func (app *EveApp) Name() string { return app.BaseApp.Name() } +func (app *LimeApp) Name() string { return app.BaseApp.Name() } // PreBlocker application updates every pre block -func (app *EveApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { +func (app *LimeApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { return app.ModuleManager.PreBlock(ctx) } // BeginBlocker application updates every begin block -func (app *EveApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error) { +func (app *LimeApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error) { return app.ModuleManager.BeginBlock(ctx) } // EndBlocker application updates every end block -func (app *EveApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error) { +func (app *LimeApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error) { return app.ModuleManager.EndBlock(ctx) } -func (a *EveApp) Configurator() module.Configurator { +func (a *LimeApp) Configurator() module.Configurator { return a.configurator } // InitChainer application update at chain initialization -func (app *EveApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { +func (app *LimeApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { var genesisState GenesisState if err := json.Unmarshal(req.AppStateBytes, &genesisState); err != nil { panic(err) @@ -1139,7 +1139,7 @@ func (app *EveApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*ab } // LoadHeight loads a particular height -func (app *EveApp) LoadHeight(height int64) error { +func (app *LimeApp) LoadHeight(height int64) error { return app.LoadVersion(height) } @@ -1147,7 +1147,7 @@ func (app *EveApp) LoadHeight(height int64) error { // // NOTE: This is solely to be used for testing purposes as it may be desirable // for modules to register their own custom testing types. -func (app *EveApp) LegacyAmino() *codec.LegacyAmino { +func (app *LimeApp) LegacyAmino() *codec.LegacyAmino { return app.legacyAmino } @@ -1155,22 +1155,22 @@ func (app *EveApp) LegacyAmino() *codec.LegacyAmino { // // NOTE: This is solely to be used for testing purposes as it may be desirable // for modules to register their own custom testing types. -func (app *EveApp) AppCodec() codec.Codec { +func (app *LimeApp) AppCodec() codec.Codec { return app.appCodec } -// InterfaceRegistry returns EveApp's InterfaceRegistry -func (app *EveApp) InterfaceRegistry() types.InterfaceRegistry { +// InterfaceRegistry returns LimeApp's InterfaceRegistry +func (app *LimeApp) InterfaceRegistry() types.InterfaceRegistry { return app.interfaceRegistry } -// TxConfig returns EveApp's TxConfig -func (app *EveApp) TxConfig() client.TxConfig { +// TxConfig returns LimeApp's TxConfig +func (app *LimeApp) TxConfig() client.TxConfig { return app.txConfig } // AutoCliOpts returns the autocli options for the app. -func (app *EveApp) AutoCliOpts() autocli.AppOptions { +func (app *LimeApp) AutoCliOpts() autocli.AppOptions { modules := make(map[string]appmodule.AppModule, 0) for _, m := range app.ModuleManager.Modules { if moduleWithName, ok := m.(module.HasName); ok { @@ -1191,19 +1191,19 @@ func (app *EveApp) AutoCliOpts() autocli.AppOptions { } // DefaultGenesis returns a default genesis from the registered AppModuleBasic's. -func (a *EveApp) DefaultGenesis() map[string]json.RawMessage { +func (a *LimeApp) DefaultGenesis() map[string]json.RawMessage { return a.BasicModuleManager.DefaultGenesis(a.appCodec) } // GetKey returns the KVStoreKey for the provided store key. // // NOTE: This is solely to be used for testing purposes. -func (app *EveApp) GetKey(storeKey string) *storetypes.KVStoreKey { +func (app *LimeApp) GetKey(storeKey string) *storetypes.KVStoreKey { return app.keys[storeKey] } // GetStoreKeys returns all the stored store keys. -func (app *EveApp) GetStoreKeys() []storetypes.StoreKey { +func (app *LimeApp) GetStoreKeys() []storetypes.StoreKey { keys := make([]storetypes.StoreKey, 0, len(app.keys)) for _, key := range app.keys { keys = append(keys, key) @@ -1217,33 +1217,33 @@ func (app *EveApp) GetStoreKeys() []storetypes.StoreKey { // GetTKey returns the TransientStoreKey for the provided store key. // // NOTE: This is solely to be used for testing purposes. -func (app *EveApp) GetTKey(storeKey string) *storetypes.TransientStoreKey { +func (app *LimeApp) GetTKey(storeKey string) *storetypes.TransientStoreKey { return app.tkeys[storeKey] } // GetMemKey returns the MemStoreKey for the provided mem key. // // NOTE: This is solely used for testing purposes. -func (app *EveApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey { +func (app *LimeApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey { return app.memKeys[storeKey] } // GetSubspace returns a param subspace for a given module name. // // NOTE: This is solely to be used for testing purposes. -func (app *EveApp) GetSubspace(moduleName string) paramstypes.Subspace { +func (app *LimeApp) GetSubspace(moduleName string) paramstypes.Subspace { subspace, _ := app.ParamsKeeper.GetSubspace(moduleName) return subspace } // SimulationManager implements the SimulationApp interface -func (app *EveApp) SimulationManager() *module.SimulationManager { +func (app *LimeApp) SimulationManager() *module.SimulationManager { return app.sm } // RegisterAPIRoutes registers all application module routes with the provided // API server. -func (app *EveApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) { +func (app *LimeApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) { clientCtx := apiSvr.ClientCtx // Register new tx routes from grpc-gateway. authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) @@ -1264,12 +1264,12 @@ func (app *EveApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APICon } // RegisterTxService implements the Application.RegisterTxService method. -func (app *EveApp) RegisterTxService(clientCtx client.Context) { +func (app *LimeApp) RegisterTxService(clientCtx client.Context) { authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry) } // RegisterTendermintService implements the Application.RegisterTendermintService method. -func (app *EveApp) RegisterTendermintService(clientCtx client.Context) { +func (app *LimeApp) RegisterTendermintService(clientCtx client.Context) { cmtApp := server.NewCometABCIWrapper(app) cmtservice.RegisterTendermintService( clientCtx, @@ -1279,7 +1279,7 @@ func (app *EveApp) RegisterTendermintService(clientCtx client.Context) { ) } -func (app *EveApp) RegisterNodeService(clientCtx client.Context, cfg config.Config) { +func (app *LimeApp) RegisterNodeService(clientCtx client.Context, cfg config.Config) { nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter(), cfg) } diff --git a/app/encoding.go b/app/encoding.go index 99f62919..97229209 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -3,8 +3,8 @@ package app import ( "testing" + "github.com/LimeChain/lime/app/params" dbm "github.com/cosmos/cosmos-db" - "github.com/eve-network/eve/app/params" "cosmossdk.io/log" @@ -18,11 +18,11 @@ func MakeEncodingConfig(t testing.TB) params.EncodingConfig { t.Helper() // we "pre"-instantiate the application for getting the injected/configured encoding configuration // note, this is not necessary when using app wiring, as depinject can be directly used (see root_v2.go) - tempApp := NewEveApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(t.TempDir()), []wasmkeeper.Option{}) + tempApp := NewLimeApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(t.TempDir()), []wasmkeeper.Option{}) return makeEncodingConfig(tempApp) } -func makeEncodingConfig(tempApp *EveApp) params.EncodingConfig { +func makeEncodingConfig(tempApp *LimeApp) params.EncodingConfig { encodingConfig := params.EncodingConfig{ InterfaceRegistry: tempApp.InterfaceRegistry(), Codec: tempApp.AppCodec(), diff --git a/app/export.go b/app/export.go index 5871f78e..0779f613 100644 --- a/app/export.go +++ b/app/export.go @@ -18,7 +18,7 @@ import ( // ExportAppStateAndValidators exports the state of the application for a genesis // file. -func (app *EveApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error) { +func (app *LimeApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error) { // as if they could withdraw from the start of the next block ctx := app.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()}) @@ -53,7 +53,7 @@ func (app *EveApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAd // NOTE zero height genesis is a temporary feature which will be deprecated // // in favor of export at a block height -func (app *EveApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { +func (app *LimeApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { applyAllowedAddrs := false // check if there is a allowed address list diff --git a/app/test_helpers.go b/app/test_helpers.go index def51dc7..9bcda074 100644 --- a/app/test_helpers.go +++ b/app/test_helpers.go @@ -45,7 +45,7 @@ import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" ) -// SetupOptions defines arguments that are passed into `EveApp` constructor. +// SetupOptions defines arguments that are passed into `LimeApp` constructor. type SetupOptions struct { Logger log.Logger DB *dbm.MemDB @@ -53,7 +53,7 @@ type SetupOptions struct { WasmOpts []wasmkeeper.Option } -func setup(t testing.TB, chainID string, withGenesis bool, invCheckPeriod uint, opts ...wasmkeeper.Option) (*EveApp, GenesisState) { +func setup(t testing.TB, chainID string, withGenesis bool, invCheckPeriod uint, opts ...wasmkeeper.Option) (*LimeApp, GenesisState) { db := dbm.NewMemDB() nodeHome := t.TempDir() snapshotDir := filepath.Join(nodeHome, "data", "snapshots") @@ -67,15 +67,15 @@ func setup(t testing.TB, chainID string, withGenesis bool, invCheckPeriod uint, appOptions := make(simtestutil.AppOptionsMap, 0) appOptions[flags.FlagHome] = nodeHome // ensure unique folder appOptions[server.FlagInvCheckPeriod] = invCheckPeriod - app := NewEveApp(log.NewNopLogger(), db, nil, true, appOptions, opts, bam.SetChainID(chainID), bam.SetSnapshot(snapshotStore, snapshottypes.SnapshotOptions{KeepRecent: 2})) + app := NewLimeApp(log.NewNopLogger(), db, nil, true, appOptions, opts, bam.SetChainID(chainID), bam.SetSnapshot(snapshotStore, snapshottypes.SnapshotOptions{KeepRecent: 2})) if withGenesis { return app, app.DefaultGenesis() } return app, GenesisState{} } -// NewWasmAppWithCustomOptions initializes a new EveApp with custom options. -func NewWasmAppWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptions) *EveApp { +// NewWasmAppWithCustomOptions initializes a new LimeApp with custom options. +func NewWasmAppWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptions) *LimeApp { t.Helper() privVal := mock.NewPV() @@ -93,7 +93,7 @@ func NewWasmAppWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOpti Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdkmath.NewInt(100000000000000))), } - app := NewEveApp(options.Logger, options.DB, nil, true, options.AppOpts, options.WasmOpts) + app := NewLimeApp(options.Logger, options.DB, nil, true, options.AppOpts, options.WasmOpts) genesisState := app.DefaultGenesis() genesisState, err = GenesisStateWithValSet(app.AppCodec(), genesisState, valSet, []authtypes.GenesisAccount{acc}, balance) require.NoError(t, err) @@ -116,8 +116,8 @@ func NewWasmAppWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOpti return app } -// Setup initializes a new EveApp. A Nop logger is set in EveApp. -func Setup(t *testing.T, opts ...wasmkeeper.Option) *EveApp { +// Setup initializes a new LimeApp. A Nop logger is set in LimeApp. +func Setup(t *testing.T, opts ...wasmkeeper.Option) *LimeApp { t.Helper() privVal := mock.NewPV() @@ -141,10 +141,10 @@ func Setup(t *testing.T, opts ...wasmkeeper.Option) *EveApp { return app } -// SetupWithGenesisValSet initializes a new EveApp with a validator set and genesis accounts +// SetupWithGenesisValSet initializes a new LimeApp with a validator set and genesis accounts // that also act as delegators. For simplicity, each validator is bonded with a delegation -// of one consensus engine unit in the default token of the EveApp from first genesis -// account. A Nop logger is set in EveApp. +// of one consensus engine unit in the default token of the LimeApp from first genesis +// account. A Nop logger is set in LimeApp. func SetupWithGenesisValSet( t *testing.T, valSet *cmttypes.ValidatorSet, @@ -152,7 +152,7 @@ func SetupWithGenesisValSet( chainID string, opts []wasmkeeper.Option, balances ...banktypes.Balance, -) *EveApp { +) *LimeApp { t.Helper() app, genesisState := setup(t, chainID, true, 5, opts...) @@ -186,14 +186,14 @@ func SetupWithGenesisValSet( } // SetupWithEmptyStore set up a wasmd app instance with empty DB -func SetupWithEmptyStore(t testing.TB) *EveApp { +func SetupWithEmptyStore(t testing.TB) *LimeApp { app, _ := setup(t, "testing", false, 0) return app } // GenesisStateWithSingleValidator initializes GenesisState with a single validator and genesis accounts // that also act as delegators. -func GenesisStateWithSingleValidator(t *testing.T, app *EveApp) GenesisState { +func GenesisStateWithSingleValidator(t *testing.T, app *LimeApp) GenesisState { t.Helper() privVal := mock.NewPV() @@ -223,11 +223,11 @@ func GenesisStateWithSingleValidator(t *testing.T, app *EveApp) GenesisState { // AddTestAddrsIncremental constructs and returns accNum amount of accounts with an // initial balance of accAmt in random order -func AddTestAddrsIncremental(app *EveApp, ctx sdk.Context, accNum int, accAmt sdkmath.Int) []sdk.AccAddress { +func AddTestAddrsIncremental(app *LimeApp, ctx sdk.Context, accNum int, accAmt sdkmath.Int) []sdk.AccAddress { return addTestAddrs(app, ctx, accNum, accAmt, simtestutil.CreateIncrementalAccounts) } -func addTestAddrs(app *EveApp, ctx sdk.Context, accNum int, accAmt sdkmath.Int, strategy simtestutil.GenerateAccountStrategy) []sdk.AccAddress { +func addTestAddrs(app *LimeApp, ctx sdk.Context, accNum int, accAmt sdkmath.Int, strategy simtestutil.GenerateAccountStrategy) []sdk.AccAddress { testAddrs := strategy(accNum) bondDenom, err := app.StakingKeeper.BondDenom(ctx) if err != nil { @@ -243,7 +243,7 @@ func addTestAddrs(app *EveApp, ctx sdk.Context, accNum int, accAmt sdkmath.Int, return testAddrs } -func initAccountWithCoins(app *EveApp, ctx sdk.Context, addr sdk.AccAddress, coins sdk.Coins) { +func initAccountWithCoins(app *LimeApp, ctx sdk.Context, addr sdk.AccAddress, coins sdk.Coins) { err := app.BankKeeper.MintCoins(ctx, minttypes.ModuleName, coins) if err != nil { panic(err) @@ -257,7 +257,7 @@ func initAccountWithCoins(app *EveApp, ctx sdk.Context, addr sdk.AccAddress, coi var emptyWasmOptions []wasmkeeper.Option -// NewTestNetworkFixture returns a new EveApp AppConstructor for network simulation tests +// NewTestNetworkFixture returns a new LimeApp AppConstructor for network simulation tests func NewTestNetworkFixture() network.TestFixture { dir, err := os.MkdirTemp("", "simapp") if err != nil { @@ -265,9 +265,9 @@ func NewTestNetworkFixture() network.TestFixture { } defer os.RemoveAll(dir) - app := NewEveApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(dir), emptyWasmOptions) + app := NewLimeApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(dir), emptyWasmOptions) appCtr := func(val network.ValidatorI) servertypes.Application { - return NewEveApp( + return NewLimeApp( val.GetCtx().Logger, dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(val.GetCtx().Config.RootDir), emptyWasmOptions, diff --git a/app/test_support.go b/app/test_support.go index 829dc518..f58f41b0 100644 --- a/app/test_support.go +++ b/app/test_support.go @@ -12,30 +12,30 @@ import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" ) -func (app *EveApp) GetIBCKeeper() *ibckeeper.Keeper { +func (app *LimeApp) GetIBCKeeper() *ibckeeper.Keeper { return app.IBCKeeper } -func (app *EveApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper { +func (app *LimeApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper { return app.ScopedIBCKeeper } -func (app *EveApp) GetBaseApp() *baseapp.BaseApp { +func (app *LimeApp) GetBaseApp() *baseapp.BaseApp { return app.BaseApp } -func (app *EveApp) GetBankKeeper() bankkeeper.Keeper { +func (app *LimeApp) GetBankKeeper() bankkeeper.Keeper { return app.BankKeeper } -func (app *EveApp) GetStakingKeeper() *stakingkeeper.Keeper { +func (app *LimeApp) GetStakingKeeper() *stakingkeeper.Keeper { return &app.StakingKeeper } -func (app *EveApp) GetAccountKeeper() authkeeper.AccountKeeper { +func (app *LimeApp) GetAccountKeeper() authkeeper.AccountKeeper { return app.AccountKeeper } -func (app *EveApp) GetWasmKeeper() wasmkeeper.Keeper { +func (app *LimeApp) GetWasmKeeper() wasmkeeper.Keeper { return app.WasmKeeper } diff --git a/app/upgrades.go b/app/upgrades.go index 18e9f8e9..30bf0e2e 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -3,8 +3,8 @@ package app import ( "fmt" - "github.com/eve-network/eve/app/upgrades" - v1 "github.com/eve-network/eve/app/upgrades/v1" + "github.com/LimeChain/lime/app/upgrades" + v1 "github.com/LimeChain/lime/app/upgrades/v1" upgradetypes "cosmossdk.io/x/upgrade/types" @@ -29,7 +29,7 @@ import ( var Upgrades = []upgrades.Upgrade{v1.Upgrade} // RegisterUpgradeHandlers registers the chain upgrade handlers -func (app *EveApp) RegisterUpgradeHandlers() { +func (app *LimeApp) RegisterUpgradeHandlers() { setupLegacyKeyTables(&app.ParamsKeeper) keepers := upgrades.AppKeepers{ diff --git a/app/upgrades/v1/constants.go b/app/upgrades/v1/constants.go index cf30343a..f2de4400 100644 --- a/app/upgrades/v1/constants.go +++ b/app/upgrades/v1/constants.go @@ -1,7 +1,7 @@ package v1 import ( - "github.com/eve-network/eve/app/upgrades" + "github.com/LimeChain/lime/app/upgrades" feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types" store "cosmossdk.io/store/types" diff --git a/app/upgrades/v1/upgrades.go b/app/upgrades/v1/upgrades.go index b738cc45..50f7ff18 100644 --- a/app/upgrades/v1/upgrades.go +++ b/app/upgrades/v1/upgrades.go @@ -3,7 +3,7 @@ package v1 import ( "context" - "github.com/eve-network/eve/app/upgrades" + "github.com/LimeChain/lime/app/upgrades" feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types" sdkmath "cosmossdk.io/math" @@ -42,7 +42,7 @@ func ConfigureFeeMarketModule(ctx sdk.Context, keepers *upgrades.AppKeepers) err } params.Enabled = true - params.FeeDenom = "ueve" + params.FeeDenom = "ulime" params.DistributeFees = true // burn fees params.MinBaseGasPrice = sdkmath.LegacyMustNewDecFromStr("0.005") params.MaxBlockUtilization = feemarkettypes.DefaultMaxBlockUtilization diff --git a/cmd/eved/commands.go b/cmd/limed/commands.go similarity index 98% rename from cmd/eved/commands.go rename to cmd/limed/commands.go index da5f0c57..dddcf6a4 100644 --- a/cmd/eved/commands.go +++ b/cmd/limed/commands.go @@ -5,9 +5,9 @@ import ( "io" "os" + "github.com/LimeChain/lime/app" cmtcfg "github.com/cometbft/cometbft/config" dbm "github.com/cosmos/cosmos-db" - "github.com/eve-network/eve/app" "github.com/prometheus/client_golang/prometheus" "github.com/spf13/cast" "github.com/spf13/cobra" @@ -196,7 +196,7 @@ func newApp( wasmOpts = append(wasmOpts, wasmkeeper.WithVMCacheMetrics(prometheus.DefaultRegisterer)) } - return app.NewEveApp( + return app.NewLimeApp( logger, db, traceStore, true, appOpts, wasmOpts, @@ -215,7 +215,7 @@ func appExport( appOpts servertypes.AppOptions, modulesToExport []string, ) (servertypes.ExportedApp, error) { - var wasmApp *app.EveApp + var wasmApp *app.LimeApp // this check is necessary as we use the flag in x/upgrade. // we can exit more gracefully by checking the flag here. homePath, ok := appOpts.Get(flags.FlagHome).(string) @@ -233,7 +233,7 @@ func appExport( appOpts = viperAppOpts var emptyWasmOpts []wasmkeeper.Option - wasmApp = app.NewEveApp( + wasmApp = app.NewLimeApp( logger, db, traceStore, diff --git a/cmd/eved/main.go b/cmd/limed/main.go similarity index 90% rename from cmd/eved/main.go rename to cmd/limed/main.go index fd85d962..0de808d8 100644 --- a/cmd/eved/main.go +++ b/cmd/limed/main.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/eve-network/eve/app" + "github.com/LimeChain/lime/app" "cosmossdk.io/log" diff --git a/cmd/eved/root.go b/cmd/limed/root.go similarity index 93% rename from cmd/eved/root.go rename to cmd/limed/root.go index 93ae7304..d80f567c 100644 --- a/cmd/eved/root.go +++ b/cmd/limed/root.go @@ -3,9 +3,9 @@ package main import ( "os" + "github.com/LimeChain/lime/app" + "github.com/LimeChain/lime/app/params" dbm "github.com/cosmos/cosmos-db" - "github.com/eve-network/eve/app" - "github.com/eve-network/eve/app/params" "github.com/spf13/cobra" "cosmossdk.io/log" @@ -36,7 +36,7 @@ func NewRootCmd() *cobra.Command { cfg.Seal() // we "pre"-instantiate the application for getting the injected/configured encoding configuration // note, this is not necessary when using app wiring, as depinject can be directly used (see root_v2.go) - tempApp := app.NewEveApp(log.NewNopLogger(), dbm.NewMemDB(), nil, false, simtestutil.NewAppOptionsWithFlagHome(tempDir()), []wasmkeeper.Option{}) + tempApp := app.NewLimeApp(log.NewNopLogger(), dbm.NewMemDB(), nil, false, simtestutil.NewAppOptionsWithFlagHome(tempDir()), []wasmkeeper.Option{}) encodingConfig := params.EncodingConfig{ InterfaceRegistry: tempApp.InterfaceRegistry(), Codec: tempApp.AppCodec(), @@ -56,7 +56,7 @@ func NewRootCmd() *cobra.Command { rootCmd := &cobra.Command{ Use: version.AppName, - Short: "Eve Daemon (server)", + Short: "Lime Daemon (server)", SilenceErrors: true, PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { // set the default command outputs diff --git a/cmd/eved/testnet.go b/cmd/limed/testnet.go similarity index 99% rename from cmd/eved/testnet.go rename to cmd/limed/testnet.go index fc238944..b6c68c10 100644 --- a/cmd/eved/testnet.go +++ b/cmd/limed/testnet.go @@ -11,9 +11,9 @@ import ( "path/filepath" "time" + "github.com/LimeChain/lime/app" cmtconfig "github.com/cometbft/cometbft/config" cmttime "github.com/cometbft/cometbft/types/time" - "github.com/eve-network/eve/app" "github.com/spf13/cobra" "github.com/spf13/pflag" diff --git a/go.mod b/go.mod index 9de44ee0..ff495df2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/eve-network/eve +module github.com/LimeChain/lime go 1.23 diff --git a/scripts/run-node.sh b/scripts/run-node.sh index 34fc274a..fc0ff001 100755 --- a/scripts/run-node.sh +++ b/scripts/run-node.sh @@ -11,10 +11,10 @@ if [ "$CONTINUE" == "true" ]; then fi rm -rf mytestnet -pkill -9 eved +pkill -9 limed -# check DENOM is set. If not, set to ueve -DENOM=${2:-ueve} +# check DENOM is set. If not, set to ulime +DENOM=${2:-ulime} COMMISSION_RATE=0.01 COMMISSION_MAX_RATE=0.02 @@ -35,10 +35,10 @@ fi # check BINARY is set. If not, build eved and set BINARY if [ -z "$BINARY" ]; then make build - BINARY=build/eved + BINARY=build/limed fi -CHAIN_ID="evenetwork-1" +CHAIN_ID="lime-1" KEYRING="test" KEY="test0" @@ -64,7 +64,7 @@ update_test_genesis '.app_state["staking"]["params"]["bond_denom"]="'$DENOM'"' $SED_BINARY -i '0,/enable = false/s//enable = true/' $HOME_DIR/config/app.toml $SED_BINARY -i 's/swagger = false/swagger = true/' $HOME_DIR/config/app.toml $SED_BINARY -i -e 's/enabled-unsafe-cors = false/enabled-unsafe-cors = true/g' $HOME_DIR/config/app.toml -$SED_BINARY -i 's/minimum-gas-prices = "0.25ueve"/minimum-gas-prices = "0.0eve"/' $HOME_DIR/config/app.toml +$SED_BINARY -i 's/minimum-gas-prices = "0.25ulime"/minimum-gas-prices = "0.0lime"/' $HOME_DIR/config/app.toml # Sign genesis transaction diff --git a/scripts/tests/init-test-framework.sh b/scripts/tests/init-test-framework.sh index 763ea34d..e6dfd442 100755 --- a/scripts/tests/init-test-framework.sh +++ b/scripts/tests/init-test-framework.sh @@ -1,6 +1,6 @@ #!/bin/bash -BINARY=eved +BINARY=limed CHAIN_DIR=$(pwd)/data CHAINID_1=test-1 CHAINID_2=test-2 diff --git a/scripts/tests/relayer/interchain-acc-config/chains/test-1.json b/scripts/tests/relayer/interchain-acc-config/chains/test-1.json index dedc56d2..317ae5ec 100644 --- a/scripts/tests/relayer/interchain-acc-config/chains/test-1.json +++ b/scripts/tests/relayer/interchain-acc-config/chains/test-1.json @@ -5,11 +5,11 @@ "chain-id": "test-1", "rpc-addr": "http://localhost:16657", "grpc-addr": "", - "account-prefix": "eve", + "account-prefix": "lime", "keyring-backend": "test", - "default-denom": "ueve", + "default-denom": "ulime", "gas-adjustment": 1.5, - "gas-prices": "0ueve", + "gas-prices": "0ulime", "coin-type": 118, "debug": true, "timeout": "10s", diff --git a/scripts/tests/relayer/interchain-acc-config/chains/test-2.json b/scripts/tests/relayer/interchain-acc-config/chains/test-2.json index f7252e25..d99ecab8 100644 --- a/scripts/tests/relayer/interchain-acc-config/chains/test-2.json +++ b/scripts/tests/relayer/interchain-acc-config/chains/test-2.json @@ -5,11 +5,11 @@ "chain-id": "test-2", "rpc-addr": "http://localhost:26657", "grpc-addr": "", - "account-prefix": "eve", + "account-prefix": "lime", "keyring-backend": "test", - "default-denom": "ueve", + "default-denom": "ulime", "gas-adjustment": 1.5, - "gas-prices": "0ueve", + "gas-prices": "0ulime", "coin-type": 118, "debug": true, "timeout": "10s", diff --git a/scripts/wasm/gov_upload_code.sh b/scripts/wasm/gov_upload_code.sh index f1207c18..d8fd0465 100644 --- a/scripts/wasm/gov_upload_code.sh +++ b/scripts/wasm/gov_upload_code.sh @@ -1,13 +1,13 @@ #!/bin/bash -BINARY=build/eved +BINARY=build/limed -CHAIN_ID=local-eve +CHAIN_ID=local-lime VAL_KEY=test0 VOTER= VAL=$($BINARY keys show -a $VAL_KEY --keyring-backend test) CONTRACT=cw20_base PROPOSAL=1 -DENOM=${2:-"ueve"} +DENOM=${2:-"ulime"} HOME=mytestnet echo "submit wasm store proposal..." @@ -17,7 +17,7 @@ if ! $BINARY tx wasm submit-proposal wasm-store scripts/wasm/$CONTRACT.wasm --ti fi -echo "deposit ueve to proposal..." +echo "deposit ulime to proposal..." sleep 5 # $BINARY query gov proposal $PROPOSAL $BINARY tx gov deposit $PROPOSAL "40000000000000000000$DENOM" --from $VAL_KEY --keyring-backend test \ diff --git a/scripts/wasm/instantiate_cw20.sh b/scripts/wasm/instantiate_cw20.sh index 84807ac7..8e299079 100644 --- a/scripts/wasm/instantiate_cw20.sh +++ b/scripts/wasm/instantiate_cw20.sh @@ -2,8 +2,8 @@ # this is cw20 code from install_contracts.sh, true if this is the first proposal CODE=1 -CHAIN_ID=local-eve -BINARY=build/eved +CHAIN_ID=local-lime +BINARY=build/limed HOME=mytestnet $BINARY keys add demo --keyring-backend test --home $HOME VAL_KEY=test0 diff --git a/scripts/wasm/test_wasm.sh b/scripts/wasm/test_wasm.sh index 94c48e2d..90c790d2 100644 --- a/scripts/wasm/test_wasm.sh +++ b/scripts/wasm/test_wasm.sh @@ -47,7 +47,7 @@ fi echo "Success executing basic wasm tests!" # kill chain -pkill -9 eved +pkill -9 limed diff --git a/scripts/wasm/upload_code.sh b/scripts/wasm/upload_code.sh index b04523db..dc4c361d 100644 --- a/scripts/wasm/upload_code.sh +++ b/scripts/wasm/upload_code.sh @@ -1,12 +1,12 @@ #!/bin/bash -BINARY=build/eved +BINARY=build/limed -CHAIN_ID=local-eve +CHAIN_ID=local-lime CONTRACT=cw20_base HOME=mytestnet -DENOM="ueve" +DENOM="ulime" KEY="test0" KEYRING="test" diff --git a/testnets/README.md b/testnets/README.md index 91cd4fc8..5ab40834 100644 --- a/testnets/README.md +++ b/testnets/README.md @@ -1,4 +1,4 @@ -# Eve Testnet +# Lime Testnet This testnet will start with the node version `v0.0.5`. @@ -13,8 +13,8 @@ This testnet will start with the node version `v0.0.5`. ### Install node ```bash -git clone https://github.com/eve-network/eve.git -cd eve +git clone https://github.com/LimeChain/lime.git +cd lime git checkout v0.0.5 make install ``` @@ -23,22 +23,22 @@ make install ```bash # Get node version (should be v0.0.5) -eved version +limed version # Get node long version (should be 31f4be4340efe6e6b05b819b83fee1ed1c9b280b) -eved version --long | grep commit +limed version --long | grep commit ``` ### Initialize Chain ```bash -eved init MONIKER --chain-id=evenetwork-1 +limed init MONIKER --chain-id=lime-1 ``` ### Download genesis ```bash -curl -s https://raw.githubusercontent.com/eve-network/eve/main/testnets/genesis.json > ~/.eved/config/genesis.json +curl -s https://raw.githubusercontent.com/LimeChain/lime/main/testnets/genesis.json > ~/.limed/config/genesis.json ``` ## Create gentx @@ -46,25 +46,25 @@ curl -s https://raw.githubusercontent.com/eve-network/eve/main/testnets/genesis. Create wallet ```bash -eved keys add KEY_NAME +limed keys add KEY_NAME ``` -Fund yourself `1000000000ueve` +Fund yourself `1000000000lime` ```bash -eved genesis add-genesis-account $(eved keys show KEY_NAME -a) 1000000000ueve +limed genesis add-genesis-account $(limed keys show KEY_NAME -a) 1000000000lime ``` -Use half (`1000000ueve`) for self-delegation +Use half (`1000000lime`) for self-delegation ```bash -eved genesis gentx KEY_NAME 1000000ueve --chain-id=evenetwork-1 +limed genesis gentx KEY_NAME 1000000lime --chain-id=lime-1 ``` If all goes well, you will see a message similar to the following: ```bash -Genesis transaction written to "/home/user/.eved/config/gentx/gentx-******.json" +Genesis transaction written to "/home/user/.limed/config/gentx/gentx-******.json" ``` ### Submit genesis transaction diff --git a/testnets/statesync.md b/testnets/statesync.md index fa67138d..52cac3a9 100644 --- a/testnets/statesync.md +++ b/testnets/statesync.md @@ -1,4 +1,4 @@ -# Eve Network Testnet +# Lime Testnet This testnet will start with the node version `0.0.2`. @@ -13,8 +13,8 @@ This testnet will start with the node version `0.0.2`. ### Install node ```bash -git clone https://github.com/eve-network/eve.git -cd eve +git clone https://github.com/LimeChain/lime.git +cd lime git checkout v0.0.2 make install ``` @@ -23,27 +23,27 @@ make install ```bash # Get node version (should be v0.0.2) -eved version +limed version # Get node long version (should be 25e1602d5a29e4ab49addda7e4178b50894999df) -eved version --long | grep commit +limed version --long | grep commit ``` ### Initialize Chain ```bash -rm -rf ~/.eved -eved init develop --chain-id=evenetwork-1 +rm -rf ~/.limed +limed init develop --chain-id=lime-1 ``` ### Replace pre-genesis ```bash # Download the file -curl -s https://raw.githubusercontent.com/eve-network/eve/main/testnets/genesis.json > ~/.eved/config/genesis.json +curl -s https://raw.githubusercontent.com/LimeChain/lime/main/testnets/genesis.json > ~/.limed/config/genesis.json # Calculate the SHA256 checksum -calculated_checksum=$(shasum -a 256 ~/.eved/config/genesis.json | awk '{ print $1 }') +calculated_checksum=$(shasum -a 256 ~/.limed/config/genesis.json | awk '{ print $1 }') # Compare with the expected checksum expected_checksum="244d5a3999dd0851eb338b032a57fbea24a89b4016a7907a9d20c2045c689857" @@ -65,5 +65,5 @@ export PERSISTENT_SEEDS="" ### Run node with persistent peers ```bash -eved start --p2p.persistent_peers=$PERSISTENT_SEEDS +limed start --p2p.persistent_peers=$PERSISTENT_SEEDS ```