From 1710c8dc206ed000bac1e4620ea9f981a0cebeb0 Mon Sep 17 00:00:00 2001 From: alexgao001 <118710506+alexgao001@users.noreply.github.com> Date: Mon, 30 Jan 2023 10:56:09 +0800 Subject: [PATCH] feat: rebrand from inscription to greenfield (#30) --- .github/workflows/release.yml | 8 +-- CHANGELOG.md | 39 ++++++----- Dockerfile | 12 ++-- Makefile | 8 +-- app/ante/ante_test.go | 20 +++--- app/ante/utils_test.go | 10 +-- app/app.go | 50 ++++++------- app/encoding.go | 2 +- app/simulation_test.go | 2 +- cmd/{bfsd => gnfd}/cmd/config.go | 2 +- cmd/{bfsd => gnfd}/cmd/genaccounts.go | 2 +- cmd/{bfsd => gnfd}/cmd/root.go | 8 +-- cmd/{bfsd => gnfd}/main.go | 4 +- config.yml | 4 +- crypto/keyring/options.go | 4 +- deployment/localup/.env | 4 +- deployment/localup/localup.sh | 2 +- deployment/localup/localup_fullnode.sh | 2 +- deployment/readme.md | 30 ++++---- docs/static/openapi.yml | 8 +-- go.mod | 6 +- go.sum | 8 +-- proto/{bfs => greenfield}/bridge/event.proto | 4 +- .../{bfs => greenfield}/bridge/genesis.proto | 6 +- proto/{bfs => greenfield}/bridge/params.proto | 4 +- .../bfs => greenfield/bridge}/query.proto | 8 +-- proto/{bfs => greenfield}/bridge/tx.proto | 4 +- .../greenfield}/genesis.proto | 8 +-- .../greenfield}/params.proto | 4 +- .../greenfield}/query.proto | 8 +-- .../bfs => greenfield/greenfield}/tx.proto | 4 +- readme.md | 12 ++-- testutil/keeper/bridge.go | 12 ++-- testutil/keeper/{bfs.go => greenfield.go} | 8 +-- testutil/network/network.go | 4 +- x/bridge/client/cli/query.go | 2 +- x/bridge/client/cli/query_params.go | 2 +- x/bridge/client/cli/tx.go | 2 +- x/bridge/client/cli/tx_transfer_out.go | 2 +- x/bridge/genesis.go | 4 +- x/bridge/keeper/cross_app.go | 2 +- x/bridge/keeper/cross_app_test.go | 6 +- x/bridge/keeper/grpc_query.go | 2 +- x/bridge/keeper/grpc_query_params.go | 2 +- x/bridge/keeper/keeper.go | 2 +- x/bridge/keeper/msg_server.go | 2 +- x/bridge/keeper/msg_server_test.go | 6 +- x/bridge/keeper/msg_server_transfer_out.go | 2 +- x/bridge/keeper/params.go | 2 +- x/bridge/module.go | 6 +- x/bridge/module_simulation.go | 6 +- x/bridge/simulation/transfer_out.go | 4 +- x/bridge/types/event.pb.go | 70 +++++++++---------- x/bridge/types/genesis.pb.go | 38 +++++----- x/bridge/types/genesis_test.go | 2 +- x/bridge/types/message_transfer_out_test.go | 2 +- x/bridge/types/params.pb.go | 41 +++++------ x/bridge/types/query.pb.go | 69 +++++++++--------- x/bridge/types/query.pb.gw.go | 4 +- x/bridge/types/tx.pb.go | 66 ++++++++--------- x/{bfs => greenfield}/client/cli/query.go | 4 +- .../client/cli/query_params.go | 2 +- x/{bfs => greenfield}/client/cli/tx.go | 2 +- x/{bfs => greenfield}/genesis.go | 6 +- x/{bfs => greenfield}/genesis_test.go | 16 ++--- x/{bfs => greenfield}/keeper/grpc_query.go | 2 +- .../keeper/grpc_query_params.go | 2 +- .../keeper/grpc_query_params_test.go | 6 +- x/{bfs => greenfield}/keeper/keeper.go | 2 +- x/{bfs => greenfield}/keeper/msg_server.go | 2 +- .../keeper/msg_server_test.go | 8 +-- x/{bfs => greenfield}/keeper/params.go | 2 +- x/{bfs => greenfield}/keeper/params_test.go | 6 +- x/{bfs => greenfield}/module.go | 8 +-- x/{bfs => greenfield}/module_simulation.go | 14 ++-- x/{bfs => greenfield}/simulation/helpers.go | 0 x/{bfs => greenfield}/types/codec.go | 0 x/{bfs => greenfield}/types/errors.go | 2 +- .../types/expected_keepers.go | 0 x/{bfs => greenfield}/types/genesis.go | 0 x/{bfs => greenfield}/types/genesis.pb.go | 40 ++++++----- x/{bfs => greenfield}/types/genesis_test.go | 2 +- x/{bfs => greenfield}/types/keys.go | 4 +- x/{bfs => greenfield}/types/params.go | 0 x/{bfs => greenfield}/types/params.pb.go | 33 +++++---- x/{bfs => greenfield}/types/query.pb.go | 68 +++++++++--------- x/{bfs => greenfield}/types/query.pb.gw.go | 4 +- x/{bfs => greenfield}/types/tx.pb.go | 28 ++++---- x/{bfs => greenfield}/types/types.go | 0 89 files changed, 471 insertions(+), 459 deletions(-) rename cmd/{bfsd => gnfd}/cmd/config.go (83%) rename cmd/{bfsd => gnfd}/cmd/genaccounts.go (99%) rename cmd/{bfsd => gnfd}/cmd/root.go (98%) rename cmd/{bfsd => gnfd}/main.go (80%) rename proto/{bfs => greenfield}/bridge/event.proto (85%) rename proto/{bfs => greenfield}/bridge/genesis.proto (68%) rename proto/{bfs => greenfield}/bridge/params.proto (65%) rename proto/{bfs/bfs => greenfield/bridge}/query.proto (78%) rename proto/{bfs => greenfield}/bridge/tx.proto (82%) rename proto/{bfs/bfs => greenfield/greenfield}/genesis.proto (55%) rename proto/{bfs/bfs => greenfield/greenfield}/params.proto (61%) rename proto/{bfs/bridge => greenfield/greenfield}/query.proto (78%) rename proto/{bfs/bfs => greenfield/greenfield}/tx.proto (71%) rename testutil/keeper/{bfs.go => greenfield.go} (86%) rename x/{bfs => greenfield}/client/cli/query.go (87%) rename x/{bfs => greenfield}/client/cli/query_params.go (92%) rename x/{bfs => greenfield}/client/cli/tx.go (92%) rename x/{bfs => greenfield}/genesis.go (82%) rename x/{bfs => greenfield}/genesis_test.go (50%) rename x/{bfs => greenfield}/keeper/grpc_query.go (53%) rename x/{bfs => greenfield}/keeper/grpc_query_params.go (89%) rename x/{bfs => greenfield}/keeper/grpc_query_params_test.go (72%) rename x/{bfs => greenfield}/keeper/keeper.go (94%) rename x/{bfs => greenfield}/keeper/msg_server.go (84%) rename x/{bfs => greenfield}/keeper/msg_server_test.go (53%) rename x/{bfs => greenfield}/keeper/params.go (86%) rename x/{bfs => greenfield}/keeper/params_test.go (59%) rename x/{bfs => greenfield}/module.go (97%) rename x/{bfs => greenfield}/module_simulation.go (85%) rename x/{bfs => greenfield}/simulation/helpers.go (100%) rename x/{bfs => greenfield}/types/codec.go (100%) rename x/{bfs => greenfield}/types/errors.go (81%) rename x/{bfs => greenfield}/types/expected_keepers.go (100%) rename x/{bfs => greenfield}/types/genesis.go (100%) rename x/{bfs => greenfield}/types/genesis.pb.go (81%) rename x/{bfs => greenfield}/types/genesis_test.go (93%) rename x/{bfs => greenfield}/types/keys.go (84%) rename x/{bfs => greenfield}/types/params.go (100%) rename x/{bfs => greenfield}/types/params.pb.go (81%) rename x/{bfs => greenfield}/types/query.pb.go (82%) rename x/{bfs => greenfield}/types/query.pb.gw.go (97%) rename x/{bfs => greenfield}/types/tx.pb.go (64%) rename x/{bfs => greenfield}/types/types.go (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6201c8681..30aab5833 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,14 +59,14 @@ jobs: if: matrix.os == 'ubuntu-latest' with: name: linux - path: ./build/bin/bfsd + path: ./build/bin/gnfd - name: Upload MacOS Build uses: actions/upload-artifact@v3 if: matrix.os == 'macos-latest' with: name: macos - path: ./build/bin/bfsd + path: ./build/bin/gnfd release: name: Release @@ -97,8 +97,8 @@ jobs: # Rename assets - run: | - mv ./linux/bfsd ./linux/linux - mv ./macos/bfsd ./macos/macos + mv ./linux/gnfd ./linux/linux + mv ./macos/gnfd ./macos/macos # ============================== # Create release diff --git a/CHANGELOG.md b/CHANGELOG.md index 05cf3db10..9afacef46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,20 @@ # Changelog +## v0.0.4 +This release is for rebranding from `inscription` to `greenfield`, renaming is applied to all packages, files. + +* [\#30](https://github.com/bnb-chain/greenfield/pull/30) feat: rebrand from inscription to greenfield + ## v0.0.3 This release includes features and bug fixes, mainly: 1. Implement the cross chain communication layer; 2. Implement the cross chain token transfer; 3. Add scripts to set up full nodes using state sync. -* [\#8](https://github.com/bnb-chain/inscription/pull/8) feat: implement bridge module -* [\#27](https://github.com/bnb-chain/inscription/pull/27) feat: remove ValAddress and update EIP712 related functions -* [\#26](https://github.com/bnb-chain/inscription/pull/26) fix: init viper before getting configs -* [\#25](https://github.com/bnb-chain/inscription/pull/25) deployment: add scripts to set up full nodes using state sync +* [\#8](https://github.com/bnb-chain/greenfield/pull/8) feat: implement bridge module +* [\#27](https://github.com/bnb-chain/greenfield/pull/27) feat: remove ValAddress and update EIP712 related functions +* [\#26](https://github.com/bnb-chain/greenfield/pull/26) fix: init viper before getting configs +* [\#25](https://github.com/bnb-chain/greenfield/pull/25) deployment: add scripts to set up full nodes using state sync ## v0.0.2 This release includes features and bug fixes, mainly: @@ -18,16 +23,16 @@ This release includes features and bug fixes, mainly: 3. EIP712 bug fix; 4. Deployment scripts fix. -* [\#17](https://github.com/bnb-chain/inscription/pull/17) feat: custom upgrade module -* [\#20](https://github.com/bnb-chain/inscription/pull/20) ci: fix release flow -* [\#21](https://github.com/bnb-chain/inscription/pull/21) feat: init balance of relayers in genesis state -* [\#19](https://github.com/bnb-chain/inscription/pull/19) deployment: fix relayer key generation -* [\#16](https://github.com/bnb-chain/inscription/pull/16) feat: pass config to app when creating new app -* [\#14](https://github.com/bnb-chain/inscription/pull/16) disable unnecessary modules +* [\#17](https://github.com/bnb-chain/greenfield/pull/17) feat: custom upgrade module +* [\#20](https://github.com/bnb-chain/greenfield/pull/20) ci: fix release flow +* [\#21](https://github.com/bnb-chain/greenfield/pull/21) feat: init balance of relayers in genesis state +* [\#19](https://github.com/bnb-chain/greenfield/pull/19) deployment: fix relayer key generation +* [\#16](https://github.com/bnb-chain/greenfield/pull/16) feat: pass config to app when creating new app +* [\#14](https://github.com/bnb-chain/greenfield/pull/16) disable unnecessary modules ## v0.0.1 -This is the first release of the inscription. +This is the first release of the greenfield. It includes three key features: 1. EIP721 signing schema support @@ -36,15 +41,15 @@ It includes three key features: FEATURES -* [\#11](https://github.com/bnb-chain/inscription/pull/11) feat: customize staking module for inscription -* [\#10](https://github.com/bnb-chain/inscription/pull/10) deployment: local setup scripts -* [\#2](https://github.com/bnb-chain/inscription/pull/2) feat: add support for EIP712 and eth address standard r4r +* [\#11](https://github.com/bnb-chain/greenfield/pull/11) feat: customize staking module for greenfield +* [\#10](https://github.com/bnb-chain/greenfield/pull/10) deployment: local setup scripts +* [\#2](https://github.com/bnb-chain/greenfield/pull/2) feat: add support for EIP712 and eth address standard r4r DEP -* [\#3](https://github.com/bnb-chain/inscription/pull/3) dep: replace cosmos-sdk to inscription-cosmos-sdk v0.0.1(v0.46.4) +* [\#3](https://github.com/bnb-chain/greenfield/pull/3) dep: replace cosmos-sdk to greenfield-cosmos-sdk v0.0.1(v0.46.4) BUG FIX -* [\#9](https://github.com/bnb-chain/inscription/pull/9) fix: add coin type to init cmd +* [\#9](https://github.com/bnb-chain/greenfield/pull/9) fix: add coin type to init cmd DOCS -* [\#1](https://github.com/bnb-chain/inscription/pull/1) docs: refine the readme with detailed introduction documentation +* [\#1](https://github.com/bnb-chain/greenfield/pull/1) docs: refine the readme with detailed introduction documentation diff --git a/Dockerfile b/Dockerfile index 9c4389d23..0d87612e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,17 +2,17 @@ FROM golang:1.18-alpine as builder RUN apk add --no-cache make git bash -ADD . /bfs +ADD . /greenfield ENV CGO_ENABLED=0 ENV GO111MODULE=on -RUN cd /bfs && make build +RUN cd /greenfield && make build -# Pull BFS into a second stage deploy alpine container +# Pull greenfield into a second stage deploy alpine container FROM alpine:3.16 -ARG USER=bfs +ARG USER=greenfield ARG USER_UID=1000 ARG USER_GID=1000 @@ -30,10 +30,10 @@ RUN echo "[ ! -z \"\$TERM\" -a -r /etc/motd ] && cat /etc/motd" >> /etc/bash/bas WORKDIR ${WORKDIR} -COPY --from=builder /bfs/build/bin/bfsd ${WORKDIR}/ +COPY --from=builder /greenfield/build/bin/greenfieldd ${WORKDIR}/ RUN chown -R ${USER_UID}:${USER_GID} ${WORKDIR} USER ${USER_UID}:${USER_GID} EXPOSE 26656 26657 9090 1317 6060 4500 -ENTRYPOINT ["/server/bfsd"] +ENTRYPOINT ["/server/greenfieldd"] diff --git a/Makefile b/Makefile index c4b50054a..958e2adce 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,9 @@ VERSION=$(shell git describe --tags) GIT_COMMIT=$(shell git rev-parse HEAD) GIT_COMMIT_DATE=$(shell git log -n1 --pretty='format:%cd' --date=format:'%Y%m%d') -REPO=github.com/bnb-chain/inscription -IMAGE_NAME=ghcr.io/bnb-chain/inscription -REPO=github.com/bnb-chain/inscription +REPO=github.com/bnb-chain/greenfield +IMAGE_NAME=ghcr.io/bnb-chain/greenfield +REPO=github.com/bnb-chain/greenfield ldflags = -X $(REPO)/version.AppVersion=$(VERSION) \ -X $(REPO)/version.GitCommit=$(GIT_COMMIT) \ @@ -19,7 +19,7 @@ proto: ignite generate proto-go build: - go build -o build/bin/bfsd -ldflags="$(ldflags)" ./cmd/bfsd/main.go + go build -o build/bin/gnfd -ldflags="$(ldflags)" ./cmd/gnfd/main.go docker-image: go mod vendor # temporary, should be removed after open source diff --git a/app/ante/ante_test.go b/app/ante/ante_test.go index 28f4aecf5..f2e483390 100644 --- a/app/ante/ante_test.go +++ b/app/ante/ante_test.go @@ -54,7 +54,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { from := acc.GetAddress() gas := uint64(200000) amount := sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdkmath.NewInt(100*int64(gas)))) - txBuilder := suite.CreateTestEIP712TxBuilderMsgSend(from, privKey, "inscription_9000-1", gas, amount) + txBuilder := suite.CreateTestEIP712TxBuilderMsgSend(from, privKey, "greenfield_9000-1", gas, amount) return txBuilder.GetTx() }, false, false, true, }, @@ -65,7 +65,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { gas := uint64(200000) coinAmount := sdk.NewCoin(sdk.DefaultBondDenom, sdkmath.NewInt(100*int64(gas))) amount := sdk.NewCoins(coinAmount) - txBuilder := suite.CreateTestEIP712TxBuilderMsgDelegate(from, privKey, "inscription_9000-1", gas, amount) + txBuilder := suite.CreateTestEIP712TxBuilderMsgDelegate(from, privKey, "greenfield_9000-1", gas, amount) return txBuilder.GetTx() }, false, false, true, }, @@ -76,7 +76,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { coinAmount := sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(20)) amount := sdk.NewCoins(coinAmount) gas := uint64(200000) - txBuilder := suite.CreateTestEIP712MsgCreateValidator(from, privKey, "inscription_9000-1", gas, amount) + txBuilder := suite.CreateTestEIP712MsgCreateValidator(from, privKey, "greenfield_9000-1", gas, amount) return txBuilder.GetTx() }, false, false, true, }, @@ -89,7 +89,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { gas := uint64(200000) // reusing the gasAmount for deposit deposit := sdk.NewCoins(coinAmount) - txBuilder := suite.CreateTestEIP712SubmitProposal(from, privKey, "inscription_9000-1", gas, gasAmount, deposit) + txBuilder := suite.CreateTestEIP712SubmitProposal(from, privKey, "greenfield_9000-1", gas, gasAmount, deposit) return txBuilder.GetTx() }, false, false, true, }, @@ -107,7 +107,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { from, grantee, &banktypes.SendAuthorization{SpendLimit: gasAmount}, &expiresAt, ) suite.Require().NoError(err) - return suite.CreateTestEIP712CosmosTxBuilder(from, privKey, "inscription_9000-1", gas, gasAmount, msg).GetTx() + return suite.CreateTestEIP712CosmosTxBuilder(from, privKey, "greenfield_9000-1", gas, gasAmount, msg).GetTx() }, false, false, true, }, { @@ -117,7 +117,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { coinAmount := sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(20)) gasAmount := sdk.NewCoins(coinAmount) gas := uint64(200000) - txBuilder := suite.CreateTestEIP712GrantAllowance(from, privKey, "inscription_9000-1", gas, gasAmount) + txBuilder := suite.CreateTestEIP712GrantAllowance(from, privKey, "greenfield_9000-1", gas, gasAmount) return txBuilder.GetTx() }, false, false, true, }, @@ -128,7 +128,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { coinAmount := sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(20)) amount := sdk.NewCoins(coinAmount) gas := uint64(200000) - txBuilder := suite.CreateTestEIP712MsgEditValidator(from, privKey, "inscription_9000-1", gas, amount) + txBuilder := suite.CreateTestEIP712MsgEditValidator(from, privKey, "greenfield_9000-1", gas, amount) return txBuilder.GetTx() }, false, false, true, }, @@ -139,7 +139,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { coinAmount := sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(20)) amount := sdk.NewCoins(coinAmount) gas := uint64(200000) - txBuilder := suite.CreateTestEIP712MsgEditValidator(from, privKey, "inscription_9000-1", gas, amount) + txBuilder := suite.CreateTestEIP712MsgEditValidator(from, privKey, "greenfield_9000-1", gas, amount) return txBuilder.GetTx() }, false, false, true, }, @@ -150,7 +150,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { coinAmount := sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(20)) amount := sdk.NewCoins(coinAmount) gas := uint64(200000) - txBuilder := suite.CreateTestEIP712TxBuilderMsgSubmitProposalV1(from, privKey, "inscription_9000-1", gas, amount) + txBuilder := suite.CreateTestEIP712TxBuilderMsgSubmitProposalV1(from, privKey, "greenfield_9000-1", gas, amount) return txBuilder.GetTx() }, false, false, true, }, @@ -161,7 +161,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { coinAmount := sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(20)) amount := sdk.NewCoins(coinAmount) gas := uint64(200000) - txBuilder := suite.CreateTestEIP712TxBuilderMsgGrant(from, privKey, "inscription_9000-1", gas, amount) + txBuilder := suite.CreateTestEIP712TxBuilderMsgGrant(from, privKey, "greenfield_9000-1", gas, amount) return txBuilder.GetTx() }, false, false, true, }, diff --git a/app/ante/utils_test.go b/app/ante/utils_test.go index b1e00a326..f45299f74 100644 --- a/app/ante/utils_test.go +++ b/app/ante/utils_test.go @@ -42,9 +42,9 @@ import ( tmtypes "github.com/tendermint/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/bnb-chain/bfs/app" - "github.com/bnb-chain/bfs/app/ante" - "github.com/bnb-chain/bfs/app/params" + "github.com/bnb-chain/greenfield/app" + "github.com/bnb-chain/greenfield/app/ante" + "github.com/bnb-chain/greenfield/app/params" "github.com/cosmos/cosmos-sdk/x/authz" ) @@ -73,7 +73,7 @@ func (suite *AnteTestSuite) SetupTest() { var encCfg params.EncodingConfig suite.app, encCfg, _ = NewApp() - suite.ctx = suite.app.NewContext(false, tmproto.Header{Height: 2, ChainID: "inscription_9000-1", Time: time.Now().UTC()}) + suite.ctx = suite.app.NewContext(false, tmproto.Header{Height: 2, ChainID: "greenfield_9000-1", Time: time.Now().UTC()}) suite.ctx = suite.ctx.WithMinGasPrices(sdk.NewDecCoins(sdk.NewDecCoin(sdk.DefaultBondDenom, sdk.OneInt()))) suite.ctx = suite.ctx.WithBlockGasMeter(sdk.NewGasMeter(1000000000000000000)) @@ -378,7 +378,7 @@ func NewApp(options ...func(baseApp *baseapp.BaseApp)) (*app.App, params.Encodin // Initialize the chain nApp.InitChain( abci.RequestInitChain{ - ChainId: "inscription_9000-1", + ChainId: "greenfield_9000-1", Validators: []abci.ValidatorUpdate{}, AppStateBytes: stateBytes, }, diff --git a/app/app.go b/app/app.go index 65b4c99b8..2c92bcc74 100644 --- a/app/app.go +++ b/app/app.go @@ -83,21 +83,21 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - appparams "github.com/bnb-chain/bfs/app/params" - "github.com/bnb-chain/bfs/docs" - "github.com/bnb-chain/bfs/version" - bfsmodule "github.com/bnb-chain/bfs/x/bfs" - bfsmodulekeeper "github.com/bnb-chain/bfs/x/bfs/keeper" - bfsmoduletypes "github.com/bnb-chain/bfs/x/bfs/types" - - bridgemodule "github.com/bnb-chain/bfs/x/bridge" - bridgemodulekeeper "github.com/bnb-chain/bfs/x/bridge/keeper" - bridgemoduletypes "github.com/bnb-chain/bfs/x/bridge/types" + appparams "github.com/bnb-chain/greenfield/app/params" + "github.com/bnb-chain/greenfield/docs" + "github.com/bnb-chain/greenfield/version" + greenfieldmodule "github.com/bnb-chain/greenfield/x/greenfield" + greenfieldmodulekeeper "github.com/bnb-chain/greenfield/x/greenfield/keeper" + greenfieldmoduletypes "github.com/bnb-chain/greenfield/x/greenfield/types" + + bridgemodule "github.com/bnb-chain/greenfield/x/bridge" + bridgemodulekeeper "github.com/bnb-chain/greenfield/x/bridge/keeper" + bridgemoduletypes "github.com/bnb-chain/greenfield/x/bridge/types" // this line is used by starport scaffolding # stargate/app/moduleImport ) const ( - Name = "inscription" + Name = "greenfield" EIP155ChainID = "9000" Epoch = "1" @@ -140,7 +140,7 @@ var ( slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, - bfsmodule.AppModuleBasic{}, + greenfieldmodule.AppModuleBasic{}, crosschain.AppModuleBasic{}, oracle.AppModuleBasic{}, bridgemodule.AppModuleBasic{}, @@ -205,7 +205,7 @@ type App struct { CrossChainKeeper crosschainkeeper.Keeper OracleKeeper oraclekeeper.Keeper - BfsKeeper bfsmodulekeeper.Keeper + GreenfieldKeeper greenfieldmodulekeeper.Keeper BridgeKeeper bridgemodulekeeper.Keeper // this line is used by starport scaffolding # stargate/app/keeperDeclaration @@ -256,7 +256,7 @@ func New( paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, group.StoreKey, icacontrollertypes.StoreKey, - bfsmoduletypes.StoreKey, + greenfieldmoduletypes.StoreKey, crosschaintypes.StoreKey, oracletypes.StoreKey, bridgemoduletypes.StoreKey, @@ -385,11 +385,11 @@ func New( govConfig, ) - app.BfsKeeper = *bfsmodulekeeper.NewKeeper( + app.GreenfieldKeeper = *greenfieldmodulekeeper.NewKeeper( appCodec, - keys[bfsmoduletypes.StoreKey], - keys[bfsmoduletypes.MemStoreKey], - app.GetSubspace(bfsmoduletypes.ModuleName), + keys[greenfieldmoduletypes.StoreKey], + keys[greenfieldmoduletypes.MemStoreKey], + app.GetSubspace(greenfieldmoduletypes.ModuleName), ) // Register the upgrade keeper @@ -405,7 +405,7 @@ func New( panic(err) } - bfsModule := bfsmodule.NewAppModule(appCodec, app.BfsKeeper, app.AccountKeeper, app.BankKeeper) + greenfieldModule := greenfieldmodule.NewAppModule(appCodec, app.GreenfieldKeeper, app.AccountKeeper, app.BankKeeper) app.BridgeKeeper = *bridgemodulekeeper.NewKeeper( appCodec, @@ -445,7 +445,7 @@ func New( params.NewAppModule(app.ParamsKeeper), crosschain.NewAppModule(app.CrossChainKeeper, app.BankKeeper, app.StakingKeeper), oracle.NewAppModule(app.OracleKeeper), - bfsModule, + greenfieldModule, bridgeModule, // this line is used by starport scaffolding # stargate/app/appModule ) @@ -467,7 +467,7 @@ func New( authz.ModuleName, feegrant.ModuleName, paramstypes.ModuleName, - bfsmoduletypes.ModuleName, + greenfieldmoduletypes.ModuleName, crosschaintypes.ModuleName, oracletypes.ModuleName, bridgemoduletypes.ModuleName, @@ -486,7 +486,7 @@ func New( feegrant.ModuleName, paramstypes.ModuleName, upgradetypes.ModuleName, - bfsmoduletypes.ModuleName, + greenfieldmoduletypes.ModuleName, crosschaintypes.ModuleName, oracletypes.ModuleName, bridgemoduletypes.ModuleName, @@ -510,7 +510,7 @@ func New( feegrant.ModuleName, paramstypes.ModuleName, upgradetypes.ModuleName, - bfsmoduletypes.ModuleName, + greenfieldmoduletypes.ModuleName, crosschaintypes.ModuleName, oracletypes.ModuleName, bridgemoduletypes.ModuleName, @@ -538,7 +538,7 @@ func New( params.NewAppModule(app.ParamsKeeper), crosschain.NewAppModule(app.CrossChainKeeper, app.BankKeeper, app.StakingKeeper), oracle.NewAppModule(app.OracleKeeper), - bfsModule, + greenfieldModule, bridgeModule, // this line is used by starport scaffolding # stargate/app/appModule ) @@ -764,7 +764,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(distrtypes.ModuleName) paramsKeeper.Subspace(slashingtypes.ModuleName) paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) - paramsKeeper.Subspace(bfsmoduletypes.ModuleName) + paramsKeeper.Subspace(greenfieldmoduletypes.ModuleName) paramsKeeper.Subspace(crosschaintypes.ModuleName) paramsKeeper.Subspace(oracletypes.ModuleName) paramsKeeper.Subspace(bridgemoduletypes.ModuleName) diff --git a/app/encoding.go b/app/encoding.go index bb64cd675..e1296a7a9 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -7,7 +7,7 @@ import ( signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" "github.com/cosmos/cosmos-sdk/x/auth/tx" - "github.com/bnb-chain/bfs/app/params" + "github.com/bnb-chain/greenfield/app/params" ) // makeEncodingConfig creates an EncodingConfig for an amino based test configuration. diff --git a/app/simulation_test.go b/app/simulation_test.go index 5f1e29f0a..bb6fe63c9 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -13,7 +13,7 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmtypes "github.com/tendermint/tendermint/types" - "github.com/bnb-chain/bfs/app" + "github.com/bnb-chain/greenfield/app" ) func init() { diff --git a/cmd/bfsd/cmd/config.go b/cmd/gnfd/cmd/config.go similarity index 83% rename from cmd/bfsd/cmd/config.go rename to cmd/gnfd/cmd/config.go index e1c895749..d0c15db35 100644 --- a/cmd/bfsd/cmd/config.go +++ b/cmd/gnfd/cmd/config.go @@ -3,7 +3,7 @@ package cmd import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/bnb-chain/bfs/app" + "github.com/bnb-chain/greenfield/app" ) func initSDKConfig() { diff --git a/cmd/bfsd/cmd/genaccounts.go b/cmd/gnfd/cmd/genaccounts.go similarity index 99% rename from cmd/bfsd/cmd/genaccounts.go rename to cmd/gnfd/cmd/genaccounts.go index 68b6f63a7..c2c8b0218 100644 --- a/cmd/bfsd/cmd/genaccounts.go +++ b/cmd/gnfd/cmd/genaccounts.go @@ -18,7 +18,7 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" "github.com/spf13/cobra" - "github.com/bnb-chain/bfs/crypto/keyring" + "github.com/bnb-chain/greenfield/crypto/keyring" ) const ( diff --git a/cmd/bfsd/cmd/root.go b/cmd/gnfd/cmd/root.go similarity index 98% rename from cmd/bfsd/cmd/root.go rename to cmd/gnfd/cmd/root.go index 4c4363564..6bd162c99 100644 --- a/cmd/bfsd/cmd/root.go +++ b/cmd/gnfd/cmd/root.go @@ -36,10 +36,10 @@ import ( "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" - "github.com/bnb-chain/bfs/app" - appparams "github.com/bnb-chain/bfs/app/params" - "github.com/bnb-chain/bfs/crypto/keyring" - "github.com/bnb-chain/bfs/version" + "github.com/bnb-chain/greenfield/app" + appparams "github.com/bnb-chain/greenfield/app/params" + "github.com/bnb-chain/greenfield/crypto/keyring" + "github.com/bnb-chain/greenfield/version" ) var ( diff --git a/cmd/bfsd/main.go b/cmd/gnfd/main.go similarity index 80% rename from cmd/bfsd/main.go rename to cmd/gnfd/main.go index a4956ff85..e2cb95209 100644 --- a/cmd/bfsd/main.go +++ b/cmd/gnfd/main.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/server" svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" - "github.com/bnb-chain/bfs/app" - "github.com/bnb-chain/bfs/cmd/bfsd/cmd" + "github.com/bnb-chain/greenfield/app" + "github.com/bnb-chain/greenfield/cmd/gnfd/cmd" ) func main() { diff --git a/config.yml b/config.yml index 597142969..16dfce18e 100644 --- a/config.yml +++ b/config.yml @@ -13,7 +13,7 @@ faucet: init: client: - chain-id: "inscription_9000-1" + chain-id: "greenfield_9000-1" genesis: - chain_id: "inscription_9000-1" + chain_id: "greenfield_9000-1" diff --git a/crypto/keyring/options.go b/crypto/keyring/options.go index bc8cd0915..8c4b0bba7 100644 --- a/crypto/keyring/options.go +++ b/crypto/keyring/options.go @@ -7,11 +7,11 @@ import ( ) var ( - // SupportedAlgorithms defines the list of signing algorithms used on BFS: + // SupportedAlgorithms defines the list of signing algorithms used on Greenfield: // - eth_secp256k1 (Ethereum) // - eth_bls (Ethereum) SupportedAlgorithms = keyring.SigningAlgoList{ethHd.EthSecp256k1, hd.EthBLS} - // SupportedAlgorithmsLedger defines the list of signing algorithms used on BFS for the Ledger device: + // SupportedAlgorithmsLedger defines the list of signing algorithms used on Greenfield for the Ledger device: // - eth_secp256k1 (Ethereum) // - eth_bls (Ethereum) SupportedAlgorithmsLedger = keyring.SigningAlgoList{ethHd.EthSecp256k1, hd.EthBLS} diff --git a/deployment/localup/.env b/deployment/localup/.env index 7ee837636..3d5102c6e 100644 --- a/deployment/localup/.env +++ b/deployment/localup/.env @@ -1,5 +1,5 @@ ## BASIC CONFIG -CHAIN_ID=inscription_9000-121 +CHAIN_ID=greenfield_9000-121 STAKING_BOND_DENOM=bnb BASIC_DENOM=gweibnb STAKING_BOND_AMOUNT=10000000000 @@ -10,7 +10,7 @@ GENESIS_ACCOUNT_BALANCE=100000000000 COMMISSION_MAX_CHANGE_RATE=0.01 COMMISSION_MAX_RATE=1.0 COMMISSION_RATE=0.07 -NATIVE_COIN_DESC='{"description":"The native staking token of the Inscription.","denom_units":[{"denom":"weibnb","exponent":0,"aliases":["ether"]},{"denom":"gweibnb","exponent":9,"aliases":["gwei"]},{"denom":"bnb","exponent":18 }],"base":"wei","display":"bnb"}' +NATIVE_COIN_DESC='{"description":"The native staking token of the Greenfield.","denom_units":[{"denom":"weibnb","exponent":0,"aliases":["ether"]},{"denom":"gweibnb","exponent":9,"aliases":["gwei"]},{"denom":"bnb","exponent":18 }],"base":"wei","display":"bnb"}' ## ENDPOINT VALIDATOR_ADDRESS_PORT_START=28750 diff --git a/deployment/localup/localup.sh b/deployment/localup/localup.sh index 4b5d3d8a4..3a9878635 100644 --- a/deployment/localup/localup.sh +++ b/deployment/localup/localup.sh @@ -4,7 +4,7 @@ workspace=${basedir} source ${workspace}/.env source ${workspace}/utils.sh -bin_name=bfsd +bin_name=gnfd bin=${workspace}/../../build/bin/${bin_name} function init() { diff --git a/deployment/localup/localup_fullnode.sh b/deployment/localup/localup_fullnode.sh index 53d435574..29a89059c 100644 --- a/deployment/localup/localup_fullnode.sh +++ b/deployment/localup/localup_fullnode.sh @@ -4,7 +4,7 @@ workspace=${basedir} source ${workspace}/.env source ${workspace}/utils.sh -bin_name=bfsd +bin_name=gnfd bin=${workspace}/../../build/bin/${bin_name} function init_fullnode() { diff --git a/deployment/readme.md b/deployment/readme.md index 8af59e3af..16316a4d3 100644 --- a/deployment/readme.md +++ b/deployment/readme.md @@ -8,14 +8,14 @@ make build 2. Creates all the configuration files ```bash # The argument is the custom username of your node, it should be human-readable. -./build/bin/bfsd init --chain-id inscription_9000-01 --staking-bond-denom bnb +./build/bin/gnfd init --chain-id greenfield_9000-01 --staking-bond-denom bnb ``` -All these configuration files are in ~/.bfsd by default, but you can overwrite the location of this folder by passing the --home flag. +All these configuration files are in ~/.gnfd by default, but you can overwrite the location of this folder by passing the --home flag. -The ~/.bfsd folder has the following structure: +The ~/.gnfd folder has the following structure: ``` -. # ~/.bfsd +. # ~/.gnfd |- data # Contains the databases used by the node. |- config/ |- app.toml # Application-related configuration file. @@ -29,11 +29,11 @@ The ~/.bfsd folder has the following structure: 3. Adding keys to the keyring ```bash # new key -./build/bin/bfsd keys add validator --keyring-backend test -./build/bin/bfsd keys add relayer --keyring-backend test --algo eth_bls +./build/bin/gnfd keys add validator --keyring-backend test +./build/bin/gnfd keys add relayer --keyring-backend test --algo eth_bls # list accounts -./build/bin/bfsd keys list --keyring-backend test +./build/bin/gnfd keys list --keyring-backend test ``` The keyring supports multiple storage backends, some of which may not be available on all operating systems. @@ -43,28 +43,28 @@ See more details: https://docs.cosmos.network/v0.46/run-node/keyring.html#availa 4. Adding genesis accounts Before starting the chain, you need to populate the state with at least one account. ```bash -VALIDATOR=$(./build/bin/bfsd keys show validator -a --keyring-backend test) -RELAYER=$(./build/bin/bfsd keys show relayer -a --keyring-backend test) -RELAYER_BLS=$(./build/bin/bfsd keys show relayer -a --keyring-backend test --output json | jq -r .pubkey_hex)" -./build/bin/bfsd add-genesis-account $VALIDATOR 100000000000bnb +VALIDATOR=$(./build/bin/gnfd keys show validator -a --keyring-backend test) +RELAYER=$(./build/bin/gnfd keys show relayer -a --keyring-backend test) +RELAYER_BLS=$(./build/bin/gnfd keys show relayer -a --keyring-backend test --output json | jq -r .pubkey_hex)" +./build/bin/gnfd add-genesis-account $VALIDATOR 100000000000bnb ``` 5. Create validator in genesis state ```bash # create a gentx. -./build/bin/bfsd gentx validator 1000000000bnb $VALIDATOR $RELAYER $RELAYER_BLS --keyring-backend=test --chain-id=inscription_9000-121 \ +./build/bin/gnfd gentx validator 1000000000bnb $VALIDATOR $RELAYER $RELAYER_BLS --keyring-backend=test --chain-id=greenfield_9000-121 \ --moniker="validator" \ --commission-max-change-rate=0.01 \ --commission-max-rate=1.0 \ --commission-rate=0.07 # Add the gentx to the genesis file. -./build/bin/bfsd collect-gentxs +./build/bin/gnfd collect-gentxs ``` 6. Run local node ```bash -./build/bin/bfsd start +./build/bin/gnfd start ``` ## Quickly Setup a Local Cluster Network @@ -81,7 +81,7 @@ bash ./deployment/localup/localup.sh stop 3. Send Tx ```bash -./build/bin/bfsd tx bank send validator0 0x32Ff14Fa1547314b95991976DB432F9Aa648A423 500bnb --home ./deployment/localup/.local/validator0 --keyring-backend test --node http://localhost:26750 -b block +./build/bin/gnfd tx bank send validator0 0x32Ff14Fa1547314b95991976DB432F9Aa648A423 500bnb --home ./deployment/localup/.local/validator0 --keyring-backend test --node http://localhost:26750 -b block ``` 4. Restart the chain without state initialization diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 8b4c84b2c..f725c2b80 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -4,10 +4,10 @@ info: name: '' description: '' paths: - /bfs/bfs/params: + /greenfield/greenfield/params: get: summary: Parameters queries the parameters of the module. - operationId: BfsBfsParams + operationId: GreenfieldGreenfieldParams responses: '200': description: A successful response. @@ -44345,10 +44345,10 @@ paths: tags: - Query definitions: - bfs.bfs.Params: + greenfield.greenfield.Params: type: object description: Params defines the parameters for the module. - bfs.bfs.QueryParamsResponse: + greenfield.greenfield.QueryParamsResponse: type: object properties: params: diff --git a/go.mod b/go.mod index 20efc38ac..2f25fd2af 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/bnb-chain/bfs +module github.com/bnb-chain/greenfield go 1.18 @@ -225,7 +225,7 @@ require ( replace ( github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0 - github.com/cosmos/cosmos-sdk => github.com/bnb-chain/inscription-cosmos-sdk v0.0.4 + github.com/cosmos/cosmos-sdk => github.com/bnb-chain/gnfd-cosmos-sdk v0.0.5 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 - github.com/tendermint/tendermint => github.com/bnb-chain/inscription-tendermint v0.0.1 + github.com/tendermint/tendermint => github.com/bnb-chain/gnfd-tendermint v0.0.1 ) diff --git a/go.sum b/go.sum index 12d7ec470..4a51f60f5 100644 --- a/go.sum +++ b/go.sum @@ -218,10 +218,10 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= -github.com/bnb-chain/inscription-cosmos-sdk v0.0.4 h1:2JApDVseTqLddymlXlchqaUhaXhZZlDwYd71z9dnh50= -github.com/bnb-chain/inscription-cosmos-sdk v0.0.4/go.mod h1:bRLRocojk6Dkiiz91gatNKbVvyc1ay/ycugoQFhVTQ4= -github.com/bnb-chain/inscription-tendermint v0.0.1 h1:E2/QFh9gILGaW5bHNBrZcUvcaUL1SLxeP5WJ3SGQU8c= -github.com/bnb-chain/inscription-tendermint v0.0.1/go.mod h1:/v9z9F6cq0+f7EGG92lYSLBcPYQDILoK91X8YM28hWo= +github.com/bnb-chain/gnfd-cosmos-sdk v0.0.5 h1:BiCZDtUCjivevjYqdrt/Hw536jLSB4KChNMfjgGcvzE= +github.com/bnb-chain/gnfd-cosmos-sdk v0.0.5/go.mod h1:3NFoaEONuAGg9UA0FZJmQfzSijZNzaNQmhhwf3ROtqk= +github.com/bnb-chain/gnfd-tendermint v0.0.1 h1:KWFuxWv8m6t1vUi3ADyVcEG0qVnEzQt1tjA6dk/b7+Q= +github.com/bnb-chain/gnfd-tendermint v0.0.1/go.mod h1:/v9z9F6cq0+f7EGG92lYSLBcPYQDILoK91X8YM28hWo= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= github.com/bradfitz/gomemcache v0.0.0-20170208213004-1952afaa557d/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60= diff --git a/proto/bfs/bridge/event.proto b/proto/greenfield/bridge/event.proto similarity index 85% rename from proto/bfs/bridge/event.proto rename to proto/greenfield/bridge/event.proto index bfc4b1922..882270366 100644 --- a/proto/bfs/bridge/event.proto +++ b/proto/greenfield/bridge/event.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package bnbchain.bfs.bridge; +package bnbchain.greenfield.bridge; import "cosmos/base/v1beta1/coin.proto"; // this line is used by starport scaffolding # proto/tx/import -option go_package = "github.com/bnb-chain/bfs/x/bridge/types"; +option go_package = "github.com/bnb-chain/greenfield/x/bridge/types"; message EventCrossTransferOut { string from = 1; diff --git a/proto/bfs/bridge/genesis.proto b/proto/greenfield/bridge/genesis.proto similarity index 68% rename from proto/bfs/bridge/genesis.proto rename to proto/greenfield/bridge/genesis.proto index d28dc6b1b..1c086b463 100644 --- a/proto/bfs/bridge/genesis.proto +++ b/proto/greenfield/bridge/genesis.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package bnbchain.bfs.bridge; +package bnbchain.greenfield.bridge; import "gogoproto/gogo.proto"; -import "bfs/bridge/params.proto"; +import "greenfield/bridge/params.proto"; // this line is used by starport scaffolding # genesis/proto/import -option go_package = "github.com/bnb-chain/bfs/x/bridge/types"; +option go_package = "github.com/bnb-chain/greenfield/x/bridge/types"; // GenesisState defines the bridge module's genesis state. message GenesisState { diff --git a/proto/bfs/bridge/params.proto b/proto/greenfield/bridge/params.proto similarity index 65% rename from proto/bfs/bridge/params.proto rename to proto/greenfield/bridge/params.proto index 40160c7eb..226b690c7 100644 --- a/proto/bfs/bridge/params.proto +++ b/proto/greenfield/bridge/params.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package bnbchain.bfs.bridge; +package bnbchain.greenfield.bridge; import "gogoproto/gogo.proto"; -option go_package = "github.com/bnb-chain/bfs/x/bridge/types"; +option go_package = "github.com/bnb-chain/greenfield/x/bridge/types"; // Params defines the parameters for the module. message Params { diff --git a/proto/bfs/bfs/query.proto b/proto/greenfield/bridge/query.proto similarity index 78% rename from proto/bfs/bfs/query.proto rename to proto/greenfield/bridge/query.proto index ee351afa0..ef424001e 100644 --- a/proto/bfs/bfs/query.proto +++ b/proto/greenfield/bridge/query.proto @@ -1,19 +1,19 @@ syntax = "proto3"; -package bfs.bfs; +package bnbchain.greenfield.bridge; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "bfs/bfs/params.proto"; +import "greenfield/bridge/params.proto"; // this line is used by starport scaffolding # 1 -option go_package = "github.com/bnb-chain/bfs/x/bfs/types"; +option go_package = "github.com/bnb-chain/greenfield/x/bridge/types"; // Query defines the gRPC querier service. service Query { // Parameters queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/bfs/bfs/params"; + option (google.api.http).get = "/bnb-chain/greenfield/bridge/params"; } // this line is used by starport scaffolding # 2 } diff --git a/proto/bfs/bridge/tx.proto b/proto/greenfield/bridge/tx.proto similarity index 82% rename from proto/bfs/bridge/tx.proto rename to proto/greenfield/bridge/tx.proto index 45dcf2575..4cb501343 100644 --- a/proto/bfs/bridge/tx.proto +++ b/proto/greenfield/bridge/tx.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package bnbchain.bfs.bridge; +package bnbchain.greenfield.bridge; import "cosmos/base/v1beta1/coin.proto"; // this line is used by starport scaffolding # proto/tx/import -option go_package = "github.com/bnb-chain/bfs/x/bridge/types"; +option go_package = "github.com/bnb-chain/greenfield/x/bridge/types"; // Msg defines the Msg service. service Msg { diff --git a/proto/bfs/bfs/genesis.proto b/proto/greenfield/greenfield/genesis.proto similarity index 55% rename from proto/bfs/bfs/genesis.proto rename to proto/greenfield/greenfield/genesis.proto index 73a8c2b88..76f2cca7f 100644 --- a/proto/bfs/bfs/genesis.proto +++ b/proto/greenfield/greenfield/genesis.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package bfs.bfs; +package greenfield.greenfield; import "gogoproto/gogo.proto"; -import "bfs/bfs/params.proto"; +import "greenfield/greenfield/params.proto"; // this line is used by starport scaffolding # genesis/proto/import -option go_package = "github.com/bnb-chain/bfs/x/bfs/types"; +option go_package = "github.com/bnb-chain/greenfield/x/greenfield/types"; -// GenesisState defines the bfs module's genesis state. +// GenesisState defines the greenfield module's genesis state. message GenesisState { Params params = 1 [(gogoproto.nullable) = false]; // this line is used by starport scaffolding # genesis/proto/state diff --git a/proto/bfs/bfs/params.proto b/proto/greenfield/greenfield/params.proto similarity index 61% rename from proto/bfs/bfs/params.proto rename to proto/greenfield/greenfield/params.proto index ee920e56d..139cb0cd4 100644 --- a/proto/bfs/bfs/params.proto +++ b/proto/greenfield/greenfield/params.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package bfs.bfs; +package greenfield.greenfield; import "gogoproto/gogo.proto"; -option go_package = "github.com/bnb-chain/bfs/x/bfs/types"; +option go_package = "github.com/bnb-chain/greenfield/x/greenfield/types"; // Params defines the parameters for the module. message Params { diff --git a/proto/bfs/bridge/query.proto b/proto/greenfield/greenfield/query.proto similarity index 78% rename from proto/bfs/bridge/query.proto rename to proto/greenfield/greenfield/query.proto index 3b53ee647..f1c57b651 100644 --- a/proto/bfs/bridge/query.proto +++ b/proto/greenfield/greenfield/query.proto @@ -1,19 +1,19 @@ syntax = "proto3"; -package bnbchain.bfs.bridge; +package greenfield.greenfield; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "bfs/bridge/params.proto"; +import "greenfield/greenfield/params.proto"; // this line is used by starport scaffolding # 1 -option go_package = "github.com/bnb-chain/bfs/x/bridge/types"; +option go_package = "github.com/bnb-chain/greenfield/x/greenfield/types"; // Query defines the gRPC querier service. service Query { // Parameters queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/bnb-chain/bfs/bridge/params"; + option (google.api.http).get = "/greenfield/greenfield/params"; } // this line is used by starport scaffolding # 2 } diff --git a/proto/bfs/bfs/tx.proto b/proto/greenfield/greenfield/tx.proto similarity index 71% rename from proto/bfs/bfs/tx.proto rename to proto/greenfield/greenfield/tx.proto index b4fbda6e1..fd250318c 100644 --- a/proto/bfs/bfs/tx.proto +++ b/proto/greenfield/greenfield/tx.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package bfs.bfs; +package greenfield.greenfield; // this line is used by starport scaffolding # proto/tx/import -option go_package = "github.com/bnb-chain/bfs/x/bfs/types"; +option go_package = "github.com/bnb-chain/greenfield/x/greenfield/types"; // Msg defines the Msg service. service Msg { diff --git a/readme.md b/readme.md index ad920c8b3..1088ebd18 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,8 @@ -# BFS -BFS is a decentralized storage platform proposed to meet the requirements of storing non-financial information for +# Greenfield +Greenfield is a decentralized storage platform proposed to meet the requirements of storing non-financial information for decentralized applications integrated with BNB Smart Chain. -**BFS** is a blockchain built using Cosmos SDK and Tendermint and created with [Ignite CLI](https://ignite.com/cli). +**Greenfield** is a blockchain built using Cosmos SDK and Tendermint and created with [Ignite CLI](https://ignite.com/cli). ## Get started @@ -13,14 +13,14 @@ export PATH=$GOROOT/bin:$GOPATH/bin:$PATH ignite chain serve ``` -`serve` command installs dependencies, builds, initializes, and starts BFS in development. +`serve` command installs dependencies, builds, initializes, and starts Greenfield in development. ### Configure -BFS in development can be configured with `config.yml`. To learn more, see the [Ignite CLI docs](https://docs.ignite.com). +Greenfield in development can be configured with `config.yml`. To learn more, see the [Ignite CLI docs](https://docs.ignite.com). ## Release -To release a new version of BFS, create and push a new tag with `v` prefix. A new draft release with the configured targets will be created. +To release a new version of Greenfield, create and push a new tag with `v` prefix. A new draft release with the configured targets will be created. ``` git tag v0.1 diff --git a/testutil/keeper/bridge.go b/testutil/keeper/bridge.go index 7a77bbb7e..a7a0c8ff1 100644 --- a/testutil/keeper/bridge.go +++ b/testutil/keeper/bridge.go @@ -3,10 +3,10 @@ package keeper import ( "testing" - "github.com/bnb-chain/bfs/app" - bfsmoduletypes "github.com/bnb-chain/bfs/x/bfs/types" - "github.com/bnb-chain/bfs/x/bridge/keeper" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/app" + "github.com/bnb-chain/greenfield/x/bridge/keeper" + "github.com/bnb-chain/greenfield/x/bridge/types" + greenfieldmoduletypes "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store" @@ -77,7 +77,7 @@ func BridgeKeeper(t testing.TB) (*BridgeKeeperSuite, *keeper.Keeper, sdk.Context paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, group.StoreKey, icacontrollertypes.StoreKey, - bfsmoduletypes.StoreKey, + greenfieldmoduletypes.StoreKey, crosschaintypes.StoreKey, oracletypes.StoreKey, types.StoreKey, @@ -212,7 +212,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(distrtypes.ModuleName) paramsKeeper.Subspace(slashingtypes.ModuleName) paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) - paramsKeeper.Subspace(bfsmoduletypes.ModuleName) + paramsKeeper.Subspace(greenfieldmoduletypes.ModuleName) paramsKeeper.Subspace(crosschaintypes.ModuleName) paramsKeeper.Subspace(oracletypes.ModuleName) paramsKeeper.Subspace(types.ModuleName) diff --git a/testutil/keeper/bfs.go b/testutil/keeper/greenfield.go similarity index 86% rename from testutil/keeper/bfs.go rename to testutil/keeper/greenfield.go index 1225c2033..f582a6603 100644 --- a/testutil/keeper/bfs.go +++ b/testutil/keeper/greenfield.go @@ -3,8 +3,8 @@ package keeper import ( "testing" - "github.com/bnb-chain/bfs/x/bfs/keeper" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/keeper" + "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" @@ -17,7 +17,7 @@ import ( tmdb "github.com/tendermint/tm-db" ) -func BfsKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { +func GreenfieldKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { storeKey := sdk.NewKVStoreKey(types.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) @@ -34,7 +34,7 @@ func BfsKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { types.Amino, storeKey, memStoreKey, - "BfsParams", + "GreenfieldParams", ) k := keeper.NewKeeper( cdc, diff --git a/testutil/network/network.go b/testutil/network/network.go index a8846247a..3d006f35b 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -18,8 +18,8 @@ import ( tmrand "github.com/tendermint/tendermint/libs/rand" tmdb "github.com/tendermint/tm-db" - "github.com/bnb-chain/bfs/app" - "github.com/bnb-chain/bfs/crypto/keyring" + "github.com/bnb-chain/greenfield/app" + "github.com/bnb-chain/greenfield/crypto/keyring" ) type ( diff --git a/x/bridge/client/cli/query.go b/x/bridge/client/cli/query.go index 85f6a8214..edee1b919 100644 --- a/x/bridge/client/cli/query.go +++ b/x/bridge/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/bridge/client/cli/query_params.go b/x/bridge/client/cli/query_params.go index 7f9824f6c..cd874856e 100644 --- a/x/bridge/client/cli/query_params.go +++ b/x/bridge/client/cli/query_params.go @@ -3,7 +3,7 @@ package cli import ( "context" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" diff --git a/x/bridge/client/cli/tx.go b/x/bridge/client/cli/tx.go index a785ae7aa..96fc41262 100644 --- a/x/bridge/client/cli/tx.go +++ b/x/bridge/client/cli/tx.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/bridge/client/cli/tx_transfer_out.go b/x/bridge/client/cli/tx_transfer_out.go index 000b69712..ce75d511f 100644 --- a/x/bridge/client/cli/tx_transfer_out.go +++ b/x/bridge/client/cli/tx_transfer_out.go @@ -3,7 +3,7 @@ package cli import ( "strconv" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" diff --git a/x/bridge/genesis.go b/x/bridge/genesis.go index 4266893e4..bcd9d1684 100644 --- a/x/bridge/genesis.go +++ b/x/bridge/genesis.go @@ -1,8 +1,8 @@ package bridge import ( - "github.com/bnb-chain/bfs/x/bridge/keeper" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/keeper" + "github.com/bnb-chain/greenfield/x/bridge/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/bridge/keeper/cross_app.go b/x/bridge/keeper/cross_app.go index 7ec71a7b6..61f35131c 100644 --- a/x/bridge/keeper/cross_app.go +++ b/x/bridge/keeper/cross_app.go @@ -5,7 +5,7 @@ import ( "math/big" "cosmossdk.io/errors" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" crosschaintypes "github.com/cosmos/cosmos-sdk/x/crosschain/types" diff --git a/x/bridge/keeper/cross_app_test.go b/x/bridge/keeper/cross_app_test.go index e4118c17f..df9728e81 100644 --- a/x/bridge/keeper/cross_app_test.go +++ b/x/bridge/keeper/cross_app_test.go @@ -5,9 +5,9 @@ import ( "math/big" "testing" - keepertest "github.com/bnb-chain/bfs/testutil/keeper" - "github.com/bnb-chain/bfs/x/bridge/keeper" - "github.com/bnb-chain/bfs/x/bridge/types" + keepertest "github.com/bnb-chain/greenfield/testutil/keeper" + "github.com/bnb-chain/greenfield/x/bridge/keeper" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/bsc/rlp" "github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/testutil" diff --git a/x/bridge/keeper/grpc_query.go b/x/bridge/keeper/grpc_query.go index 5dcf53f35..3a6034d42 100644 --- a/x/bridge/keeper/grpc_query.go +++ b/x/bridge/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/bridge/keeper/grpc_query_params.go b/x/bridge/keeper/grpc_query_params.go index dc30b5658..fcd9fffe5 100644 --- a/x/bridge/keeper/grpc_query_params.go +++ b/x/bridge/keeper/grpc_query_params.go @@ -3,7 +3,7 @@ package keeper import ( "context" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" sdk "github.com/cosmos/cosmos-sdk/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/x/bridge/keeper/keeper.go b/x/bridge/keeper/keeper.go index 19db76396..54f77b6df 100644 --- a/x/bridge/keeper/keeper.go +++ b/x/bridge/keeper/keeper.go @@ -4,7 +4,7 @@ import ( "fmt" "cosmossdk.io/errors" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/bsc/rlp" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" diff --git a/x/bridge/keeper/msg_server.go b/x/bridge/keeper/msg_server.go index c897b697b..0dbeb2ad9 100644 --- a/x/bridge/keeper/msg_server.go +++ b/x/bridge/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" ) type msgServer struct { diff --git a/x/bridge/keeper/msg_server_test.go b/x/bridge/keeper/msg_server_test.go index d90478e63..afd0ce726 100644 --- a/x/bridge/keeper/msg_server_test.go +++ b/x/bridge/keeper/msg_server_test.go @@ -3,9 +3,9 @@ package keeper_test import ( "testing" - keepertest "github.com/bnb-chain/bfs/testutil/keeper" - "github.com/bnb-chain/bfs/x/bridge/keeper" - "github.com/bnb-chain/bfs/x/bridge/types" + keepertest "github.com/bnb-chain/greenfield/testutil/keeper" + "github.com/bnb-chain/greenfield/x/bridge/keeper" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/bridge/keeper/msg_server_transfer_out.go b/x/bridge/keeper/msg_server_transfer_out.go index 6e63b4ad1..6fe754f93 100644 --- a/x/bridge/keeper/msg_server_transfer_out.go +++ b/x/bridge/keeper/msg_server_transfer_out.go @@ -5,7 +5,7 @@ import ( "math/big" "cosmossdk.io/errors" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/bsc/rlp" sdk "github.com/cosmos/cosmos-sdk/types" crosschaintypes "github.com/cosmos/cosmos-sdk/x/crosschain/types" diff --git a/x/bridge/keeper/params.go b/x/bridge/keeper/params.go index 0da3dbc10..91f2704ef 100644 --- a/x/bridge/keeper/params.go +++ b/x/bridge/keeper/params.go @@ -4,7 +4,7 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/bridge/module.go b/x/bridge/module.go index 35b4f19d2..2538844f5 100644 --- a/x/bridge/module.go +++ b/x/bridge/module.go @@ -11,9 +11,9 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/bnb-chain/bfs/x/bridge/client/cli" - "github.com/bnb-chain/bfs/x/bridge/keeper" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/client/cli" + "github.com/bnb-chain/greenfield/x/bridge/keeper" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" diff --git a/x/bridge/module_simulation.go b/x/bridge/module_simulation.go index 363633596..f14345f55 100644 --- a/x/bridge/module_simulation.go +++ b/x/bridge/module_simulation.go @@ -3,9 +3,9 @@ package bridge import ( "math/rand" - "github.com/bnb-chain/bfs/testutil/sample" - bridgesimulation "github.com/bnb-chain/bfs/x/bridge/simulation" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/testutil/sample" + bridgesimulation "github.com/bnb-chain/greenfield/x/bridge/simulation" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/baseapp" simappparams "github.com/cosmos/cosmos-sdk/simapp/params" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/bridge/simulation/transfer_out.go b/x/bridge/simulation/transfer_out.go index 3f180b1f5..716a33102 100644 --- a/x/bridge/simulation/transfer_out.go +++ b/x/bridge/simulation/transfer_out.go @@ -3,8 +3,8 @@ package simulation import ( "math/rand" - "github.com/bnb-chain/bfs/x/bridge/keeper" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/keeper" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" diff --git a/x/bridge/types/event.pb.go b/x/bridge/types/event.pb.go index f9fa8cd67..86696d4fb 100644 --- a/x/bridge/types/event.pb.go +++ b/x/bridge/types/event.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bridge/event.proto +// source: greenfield/bridge/event.proto package types @@ -35,7 +35,7 @@ func (m *EventCrossTransferOut) Reset() { *m = EventCrossTransferOut{} } func (m *EventCrossTransferOut) String() string { return proto.CompactTextString(m) } func (*EventCrossTransferOut) ProtoMessage() {} func (*EventCrossTransferOut) Descriptor() ([]byte, []int) { - return fileDescriptor_86c82d1bf9ad0466, []int{0} + return fileDescriptor_7d0c64a57c5987e0, []int{0} } func (m *EventCrossTransferOut) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -110,7 +110,7 @@ func (m *EventCrossTransferOutRefund) Reset() { *m = EventCrossTransferO func (m *EventCrossTransferOutRefund) String() string { return proto.CompactTextString(m) } func (*EventCrossTransferOutRefund) ProtoMessage() {} func (*EventCrossTransferOutRefund) Descriptor() ([]byte, []int) { - return fileDescriptor_86c82d1bf9ad0466, []int{1} + return fileDescriptor_7d0c64a57c5987e0, []int{1} } func (m *EventCrossTransferOutRefund) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -178,7 +178,7 @@ func (m *EventCrossTransferIn) Reset() { *m = EventCrossTransferIn{} } func (m *EventCrossTransferIn) String() string { return proto.CompactTextString(m) } func (*EventCrossTransferIn) ProtoMessage() {} func (*EventCrossTransferIn) Descriptor() ([]byte, []int) { - return fileDescriptor_86c82d1bf9ad0466, []int{2} + return fileDescriptor_7d0c64a57c5987e0, []int{2} } func (m *EventCrossTransferIn) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -236,40 +236,40 @@ func (m *EventCrossTransferIn) GetSequence() uint64 { } func init() { - proto.RegisterType((*EventCrossTransferOut)(nil), "bnbchain.bfs.bridge.EventCrossTransferOut") - proto.RegisterType((*EventCrossTransferOutRefund)(nil), "bnbchain.bfs.bridge.EventCrossTransferOutRefund") - proto.RegisterType((*EventCrossTransferIn)(nil), "bnbchain.bfs.bridge.EventCrossTransferIn") + proto.RegisterType((*EventCrossTransferOut)(nil), "bnbchain.greenfield.bridge.EventCrossTransferOut") + proto.RegisterType((*EventCrossTransferOutRefund)(nil), "bnbchain.greenfield.bridge.EventCrossTransferOutRefund") + proto.RegisterType((*EventCrossTransferIn)(nil), "bnbchain.greenfield.bridge.EventCrossTransferIn") } -func init() { proto.RegisterFile("bfs/bridge/event.proto", fileDescriptor_86c82d1bf9ad0466) } +func init() { proto.RegisterFile("greenfield/bridge/event.proto", fileDescriptor_7d0c64a57c5987e0) } -var fileDescriptor_86c82d1bf9ad0466 = []byte{ - // 391 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcd, 0x6e, 0xda, 0x40, - 0x18, 0x64, 0x8d, 0x8b, 0xda, 0xa5, 0xd0, 0x6a, 0xfb, 0x23, 0x97, 0x4a, 0x16, 0xa2, 0xaa, 0x4a, - 0x0f, 0x59, 0x8b, 0xe4, 0x96, 0x1b, 0x41, 0x89, 0x94, 0x53, 0x24, 0x2b, 0xa7, 0x5c, 0xd0, 0xae, - 0xfd, 0x19, 0x2c, 0xc5, 0xbb, 0x64, 0x77, 0x8d, 0xc2, 0x5b, 0xe4, 0x6d, 0x92, 0x27, 0x88, 0x72, - 0xe4, 0x98, 0x63, 0x04, 0x2f, 0x12, 0x61, 0x1b, 0x44, 0x02, 0x4a, 0xb8, 0x7d, 0x3b, 0xfa, 0x7e, - 0x66, 0x66, 0x07, 0xff, 0xe4, 0x91, 0xf6, 0xb8, 0x8a, 0xc3, 0x01, 0x78, 0x30, 0x06, 0x61, 0xe8, - 0x48, 0x49, 0x23, 0xc9, 0x37, 0x2e, 0x78, 0x30, 0x64, 0xb1, 0xa0, 0x3c, 0xd2, 0x34, 0x6f, 0x68, - 0xb8, 0x81, 0xd4, 0x89, 0xd4, 0x1e, 0x67, 0x1a, 0xbc, 0x71, 0x87, 0x83, 0x61, 0x1d, 0x2f, 0x90, - 0xb1, 0xc8, 0x87, 0x5a, 0xf7, 0x08, 0xff, 0x38, 0x5e, 0x2c, 0xe9, 0x29, 0xa9, 0xf5, 0xb9, 0x62, - 0x42, 0x47, 0xa0, 0xce, 0x52, 0x43, 0x08, 0xb6, 0x23, 0x25, 0x13, 0x07, 0x35, 0x51, 0xfb, 0x93, - 0x9f, 0xd5, 0xa4, 0x8e, 0x2d, 0x23, 0x1d, 0x2b, 0x43, 0x2c, 0x23, 0x49, 0x07, 0x57, 0x58, 0x22, - 0x53, 0x61, 0x9c, 0x72, 0x13, 0xb5, 0xab, 0xfb, 0xbf, 0x68, 0x7e, 0x8e, 0x2e, 0xce, 0xd1, 0xe2, - 0x1c, 0xed, 0xc9, 0x58, 0xf8, 0x45, 0x23, 0x39, 0xc4, 0x55, 0x05, 0x97, 0x6c, 0x02, 0xaa, 0x1f, - 0x01, 0x38, 0xf6, 0x7b, 0x73, 0xb8, 0xe8, 0x3e, 0x01, 0x20, 0x0d, 0xfc, 0x51, 0xc3, 0x55, 0x0a, - 0x22, 0x00, 0xe7, 0x43, 0x13, 0xb5, 0x6d, 0x7f, 0xf5, 0x6e, 0xdd, 0x21, 0xfc, 0x7b, 0xab, 0x10, - 0x1f, 0xa2, 0x54, 0x84, 0xe4, 0x2f, 0xae, 0xab, 0xac, 0xea, 0xb3, 0x30, 0x54, 0xa0, 0x75, 0x21, - 0xac, 0x96, 0xa3, 0xdd, 0x1c, 0x5c, 0x53, 0x64, 0xed, 0xaa, 0xe8, 0x0f, 0x2e, 0x76, 0xf4, 0x15, - 0x30, 0x2d, 0x45, 0xe6, 0x45, 0xcd, 0xff, 0x9c, 0x83, 0x7e, 0x86, 0xbd, 0xa0, 0x6e, 0xbf, 0xa2, - 0x7e, 0x8b, 0xf0, 0xf7, 0x4d, 0xea, 0xa7, 0x62, 0x8d, 0x0c, 0xda, 0x95, 0xcc, 0x7f, 0xfc, 0x55, - 0x41, 0x00, 0xf1, 0x18, 0xd4, 0x4a, 0x68, 0xfe, 0x5f, 0x5f, 0x96, 0xf8, 0x52, 0xea, 0xa6, 0x23, - 0xe5, 0x6d, 0x8e, 0xbc, 0xc1, 0xfc, 0xa8, 0xfb, 0x30, 0x73, 0xd1, 0x74, 0xe6, 0xa2, 0xa7, 0x99, - 0x8b, 0x6e, 0xe6, 0x6e, 0x69, 0x3a, 0x77, 0x4b, 0x8f, 0x73, 0xb7, 0x74, 0xf1, 0x6f, 0x10, 0x9b, - 0x61, 0xca, 0x69, 0x20, 0x13, 0x8f, 0x0b, 0xbe, 0x97, 0x05, 0xd3, 0x5b, 0x24, 0xf7, 0x7a, 0x99, - 0x5d, 0x33, 0x19, 0x81, 0xe6, 0x95, 0x2c, 0x87, 0x07, 0xcf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2a, - 0x0c, 0x42, 0xca, 0xd6, 0x02, 0x00, 0x00, +var fileDescriptor_7d0c64a57c5987e0 = []byte{ + // 396 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xc1, 0x6e, 0xda, 0x40, + 0x10, 0x65, 0x8d, 0x8b, 0xda, 0xa5, 0xd0, 0x6a, 0xd5, 0x4a, 0x2e, 0x55, 0x2d, 0x44, 0x55, 0x89, + 0x1e, 0xba, 0x16, 0xcd, 0x2d, 0xb7, 0x04, 0x25, 0x4a, 0x4e, 0x91, 0xac, 0x9c, 0x72, 0x41, 0xbb, + 0xf6, 0x18, 0x2c, 0xe1, 0x5d, 0xb2, 0xbb, 0x46, 0xe1, 0x2f, 0xf2, 0x37, 0xc9, 0x17, 0x44, 0x39, + 0x72, 0xcc, 0x31, 0x82, 0x1f, 0x89, 0xb0, 0x0d, 0x21, 0x01, 0x25, 0xdc, 0x66, 0x9f, 0xde, 0xcc, + 0xbc, 0x37, 0xfb, 0xf0, 0xaf, 0xbe, 0x02, 0x10, 0x51, 0x0c, 0xc3, 0xd0, 0xe3, 0x2a, 0x0e, 0xfb, + 0xe0, 0xc1, 0x18, 0x84, 0xa1, 0x23, 0x25, 0x8d, 0x24, 0x0d, 0x2e, 0x78, 0x30, 0x60, 0xb1, 0xa0, + 0xcf, 0x3c, 0x9a, 0xf3, 0x1a, 0x6e, 0x20, 0x75, 0x22, 0xb5, 0xc7, 0x99, 0x06, 0x6f, 0xdc, 0xe1, + 0x60, 0x58, 0xc7, 0x0b, 0x64, 0x2c, 0xf2, 0xde, 0xd6, 0x1d, 0xc2, 0xdf, 0x8f, 0x16, 0xb3, 0xba, + 0x4a, 0x6a, 0x7d, 0xae, 0x98, 0xd0, 0x11, 0xa8, 0xb3, 0xd4, 0x10, 0x82, 0xed, 0x48, 0xc9, 0xc4, + 0x41, 0x4d, 0xd4, 0xfe, 0xe4, 0x67, 0x35, 0xa9, 0x63, 0xcb, 0x48, 0xc7, 0xca, 0x10, 0xcb, 0x48, + 0xd2, 0xc1, 0x15, 0x96, 0xc8, 0x54, 0x18, 0xa7, 0xdc, 0x44, 0xed, 0xea, 0xff, 0x1f, 0x34, 0x5f, + 0x47, 0x17, 0xeb, 0x68, 0xb1, 0x8e, 0x76, 0x65, 0x2c, 0xfc, 0x82, 0x48, 0xf6, 0x71, 0x55, 0xc1, + 0x90, 0x4d, 0x40, 0xf5, 0x22, 0x00, 0xc7, 0x7e, 0xaf, 0x0f, 0x17, 0xec, 0x63, 0x00, 0xd2, 0xc0, + 0x1f, 0x35, 0x5c, 0xa6, 0x20, 0x02, 0x70, 0x3e, 0x34, 0x51, 0xdb, 0xf6, 0x57, 0xef, 0xd6, 0x2d, + 0xc2, 0x3f, 0xb7, 0x1a, 0xf1, 0x21, 0x4a, 0x45, 0x48, 0xfe, 0xe0, 0xba, 0xca, 0xaa, 0x1e, 0x0b, + 0x43, 0x05, 0x5a, 0x17, 0xc6, 0x6a, 0x39, 0x7a, 0x90, 0x83, 0x6b, 0x8e, 0xac, 0x5d, 0x1d, 0xfd, + 0xc6, 0xc5, 0x8c, 0x9e, 0x02, 0xa6, 0xa5, 0xc8, 0x6e, 0x51, 0xf3, 0x3f, 0xe7, 0xa0, 0x9f, 0x61, + 0x2f, 0xa4, 0xdb, 0xaf, 0xa4, 0xdf, 0x20, 0xfc, 0x6d, 0x53, 0xfa, 0xa9, 0x58, 0x13, 0x83, 0x76, + 0x15, 0xf3, 0x17, 0x7f, 0x55, 0x10, 0x40, 0x3c, 0x06, 0xb5, 0x32, 0x9a, 0xff, 0xd7, 0x97, 0x25, + 0xbe, 0xb4, 0xba, 0x79, 0x91, 0xf2, 0xb6, 0x8b, 0xbc, 0xa1, 0xfc, 0xf0, 0xe4, 0x7e, 0xe6, 0xa2, + 0xe9, 0xcc, 0x45, 0x8f, 0x33, 0x17, 0x5d, 0xcf, 0xdd, 0xd2, 0x74, 0xee, 0x96, 0x1e, 0xe6, 0x6e, + 0xe9, 0x82, 0xf6, 0x63, 0x33, 0x48, 0x39, 0x0d, 0x64, 0xe2, 0x71, 0xc1, 0xff, 0x65, 0xf9, 0xf4, + 0xd6, 0x72, 0x7c, 0xb5, 0x4c, 0xb2, 0x99, 0x8c, 0x40, 0xf3, 0x4a, 0x16, 0xc7, 0xbd, 0xa7, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xf0, 0xb3, 0x20, 0xac, 0xeb, 0x02, 0x00, 0x00, } func (m *EventCrossTransferOut) Marshal() (dAtA []byte, err error) { diff --git a/x/bridge/types/genesis.pb.go b/x/bridge/types/genesis.pb.go index d99c189fd..5549e23ca 100644 --- a/x/bridge/types/genesis.pb.go +++ b/x/bridge/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bridge/genesis.proto +// source: greenfield/bridge/genesis.proto package types @@ -32,7 +32,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_70f5be2d634a4201, []int{0} + return fileDescriptor_c180e9edb1964c3b, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -69,26 +69,26 @@ func (m *GenesisState) GetParams() Params { } func init() { - proto.RegisterType((*GenesisState)(nil), "bnbchain.bfs.bridge.GenesisState") + proto.RegisterType((*GenesisState)(nil), "bnbchain.greenfield.bridge.GenesisState") } -func init() { proto.RegisterFile("bfs/bridge/genesis.proto", fileDescriptor_70f5be2d634a4201) } +func init() { proto.RegisterFile("greenfield/bridge/genesis.proto", fileDescriptor_c180e9edb1964c3b) } -var fileDescriptor_70f5be2d634a4201 = []byte{ - // 197 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0x4a, 0x2b, 0xd6, - 0x4f, 0x2a, 0xca, 0x4c, 0x49, 0x4f, 0xd5, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x4e, 0xca, 0x4b, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x4b, - 0x4a, 0x2b, 0xd6, 0x83, 0x28, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, 0x83, 0x58, - 0x10, 0xa5, 0x52, 0xe2, 0x48, 0x86, 0x14, 0x24, 0x16, 0x25, 0xe6, 0x42, 0xcd, 0x50, 0xf2, 0xe4, - 0xe2, 0x71, 0x87, 0x18, 0x1a, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0x64, 0xc9, 0xc5, 0x06, 0x91, 0x97, - 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x92, 0xd6, 0xc3, 0x62, 0x89, 0x5e, 0x00, 0x58, 0x89, 0x13, - 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0x0d, 0x4e, 0x8e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, - 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, - 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, - 0x9f, 0x94, 0x97, 0xa4, 0x0b, 0x36, 0x4f, 0x1f, 0xe4, 0xa4, 0x0a, 0x98, 0xa3, 0x4a, 0x2a, 0x0b, - 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x8e, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x15, 0x62, 0x8b, - 0xa3, 0xf4, 0x00, 0x00, 0x00, +var fileDescriptor_c180e9edb1964c3b = []byte{ + // 203 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x2f, 0x4a, 0x4d, + 0xcd, 0x4b, 0xcb, 0x4c, 0xcd, 0x49, 0xd1, 0x4f, 0x2a, 0xca, 0x4c, 0x49, 0x4f, 0xd5, 0x4f, 0x4f, + 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x4a, 0xca, 0x4b, + 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x43, 0xa8, 0xd4, 0x83, 0xa8, 0x94, 0x12, 0x49, 0xcf, 0x4f, + 0xcf, 0x07, 0x2b, 0xd3, 0x07, 0xb1, 0x20, 0x3a, 0xa4, 0xe4, 0x30, 0x8d, 0x2c, 0x48, 0x2c, 0x4a, + 0xcc, 0x85, 0x9a, 0xa8, 0x14, 0xc0, 0xc5, 0xe3, 0x0e, 0xb1, 0x22, 0xb8, 0x24, 0xb1, 0x24, 0x55, + 0xc8, 0x81, 0x8b, 0x0d, 0x22, 0x2f, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0xa4, 0xa4, 0x87, 0xdb, + 0x4a, 0xbd, 0x00, 0xb0, 0x4a, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0xa0, 0xfa, 0x9c, 0x3c, + 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, + 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x2f, 0x3d, 0xb3, 0x24, 0xa3, + 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x29, 0x2f, 0x49, 0x17, 0x6c, 0xac, 0x3e, 0x92, 0x03, + 0x2b, 0x60, 0x4e, 0x2c, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x3b, 0xd1, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0x49, 0xa3, 0x54, 0x40, 0x17, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/bridge/types/genesis_test.go b/x/bridge/types/genesis_test.go index 615af694a..90734979e 100644 --- a/x/bridge/types/genesis_test.go +++ b/x/bridge/types/genesis_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/bnb-chain/bfs/x/bridge/types" + "github.com/bnb-chain/greenfield/x/bridge/types" "github.com/stretchr/testify/require" ) diff --git a/x/bridge/types/message_transfer_out_test.go b/x/bridge/types/message_transfer_out_test.go index 2410f5793..f82af3dde 100644 --- a/x/bridge/types/message_transfer_out_test.go +++ b/x/bridge/types/message_transfer_out_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - "github.com/bnb-chain/bfs/testutil/sample" + "github.com/bnb-chain/greenfield/testutil/sample" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" diff --git a/x/bridge/types/params.pb.go b/x/bridge/types/params.pb.go index 9f7445941..b7810a2c9 100644 --- a/x/bridge/types/params.pb.go +++ b/x/bridge/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bridge/params.proto +// source: greenfield/bridge/params.proto package types @@ -33,7 +33,7 @@ func (m *Params) Reset() { *m = Params{} } func (m *Params) String() string { return proto.CompactTextString(m) } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_d45206dd766297fc, []int{0} + return fileDescriptor_0968257d902d40e4, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,27 +77,28 @@ func (m *Params) GetTransferOutAckRelayerFee() string { } func init() { - proto.RegisterType((*Params)(nil), "bnbchain.bfs.bridge.Params") + proto.RegisterType((*Params)(nil), "bnbchain.greenfield.bridge.Params") } -func init() { proto.RegisterFile("bfs/bridge/params.proto", fileDescriptor_d45206dd766297fc) } +func init() { proto.RegisterFile("greenfield/bridge/params.proto", fileDescriptor_0968257d902d40e4) } -var fileDescriptor_d45206dd766297fc = []byte{ - // 219 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0x4a, 0x2b, 0xd6, - 0x4f, 0x2a, 0xca, 0x4c, 0x49, 0x4f, 0xd5, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x4e, 0xca, 0x4b, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x4b, 0x4a, - 0x2b, 0xd6, 0x83, 0xa8, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, 0x83, 0x58, 0x10, - 0xa5, 0x4a, 0x8d, 0x8c, 0x5c, 0x6c, 0x01, 0x60, 0xbd, 0x42, 0xe6, 0x5c, 0x12, 0x25, 0x45, 0x89, - 0x79, 0xc5, 0x69, 0xa9, 0x45, 0xf1, 0xf9, 0xa5, 0x25, 0xf1, 0x45, 0xa9, 0x39, 0x89, 0x95, 0xa9, - 0x45, 0xf1, 0x69, 0xa9, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xa2, 0x30, 0x79, 0xff, - 0xd2, 0x92, 0x20, 0x88, 0xac, 0x5b, 0x6a, 0xaa, 0x90, 0x1d, 0x97, 0x0c, 0x8a, 0xc6, 0xc4, 0xe4, - 0x6c, 0x14, 0xcd, 0x4c, 0x60, 0xcd, 0x12, 0x48, 0x9a, 0x1d, 0x93, 0xb3, 0x11, 0xfa, 0x9d, 0x1c, - 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, - 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x3d, 0x3d, 0xb3, 0x24, 0xa3, - 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x29, 0x2f, 0x49, 0x17, 0xec, 0x29, 0x7d, 0x90, 0xb7, - 0x2b, 0x60, 0x1e, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xfb, 0xc6, 0x18, 0x10, 0x00, - 0x00, 0xff, 0xff, 0x37, 0x8d, 0x55, 0x79, 0x13, 0x01, 0x00, 0x00, +var fileDescriptor_0968257d902d40e4 = []byte{ + // 226 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0x2f, 0x4a, 0x4d, + 0xcd, 0x4b, 0xcb, 0x4c, 0xcd, 0x49, 0xd1, 0x4f, 0x2a, 0xca, 0x4c, 0x49, 0x4f, 0xd5, 0x2f, 0x48, + 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x4a, 0xca, 0x4b, 0x4a, + 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x43, 0x28, 0xd4, 0x83, 0x28, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, + 0x07, 0x2b, 0xd3, 0x07, 0xb1, 0x20, 0x3a, 0x94, 0x1a, 0x19, 0xb9, 0xd8, 0x02, 0xc0, 0x46, 0x08, + 0x99, 0x73, 0x49, 0x94, 0x14, 0x25, 0xe6, 0x15, 0xa7, 0xa5, 0x16, 0xc5, 0xe7, 0x97, 0x96, 0xc4, + 0x17, 0xa5, 0xe6, 0x24, 0x56, 0xa6, 0x16, 0xc5, 0xa7, 0xa5, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, + 0x70, 0x06, 0x89, 0xc2, 0xe4, 0xfd, 0x4b, 0x4b, 0x82, 0x20, 0xb2, 0x6e, 0xa9, 0xa9, 0x42, 0x76, + 0x5c, 0x32, 0x28, 0x1a, 0x13, 0x93, 0xb3, 0x51, 0x34, 0x33, 0x81, 0x35, 0x4b, 0x20, 0x69, 0x76, + 0x4c, 0xce, 0x46, 0xe8, 0x77, 0xf2, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, + 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, + 0x28, 0xbd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xa4, 0xbc, 0x24, + 0x5d, 0xb0, 0xdf, 0xf4, 0x91, 0x02, 0xa1, 0x02, 0x16, 0x0c, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, + 0x6c, 0x60, 0x4f, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x79, 0x28, 0x32, 0xd7, 0x28, 0x01, + 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/bridge/types/query.pb.go b/x/bridge/types/query.pb.go index 6bcc7cd99..045179054 100644 --- a/x/bridge/types/query.pb.go +++ b/x/bridge/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bridge/query.proto +// source: greenfield/bridge/query.proto package types @@ -38,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fbc7b0de4dce6a81, []int{0} + return fileDescriptor_376b860178c53121, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fbc7b0de4dce6a81, []int{1} + return fileDescriptor_376b860178c53121, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -114,33 +114,34 @@ func (m *QueryParamsResponse) GetParams() Params { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "bnbchain.bfs.bridge.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "bnbchain.bfs.bridge.QueryParamsResponse") -} - -func init() { proto.RegisterFile("bfs/bridge/query.proto", fileDescriptor_fbc7b0de4dce6a81) } - -var fileDescriptor_fbc7b0de4dce6a81 = []byte{ - // 301 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0xb1, 0x4e, 0x42, 0x31, - 0x14, 0x86, 0x6f, 0x8d, 0x32, 0xd4, 0xad, 0x10, 0x35, 0x48, 0xaa, 0x21, 0x26, 0x10, 0x13, 0xdb, - 0x80, 0x93, 0xa3, 0x3c, 0x01, 0x32, 0xba, 0xb5, 0x58, 0x4a, 0x13, 0xe9, 0x29, 0xb7, 0xc5, 0xc8, - 0xa8, 0xab, 0x8b, 0x89, 0x2f, 0xc5, 0x48, 0xe2, 0xe2, 0x64, 0x0c, 0xf8, 0x20, 0x86, 0xf6, 0x9a, - 0xa8, 0x90, 0xb8, 0xdd, 0x9c, 0xf3, 0x7d, 0xff, 0xfd, 0x4f, 0xf1, 0x9e, 0x1c, 0x78, 0x2e, 0x73, - 0x73, 0xa3, 0x15, 0x1f, 0x4f, 0x54, 0x3e, 0x65, 0x2e, 0x87, 0x00, 0xa4, 0x2c, 0xad, 0xec, 0x0f, - 0x85, 0xb1, 0x4c, 0x0e, 0x3c, 0x4b, 0x40, 0xb5, 0xa2, 0x41, 0x43, 0xdc, 0xf3, 0xd5, 0x57, 0x42, - 0xab, 0x35, 0x0d, 0xa0, 0x6f, 0x15, 0x17, 0xce, 0x70, 0x61, 0x2d, 0x04, 0x11, 0x0c, 0x58, 0x5f, - 0x6c, 0x4f, 0xfb, 0xe0, 0x47, 0xe0, 0xb9, 0x14, 0xbe, 0xf8, 0x03, 0xbf, 0x6b, 0x49, 0x15, 0x44, - 0x8b, 0x3b, 0xa1, 0x8d, 0x8d, 0x70, 0xc1, 0xee, 0xff, 0x28, 0xe3, 0x44, 0x2e, 0x46, 0x45, 0x48, - 0xbd, 0x82, 0xc9, 0xd5, 0x4a, 0xed, 0xc6, 0x61, 0x4f, 0x8d, 0x27, 0xca, 0x87, 0x7a, 0x17, 0x97, - 0x7f, 0x4d, 0xbd, 0x03, 0xeb, 0x15, 0xb9, 0xc0, 0xa5, 0x24, 0x1f, 0xa0, 0x63, 0xd4, 0xdc, 0x6d, - 0x1f, 0xb2, 0x0d, 0xb7, 0xb0, 0x24, 0x75, 0xb6, 0x67, 0xef, 0x47, 0x59, 0xaf, 0x10, 0xda, 0x4f, - 0x08, 0xef, 0xc4, 0x48, 0xf2, 0x80, 0x70, 0x29, 0x21, 0xa4, 0xb1, 0xd1, 0x5f, 0xef, 0x53, 0x6d, - 0xfe, 0x0f, 0xa6, 0x8a, 0xf5, 0x93, 0xc7, 0xd7, 0xcf, 0x97, 0x2d, 0x4a, 0x6a, 0x5c, 0x5a, 0x79, - 0x16, 0x15, 0xbe, 0x76, 0x7b, 0xe7, 0x72, 0xb6, 0xa0, 0x68, 0xbe, 0xa0, 0xe8, 0x63, 0x41, 0xd1, - 0xf3, 0x92, 0x66, 0xf3, 0x25, 0xcd, 0xde, 0x96, 0x34, 0xbb, 0x6e, 0x68, 0x13, 0x86, 0x13, 0xc9, - 0xfa, 0x30, 0xfa, 0x93, 0x70, 0xff, 0x9d, 0x11, 0xa6, 0x4e, 0x79, 0x59, 0x8a, 0xef, 0x77, 0xfe, - 0x15, 0x00, 0x00, 0xff, 0xff, 0x93, 0xf5, 0x51, 0x7a, 0xe7, 0x01, 0x00, 0x00, + proto.RegisterType((*QueryParamsRequest)(nil), "bnbchain.greenfield.bridge.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "bnbchain.greenfield.bridge.QueryParamsResponse") +} + +func init() { proto.RegisterFile("greenfield/bridge/query.proto", fileDescriptor_376b860178c53121) } + +var fileDescriptor_376b860178c53121 = []byte{ + // 309 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0x4a, 0x73, 0x31, + 0x18, 0x86, 0x4f, 0x7e, 0x7e, 0x3b, 0xc4, 0x2d, 0x76, 0x90, 0x83, 0x46, 0x39, 0x22, 0x88, 0x62, + 0x42, 0xeb, 0x0d, 0x48, 0x27, 0x47, 0xed, 0x22, 0xb8, 0x25, 0x6d, 0x4c, 0x03, 0x6d, 0xbe, 0xf4, + 0x24, 0x15, 0xbb, 0x7a, 0x05, 0x82, 0xe0, 0xec, 0xe5, 0x74, 0x2c, 0xb8, 0x38, 0x89, 0xb4, 0x5e, + 0x88, 0x34, 0x39, 0x22, 0x52, 0x2b, 0x6e, 0xe1, 0xcb, 0xf3, 0x3e, 0x79, 0xf3, 0xe1, 0x6d, 0x5d, + 0x2a, 0x65, 0xaf, 0x8d, 0xea, 0x77, 0xb9, 0x2c, 0x4d, 0x57, 0x2b, 0x3e, 0x1c, 0xa9, 0x72, 0xcc, + 0x5c, 0x09, 0x01, 0x48, 0x2e, 0xad, 0xec, 0xf4, 0x84, 0xb1, 0xec, 0x8b, 0x63, 0x89, 0xcb, 0xeb, + 0x1a, 0x34, 0x44, 0x8c, 0x2f, 0x4e, 0x29, 0x91, 0x6f, 0x69, 0x00, 0xdd, 0x57, 0x5c, 0x38, 0xc3, + 0x85, 0xb5, 0x10, 0x44, 0x30, 0x60, 0x7d, 0x75, 0x7b, 0xd8, 0x01, 0x3f, 0x00, 0xcf, 0xa5, 0xf0, + 0xd5, 0x43, 0xfc, 0xa6, 0x21, 0x55, 0x10, 0x0d, 0xee, 0x84, 0x36, 0x36, 0xc2, 0x15, 0x4b, 0x97, + 0xab, 0x39, 0x51, 0x8a, 0x41, 0xe5, 0x2a, 0xea, 0x98, 0x5c, 0x2c, 0x0c, 0xe7, 0x71, 0xd8, 0x56, + 0xc3, 0x91, 0xf2, 0xa1, 0xb8, 0xc4, 0x1b, 0xdf, 0xa6, 0xde, 0x81, 0xf5, 0x8a, 0x9c, 0xe2, 0x5a, + 0x0a, 0x6f, 0xa2, 0x5d, 0x74, 0xb0, 0xde, 0x2c, 0xd8, 0xea, 0x9f, 0xb1, 0x94, 0x6d, 0xfd, 0x9f, + 0xbc, 0xee, 0x64, 0xed, 0x2a, 0xd7, 0x7c, 0x42, 0x78, 0x2d, 0x9a, 0xc9, 0x23, 0xc2, 0xb5, 0x84, + 0x10, 0xf6, 0x9b, 0x66, 0xb9, 0x5d, 0xce, 0xff, 0xcc, 0xa7, 0xde, 0xc5, 0xd1, 0xdd, 0xf3, 0xfb, + 0xc3, 0xbf, 0x7d, 0xb2, 0xc7, 0xa5, 0x95, 0xc7, 0x31, 0xc9, 0x57, 0xed, 0xa5, 0x75, 0x36, 0x99, + 0x51, 0x34, 0x9d, 0x51, 0xf4, 0x36, 0xa3, 0xe8, 0x7e, 0x4e, 0xb3, 0xe9, 0x9c, 0x66, 0x2f, 0x73, + 0x9a, 0x5d, 0x31, 0x6d, 0x42, 0x6f, 0x24, 0x59, 0x07, 0x06, 0x3f, 0x8b, 0x6e, 0x3f, 0x55, 0x61, + 0xec, 0x94, 0x97, 0xb5, 0xb8, 0xe2, 0x93, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0x49, 0x34, + 0xaa, 0x1f, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -169,7 +170,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/bnbchain.bfs.bridge.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/bnbchain.greenfield.bridge.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -204,7 +205,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/bnbchain.bfs.bridge.Query/Params", + FullMethod: "/bnbchain.greenfield.bridge.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -213,7 +214,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "bnbchain.bfs.bridge.Query", + ServiceName: "bnbchain.greenfield.bridge.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -222,7 +223,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "bfs/bridge/query.proto", + Metadata: "greenfield/bridge/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/bridge/types/query.pb.gw.go b/x/bridge/types/query.pb.gw.go index 7f4a32ad8..47dcdca2e 100644 --- a/x/bridge/types/query.pb.gw.go +++ b/x/bridge/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: bfs/bridge/query.proto +// source: greenfield/bridge/query.proto /* Package types is a reverse proxy. @@ -145,7 +145,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"bnb-chain", "bfs", "bridge", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"bnb-chain", "greenfield", "bridge", "params"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( diff --git a/x/bridge/types/tx.pb.go b/x/bridge/types/tx.pb.go index a71a7117c..00c092783 100644 --- a/x/bridge/types/tx.pb.go +++ b/x/bridge/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bridge/tx.proto +// source: greenfield/bridge/tx.proto package types @@ -38,7 +38,7 @@ func (m *MsgTransferOut) Reset() { *m = MsgTransferOut{} } func (m *MsgTransferOut) String() string { return proto.CompactTextString(m) } func (*MsgTransferOut) ProtoMessage() {} func (*MsgTransferOut) Descriptor() ([]byte, []int) { - return fileDescriptor_e48e50bbc619c738, []int{0} + return fileDescriptor_5360e58e7e095845, []int{0} } func (m *MsgTransferOut) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -95,7 +95,7 @@ func (m *MsgTransferOutResponse) Reset() { *m = MsgTransferOutResponse{} func (m *MsgTransferOutResponse) String() string { return proto.CompactTextString(m) } func (*MsgTransferOutResponse) ProtoMessage() {} func (*MsgTransferOutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e48e50bbc619c738, []int{1} + return fileDescriptor_5360e58e7e095845, []int{1} } func (m *MsgTransferOutResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -125,32 +125,32 @@ func (m *MsgTransferOutResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgTransferOutResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgTransferOut)(nil), "bnbchain.bfs.bridge.MsgTransferOut") - proto.RegisterType((*MsgTransferOutResponse)(nil), "bnbchain.bfs.bridge.MsgTransferOutResponse") -} - -func init() { proto.RegisterFile("bfs/bridge/tx.proto", fileDescriptor_e48e50bbc619c738) } - -var fileDescriptor_e48e50bbc619c738 = []byte{ - // 274 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xc1, 0x4a, 0xc3, 0x40, - 0x10, 0x86, 0xb3, 0xa9, 0x14, 0xdc, 0x42, 0x0f, 0x5b, 0x90, 0xd8, 0xc3, 0x52, 0xea, 0xc1, 0x82, - 0xb8, 0x4b, 0xea, 0x13, 0xa8, 0xe7, 0x22, 0x04, 0x4f, 0x5e, 0x24, 0x13, 0x37, 0x69, 0x0e, 0xd9, - 0x09, 0x99, 0x8d, 0xd4, 0xb7, 0xf0, 0xb1, 0x3c, 0xf6, 0xe8, 0x51, 0x92, 0x17, 0x91, 0x26, 0x55, - 0x2c, 0x78, 0xe8, 0x6d, 0x98, 0xf9, 0xe7, 0xff, 0x66, 0x7e, 0x3e, 0x81, 0x94, 0x34, 0x54, 0xf9, - 0x4b, 0x66, 0xb4, 0xdb, 0xa8, 0xb2, 0x42, 0x87, 0x62, 0x02, 0x16, 0x92, 0x75, 0x9c, 0x5b, 0x05, - 0x29, 0xa9, 0x7e, 0x3a, 0x95, 0x09, 0x52, 0x81, 0xa4, 0x21, 0x26, 0xa3, 0x5f, 0x43, 0x30, 0x2e, - 0x0e, 0x75, 0x82, 0xb9, 0xed, 0x97, 0xe6, 0x19, 0x1f, 0xaf, 0x28, 0x7b, 0xac, 0x62, 0x4b, 0xa9, - 0xa9, 0x1e, 0x6a, 0x27, 0x04, 0x3f, 0x49, 0x2b, 0x2c, 0x02, 0x36, 0x63, 0x8b, 0xd3, 0xa8, 0xab, - 0xc5, 0x98, 0xfb, 0x0e, 0x03, 0xbf, 0xeb, 0xf8, 0x0e, 0x45, 0xc8, 0x87, 0x71, 0x81, 0xb5, 0x75, - 0xc1, 0x60, 0xc6, 0x16, 0xa3, 0xe5, 0xb9, 0xea, 0x31, 0x6a, 0x87, 0x51, 0x7b, 0x8c, 0xba, 0xc7, - 0xdc, 0x46, 0x7b, 0xe1, 0x3c, 0xe0, 0x67, 0x87, 0xa0, 0xc8, 0x50, 0x89, 0x96, 0xcc, 0x32, 0xe5, - 0x83, 0x15, 0x65, 0xe2, 0x99, 0x8f, 0xfe, 0x9e, 0x71, 0xa1, 0xfe, 0x79, 0x47, 0x1d, 0x5a, 0x4c, - 0xaf, 0x8e, 0x10, 0xfd, 0x70, 0xee, 0x6e, 0x3f, 0x1a, 0xc9, 0xb6, 0x8d, 0x64, 0x5f, 0x8d, 0x64, - 0xef, 0xad, 0xf4, 0xb6, 0xad, 0xf4, 0x3e, 0x5b, 0xe9, 0x3d, 0x5d, 0x66, 0xb9, 0x5b, 0xd7, 0xa0, - 0x12, 0x2c, 0x34, 0x58, 0xb8, 0xee, 0x1c, 0xf5, 0x2e, 0xe3, 0xcd, 0x6f, 0xca, 0x6f, 0xa5, 0x21, - 0x18, 0x76, 0xa1, 0xdd, 0x7c, 0x07, 0x00, 0x00, 0xff, 0xff, 0x64, 0x75, 0x4c, 0x8d, 0x80, 0x01, - 0x00, 0x00, + proto.RegisterType((*MsgTransferOut)(nil), "bnbchain.greenfield.bridge.MsgTransferOut") + proto.RegisterType((*MsgTransferOutResponse)(nil), "bnbchain.greenfield.bridge.MsgTransferOutResponse") +} + +func init() { proto.RegisterFile("greenfield/bridge/tx.proto", fileDescriptor_5360e58e7e095845) } + +var fileDescriptor_5360e58e7e095845 = []byte{ + // 279 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xb1, 0x6a, 0xeb, 0x30, + 0x14, 0x86, 0xa3, 0xe4, 0x12, 0xb8, 0x0a, 0x64, 0xd0, 0x50, 0x5c, 0x0f, 0x22, 0x64, 0x0a, 0x85, + 0x1e, 0x61, 0xf7, 0x0d, 0xda, 0xa5, 0x4b, 0x28, 0x98, 0x4e, 0xdd, 0x2c, 0x47, 0x56, 0x04, 0xb5, + 0x8e, 0x91, 0xe4, 0x92, 0xbe, 0x45, 0x1f, 0xab, 0x63, 0xc6, 0x8e, 0xc5, 0x7e, 0x91, 0x52, 0x3b, + 0x6d, 0x93, 0xa1, 0xd0, 0x4d, 0x88, 0x4f, 0xff, 0xa7, 0xf3, 0x1f, 0x1a, 0x6b, 0xa7, 0x94, 0x2d, + 0x8d, 0x7a, 0xdc, 0x08, 0xe9, 0xcc, 0x46, 0x2b, 0x11, 0x76, 0x50, 0x3b, 0x0c, 0xc8, 0x62, 0x69, + 0x65, 0xb1, 0xcd, 0x8d, 0x85, 0x1f, 0x08, 0x06, 0x28, 0xe6, 0x05, 0xfa, 0x0a, 0xbd, 0x90, 0xb9, + 0x57, 0xe2, 0x29, 0x91, 0x2a, 0xe4, 0x89, 0x28, 0xd0, 0xd8, 0xe1, 0xed, 0x52, 0xd3, 0xf9, 0xda, + 0xeb, 0x7b, 0x97, 0x5b, 0x5f, 0x2a, 0x77, 0xd7, 0x04, 0xc6, 0xe8, 0xbf, 0xd2, 0x61, 0x15, 0x91, + 0x05, 0x59, 0xfd, 0xcf, 0xfa, 0x33, 0x9b, 0xd3, 0x71, 0xc0, 0x68, 0xdc, 0xdf, 0x8c, 0x03, 0xb2, + 0x84, 0x4e, 0xf3, 0x0a, 0x1b, 0x1b, 0xa2, 0xc9, 0x82, 0xac, 0x66, 0xe9, 0x39, 0x0c, 0x1a, 0xf8, + 0xd4, 0xc0, 0x41, 0x03, 0x37, 0x68, 0x6c, 0x76, 0x00, 0x97, 0x11, 0x3d, 0x3b, 0x15, 0x65, 0xca, + 0xd7, 0x68, 0xbd, 0x4a, 0x03, 0x9d, 0xac, 0xbd, 0x66, 0x15, 0x9d, 0x1d, 0x7f, 0xe3, 0x02, 0x7e, + 0x9f, 0x0a, 0x4e, 0x93, 0xe2, 0xf4, 0xef, 0xec, 0x97, 0xf5, 0xfa, 0xf6, 0xb5, 0xe5, 0x64, 0xdf, + 0x72, 0xf2, 0xde, 0x72, 0xf2, 0xd2, 0xf1, 0xd1, 0xbe, 0xe3, 0xa3, 0xb7, 0x8e, 0x8f, 0x1e, 0x40, + 0x9b, 0xb0, 0x6d, 0x24, 0x14, 0x58, 0x09, 0x69, 0xe5, 0x65, 0x1f, 0x2c, 0x8e, 0xfa, 0xdf, 0x7d, + 0x6f, 0xe0, 0xb9, 0x56, 0x5e, 0x4e, 0xfb, 0x26, 0xaf, 0x3e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x44, + 0xe6, 0xd7, 0x34, 0xa3, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -178,7 +178,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) TransferOut(ctx context.Context, in *MsgTransferOut, opts ...grpc.CallOption) (*MsgTransferOutResponse, error) { out := new(MsgTransferOutResponse) - err := c.cc.Invoke(ctx, "/bnbchain.bfs.bridge.Msg/TransferOut", in, out, opts...) + err := c.cc.Invoke(ctx, "/bnbchain.greenfield.bridge.Msg/TransferOut", in, out, opts...) if err != nil { return nil, err } @@ -212,7 +212,7 @@ func _Msg_TransferOut_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/bnbchain.bfs.bridge.Msg/TransferOut", + FullMethod: "/bnbchain.greenfield.bridge.Msg/TransferOut", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).TransferOut(ctx, req.(*MsgTransferOut)) @@ -221,7 +221,7 @@ func _Msg_TransferOut_Handler(srv interface{}, ctx context.Context, dec func(int } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "bnbchain.bfs.bridge.Msg", + ServiceName: "bnbchain.greenfield.bridge.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -230,7 +230,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "bfs/bridge/tx.proto", + Metadata: "greenfield/bridge/tx.proto", } func (m *MsgTransferOut) Marshal() (dAtA []byte, err error) { diff --git a/x/bfs/client/cli/query.go b/x/greenfield/client/cli/query.go similarity index 87% rename from x/bfs/client/cli/query.go rename to x/greenfield/client/cli/query.go index 5d3de947d..26c63bca9 100644 --- a/x/bfs/client/cli/query.go +++ b/x/greenfield/client/cli/query.go @@ -10,12 +10,12 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" ) // GetQueryCmd returns the cli query commands for this module func GetQueryCmd(queryRoute string) *cobra.Command { - // Group bfs queries under a subcommand + // Group greenfield queries under a subcommand cmd := &cobra.Command{ Use: types.ModuleName, Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName), diff --git a/x/bfs/client/cli/query_params.go b/x/greenfield/client/cli/query_params.go similarity index 92% rename from x/bfs/client/cli/query_params.go rename to x/greenfield/client/cli/query_params.go index 001fc0916..8053d6f23 100644 --- a/x/bfs/client/cli/query_params.go +++ b/x/greenfield/client/cli/query_params.go @@ -3,7 +3,7 @@ package cli import ( "context" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" diff --git a/x/bfs/client/cli/tx.go b/x/greenfield/client/cli/tx.go similarity index 92% rename from x/bfs/client/cli/tx.go rename to x/greenfield/client/cli/tx.go index 01857ec17..75abe0725 100644 --- a/x/bfs/client/cli/tx.go +++ b/x/greenfield/client/cli/tx.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" ) var ( diff --git a/x/bfs/genesis.go b/x/greenfield/genesis.go similarity index 82% rename from x/bfs/genesis.go rename to x/greenfield/genesis.go index 05fa235bf..76ee739ee 100644 --- a/x/bfs/genesis.go +++ b/x/greenfield/genesis.go @@ -1,8 +1,8 @@ -package bfs +package greenfield import ( - "github.com/bnb-chain/bfs/x/bfs/keeper" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/keeper" + "github.com/bnb-chain/greenfield/x/greenfield/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/bfs/genesis_test.go b/x/greenfield/genesis_test.go similarity index 50% rename from x/bfs/genesis_test.go rename to x/greenfield/genesis_test.go index fa8cfc65d..b70ce94cc 100644 --- a/x/bfs/genesis_test.go +++ b/x/greenfield/genesis_test.go @@ -1,12 +1,12 @@ -package bfs_test +package greenfield_test import ( "testing" - keepertest "github.com/bnb-chain/bfs/testutil/keeper" - "github.com/bnb-chain/bfs/testutil/nullify" - "github.com/bnb-chain/bfs/x/bfs" - "github.com/bnb-chain/bfs/x/bfs/types" + keepertest "github.com/bnb-chain/greenfield/testutil/keeper" + "github.com/bnb-chain/greenfield/testutil/nullify" + "github.com/bnb-chain/greenfield/x/greenfield" + "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/stretchr/testify/require" ) @@ -17,9 +17,9 @@ func TestGenesis(t *testing.T) { // this line is used by starport scaffolding # genesis/test/state } - k, ctx := keepertest.BfsKeeper(t) - bfs.InitGenesis(ctx, *k, genesisState) - got := bfs.ExportGenesis(ctx, *k) + k, ctx := keepertest.GreenfieldKeeper(t) + greenfield.InitGenesis(ctx, *k, genesisState) + got := greenfield.ExportGenesis(ctx, *k) require.NotNil(t, got) nullify.Fill(&genesisState) diff --git a/x/bfs/keeper/grpc_query.go b/x/greenfield/keeper/grpc_query.go similarity index 53% rename from x/bfs/keeper/grpc_query.go rename to x/greenfield/keeper/grpc_query.go index 3e8f740fd..7d296c3a7 100644 --- a/x/bfs/keeper/grpc_query.go +++ b/x/greenfield/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/bfs/keeper/grpc_query_params.go b/x/greenfield/keeper/grpc_query_params.go similarity index 89% rename from x/bfs/keeper/grpc_query_params.go rename to x/greenfield/keeper/grpc_query_params.go index 47a15d07d..fbf4a70c0 100644 --- a/x/bfs/keeper/grpc_query_params.go +++ b/x/greenfield/keeper/grpc_query_params.go @@ -3,7 +3,7 @@ package keeper import ( "context" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" sdk "github.com/cosmos/cosmos-sdk/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/x/bfs/keeper/grpc_query_params_test.go b/x/greenfield/keeper/grpc_query_params_test.go similarity index 72% rename from x/bfs/keeper/grpc_query_params_test.go rename to x/greenfield/keeper/grpc_query_params_test.go index 7b59a1d3b..e1d22f04f 100644 --- a/x/bfs/keeper/grpc_query_params_test.go +++ b/x/greenfield/keeper/grpc_query_params_test.go @@ -3,14 +3,14 @@ package keeper_test import ( "testing" - testkeeper "github.com/bnb-chain/bfs/testutil/keeper" - "github.com/bnb-chain/bfs/x/bfs/types" + testkeeper "github.com/bnb-chain/greenfield/testutil/keeper" + "github.com/bnb-chain/greenfield/x/greenfield/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) func TestParamsQuery(t *testing.T) { - keeper, ctx := testkeeper.BfsKeeper(t) + keeper, ctx := testkeeper.GreenfieldKeeper(t) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() keeper.SetParams(ctx, params) diff --git a/x/bfs/keeper/keeper.go b/x/greenfield/keeper/keeper.go similarity index 94% rename from x/bfs/keeper/keeper.go rename to x/greenfield/keeper/keeper.go index 878c69bc7..15e8cf658 100644 --- a/x/bfs/keeper/keeper.go +++ b/x/greenfield/keeper/keeper.go @@ -3,7 +3,7 @@ package keeper import ( "fmt" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/bfs/keeper/msg_server.go b/x/greenfield/keeper/msg_server.go similarity index 84% rename from x/bfs/keeper/msg_server.go rename to x/greenfield/keeper/msg_server.go index 6112e8fc6..4cdaf2b7b 100644 --- a/x/bfs/keeper/msg_server.go +++ b/x/greenfield/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" ) type msgServer struct { diff --git a/x/bfs/keeper/msg_server_test.go b/x/greenfield/keeper/msg_server_test.go similarity index 53% rename from x/bfs/keeper/msg_server_test.go rename to x/greenfield/keeper/msg_server_test.go index 35e85d986..291793839 100644 --- a/x/bfs/keeper/msg_server_test.go +++ b/x/greenfield/keeper/msg_server_test.go @@ -4,14 +4,14 @@ import ( "context" "testing" - keepertest "github.com/bnb-chain/bfs/testutil/keeper" - "github.com/bnb-chain/bfs/x/bfs/keeper" - "github.com/bnb-chain/bfs/x/bfs/types" + keepertest "github.com/bnb-chain/greenfield/testutil/keeper" + "github.com/bnb-chain/greenfield/x/greenfield/keeper" + "github.com/bnb-chain/greenfield/x/greenfield/types" sdk "github.com/cosmos/cosmos-sdk/types" ) // nolint: unused func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) { - k, ctx := keepertest.BfsKeeper(t) + k, ctx := keepertest.GreenfieldKeeper(t) return keeper.NewMsgServerImpl(*k), sdk.WrapSDKContext(ctx) } diff --git a/x/bfs/keeper/params.go b/x/greenfield/keeper/params.go similarity index 86% rename from x/bfs/keeper/params.go rename to x/greenfield/keeper/params.go index 6891fe1ea..6d331cb8d 100644 --- a/x/bfs/keeper/params.go +++ b/x/greenfield/keeper/params.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/bfs/keeper/params_test.go b/x/greenfield/keeper/params_test.go similarity index 59% rename from x/bfs/keeper/params_test.go rename to x/greenfield/keeper/params_test.go index 5430e8ceb..ad83a2c8e 100644 --- a/x/bfs/keeper/params_test.go +++ b/x/greenfield/keeper/params_test.go @@ -3,13 +3,13 @@ package keeper_test import ( "testing" - testkeeper "github.com/bnb-chain/bfs/testutil/keeper" - "github.com/bnb-chain/bfs/x/bfs/types" + testkeeper "github.com/bnb-chain/greenfield/testutil/keeper" + "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/stretchr/testify/require" ) func TestGetParams(t *testing.T) { - k, ctx := testkeeper.BfsKeeper(t) + k, ctx := testkeeper.GreenfieldKeeper(t) params := types.DefaultParams() k.SetParams(ctx, params) diff --git a/x/bfs/module.go b/x/greenfield/module.go similarity index 97% rename from x/bfs/module.go rename to x/greenfield/module.go index 28167ab3d..81bba352e 100644 --- a/x/bfs/module.go +++ b/x/greenfield/module.go @@ -1,4 +1,4 @@ -package bfs +package greenfield import ( "context" @@ -12,9 +12,9 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/bnb-chain/bfs/x/bfs/client/cli" - "github.com/bnb-chain/bfs/x/bfs/keeper" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/client/cli" + "github.com/bnb-chain/greenfield/x/greenfield/keeper" + "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" diff --git a/x/bfs/module_simulation.go b/x/greenfield/module_simulation.go similarity index 85% rename from x/bfs/module_simulation.go rename to x/greenfield/module_simulation.go index 2755d47e7..8fd8d6d47 100644 --- a/x/bfs/module_simulation.go +++ b/x/greenfield/module_simulation.go @@ -1,11 +1,11 @@ -package bfs +package greenfield import ( "math/rand" - "github.com/bnb-chain/bfs/testutil/sample" - bfssimulation "github.com/bnb-chain/bfs/x/bfs/simulation" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/testutil/sample" + greenfieldsimulation "github.com/bnb-chain/greenfield/x/greenfield/simulation" + "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/cosmos/cosmos-sdk/baseapp" simappparams "github.com/cosmos/cosmos-sdk/simapp/params" sdk "github.com/cosmos/cosmos-sdk/types" @@ -17,7 +17,7 @@ import ( // avoid unused import issue var ( _ = sample.AccAddress - _ = bfssimulation.FindAccount + _ = greenfieldsimulation.FindAccount _ = simappparams.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace @@ -33,11 +33,11 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { for i, acc := range simState.Accounts { accs[i] = acc.Address.String() } - bfsGenesis := types.GenesisState{ + greenfieldGenesis := types.GenesisState{ Params: types.DefaultParams(), // this line is used by starport scaffolding # simapp/module/genesisState } - simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&bfsGenesis) + simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&greenfieldGenesis) } // ProposalContents doesn't return any content functions for governance proposals diff --git a/x/bfs/simulation/helpers.go b/x/greenfield/simulation/helpers.go similarity index 100% rename from x/bfs/simulation/helpers.go rename to x/greenfield/simulation/helpers.go diff --git a/x/bfs/types/codec.go b/x/greenfield/types/codec.go similarity index 100% rename from x/bfs/types/codec.go rename to x/greenfield/types/codec.go diff --git a/x/bfs/types/errors.go b/x/greenfield/types/errors.go similarity index 81% rename from x/bfs/types/errors.go rename to x/greenfield/types/errors.go index 63bc69eb2..b0ebd28bc 100644 --- a/x/bfs/types/errors.go +++ b/x/greenfield/types/errors.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// x/bfs module sentinel errors +// x/greenfield module sentinel errors var ( ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") ) diff --git a/x/bfs/types/expected_keepers.go b/x/greenfield/types/expected_keepers.go similarity index 100% rename from x/bfs/types/expected_keepers.go rename to x/greenfield/types/expected_keepers.go diff --git a/x/bfs/types/genesis.go b/x/greenfield/types/genesis.go similarity index 100% rename from x/bfs/types/genesis.go rename to x/greenfield/types/genesis.go diff --git a/x/bfs/types/genesis.pb.go b/x/greenfield/types/genesis.pb.go similarity index 81% rename from x/bfs/types/genesis.pb.go rename to x/greenfield/types/genesis.pb.go index 69b142eea..ce85a02e8 100644 --- a/x/bfs/types/genesis.pb.go +++ b/x/greenfield/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bfs/genesis.proto +// source: greenfield/greenfield/genesis.proto package types @@ -23,7 +23,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// GenesisState defines the bfs module's genesis state. +// GenesisState defines the greenfield module's genesis state. type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` } @@ -32,7 +32,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_d5ca2774e5d48c29, []int{0} + return fileDescriptor_e64ba616cca8cc1c, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -69,25 +69,27 @@ func (m *GenesisState) GetParams() Params { } func init() { - proto.RegisterType((*GenesisState)(nil), "bfs.bfs.GenesisState") + proto.RegisterType((*GenesisState)(nil), "greenfield.greenfield.GenesisState") } -func init() { proto.RegisterFile("bfs/bfs/genesis.proto", fileDescriptor_d5ca2774e5d48c29) } +func init() { + proto.RegisterFile("greenfield/greenfield/genesis.proto", fileDescriptor_e64ba616cca8cc1c) +} -var fileDescriptor_d5ca2774e5d48c29 = []byte{ - // 184 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0x4a, 0x2b, 0xd6, - 0x07, 0xe1, 0xf4, 0xd4, 0xbc, 0xd4, 0xe2, 0xcc, 0x62, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, - 0xf6, 0xa4, 0xb4, 0x62, 0xbd, 0xa4, 0xb4, 0x62, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, 0xb0, 0x98, - 0x3e, 0x88, 0x05, 0x91, 0x96, 0x12, 0x81, 0xe9, 0x2a, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x6a, 0x52, - 0xb2, 0xe5, 0xe2, 0x71, 0x87, 0x98, 0x12, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0xa4, 0xcb, 0xc5, 0x06, - 0x91, 0x97, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0xe2, 0xd7, 0x83, 0x9a, 0xaa, 0x17, 0x00, 0x16, - 0x76, 0x62, 0x39, 0x71, 0x4f, 0x9e, 0x21, 0x08, 0xaa, 0xc8, 0xc9, 0xee, 0xc4, 0x23, 0x39, 0xc6, - 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, - 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x54, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, - 0x73, 0xf5, 0x93, 0xf2, 0x92, 0x74, 0x93, 0x33, 0x12, 0x33, 0xf3, 0xc0, 0xf6, 0x57, 0x80, 0xc9, - 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x2b, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x0c, 0x36, 0xd0, 0xbd, 0xd3, 0x00, 0x00, 0x00, +var fileDescriptor_e64ba616cca8cc1c = []byte{ + // 189 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0x2f, 0x4a, 0x4d, + 0xcd, 0x4b, 0xcb, 0x4c, 0xcd, 0x49, 0xd1, 0x47, 0x66, 0xa6, 0xe6, 0xa5, 0x16, 0x67, 0x16, 0xeb, + 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x89, 0x22, 0x64, 0xf4, 0x10, 0x4c, 0x29, 0x91, 0xf4, 0xfc, + 0xf4, 0x7c, 0xb0, 0x0a, 0x7d, 0x10, 0x0b, 0xa2, 0x58, 0x4a, 0x09, 0xbb, 0x89, 0x05, 0x89, 0x45, + 0x89, 0xb9, 0x50, 0x03, 0x95, 0xbc, 0xb9, 0x78, 0xdc, 0x21, 0x36, 0x04, 0x97, 0x24, 0x96, 0xa4, + 0x0a, 0x59, 0x73, 0xb1, 0x41, 0xe4, 0x25, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x64, 0xf5, 0xb0, + 0xda, 0xa8, 0x17, 0x00, 0x56, 0xe4, 0xc4, 0x72, 0xe2, 0x9e, 0x3c, 0x43, 0x10, 0x54, 0x8b, 0x93, + 0xcf, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, + 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa5, 0x67, 0x96, 0x64, + 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x27, 0xe5, 0x25, 0xe9, 0x26, 0x67, 0x24, 0x66, 0xe6, + 0x21, 0x3b, 0xaa, 0x02, 0x99, 0x53, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0xa1, 0x31, + 0x20, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x67, 0x18, 0x5b, 0x19, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/bfs/types/genesis_test.go b/x/greenfield/types/genesis_test.go similarity index 93% rename from x/bfs/types/genesis_test.go rename to x/greenfield/types/genesis_test.go index 7449ae936..e4dfe007b 100644 --- a/x/bfs/types/genesis_test.go +++ b/x/greenfield/types/genesis_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/bnb-chain/bfs/x/bfs/types" + "github.com/bnb-chain/greenfield/x/greenfield/types" "github.com/stretchr/testify/require" ) diff --git a/x/bfs/types/keys.go b/x/greenfield/types/keys.go similarity index 84% rename from x/bfs/types/keys.go rename to x/greenfield/types/keys.go index 67d699c4e..f2180d762 100644 --- a/x/bfs/types/keys.go +++ b/x/greenfield/types/keys.go @@ -2,7 +2,7 @@ package types const ( // ModuleName defines the module name - ModuleName = "bfs" + ModuleName = "greenfield" // StoreKey defines the primary module store key StoreKey = ModuleName @@ -11,7 +11,7 @@ const ( RouterKey = ModuleName // MemStoreKey defines the in-memory store key - MemStoreKey = "mem_bfs" + MemStoreKey = "mem_greenfield" ) func KeyPrefix(p string) []byte { diff --git a/x/bfs/types/params.go b/x/greenfield/types/params.go similarity index 100% rename from x/bfs/types/params.go rename to x/greenfield/types/params.go diff --git a/x/bfs/types/params.pb.go b/x/greenfield/types/params.pb.go similarity index 81% rename from x/bfs/types/params.pb.go rename to x/greenfield/types/params.pb.go index 341f08c78..a3ce6e927 100644 --- a/x/bfs/types/params.pb.go +++ b/x/greenfield/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bfs/params.proto +// source: greenfield/greenfield/params.proto package types @@ -30,7 +30,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_b237e1148fcb0763, []int{0} + return fileDescriptor_6e2d96768394e060, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -60,22 +60,25 @@ func (m *Params) XXX_DiscardUnknown() { var xxx_messageInfo_Params proto.InternalMessageInfo func init() { - proto.RegisterType((*Params)(nil), "bfs.bfs.Params") + proto.RegisterType((*Params)(nil), "greenfield.greenfield.Params") } -func init() { proto.RegisterFile("bfs/bfs/params.proto", fileDescriptor_b237e1148fcb0763) } +func init() { + proto.RegisterFile("greenfield/greenfield/params.proto", fileDescriptor_6e2d96768394e060) +} -var fileDescriptor_b237e1148fcb0763 = []byte{ - // 143 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4a, 0x2b, 0xd6, - 0x07, 0xe1, 0x82, 0xc4, 0xa2, 0xc4, 0xdc, 0x62, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0xf6, - 0xa4, 0xb4, 0x62, 0xbd, 0xa4, 0xb4, 0x62, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, 0xb0, 0x98, 0x3e, - 0x88, 0x05, 0x91, 0x56, 0xe2, 0xe3, 0x62, 0x0b, 0x00, 0x2b, 0xb7, 0x62, 0x99, 0xb1, 0x40, 0x9e, - 0xc1, 0xc9, 0xee, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, - 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x54, 0xd2, 0x33, - 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x93, 0xf2, 0x92, 0x74, 0x93, 0x33, 0x12, - 0x33, 0xf3, 0xc0, 0xf6, 0x55, 0x80, 0xc9, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xb1, - 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0x53, 0x9a, 0xf0, 0x8d, 0x00, 0x00, 0x00, +var fileDescriptor_6e2d96768394e060 = []byte{ + // 148 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0x2f, 0x4a, 0x4d, + 0xcd, 0x4b, 0xcb, 0x4c, 0xcd, 0x49, 0xd1, 0x47, 0x62, 0x16, 0x24, 0x16, 0x25, 0xe6, 0x16, 0xeb, + 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x89, 0x22, 0x24, 0xf4, 0x10, 0x4c, 0x29, 0x91, 0xf4, 0xfc, + 0xf4, 0x7c, 0xb0, 0x0a, 0x7d, 0x10, 0x0b, 0xa2, 0x58, 0x89, 0x8f, 0x8b, 0x2d, 0x00, 0xac, 0xd9, + 0x8a, 0x65, 0xc6, 0x02, 0x79, 0x06, 0x27, 0x9f, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, + 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, + 0x63, 0x88, 0x32, 0x4a, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xca, + 0x4b, 0xd2, 0x4d, 0xce, 0x48, 0xcc, 0xcc, 0x43, 0x76, 0x44, 0x05, 0x32, 0xa7, 0xa4, 0xb2, 0x20, + 0xb5, 0x38, 0x89, 0x0d, 0x6c, 0x89, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x39, 0x14, 0x40, 0x86, + 0xb7, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/bfs/types/query.pb.go b/x/greenfield/types/query.pb.go similarity index 82% rename from x/bfs/types/query.pb.go rename to x/greenfield/types/query.pb.go index 67302ffd7..0ec290817 100644 --- a/x/bfs/types/query.pb.go +++ b/x/greenfield/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bfs/query.proto +// source: greenfield/greenfield/query.proto package types @@ -38,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2d1f07566f298ebd, []int{0} + return fileDescriptor_582bebb26ab007f4, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2d1f07566f298ebd, []int{1} + return fileDescriptor_582bebb26ab007f4, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -114,33 +114,33 @@ func (m *QueryParamsResponse) GetParams() Params { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "bfs.bfs.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "bfs.bfs.QueryParamsResponse") -} - -func init() { proto.RegisterFile("bfs/bfs/query.proto", fileDescriptor_2d1f07566f298ebd) } - -var fileDescriptor_2d1f07566f298ebd = []byte{ - // 294 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0x4a, 0x2b, 0xd6, - 0x07, 0xe1, 0xc2, 0xd2, 0xd4, 0xa2, 0x4a, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0xf6, 0xa4, - 0xb4, 0x62, 0xbd, 0xa4, 0xb4, 0x62, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, 0xb0, 0x98, 0x3e, 0x88, - 0x05, 0x91, 0x96, 0x92, 0x49, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, - 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0x86, 0xca, 0x6a, 0x25, 0xe7, 0x17, - 0xe7, 0xe6, 0x17, 0xeb, 0x27, 0x25, 0x16, 0xa7, 0x42, 0x4c, 0xd5, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, - 0x49, 0x34, 0xd4, 0x2f, 0x48, 0x4c, 0xcf, 0xcc, 0x03, 0x2b, 0x86, 0xaa, 0x15, 0x81, 0xd9, 0x5e, - 0x90, 0x58, 0x94, 0x98, 0x0b, 0x35, 0x41, 0x49, 0x84, 0x4b, 0x28, 0x10, 0xa4, 0x2f, 0x00, 0x2c, - 0x18, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0xa2, 0xe4, 0xc2, 0x25, 0x8c, 0x22, 0x5a, 0x5c, 0x90, - 0x9f, 0x57, 0x9c, 0x2a, 0xa4, 0xcb, 0xc5, 0x06, 0xd1, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, - 0xc4, 0xaf, 0x07, 0x75, 0xbc, 0x1e, 0x44, 0xa1, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, - 0x45, 0x46, 0xa9, 0x5c, 0xac, 0x60, 0x53, 0x84, 0x62, 0xb8, 0xd8, 0x20, 0x0a, 0x84, 0xa4, 0xe1, - 0x3a, 0x30, 0x6d, 0x95, 0x92, 0xc1, 0x2e, 0x09, 0xb1, 0x5c, 0x49, 0xbc, 0xe9, 0xf2, 0x93, 0xc9, - 0x4c, 0x82, 0x42, 0xfc, 0xfa, 0xa8, 0x1e, 0x71, 0xb2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, - 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, - 0x63, 0x39, 0x86, 0x28, 0x95, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, - 0xa4, 0xbc, 0x24, 0xdd, 0xe4, 0x8c, 0xc4, 0xcc, 0x3c, 0xb0, 0xd6, 0x0a, 0x30, 0x59, 0x52, 0x59, - 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x09, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x85, 0x35, - 0xf0, 0x3d, 0x9f, 0x01, 0x00, 0x00, + proto.RegisterType((*QueryParamsRequest)(nil), "greenfield.greenfield.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "greenfield.greenfield.QueryParamsResponse") +} + +func init() { proto.RegisterFile("greenfield/greenfield/query.proto", fileDescriptor_582bebb26ab007f4) } + +var fileDescriptor_582bebb26ab007f4 = []byte{ + // 301 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0x4b, 0x03, 0x31, + 0x18, 0xc5, 0x2f, 0xa2, 0x1d, 0xe2, 0x16, 0x2b, 0x48, 0xb1, 0xa9, 0x1e, 0x08, 0x5a, 0xf0, 0x42, + 0xeb, 0xe8, 0xd6, 0xd9, 0x41, 0x3b, 0xba, 0x25, 0x35, 0xa6, 0x81, 0x36, 0x5f, 0x7a, 0x49, 0xc5, + 0xae, 0x0e, 0xce, 0x05, 0xff, 0xa9, 0x8e, 0x05, 0x17, 0x27, 0x91, 0x3b, 0xff, 0x10, 0xe9, 0xe5, + 0xa0, 0x27, 0x56, 0x71, 0xfb, 0xf2, 0xf2, 0x7b, 0x2f, 0x2f, 0x1f, 0x3e, 0x56, 0xa9, 0x94, 0xe6, + 0x5e, 0xcb, 0xd1, 0x1d, 0xab, 0x8c, 0x93, 0xa9, 0x4c, 0x67, 0x89, 0x4d, 0xc1, 0x03, 0xd9, 0x5f, + 0xeb, 0xc9, 0x7a, 0x6c, 0xd4, 0x15, 0x28, 0x28, 0x08, 0xb6, 0x9a, 0x02, 0xdc, 0x38, 0x54, 0x00, + 0x6a, 0x24, 0x19, 0xb7, 0x9a, 0x71, 0x63, 0xc0, 0x73, 0xaf, 0xc1, 0xb8, 0xf2, 0xb6, 0x3d, 0x00, + 0x37, 0x06, 0xc7, 0x04, 0x77, 0x32, 0xbc, 0xc1, 0x1e, 0x3a, 0x42, 0x7a, 0xde, 0x61, 0x96, 0x2b, + 0x6d, 0x0a, 0xb8, 0x64, 0xe3, 0xcd, 0xcd, 0x2c, 0x4f, 0xf9, 0xb8, 0xcc, 0x8b, 0xeb, 0x98, 0xdc, + 0xac, 0x52, 0xae, 0x0b, 0xb1, 0x2f, 0x27, 0x53, 0xe9, 0x7c, 0xdc, 0xc7, 0x7b, 0xdf, 0x54, 0x67, + 0xc1, 0x38, 0x49, 0x2e, 0x71, 0x2d, 0x98, 0x0f, 0xd0, 0x11, 0x3a, 0xdd, 0xed, 0x36, 0x93, 0x8d, + 0x1f, 0x4b, 0x82, 0xad, 0xb7, 0xbd, 0x78, 0x6f, 0x45, 0xfd, 0xd2, 0xd2, 0x9d, 0x23, 0xbc, 0x53, + 0x84, 0x92, 0x67, 0x84, 0x6b, 0x01, 0x21, 0x67, 0xbf, 0x24, 0xfc, 0xec, 0xd4, 0x68, 0xff, 0x07, + 0x0d, 0x45, 0xe3, 0x93, 0xa7, 0xd7, 0xcf, 0x97, 0xad, 0x16, 0x69, 0xb2, 0xbf, 0x56, 0xd0, 0xbb, + 0x5a, 0x64, 0x14, 0x2d, 0x33, 0x8a, 0x3e, 0x32, 0x8a, 0xe6, 0x39, 0x8d, 0x96, 0x39, 0x8d, 0xde, + 0x72, 0x1a, 0xdd, 0x76, 0x95, 0xf6, 0xc3, 0xa9, 0x48, 0x06, 0x30, 0x66, 0xc2, 0x88, 0xf3, 0xc1, + 0x90, 0x6b, 0x53, 0x4d, 0x78, 0xac, 0x1e, 0xfc, 0xcc, 0x4a, 0x27, 0x6a, 0xc5, 0x46, 0x2f, 0xbe, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x37, 0xe0, 0x87, 0x6c, 0x11, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -169,7 +169,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/bfs.bfs.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/greenfield.greenfield.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -204,7 +204,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/bfs.bfs.Query/Params", + FullMethod: "/greenfield.greenfield.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -213,7 +213,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "bfs.bfs.Query", + ServiceName: "greenfield.greenfield.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -222,7 +222,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "bfs/bfs/query.proto", + Metadata: "greenfield/greenfield/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/bfs/types/query.pb.gw.go b/x/greenfield/types/query.pb.gw.go similarity index 97% rename from x/bfs/types/query.pb.gw.go rename to x/greenfield/types/query.pb.gw.go index ad9699e01..98aada5f9 100644 --- a/x/bfs/types/query.pb.gw.go +++ b/x/greenfield/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: bfs/bfs/query.proto +// source: greenfield/greenfield/query.proto /* Package types is a reverse proxy. @@ -145,7 +145,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 0, 2, 1}, []string{"bfs", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 0, 2, 1}, []string{"greenfield", "params"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( diff --git a/x/bfs/types/tx.pb.go b/x/greenfield/types/tx.pb.go similarity index 64% rename from x/bfs/types/tx.pb.go rename to x/greenfield/types/tx.pb.go index 6704f03f7..0f60ef81c 100644 --- a/x/bfs/types/tx.pb.go +++ b/x/greenfield/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: bfs/bfs/tx.proto +// source: greenfield/greenfield/tx.proto package types @@ -23,18 +23,18 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -func init() { proto.RegisterFile("bfs/bfs/tx.proto", fileDescriptor_96bb031c6edae084) } +func init() { proto.RegisterFile("greenfield/greenfield/tx.proto", fileDescriptor_c88d5bd7e914fd2c) } -var fileDescriptor_96bb031c6edae084 = []byte{ - // 119 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0x4a, 0x2b, 0xd6, - 0x07, 0xe1, 0x92, 0x0a, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0xf6, 0xa4, 0xb4, 0x62, 0xbd, - 0xa4, 0xb4, 0x62, 0x23, 0x56, 0x2e, 0x66, 0xdf, 0xe2, 0x74, 0x27, 0xbb, 0x13, 0x8f, 0xe4, 0x18, - 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, - 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, - 0xcf, 0xd5, 0x4f, 0xca, 0x4b, 0xd2, 0x4d, 0xce, 0x48, 0xcc, 0xcc, 0x03, 0x1b, 0x56, 0x01, 0x31, - 0xb2, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x6c, 0xac, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xa4, - 0x2c, 0x90, 0x55, 0x6a, 0x00, 0x00, 0x00, +var fileDescriptor_c88d5bd7e914fd2c = []byte{ + // 125 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0x2f, 0x4a, 0x4d, + 0xcd, 0x4b, 0xcb, 0x4c, 0xcd, 0x49, 0xd1, 0x47, 0x62, 0x96, 0x54, 0xe8, 0x15, 0x14, 0xe5, 0x97, + 0xe4, 0x0b, 0x89, 0x22, 0x04, 0xf5, 0x10, 0x4c, 0x23, 0x56, 0x2e, 0x66, 0xdf, 0xe2, 0x74, 0x27, + 0x9f, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, + 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x32, 0x4a, 0xcf, 0x2c, 0xc9, + 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xca, 0x4b, 0xd2, 0x4d, 0xce, 0x48, 0xcc, 0xcc, + 0x43, 0xb6, 0xa1, 0x02, 0xc5, 0xba, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x95, 0xc6, 0x80, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x61, 0xf4, 0x25, 0xf2, 0x94, 0x00, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -72,9 +72,9 @@ func RegisterMsgServer(s grpc1.Server, srv MsgServer) { } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "bfs.bfs.Msg", + ServiceName: "greenfield.greenfield.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, - Metadata: "bfs/bfs/tx.proto", + Metadata: "greenfield/greenfield/tx.proto", } diff --git a/x/bfs/types/types.go b/x/greenfield/types/types.go similarity index 100% rename from x/bfs/types/types.go rename to x/greenfield/types/types.go