11syntax = "proto3" ;
22package ethermint.evm.v1 ;
33
4+ import "amino/amino.proto" ;
45import "cosmos/msg/v1/msg.proto" ;
56import "cosmos_proto/cosmos.proto" ;
67import "gogoproto/gogo.proto" ;
@@ -9,6 +10,7 @@ import "google/protobuf/any.proto";
910import "ethermint/evm/v1/access_tuple.proto" ;
1011import "ethermint/evm/v1/log.proto" ;
1112import "ethermint/evm/v1/params.proto" ;
13+ import "ethermint/evm/v1/preinstall.proto" ;
1214import "ethermint/evm/v1/set_code_authorization.proto" ;
1315
1416option go_package = "github.com/evmos/ethermint/x/evm/types" ;
@@ -23,6 +25,10 @@ service Msg {
2325 // UpdateParams defined a governance operation for updating the x/evm module parameters.
2426 // The authority is hard-coded to the Cosmos SDK x/gov module account
2527 rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse );
28+
29+ // UpdateParams defined a governance operation for updating the x/evm module parameters.
30+ // The authority is hard-coded to the Cosmos SDK x/gov module account
31+ rpc RegisterPreinstalls (MsgRegisterPreinstalls ) returns (MsgRegisterPreinstallsResponse );
2632}
2733
2834// MsgEthereumTx encapsulates an Ethereum transaction as an SDK message.
@@ -225,3 +231,19 @@ message MsgUpdateParams {
225231// MsgUpdateParamsResponse defines the response structure for executing a
226232// MsgUpdateParams message.
227233message MsgUpdateParamsResponse {}
234+
235+ // MsgRegisterPreinstalls defines a Msg for creating preinstalls in evm state.
236+ message MsgRegisterPreinstalls {
237+ option (cosmos.msg.v1.signer ) = "authority" ;
238+
239+ // authority is the address of the governance account.
240+ string authority = 1 [ (cosmos_proto.scalar ) = "cosmos.AddressString" ];
241+
242+ // preinstalls defines the preinstalls to create.
243+ repeated Preinstall preinstalls = 2
244+ [ (gogoproto.nullable ) = false , (amino.dont_omitempty ) = true ];
245+ }
246+
247+ // MsgRegisterPreinstallsResponse defines the response structure for executing a
248+ // MsgRegisterPreinstalls message.
249+ message MsgRegisterPreinstallsResponse {}
0 commit comments