syntax = "proto3";

package exchain.nebula.v1;

import "google/protobuf/descriptor.proto";
import "nebula/ext/options.proto";

option csharp_namespace = "ExChain.Nebula.V1";
option go_package = "github.com/exchain/go-exchain/exchain/protocol/nebula/v1";
option java_multiple_files = true;
option java_outer_classname = "AccountProto";
option java_package = "org.exchain.nebula.v1";
option php_namespace = "ExChain\\Nebula\\v1";

// define account message.
message Account {
  bytes signer_proxy = 1;
  WalletList wallets = 2;
}

message WalletList {
  repeated Wallet wallets = 1;
}

enum WalletType {
  WALLET_SPOT = 0;
  WALLET_PERP = 1;
}

message Wallet {
  string coin = 1;
  WalletType type = 2;
  bytes balance = 3;
  bytes frozen_balance = 4;
}
