syntax = "proto3";

package elys.assetprofile;

import "elys/assetprofile/entry.proto";
import "cosmos/msg/v1/msg.proto";
import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/elys-network/elys/x/assetprofile/types";

// Msg defines the Msg service.
service Msg {
  option (cosmos.msg.v1.service) = true;

  rpc UpdateEntry(MsgUpdateEntry) returns (MsgUpdateEntryResponse);
  rpc DeleteEntry(MsgDeleteEntry) returns (MsgDeleteEntryResponse);
  rpc AddEntry(MsgAddEntry) returns (MsgAddEntryResponse);
}

message MsgUpdateEntry {
  option (cosmos.msg.v1.signer) = "authority";
  option (amino.name) = "assetprofile/MsgUpdateEntry";

  string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
  string base_denom = 2;
  uint64 decimals = 3;
  string denom = 4;
  string path = 5;
  string ibc_channel_id = 6;
  string ibc_counterparty_channel_id = 7;
  string display_name = 8;
  string display_symbol = 9;
  string network = 10;
  string address = 11;
  string external_symbol = 12;
  string transfer_limit = 13;
  repeated string permissions = 14;
  string unit_denom = 15;
  string ibc_counterparty_denom = 16;
  string ibc_counterparty_chain_id = 17;
  bool commit_enabled = 18;
  bool withdraw_enabled = 19;
}

message MsgUpdateEntryResponse {}

message MsgDeleteEntry {
  option (cosmos.msg.v1.signer) = "authority";
  option (amino.name) = "assetprofile/MsgDeleteEntry";

  string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
  string base_denom = 2;
}

message MsgDeleteEntryResponse {}

message MsgAddEntry {
  option (cosmos.msg.v1.signer) = "creator";
  option (amino.name) = "assetprofile/MsgAddEntry";

  string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
  string baseDenom = 2;
  uint64 decimals = 3;
  string denom = 4;
  string path = 5;
  string ibcChannelId = 6;
  string ibcCounterpartyChannelId = 7;
  string displayName = 8;
  string displaySymbol = 9;
  string network = 10;
  string address = 11;
  string externalSymbol = 12;
  string transferLimit = 13;
  repeated string permissions = 14;
  string unitDenom = 15;
  string ibcCounterpartyDenom = 16;
  string ibcCounterpartyChainId = 17;
  bool commitEnabled = 18;
  bool withdrawEnabled = 19;
}

message MsgAddEntryResponse {}
