From 147dd1985049a55e477fab0973547a8a234f1d66 Mon Sep 17 00:00:00 2001 From: alexgao001 <118710506+alexgao001@users.noreply.github.com> Date: Sun, 29 Jan 2023 17:48:30 +0800 Subject: [PATCH 1/2] feat: rebrand from inscription to greenfield (#91) --- CHANGELOG.md | 36 +++++++++++++++---------------- client/flags/flags.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- simapp/helpers/test_helpers.go | 2 +- simapp/test_helpers.go | 2 +- x/auth/tx/eip712.go | 4 ++-- x/auth/tx/eip712_test.go | 4 ++-- x/upgrade/types/upgrade_config.go | 2 +- 9 files changed, 29 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d79b0d84d..f936ebad04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,9 @@ This release includes features and bug fixes, mainly: 2. Updated EIP712 related functions; 3. Enabled public delegation upgrade -* [\#42](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/42) feat: implement cross chain and oracle modules -* [\#78](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/78) fix: update EIP712 related functions (#78) -* [\#87](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/87) feat: introduce enable public delegation upgrade +* [\#42](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/42) feat: implement cross chain and oracle modules +* [\#78](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/78) fix: update EIP712 related functions (#78) +* [\#87](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/87) feat: introduce enable public delegation upgrade ## v0.0.3 @@ -19,29 +19,29 @@ This release includes features and bug fixes, mainly: 4. Disable create validator operation; 5. EIP712 bug fix; -* [\#72](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/72) feat: add gashub module -* [\#79](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/79) fix: disable create validator operation -* [\#80](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/80) fix: EIP712 issue with uint8[] type -* [\#81](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/81) feat: update tendermint to enable validator updates and votepool -* [\#82](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/82) feat: custom upgrade module -* [\#83](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/83) ci: fix release flow +* [\#72](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/72) feat: add gashub module +* [\#79](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/79) fix: disable create validator operation +* [\#80](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/80) fix: EIP712 issue with uint8[] type +* [\#81](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/81) feat: update tendermint to enable validator updates and votepool +* [\#82](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/82) feat: custom upgrade module +* [\#83](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/83) ci: fix release flow ## v0.0.2 -This is the first release of inscription-cosmos-SDK. +This is the first release of gnfd-cosmos-SDK. It includes two key features: 1. EIP721 signing schema support 2. New staking mechanism -* [\#38](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/38) ci: fix failed ci jobs -* [\#47](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/47) docs: change pull request template -* [\#36](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/36) feat: add support for eth address standard -* [\#68](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/68) fix: errors with EIP712 signature -* [\#71](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/71) test: fix the unstable UT bugs and remove useless testcase -* [\#70](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/70) fix: errors with EIP712 signature -* [\#46](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/46) feat: customize staking module for inscription -* [\#73](https://github.com/bnb-chain/inscription-cosmos-sdk/pull/73) feat: add bls key types into keyring management tool +* [\#38](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/38) ci: fix failed ci jobs +* [\#47](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/47) docs: change pull request template +* [\#36](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/36) feat: add support for eth address standard +* [\#68](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/68) fix: errors with EIP712 signature +* [\#71](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/71) test: fix the unstable UT bugs and remove useless testcase +* [\#70](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/70) fix: errors with EIP712 signature +* [\#46](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/46) feat: customize staking module for gnfd +* [\#73](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/73) feat: add bls key types into keyring management tool ## v0.0.1 Fork from cosmos-sdk 0.46.4 diff --git a/client/flags/flags.go b/client/flags/flags.go index 47144d8995..16bd804bc9 100644 --- a/client/flags/flags.go +++ b/client/flags/flags.go @@ -121,7 +121,7 @@ func AddTxFlagsToCmd(cmd *cobra.Command) { cmd.Flags().Bool(FlagOffline, false, "Offline mode (does not allow any online functionality)") cmd.Flags().BoolP(FlagSkipConfirmation, "y", false, "Skip tx broadcasting prompt confirmation") cmd.Flags().String(FlagKeyringBackend, DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test|memory)") - cmd.Flags().String(FlagSignMode, "", "We disabled this flag in inscription") + cmd.Flags().String(FlagSignMode, "", "We disabled this flag in greenfield") cmd.Flags().Uint64(FlagTimeoutHeight, 0, "Set a block timeout height to prevent the tx from being committed past a certain height") cmd.Flags().String(FlagFeePayer, "", "Fee payer pays fees for the transaction instead of deducting from the signer") cmd.Flags().String(FlagFeeGranter, "", "Fee granter grants fees for the transaction") diff --git a/go.mod b/go.mod index 56d8c55892..9b217ccf6c 100644 --- a/go.mod +++ b/go.mod @@ -170,7 +170,7 @@ replace ( github.com/jhump/protoreflect => github.com/jhump/protoreflect v1.9.0 - 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 ) retract v0.46.2 diff --git a/go.sum b/go.sum index 83db7dcd24..1df4e45e7e 100644 --- a/go.sum +++ b/go.sum @@ -156,8 +156,8 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= -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-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/simapp/helpers/test_helpers.go b/simapp/helpers/test_helpers.go index 97d3c57dcf..40d292ede0 100644 --- a/simapp/helpers/test_helpers.go +++ b/simapp/helpers/test_helpers.go @@ -14,7 +14,7 @@ import ( // SimAppChainID hardcoded chainID for simulation const ( DefaultGenTxGas = 10000000 - SimAppChainID = "inscription_9000-1" + SimAppChainID = "greenfield_9000-1" ) // GenSignedMockTx generates a signed mock transaction. diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index 9a7c9e6bcf..bb5a092fd3 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -57,7 +57,7 @@ var DefaultConsensusParams = &abci.ConsensusParams{ }, } -const DefaultChainId = "inscription_9000-1" +const DefaultChainId = "greenfield_9000-1" // SetupOptions defines arguments that are passed into `Simapp` constructor. type SetupOptions struct { diff --git a/x/auth/tx/eip712.go b/x/auth/tx/eip712.go index 5b9ec16d25..6ec7f524ee 100644 --- a/x/auth/tx/eip712.go +++ b/x/auth/tx/eip712.go @@ -37,9 +37,9 @@ var MsgCodec = jsonpb.Marshaler{ } var domain = apitypes.TypedDataDomain{ - Name: "Inscription Tx", + Name: "Greenfield Tx", Version: "1.0.0", - VerifyingContract: "inscription", + VerifyingContract: "greenfield", Salt: "0", } diff --git a/x/auth/tx/eip712_test.go b/x/auth/tx/eip712_test.go index 89fdf94036..94538f70c0 100644 --- a/x/auth/tx/eip712_test.go +++ b/x/auth/tx/eip712_test.go @@ -81,7 +81,7 @@ func TestEIP712Handler(t *testing.T) { require.EqualError(t, err, fmt.Sprintf("failed to parse chainID: %s", signingData.ChainID)) t.Log("verify GetSignBytes correct") - signingData.ChainID = "inscription_9000-1" + signingData.ChainID = "greenfield_9000-1" signBytes, err := modeHandler.GetSignBytes(signingtypes.SignMode_SIGN_MODE_EIP_712, signingData, txBuilder.GetTx()) require.NoError(t, err) require.NotNil(t, signBytes) @@ -152,7 +152,7 @@ func TestMoreMsgs(t *testing.T) { txConfig := NewTxConfig(marshaler, []signingtypes.SignMode{signingtypes.SignMode_SIGN_MODE_EIP_712}) txBuilder := txConfig.NewTxBuilder() - chainID := "inscription_9000-1" + chainID := "greenfield_9000-1" testMemo := "some test memo" accNum, accSeq := uint64(1), uint64(2) diff --git a/x/upgrade/types/upgrade_config.go b/x/upgrade/types/upgrade_config.go index ddbf16af45..c316df92cc 100644 --- a/x/upgrade/types/upgrade_config.go +++ b/x/upgrade/types/upgrade_config.go @@ -14,7 +14,7 @@ const ( ) var ( - MainnetChainID = "inscription_9000-1" + MainnetChainID = "greenfield_9000-1" MainnetConfig = NewUpgradeConfig() // .SetPlan(&Plan{ // Name: BEP111, From 03c471305aa8ad469a8066c67aaccac663aec5ef Mon Sep 17 00:00:00 2001 From: alexgao001 <118710506+alexgao001@users.noreply.github.com> Date: Sun, 29 Jan 2023 18:55:11 +0800 Subject: [PATCH 2/2] docs: add changelog (#92) --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f936ebad04..75edb45b4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v0.0.5 +This release is for rebranding from inscription to greenfield, renaming is applied to all packages, files. + +* [\#91](https://github.com/bnb-chain/gnfd-cosmos-sdk/pull/91) feat: rebrand from inscription to greenfield + ## v0.0.4 This release includes features and bug fixes, mainly: 1. Introduced `crosschain` and `oracle` module;