Skip to content

Commit

Permalink
feat: rebrand from inscription to greenfield (bnb-chain#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 authored Jan 30, 2023
1 parent a90ed11 commit 1710c8d
Show file tree
Hide file tree
Showing 89 changed files with 471 additions and 459 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
39 changes: 22 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand All @@ -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
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"]
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand All @@ -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
Expand Down
20 changes: 10 additions & 10 deletions app/ante/ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand All @@ -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,
},
{
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand Down
10 changes: 5 additions & 5 deletions app/ante/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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))

Expand Down Expand Up @@ -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,
},
Expand Down
Loading

0 comments on commit 1710c8d

Please sign in to comment.