Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rebrand from inscription to greenfield #91

Merged
merged 5 commits into from
Jan 29, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion simapp/helpers/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions x/auth/tx/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}

Expand Down
4 changes: 2 additions & 2 deletions x/auth/tx/eip712_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion x/upgrade/types/upgrade_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
)

var (
MainnetChainID = "inscription_9000-1"
MainnetChainID = "greenfield_9000-1"
MainnetConfig = NewUpgradeConfig()
// .SetPlan(&Plan{
// Name: BEP111,
Expand Down