common.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.20.0
  5. // source: common.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. anypb "google.golang.org/protobuf/types/known/anypb"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type OrderType int32
  21. const (
  22. // 升序
  23. OrderType_ASC OrderType = 0
  24. // 降序
  25. OrderType_DESC OrderType = 1
  26. )
  27. // Enum value maps for OrderType.
  28. var (
  29. OrderType_name = map[int32]string{
  30. 0: "ASC",
  31. 1: "DESC",
  32. }
  33. OrderType_value = map[string]int32{
  34. "ASC": 0,
  35. "DESC": 1,
  36. }
  37. )
  38. func (x OrderType) Enum() *OrderType {
  39. p := new(OrderType)
  40. *p = x
  41. return p
  42. }
  43. func (x OrderType) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (OrderType) Descriptor() protoreflect.EnumDescriptor {
  47. return file_common_proto_enumTypes[0].Descriptor()
  48. }
  49. func (OrderType) Type() protoreflect.EnumType {
  50. return &file_common_proto_enumTypes[0]
  51. }
  52. func (x OrderType) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use OrderType.Descriptor instead.
  56. func (OrderType) EnumDescriptor() ([]byte, []int) {
  57. return file_common_proto_rawDescGZIP(), []int{0}
  58. }
  59. // 用户状态
  60. type Status int32
  61. const (
  62. Status_DISABLED Status = 0
  63. Status_ENABLED Status = 1
  64. )
  65. // Enum value maps for Status.
  66. var (
  67. Status_name = map[int32]string{
  68. 0: "DISABLED",
  69. 1: "ENABLED",
  70. }
  71. Status_value = map[string]int32{
  72. "DISABLED": 0,
  73. "ENABLED": 1,
  74. }
  75. )
  76. func (x Status) Enum() *Status {
  77. p := new(Status)
  78. *p = x
  79. return p
  80. }
  81. func (x Status) String() string {
  82. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  83. }
  84. func (Status) Descriptor() protoreflect.EnumDescriptor {
  85. return file_common_proto_enumTypes[1].Descriptor()
  86. }
  87. func (Status) Type() protoreflect.EnumType {
  88. return &file_common_proto_enumTypes[1]
  89. }
  90. func (x Status) Number() protoreflect.EnumNumber {
  91. return protoreflect.EnumNumber(x)
  92. }
  93. // Deprecated: Use Status.Descriptor instead.
  94. func (Status) EnumDescriptor() ([]byte, []int) {
  95. return file_common_proto_rawDescGZIP(), []int{1}
  96. }
  97. type Request struct {
  98. state protoimpl.MessageState
  99. sizeCache protoimpl.SizeCache
  100. unknownFields protoimpl.UnknownFields
  101. // 请求信息
  102. Body *anypb.Any `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
  103. // 认证信息
  104. AuthInfo *AuthInfo `protobuf:"bytes,2,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"`
  105. // 签名结果
  106. Signatures []string `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"`
  107. }
  108. func (x *Request) Reset() {
  109. *x = Request{}
  110. if protoimpl.UnsafeEnabled {
  111. mi := &file_common_proto_msgTypes[0]
  112. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  113. ms.StoreMessageInfo(mi)
  114. }
  115. }
  116. func (x *Request) String() string {
  117. return protoimpl.X.MessageStringOf(x)
  118. }
  119. func (*Request) ProtoMessage() {}
  120. func (x *Request) ProtoReflect() protoreflect.Message {
  121. mi := &file_common_proto_msgTypes[0]
  122. if protoimpl.UnsafeEnabled && x != nil {
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. if ms.LoadMessageInfo() == nil {
  125. ms.StoreMessageInfo(mi)
  126. }
  127. return ms
  128. }
  129. return mi.MessageOf(x)
  130. }
  131. // Deprecated: Use Request.ProtoReflect.Descriptor instead.
  132. func (*Request) Descriptor() ([]byte, []int) {
  133. return file_common_proto_rawDescGZIP(), []int{0}
  134. }
  135. func (x *Request) GetBody() *anypb.Any {
  136. if x != nil {
  137. return x.Body
  138. }
  139. return nil
  140. }
  141. func (x *Request) GetAuthInfo() *AuthInfo {
  142. if x != nil {
  143. return x.AuthInfo
  144. }
  145. return nil
  146. }
  147. func (x *Request) GetSignatures() []string {
  148. if x != nil {
  149. return x.Signatures
  150. }
  151. return nil
  152. }
  153. // 交易体
  154. type TxBody struct {
  155. state protoimpl.MessageState
  156. sizeCache protoimpl.SizeCache
  157. unknownFields protoimpl.UnknownFields
  158. Messages []*anypb.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // 具体交易类型
  159. }
  160. func (x *TxBody) Reset() {
  161. *x = TxBody{}
  162. if protoimpl.UnsafeEnabled {
  163. mi := &file_common_proto_msgTypes[1]
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. ms.StoreMessageInfo(mi)
  166. }
  167. }
  168. func (x *TxBody) String() string {
  169. return protoimpl.X.MessageStringOf(x)
  170. }
  171. func (*TxBody) ProtoMessage() {}
  172. func (x *TxBody) ProtoReflect() protoreflect.Message {
  173. mi := &file_common_proto_msgTypes[1]
  174. if protoimpl.UnsafeEnabled && x != nil {
  175. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  176. if ms.LoadMessageInfo() == nil {
  177. ms.StoreMessageInfo(mi)
  178. }
  179. return ms
  180. }
  181. return mi.MessageOf(x)
  182. }
  183. // Deprecated: Use TxBody.ProtoReflect.Descriptor instead.
  184. func (*TxBody) Descriptor() ([]byte, []int) {
  185. return file_common_proto_rawDescGZIP(), []int{1}
  186. }
  187. func (x *TxBody) GetMessages() []*anypb.Any {
  188. if x != nil {
  189. return x.Messages
  190. }
  191. return nil
  192. }
  193. // 认证信息
  194. type AuthInfo struct {
  195. state protoimpl.MessageState
  196. sizeCache protoimpl.SizeCache
  197. unknownFields protoimpl.UnknownFields
  198. Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
  199. Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // 用户交易唯一标识
  200. ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // 子链 ID
  201. SignerInfos []*SignerInfos `protobuf:"bytes,4,rep,name=signer_infos,json=signerInfos,proto3" json:"signer_infos,omitempty"` // 签名者信息
  202. }
  203. func (x *AuthInfo) Reset() {
  204. *x = AuthInfo{}
  205. if protoimpl.UnsafeEnabled {
  206. mi := &file_common_proto_msgTypes[2]
  207. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  208. ms.StoreMessageInfo(mi)
  209. }
  210. }
  211. func (x *AuthInfo) String() string {
  212. return protoimpl.X.MessageStringOf(x)
  213. }
  214. func (*AuthInfo) ProtoMessage() {}
  215. func (x *AuthInfo) ProtoReflect() protoreflect.Message {
  216. mi := &file_common_proto_msgTypes[2]
  217. if protoimpl.UnsafeEnabled && x != nil {
  218. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  219. if ms.LoadMessageInfo() == nil {
  220. ms.StoreMessageInfo(mi)
  221. }
  222. return ms
  223. }
  224. return mi.MessageOf(x)
  225. }
  226. // Deprecated: Use AuthInfo.ProtoReflect.Descriptor instead.
  227. func (*AuthInfo) Descriptor() ([]byte, []int) {
  228. return file_common_proto_rawDescGZIP(), []int{2}
  229. }
  230. func (x *AuthInfo) GetMemo() string {
  231. if x != nil {
  232. return x.Memo
  233. }
  234. return ""
  235. }
  236. func (x *AuthInfo) GetUuid() string {
  237. if x != nil {
  238. return x.Uuid
  239. }
  240. return ""
  241. }
  242. func (x *AuthInfo) GetChainId() string {
  243. if x != nil {
  244. return x.ChainId
  245. }
  246. return ""
  247. }
  248. func (x *AuthInfo) GetSignerInfos() []*SignerInfos {
  249. if x != nil {
  250. return x.SignerInfos
  251. }
  252. return nil
  253. }
  254. type SignerInfos struct {
  255. state protoimpl.MessageState
  256. sizeCache protoimpl.SizeCache
  257. unknownFields protoimpl.UnknownFields
  258. // 签名者公钥
  259. PublicKey *PublicKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
  260. // 用户交易唯一标识
  261. Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
  262. // 指定子链
  263. ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
  264. }
  265. func (x *SignerInfos) Reset() {
  266. *x = SignerInfos{}
  267. if protoimpl.UnsafeEnabled {
  268. mi := &file_common_proto_msgTypes[3]
  269. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  270. ms.StoreMessageInfo(mi)
  271. }
  272. }
  273. func (x *SignerInfos) String() string {
  274. return protoimpl.X.MessageStringOf(x)
  275. }
  276. func (*SignerInfos) ProtoMessage() {}
  277. func (x *SignerInfos) ProtoReflect() protoreflect.Message {
  278. mi := &file_common_proto_msgTypes[3]
  279. if protoimpl.UnsafeEnabled && x != nil {
  280. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  281. if ms.LoadMessageInfo() == nil {
  282. ms.StoreMessageInfo(mi)
  283. }
  284. return ms
  285. }
  286. return mi.MessageOf(x)
  287. }
  288. // Deprecated: Use SignerInfos.ProtoReflect.Descriptor instead.
  289. func (*SignerInfos) Descriptor() ([]byte, []int) {
  290. return file_common_proto_rawDescGZIP(), []int{3}
  291. }
  292. func (x *SignerInfos) GetPublicKey() *PublicKey {
  293. if x != nil {
  294. return x.PublicKey
  295. }
  296. return nil
  297. }
  298. func (x *SignerInfos) GetUuid() string {
  299. if x != nil {
  300. return x.Uuid
  301. }
  302. return ""
  303. }
  304. func (x *SignerInfos) GetChainId() string {
  305. if x != nil {
  306. return x.ChainId
  307. }
  308. return ""
  309. }
  310. type PublicKey struct {
  311. state protoimpl.MessageState
  312. sizeCache protoimpl.SizeCache
  313. unknownFields protoimpl.UnknownFields
  314. // 签名方法
  315. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  316. // 公钥
  317. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  318. }
  319. func (x *PublicKey) Reset() {
  320. *x = PublicKey{}
  321. if protoimpl.UnsafeEnabled {
  322. mi := &file_common_proto_msgTypes[4]
  323. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  324. ms.StoreMessageInfo(mi)
  325. }
  326. }
  327. func (x *PublicKey) String() string {
  328. return protoimpl.X.MessageStringOf(x)
  329. }
  330. func (*PublicKey) ProtoMessage() {}
  331. func (x *PublicKey) ProtoReflect() protoreflect.Message {
  332. mi := &file_common_proto_msgTypes[4]
  333. if protoimpl.UnsafeEnabled && x != nil {
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. if ms.LoadMessageInfo() == nil {
  336. ms.StoreMessageInfo(mi)
  337. }
  338. return ms
  339. }
  340. return mi.MessageOf(x)
  341. }
  342. // Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.
  343. func (*PublicKey) Descriptor() ([]byte, []int) {
  344. return file_common_proto_rawDescGZIP(), []int{4}
  345. }
  346. func (x *PublicKey) GetType() string {
  347. if x != nil {
  348. return x.Type
  349. }
  350. return ""
  351. }
  352. func (x *PublicKey) GetKey() string {
  353. if x != nil {
  354. return x.Key
  355. }
  356. return ""
  357. }
  358. type Response struct {
  359. state protoimpl.MessageState
  360. sizeCache protoimpl.SizeCache
  361. unknownFields protoimpl.UnknownFields
  362. // 结果码
  363. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
  364. // 结果消息
  365. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  366. // 结果详情
  367. Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  368. }
  369. func (x *Response) Reset() {
  370. *x = Response{}
  371. if protoimpl.UnsafeEnabled {
  372. mi := &file_common_proto_msgTypes[5]
  373. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  374. ms.StoreMessageInfo(mi)
  375. }
  376. }
  377. func (x *Response) String() string {
  378. return protoimpl.X.MessageStringOf(x)
  379. }
  380. func (*Response) ProtoMessage() {}
  381. func (x *Response) ProtoReflect() protoreflect.Message {
  382. mi := &file_common_proto_msgTypes[5]
  383. if protoimpl.UnsafeEnabled && x != nil {
  384. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  385. if ms.LoadMessageInfo() == nil {
  386. ms.StoreMessageInfo(mi)
  387. }
  388. return ms
  389. }
  390. return mi.MessageOf(x)
  391. }
  392. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
  393. func (*Response) Descriptor() ([]byte, []int) {
  394. return file_common_proto_rawDescGZIP(), []int{5}
  395. }
  396. func (x *Response) GetCode() string {
  397. if x != nil {
  398. return x.Code
  399. }
  400. return ""
  401. }
  402. func (x *Response) GetMsg() string {
  403. if x != nil {
  404. return x.Msg
  405. }
  406. return ""
  407. }
  408. func (x *Response) GetData() *anypb.Any {
  409. if x != nil {
  410. return x.Data
  411. }
  412. return nil
  413. }
  414. var File_common_proto protoreflect.FileDescriptor
  415. var file_common_proto_rawDesc = []byte{
  416. 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02,
  417. 0x70, 0x62, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  418. 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7e, 0x0a,
  419. 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79,
  420. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  421. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x04, 0x62, 0x6f,
  422. 0x64, 0x79, 0x12, 0x29, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18,
  423. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x49,
  424. 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a,
  425. 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
  426. 0x09, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x3a, 0x0a,
  427. 0x06, 0x54, 0x78, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x30, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61,
  428. 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  429. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52,
  430. 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x08, 0x41, 0x75,
  431. 0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x01,
  432. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75,
  433. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x19,
  434. 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  435. 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x0c, 0x73, 0x69, 0x67,
  436. 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
  437. 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73,
  438. 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x6a, 0x0a,
  439. 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x2c, 0x0a, 0x0a,
  440. 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  441. 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52,
  442. 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75,
  443. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x19,
  444. 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  445. 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x31, 0x0a, 0x09, 0x50, 0x75, 0x62,
  446. 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
  447. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
  448. 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x5a, 0x0a, 0x08,
  449. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
  450. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03,
  451. 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x28,
  452. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
  453. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41,
  454. 0x6e, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x1e, 0x0a, 0x09, 0x4f, 0x72, 0x64, 0x65,
  455. 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x53, 0x43, 0x10, 0x00, 0x12, 0x08,
  456. 0x0a, 0x04, 0x44, 0x45, 0x53, 0x43, 0x10, 0x01, 0x2a, 0x23, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,
  457. 0x75, 0x73, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00,
  458. 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x42, 0x06, 0x5a,
  459. 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  460. }
  461. var (
  462. file_common_proto_rawDescOnce sync.Once
  463. file_common_proto_rawDescData = file_common_proto_rawDesc
  464. )
  465. func file_common_proto_rawDescGZIP() []byte {
  466. file_common_proto_rawDescOnce.Do(func() {
  467. file_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_proto_rawDescData)
  468. })
  469. return file_common_proto_rawDescData
  470. }
  471. var file_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  472. var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  473. var file_common_proto_goTypes = []interface{}{
  474. (OrderType)(0), // 0: pb.OrderType
  475. (Status)(0), // 1: pb.Status
  476. (*Request)(nil), // 2: pb.Request
  477. (*TxBody)(nil), // 3: pb.TxBody
  478. (*AuthInfo)(nil), // 4: pb.AuthInfo
  479. (*SignerInfos)(nil), // 5: pb.SignerInfos
  480. (*PublicKey)(nil), // 6: pb.PublicKey
  481. (*Response)(nil), // 7: pb.Response
  482. (*anypb.Any)(nil), // 8: google.protobuf.Any
  483. }
  484. var file_common_proto_depIdxs = []int32{
  485. 8, // 0: pb.Request.body:type_name -> google.protobuf.Any
  486. 4, // 1: pb.Request.auth_info:type_name -> pb.AuthInfo
  487. 8, // 2: pb.TxBody.messages:type_name -> google.protobuf.Any
  488. 5, // 3: pb.AuthInfo.signer_infos:type_name -> pb.SignerInfos
  489. 6, // 4: pb.SignerInfos.public_key:type_name -> pb.PublicKey
  490. 8, // 5: pb.Response.data:type_name -> google.protobuf.Any
  491. 6, // [6:6] is the sub-list for method output_type
  492. 6, // [6:6] is the sub-list for method input_type
  493. 6, // [6:6] is the sub-list for extension type_name
  494. 6, // [6:6] is the sub-list for extension extendee
  495. 0, // [0:6] is the sub-list for field type_name
  496. }
  497. func init() { file_common_proto_init() }
  498. func file_common_proto_init() {
  499. if File_common_proto != nil {
  500. return
  501. }
  502. if !protoimpl.UnsafeEnabled {
  503. file_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  504. switch v := v.(*Request); i {
  505. case 0:
  506. return &v.state
  507. case 1:
  508. return &v.sizeCache
  509. case 2:
  510. return &v.unknownFields
  511. default:
  512. return nil
  513. }
  514. }
  515. file_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  516. switch v := v.(*TxBody); i {
  517. case 0:
  518. return &v.state
  519. case 1:
  520. return &v.sizeCache
  521. case 2:
  522. return &v.unknownFields
  523. default:
  524. return nil
  525. }
  526. }
  527. file_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  528. switch v := v.(*AuthInfo); i {
  529. case 0:
  530. return &v.state
  531. case 1:
  532. return &v.sizeCache
  533. case 2:
  534. return &v.unknownFields
  535. default:
  536. return nil
  537. }
  538. }
  539. file_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  540. switch v := v.(*SignerInfos); i {
  541. case 0:
  542. return &v.state
  543. case 1:
  544. return &v.sizeCache
  545. case 2:
  546. return &v.unknownFields
  547. default:
  548. return nil
  549. }
  550. }
  551. file_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  552. switch v := v.(*PublicKey); i {
  553. case 0:
  554. return &v.state
  555. case 1:
  556. return &v.sizeCache
  557. case 2:
  558. return &v.unknownFields
  559. default:
  560. return nil
  561. }
  562. }
  563. file_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  564. switch v := v.(*Response); i {
  565. case 0:
  566. return &v.state
  567. case 1:
  568. return &v.sizeCache
  569. case 2:
  570. return &v.unknownFields
  571. default:
  572. return nil
  573. }
  574. }
  575. }
  576. type x struct{}
  577. out := protoimpl.TypeBuilder{
  578. File: protoimpl.DescBuilder{
  579. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  580. RawDescriptor: file_common_proto_rawDesc,
  581. NumEnums: 2,
  582. NumMessages: 6,
  583. NumExtensions: 0,
  584. NumServices: 0,
  585. },
  586. GoTypes: file_common_proto_goTypes,
  587. DependencyIndexes: file_common_proto_depIdxs,
  588. EnumInfos: file_common_proto_enumTypes,
  589. MessageInfos: file_common_proto_msgTypes,
  590. }.Build()
  591. File_common_proto = out.File
  592. file_common_proto_rawDesc = nil
  593. file_common_proto_goTypes = nil
  594. file_common_proto_depIdxs = nil
  595. }