File tree Expand file tree Collapse file tree 7 files changed +26
-18
lines changed Expand file tree Collapse file tree 7 files changed +26
-18
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ This changelog was created using the `clu` binary
8
8
9
9
### Improvements
10
10
11
+ - (cli) [ #54 ] ( https://github.com/evmos/os/pull/54 ) Align debug CLI commands with Cosmos SDK plus other minor clean up.
11
12
- (cli) [ #53 ] ( https://github.com/evmos/os/pull/53 ) Enable specifying default key type for adding keys.
12
13
- (ante) [ #52 ] ( https://github.com/evmos/os/pull/52 ) Refactor ante handlers to be easier to use in partner chains.
13
14
- (all) [ #48 ] ( https://github.com/evmos/os/pull/48 ) Move latest changes from evmOS main (f943af3b incl. SDK v50).
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import (
19
19
"github.com/ethereum/go-ethereum/common"
20
20
21
21
"github.com/cosmos/cosmos-sdk/client"
22
+ cosmosclientdebug "github.com/cosmos/cosmos-sdk/client/debug"
22
23
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
23
24
sdk "github.com/cosmos/cosmos-sdk/types"
24
25
"github.com/cosmos/cosmos-sdk/version"
@@ -35,10 +36,18 @@ func Cmd() *cobra.Command {
35
36
RunE : client .ValidateCmd ,
36
37
}
37
38
38
- cmd .AddCommand (PubkeyCmd ())
39
- cmd .AddCommand (AddrCmd ())
40
- cmd .AddCommand (RawBytesCmd ())
41
- cmd .AddCommand (LegacyEIP712Cmd ())
39
+ cmd .AddCommand (
40
+ // default Cosmos SDK debug commands
41
+ cosmosclientdebug .CodecCmd (),
42
+ cosmosclientdebug .PrefixesCmd (),
43
+ cosmosclientdebug .PubkeyRawCmd (), // TODO: support eth_secp256k1 pubkeys for this one too?
44
+
45
+ // evmOS adjusted debug commands
46
+ PubkeyCmd (),
47
+ AddrCmd (),
48
+ RawBytesCmd (),
49
+ LegacyEIP712Cmd (),
50
+ )
42
51
43
52
return cmd
44
53
}
Original file line number Diff line number Diff line change @@ -22,14 +22,12 @@ import (
22
22
//
23
23
// The defaultToEthKeys boolean indicates whether to use
24
24
// Ethereum compatible keys by default or stick with the Cosmos SDK default.
25
- //
26
- // TODO: (on follow up PR) adjust Tendermint mentions to CometBFT
27
25
func KeyCommands (defaultNodeHome string , defaultToEthKeys bool ) * cobra.Command {
28
26
cmd := & cobra.Command {
29
27
Use : "keys" ,
30
28
Short : "Manage your application's keys" ,
31
29
Long : `Keyring management commands. These keys may be in any format supported by the
32
- Tendermint crypto library and can be used by light-clients, full nodes, or any other application
30
+ CometBFT crypto library and can be used by light-clients, full nodes, or any other application
33
31
that needs to sign with a private key.
34
32
35
33
The keyring supports the following backends:
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ func AddCommands(
30
30
appExport types.AppExporter ,
31
31
addStartFlags types.ModuleInitFlags ,
32
32
) {
33
- // TODO: this needs to be updated to use the comet subcommands and alias it to tendermint
34
- tendermintCmd := & cobra. Command {
35
- Use : "tendermint" ,
36
- Short : "Tendermint subcommands" ,
33
+ cometbftCmd := & cobra. Command {
34
+ Use : "comet" ,
35
+ Aliases : [] string { "cometbft" , "tendermint" } ,
36
+ Short : "CometBFT subcommands" ,
37
37
}
38
38
39
- tendermintCmd .AddCommand (
39
+ cometbftCmd .AddCommand (
40
40
sdkserver .ShowNodeIDCmd (),
41
41
sdkserver .ShowValidatorCmd (),
42
42
sdkserver .ShowAddressCmd (),
@@ -51,7 +51,7 @@ func AddCommands(
51
51
52
52
rootCmd .AddCommand (
53
53
startCmd ,
54
- tendermintCmd ,
54
+ cometbftCmd ,
55
55
sdkserver .ExportCmd (appExport , opts .DefaultNodeHome ),
56
56
version .NewVersionCommand (),
57
57
sdkserver .NewRollbackCmd (opts .AppCreator , opts .DefaultNodeHome ),
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ func NewRawTxCmd() *cobra.Command {
101
101
return err
102
102
}
103
103
104
- // broadcast to a Tendermint node
104
+ // broadcast to a CometBFT node
105
105
res , err := clientCtx .BroadcastTx (txBytes )
106
106
if err != nil {
107
107
return err
Original file line number Diff line number Diff line change 26
26
27
27
const (
28
28
// Amino names
29
- updateParamsName = "os/MsgUpdateParams"
29
+ updateParamsName = "os/evm/ MsgUpdateParams"
30
30
)
31
31
32
32
// NOTE: This is required for the GetSignBytes function
@@ -47,7 +47,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
47
47
& MsgUpdateParams {},
48
48
)
49
49
registry .RegisterInterface (
50
- "ethermint .evm.v1.TxData" ,
50
+ "os .evm.v1.TxData" ,
51
51
(* TxData )(nil ),
52
52
& DynamicFeeTx {},
53
53
& AccessListTx {},
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ func (log *Log) Validate() error {
69
69
return nil
70
70
}
71
71
72
- // ToEthereum returns the Ethereum type Log from a Ethermint proto compatible Log.
72
+ // ToEthereum returns the Ethereum type Log from an evmOS proto compatible Log.
73
73
func (log * Log ) ToEthereum () * ethtypes.Log {
74
74
topics := make ([]common.Hash , len (log .Topics ))
75
75
for i , topic := range log .Topics {
@@ -98,7 +98,7 @@ func NewLogsFromEth(ethlogs []*ethtypes.Log) []*Log {
98
98
return logs
99
99
}
100
100
101
- // LogsToEthereum casts the Ethermint Logs to a slice of Ethereum Logs.
101
+ // LogsToEthereum casts the evmOS logs to a slice of Ethereum Logs.
102
102
func LogsToEthereum (logs []* Log ) []* ethtypes.Log {
103
103
var ethLogs []* ethtypes.Log //nolint: prealloc
104
104
for i := range logs {
You can’t perform that action at this time.
0 commit comments