Add msg update contract label (#1640)
* Add msg update contract label * fix tests
This commit is contained in:
@@ -29,7 +29,7 @@ service Msg {
|
||||
rpc ExecuteContract(MsgExecuteContract) returns (MsgExecuteContractResponse);
|
||||
// Migrate runs a code upgrade/ downgrade for a smart contract
|
||||
rpc MigrateContract(MsgMigrateContract) returns (MsgMigrateContractResponse);
|
||||
// UpdateAdmin sets a new admin for a smart contract
|
||||
// UpdateAdmin sets a new admin for a smart contract
|
||||
rpc UpdateAdmin(MsgUpdateAdmin) returns (MsgUpdateAdminResponse);
|
||||
// ClearAdmin removes any admin stored for a smart contract
|
||||
rpc ClearAdmin(MsgClearAdmin) returns (MsgClearAdminResponse);
|
||||
@@ -78,6 +78,11 @@ service Msg {
|
||||
// Since: 0.42
|
||||
rpc StoreAndMigrateContract(MsgStoreAndMigrateContract)
|
||||
returns (MsgStoreAndMigrateContractResponse);
|
||||
// UpdateContractLabel sets a new label for a smart contract
|
||||
//
|
||||
// Since: 0.43
|
||||
rpc UpdateContractLabel(MsgUpdateContractLabel)
|
||||
returns (MsgUpdateContractLabelResponse);
|
||||
}
|
||||
|
||||
// MsgStoreCode submit Wasm code to the system
|
||||
@@ -472,4 +477,20 @@ message MsgStoreAndMigrateContractResponse {
|
||||
bytes checksum = 2;
|
||||
// Data contains bytes to returned from the contract
|
||||
bytes data = 3;
|
||||
}
|
||||
}
|
||||
|
||||
// MsgUpdateContractLabel sets a new label for a smart contract
|
||||
message MsgUpdateContractLabel {
|
||||
option (amino.name) = "wasm/MsgUpdateContractLabel";
|
||||
option (cosmos.msg.v1.signer) = "sender";
|
||||
|
||||
// Sender is the that actor that signed the messages
|
||||
string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
|
||||
// NewLabel string to be set
|
||||
string new_label = 2;
|
||||
// Contract is the address of the smart contract
|
||||
string contract = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
|
||||
}
|
||||
|
||||
// MsgUpdateContractLabelResponse returns empty data
|
||||
message MsgUpdateContractLabelResponse {}
|
||||
Reference in New Issue
Block a user