@ark-us/wasmxjs 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/LICENSE +3 -0
  2. package/README.md +280 -0
  3. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +887 -0
  4. package/main/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
  5. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +157 -0
  6. package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +231 -0
  7. package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1479 -0
  8. package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +478 -0
  9. package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +207 -0
  10. package/main/codegen/cosmos/base/store/v1beta1/listening.js +89 -0
  11. package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +951 -0
  12. package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +117 -0
  13. package/main/codegen/cosmos/base/v1beta1/coin.js +223 -0
  14. package/main/codegen/cosmos/bundle.js +63 -0
  15. package/main/codegen/cosmos/rpc.query.js +55 -0
  16. package/main/codegen/extern.js +66 -0
  17. package/main/codegen/gogoproto/bundle.js +16 -0
  18. package/main/codegen/gogoproto/gogo.js +5 -0
  19. package/main/codegen/google/api/annotations.js +5 -0
  20. package/main/codegen/google/api/http.js +306 -0
  21. package/main/codegen/google/api/httpbody.js +102 -0
  22. package/main/codegen/google/bundle.js +26 -0
  23. package/main/codegen/google/protobuf/any.js +69 -0
  24. package/main/codegen/google/protobuf/descriptor.js +3429 -0
  25. package/main/codegen/google/protobuf/duration.js +69 -0
  26. package/main/codegen/google/protobuf/timestamp.js +69 -0
  27. package/main/codegen/helpers.js +170 -0
  28. package/main/codegen/index.js +93 -0
  29. package/main/codegen/tendermint/abci/types.js +3616 -0
  30. package/main/codegen/tendermint/bundle.js +37 -0
  31. package/main/codegen/tendermint/crypto/keys.js +69 -0
  32. package/main/codegen/tendermint/crypto/proof.js +372 -0
  33. package/main/codegen/tendermint/libs/bits/types.js +100 -0
  34. package/main/codegen/tendermint/p2p/types.js +322 -0
  35. package/main/codegen/tendermint/types/block.js +90 -0
  36. package/main/codegen/tendermint/types/evidence.js +335 -0
  37. package/main/codegen/tendermint/types/params.js +397 -0
  38. package/main/codegen/tendermint/types/types.js +1223 -0
  39. package/main/codegen/tendermint/types/validator.js +237 -0
  40. package/main/codegen/tendermint/version/types.js +126 -0
  41. package/main/codegen/wasmx/bundle.js +30 -0
  42. package/main/codegen/wasmx/client.js +65 -0
  43. package/main/codegen/wasmx/index.js +126 -0
  44. package/main/codegen/wasmx/rpc.query.js +65 -0
  45. package/main/codegen/wasmx/rpc.tx.js +44 -0
  46. package/main/codegen/wasmx/wasmx/contract.js +324 -0
  47. package/main/codegen/wasmx/wasmx/genesis.js +481 -0
  48. package/main/codegen/wasmx/wasmx/params.js +45 -0
  49. package/main/codegen/wasmx/wasmx/query.js +1187 -0
  50. package/main/codegen/wasmx/wasmx/query.rpc.Query.js +154 -0
  51. package/main/codegen/wasmx/wasmx/tx.amino.js +251 -0
  52. package/main/codegen/wasmx/wasmx/tx.js +937 -0
  53. package/main/codegen/wasmx/wasmx/tx.registry.js +213 -0
  54. package/main/codegen/wasmx/wasmx/tx.rpc.msg.js +85 -0
  55. package/main/index.js +16 -0
  56. package/module/codegen/cosmos/base/abci/v1beta1/abci.js +755 -0
  57. package/module/codegen/cosmos/base/kv/v1beta1/kv.js +110 -0
  58. package/module/codegen/cosmos/base/query/v1beta1/pagination.js +154 -0
  59. package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +183 -0
  60. package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1297 -0
  61. package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +439 -0
  62. package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +179 -0
  63. package/module/codegen/cosmos/base/store/v1beta1/listening.js +86 -0
  64. package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +866 -0
  65. package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +74 -0
  66. package/module/codegen/cosmos/base/v1beta1/coin.js +213 -0
  67. package/module/codegen/cosmos/bundle.js +52 -0
  68. package/module/codegen/cosmos/rpc.query.js +17 -0
  69. package/module/codegen/extern.js +30 -0
  70. package/module/codegen/gogoproto/bundle.js +5 -0
  71. package/module/codegen/gogoproto/gogo.js +1 -0
  72. package/module/codegen/google/api/annotations.js +1 -0
  73. package/module/codegen/google/api/http.js +264 -0
  74. package/module/codegen/google/api/httpbody.js +115 -0
  75. package/module/codegen/google/bundle.js +15 -0
  76. package/module/codegen/google/protobuf/any.js +140 -0
  77. package/module/codegen/google/protobuf/descriptor.js +2801 -0
  78. package/module/codegen/google/protobuf/duration.js +119 -0
  79. package/module/codegen/google/protobuf/timestamp.js +143 -0
  80. package/module/codegen/helpers.js +140 -0
  81. package/module/codegen/index.js +14 -0
  82. package/module/codegen/tendermint/abci/types.js +3305 -0
  83. package/module/codegen/tendermint/bundle.js +26 -0
  84. package/module/codegen/tendermint/crypto/keys.js +60 -0
  85. package/module/codegen/tendermint/crypto/proof.js +320 -0
  86. package/module/codegen/tendermint/libs/bits/types.js +71 -0
  87. package/module/codegen/tendermint/p2p/types.js +305 -0
  88. package/module/codegen/tendermint/types/block.js +79 -0
  89. package/module/codegen/tendermint/types/evidence.js +285 -0
  90. package/module/codegen/tendermint/types/params.js +363 -0
  91. package/module/codegen/tendermint/types/types.js +1149 -0
  92. package/module/codegen/tendermint/types/validator.js +204 -0
  93. package/module/codegen/tendermint/version/types.js +119 -0
  94. package/module/codegen/wasmx/bundle.js +19 -0
  95. package/module/codegen/wasmx/client.js +36 -0
  96. package/module/codegen/wasmx/index.js +11 -0
  97. package/module/codegen/wasmx/rpc.query.js +20 -0
  98. package/module/codegen/wasmx/rpc.tx.js +7 -0
  99. package/module/codegen/wasmx/wasmx/contract.js +291 -0
  100. package/module/codegen/wasmx/wasmx/genesis.js +386 -0
  101. package/module/codegen/wasmx/wasmx/params.js +36 -0
  102. package/module/codegen/wasmx/wasmx/query.js +1052 -0
  103. package/module/codegen/wasmx/wasmx/query.rpc.Query.js +101 -0
  104. package/module/codegen/wasmx/wasmx/tx.amino.js +236 -0
  105. package/module/codegen/wasmx/wasmx/tx.js +815 -0
  106. package/module/codegen/wasmx/wasmx/tx.registry.js +199 -0
  107. package/module/codegen/wasmx/wasmx/tx.rpc.msg.js +47 -0
  108. package/module/index.js +1 -0
  109. package/package.json +88 -0
  110. package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1254 -0
  111. package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +156 -0
  112. package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +314 -0
  113. package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +280 -0
  114. package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +2079 -0
  115. package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +641 -0
  116. package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +269 -0
  117. package/src/codegen/cosmos/base/store/v1beta1/listening.ts +129 -0
  118. package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +107 -0
  119. package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1284 -0
  120. package/src/codegen/cosmos/base/v1beta1/coin.ts +318 -0
  121. package/src/codegen/cosmos/bundle.ts +52 -0
  122. package/src/codegen/cosmos/rpc.query.ts +19 -0
  123. package/src/codegen/extern.ts +33 -0
  124. package/src/codegen/gogoproto/bundle.ts +3 -0
  125. package/src/codegen/gogoproto/gogo.ts +1 -0
  126. package/src/codegen/google/api/annotations.ts +1 -0
  127. package/src/codegen/google/api/http.ts +945 -0
  128. package/src/codegen/google/api/httpbody.ts +200 -0
  129. package/src/codegen/google/bundle.ts +18 -0
  130. package/src/codegen/google/protobuf/any.ts +305 -0
  131. package/src/codegen/google/protobuf/descriptor.ts +5113 -0
  132. package/src/codegen/google/protobuf/duration.ts +229 -0
  133. package/src/codegen/google/protobuf/timestamp.ts +273 -0
  134. package/src/codegen/helpers.ts +240 -0
  135. package/src/codegen/index.ts +14 -0
  136. package/src/codegen/tendermint/abci/types.ts +4754 -0
  137. package/src/codegen/tendermint/bundle.ts +32 -0
  138. package/src/codegen/tendermint/crypto/keys.ts +83 -0
  139. package/src/codegen/tendermint/crypto/proof.ts +465 -0
  140. package/src/codegen/tendermint/libs/bits/types.ts +97 -0
  141. package/src/codegen/tendermint/p2p/types.ts +422 -0
  142. package/src/codegen/tendermint/types/block.ts +109 -0
  143. package/src/codegen/tendermint/types/evidence.ts +415 -0
  144. package/src/codegen/tendermint/types/params.ts +615 -0
  145. package/src/codegen/tendermint/types/types.ts +1663 -0
  146. package/src/codegen/tendermint/types/validator.ts +282 -0
  147. package/src/codegen/tendermint/version/types.ts +180 -0
  148. package/src/codegen/wasmx/bundle.ts +26 -0
  149. package/src/codegen/wasmx/client.ts +45 -0
  150. package/src/codegen/wasmx/index.ts +11 -0
  151. package/src/codegen/wasmx/rpc.query.ts +22 -0
  152. package/src/codegen/wasmx/rpc.tx.ts +10 -0
  153. package/src/codegen/wasmx/wasmx/contract.ts +470 -0
  154. package/src/codegen/wasmx/wasmx/genesis.ts +552 -0
  155. package/src/codegen/wasmx/wasmx/params.ts +50 -0
  156. package/src/codegen/wasmx/wasmx/query.rpc.Query.ts +149 -0
  157. package/src/codegen/wasmx/wasmx/query.ts +1668 -0
  158. package/src/codegen/wasmx/wasmx/tx.amino.ts +314 -0
  159. package/src/codegen/wasmx/wasmx/tx.registry.ts +230 -0
  160. package/src/codegen/wasmx/wasmx/tx.rpc.msg.ts +80 -0
  161. package/src/codegen/wasmx/wasmx/tx.ts +1331 -0
  162. package/src/index.ts +1 -0
  163. package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +338 -0
  164. package/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +33 -0
  165. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +140 -0
  166. package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +75 -0
  167. package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +565 -0
  168. package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +135 -0
  169. package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +71 -0
  170. package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +38 -0
  171. package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +282 -0
  172. package/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +14 -0
  173. package/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts +36 -0
  174. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +85 -0
  175. package/types/codegen/cosmos/bundle.d.ts +594 -0
  176. package/types/codegen/cosmos/lcd.d.ts +11 -0
  177. package/types/codegen/cosmos/rpc.query.d.ts +19 -0
  178. package/types/codegen/extern.d.ts +9 -0
  179. package/types/codegen/gogoproto/bundle.d.ts +1 -0
  180. package/types/codegen/gogoproto/gogo.d.ts +1 -0
  181. package/types/codegen/google/api/annotations.d.ts +1 -0
  182. package/types/codegen/google/api/http.d.ts +622 -0
  183. package/types/codegen/google/api/httpbody.d.ts +113 -0
  184. package/types/codegen/google/bundle.d.ts +274 -0
  185. package/types/codegen/google/protobuf/any.d.ts +238 -0
  186. package/types/codegen/google/protobuf/descriptor.d.ts +1835 -0
  187. package/types/codegen/google/protobuf/duration.d.ts +163 -0
  188. package/types/codegen/google/protobuf/timestamp.d.ts +207 -0
  189. package/types/codegen/helpers.d.ts +82 -0
  190. package/types/codegen/index.d.ts +13 -0
  191. package/types/codegen/tendermint/abci/types.d.ts +993 -0
  192. package/types/codegen/tendermint/bundle.d.ts +639 -0
  193. package/types/codegen/tendermint/crypto/keys.d.ts +18 -0
  194. package/types/codegen/tendermint/crypto/proof.d.ts +101 -0
  195. package/types/codegen/tendermint/libs/bits/types.d.ts +17 -0
  196. package/types/codegen/tendermint/p2p/types.d.ts +78 -0
  197. package/types/codegen/tendermint/types/block.d.ts +22 -0
  198. package/types/codegen/tendermint/types/evidence.d.ts +91 -0
  199. package/types/codegen/tendermint/types/params.d.ts +193 -0
  200. package/types/codegen/tendermint/types/types.d.ts +363 -0
  201. package/types/codegen/tendermint/types/validator.d.ts +54 -0
  202. package/types/codegen/tendermint/version/types.d.ts +52 -0
  203. package/types/codegen/wasmx/bundle.d.ts +614 -0
  204. package/types/codegen/wasmx/client.d.ts +151 -0
  205. package/types/codegen/wasmx/index.d.ts +11 -0
  206. package/types/codegen/wasmx/lcd.d.ts +14 -0
  207. package/types/codegen/wasmx/rpc.query.d.ts +32 -0
  208. package/types/codegen/wasmx/rpc.tx.d.ts +8 -0
  209. package/types/codegen/wasmx/wasmx/contract.d.ts +122 -0
  210. package/types/codegen/wasmx/wasmx/genesis.d.ts +107 -0
  211. package/types/codegen/wasmx/wasmx/params.d.ts +14 -0
  212. package/types/codegen/wasmx/wasmx/query.d.ts +451 -0
  213. package/types/codegen/wasmx/wasmx/query.lcd.d.ts +17 -0
  214. package/types/codegen/wasmx/wasmx/query.rpc.Query.d.ts +48 -0
  215. package/types/codegen/wasmx/wasmx/tx.amino.d.ts +110 -0
  216. package/types/codegen/wasmx/wasmx/tx.d.ts +332 -0
  217. package/types/codegen/wasmx/wasmx/tx.registry.d.ts +136 -0
  218. package/types/codegen/wasmx/wasmx/tx.rpc.msg.d.ts +33 -0
  219. package/types/index.d.ts +1 -0
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './codegen';
@@ -0,0 +1,338 @@
1
+ import { Any, AnySDKType } from "../../../../google/protobuf/any";
2
+ import { Event, EventSDKType } from "../../../../tendermint/abci/types";
3
+ import * as _m0 from "protobufjs/minimal";
4
+ import { Long } from "../../../../helpers";
5
+ /**
6
+ * TxResponse defines a structure containing relevant tx data and metadata. The
7
+ * tags are stringified and the log is JSON decoded.
8
+ */
9
+ export interface TxResponse {
10
+ /** The block height */
11
+ height: Long;
12
+ /** The transaction hash. */
13
+ txhash: string;
14
+ /** Namespace for the Code */
15
+ codespace: string;
16
+ /** Response code. */
17
+ code: number;
18
+ /** Result bytes, if any. */
19
+ data: string;
20
+ /**
21
+ * The output of the application's logger (raw string). May be
22
+ * non-deterministic.
23
+ */
24
+ rawLog: string;
25
+ /** The output of the application's logger (typed). May be non-deterministic. */
26
+ logs: ABCIMessageLog[];
27
+ /** Additional information. May be non-deterministic. */
28
+ info: string;
29
+ /** Amount of gas requested for transaction. */
30
+ gasWanted: Long;
31
+ /** Amount of gas consumed by transaction. */
32
+ gasUsed: Long;
33
+ /** The request transaction bytes. */
34
+ tx?: Any;
35
+ /**
36
+ * Time of the previous block. For heights > 1, it's the weighted median of
37
+ * the timestamps of the valid votes in the block.LastCommit. For height == 1,
38
+ * it's genesis time.
39
+ */
40
+ timestamp: string;
41
+ /**
42
+ * Events defines all the events emitted by processing a transaction. Note,
43
+ * these events include those emitted by processing all the messages and those
44
+ * emitted from the ante handler. Whereas Logs contains the events, with
45
+ * additional metadata, emitted only by processing the messages.
46
+ *
47
+ * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
48
+ */
49
+ events: Event[];
50
+ }
51
+ /**
52
+ * TxResponse defines a structure containing relevant tx data and metadata. The
53
+ * tags are stringified and the log is JSON decoded.
54
+ */
55
+ export interface TxResponseSDKType {
56
+ /** The block height */
57
+ height: Long;
58
+ /** The transaction hash. */
59
+ txhash: string;
60
+ /** Namespace for the Code */
61
+ codespace: string;
62
+ /** Response code. */
63
+ code: number;
64
+ /** Result bytes, if any. */
65
+ data: string;
66
+ /**
67
+ * The output of the application's logger (raw string). May be
68
+ * non-deterministic.
69
+ */
70
+ raw_log: string;
71
+ /** The output of the application's logger (typed). May be non-deterministic. */
72
+ logs: ABCIMessageLogSDKType[];
73
+ /** Additional information. May be non-deterministic. */
74
+ info: string;
75
+ /** Amount of gas requested for transaction. */
76
+ gas_wanted: Long;
77
+ /** Amount of gas consumed by transaction. */
78
+ gas_used: Long;
79
+ /** The request transaction bytes. */
80
+ tx?: AnySDKType;
81
+ /**
82
+ * Time of the previous block. For heights > 1, it's the weighted median of
83
+ * the timestamps of the valid votes in the block.LastCommit. For height == 1,
84
+ * it's genesis time.
85
+ */
86
+ timestamp: string;
87
+ /**
88
+ * Events defines all the events emitted by processing a transaction. Note,
89
+ * these events include those emitted by processing all the messages and those
90
+ * emitted from the ante handler. Whereas Logs contains the events, with
91
+ * additional metadata, emitted only by processing the messages.
92
+ *
93
+ * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
94
+ */
95
+ events: EventSDKType[];
96
+ }
97
+ /** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
98
+ export interface ABCIMessageLog {
99
+ msgIndex: number;
100
+ log: string;
101
+ /**
102
+ * Events contains a slice of Event objects that were emitted during some
103
+ * execution.
104
+ */
105
+ events: StringEvent[];
106
+ }
107
+ /** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
108
+ export interface ABCIMessageLogSDKType {
109
+ msg_index: number;
110
+ log: string;
111
+ /**
112
+ * Events contains a slice of Event objects that were emitted during some
113
+ * execution.
114
+ */
115
+ events: StringEventSDKType[];
116
+ }
117
+ /**
118
+ * StringEvent defines en Event object wrapper where all the attributes
119
+ * contain key/value pairs that are strings instead of raw bytes.
120
+ */
121
+ export interface StringEvent {
122
+ type: string;
123
+ attributes: Attribute[];
124
+ }
125
+ /**
126
+ * StringEvent defines en Event object wrapper where all the attributes
127
+ * contain key/value pairs that are strings instead of raw bytes.
128
+ */
129
+ export interface StringEventSDKType {
130
+ type: string;
131
+ attributes: AttributeSDKType[];
132
+ }
133
+ /**
134
+ * Attribute defines an attribute wrapper where the key and value are
135
+ * strings instead of raw bytes.
136
+ */
137
+ export interface Attribute {
138
+ key: string;
139
+ value: string;
140
+ }
141
+ /**
142
+ * Attribute defines an attribute wrapper where the key and value are
143
+ * strings instead of raw bytes.
144
+ */
145
+ export interface AttributeSDKType {
146
+ key: string;
147
+ value: string;
148
+ }
149
+ /** GasInfo defines tx execution gas context. */
150
+ export interface GasInfo {
151
+ /** GasWanted is the maximum units of work we allow this tx to perform. */
152
+ gasWanted: Long;
153
+ /** GasUsed is the amount of gas actually consumed. */
154
+ gasUsed: Long;
155
+ }
156
+ /** GasInfo defines tx execution gas context. */
157
+ export interface GasInfoSDKType {
158
+ /** GasWanted is the maximum units of work we allow this tx to perform. */
159
+ gas_wanted: Long;
160
+ /** GasUsed is the amount of gas actually consumed. */
161
+ gas_used: Long;
162
+ }
163
+ /** Result is the union of ResponseFormat and ResponseCheckTx. */
164
+ export interface Result {
165
+ /**
166
+ * Data is any data returned from message or handler execution. It MUST be
167
+ * length prefixed in order to separate data from multiple message executions.
168
+ */
169
+ data: Uint8Array;
170
+ /** Log contains the log information from message or handler execution. */
171
+ log: string;
172
+ /**
173
+ * Events contains a slice of Event objects that were emitted during message
174
+ * or handler execution.
175
+ */
176
+ events: Event[];
177
+ }
178
+ /** Result is the union of ResponseFormat and ResponseCheckTx. */
179
+ export interface ResultSDKType {
180
+ /**
181
+ * Data is any data returned from message or handler execution. It MUST be
182
+ * length prefixed in order to separate data from multiple message executions.
183
+ */
184
+ data: Uint8Array;
185
+ /** Log contains the log information from message or handler execution. */
186
+ log: string;
187
+ /**
188
+ * Events contains a slice of Event objects that were emitted during message
189
+ * or handler execution.
190
+ */
191
+ events: EventSDKType[];
192
+ }
193
+ /**
194
+ * SimulationResponse defines the response generated when a transaction is
195
+ * successfully simulated.
196
+ */
197
+ export interface SimulationResponse {
198
+ gasInfo?: GasInfo;
199
+ result?: Result;
200
+ }
201
+ /**
202
+ * SimulationResponse defines the response generated when a transaction is
203
+ * successfully simulated.
204
+ */
205
+ export interface SimulationResponseSDKType {
206
+ gas_info?: GasInfoSDKType;
207
+ result?: ResultSDKType;
208
+ }
209
+ /**
210
+ * MsgData defines the data returned in a Result object during message
211
+ * execution.
212
+ */
213
+ export interface MsgData {
214
+ msgType: string;
215
+ data: Uint8Array;
216
+ }
217
+ /**
218
+ * MsgData defines the data returned in a Result object during message
219
+ * execution.
220
+ */
221
+ export interface MsgDataSDKType {
222
+ msg_type: string;
223
+ data: Uint8Array;
224
+ }
225
+ /**
226
+ * TxMsgData defines a list of MsgData. A transaction will have a MsgData object
227
+ * for each message.
228
+ */
229
+ export interface TxMsgData {
230
+ data: MsgData[];
231
+ }
232
+ /**
233
+ * TxMsgData defines a list of MsgData. A transaction will have a MsgData object
234
+ * for each message.
235
+ */
236
+ export interface TxMsgDataSDKType {
237
+ data: MsgDataSDKType[];
238
+ }
239
+ /** SearchTxsResult defines a structure for querying txs pageable */
240
+ export interface SearchTxsResult {
241
+ /** Count of all txs */
242
+ totalCount: Long;
243
+ /** Count of txs in current page */
244
+ count: Long;
245
+ /** Index of current page, start from 1 */
246
+ pageNumber: Long;
247
+ /** Count of total pages */
248
+ pageTotal: Long;
249
+ /** Max count txs per page */
250
+ limit: Long;
251
+ /** List of txs in current page */
252
+ txs: TxResponse[];
253
+ }
254
+ /** SearchTxsResult defines a structure for querying txs pageable */
255
+ export interface SearchTxsResultSDKType {
256
+ /** Count of all txs */
257
+ total_count: Long;
258
+ /** Count of txs in current page */
259
+ count: Long;
260
+ /** Index of current page, start from 1 */
261
+ page_number: Long;
262
+ /** Count of total pages */
263
+ page_total: Long;
264
+ /** Max count txs per page */
265
+ limit: Long;
266
+ /** List of txs in current page */
267
+ txs: TxResponseSDKType[];
268
+ }
269
+ export declare const TxResponse: {
270
+ encode(message: TxResponse, writer?: _m0.Writer): _m0.Writer;
271
+ decode(input: _m0.Reader | Uint8Array, length?: number): TxResponse;
272
+ fromJSON(object: any): TxResponse;
273
+ toJSON(message: TxResponse): unknown;
274
+ fromPartial(object: Partial<TxResponse>): TxResponse;
275
+ };
276
+ export declare const ABCIMessageLog: {
277
+ encode(message: ABCIMessageLog, writer?: _m0.Writer): _m0.Writer;
278
+ decode(input: _m0.Reader | Uint8Array, length?: number): ABCIMessageLog;
279
+ fromJSON(object: any): ABCIMessageLog;
280
+ toJSON(message: ABCIMessageLog): unknown;
281
+ fromPartial(object: Partial<ABCIMessageLog>): ABCIMessageLog;
282
+ };
283
+ export declare const StringEvent: {
284
+ encode(message: StringEvent, writer?: _m0.Writer): _m0.Writer;
285
+ decode(input: _m0.Reader | Uint8Array, length?: number): StringEvent;
286
+ fromJSON(object: any): StringEvent;
287
+ toJSON(message: StringEvent): unknown;
288
+ fromPartial(object: Partial<StringEvent>): StringEvent;
289
+ };
290
+ export declare const Attribute: {
291
+ encode(message: Attribute, writer?: _m0.Writer): _m0.Writer;
292
+ decode(input: _m0.Reader | Uint8Array, length?: number): Attribute;
293
+ fromJSON(object: any): Attribute;
294
+ toJSON(message: Attribute): unknown;
295
+ fromPartial(object: Partial<Attribute>): Attribute;
296
+ };
297
+ export declare const GasInfo: {
298
+ encode(message: GasInfo, writer?: _m0.Writer): _m0.Writer;
299
+ decode(input: _m0.Reader | Uint8Array, length?: number): GasInfo;
300
+ fromJSON(object: any): GasInfo;
301
+ toJSON(message: GasInfo): unknown;
302
+ fromPartial(object: Partial<GasInfo>): GasInfo;
303
+ };
304
+ export declare const Result: {
305
+ encode(message: Result, writer?: _m0.Writer): _m0.Writer;
306
+ decode(input: _m0.Reader | Uint8Array, length?: number): Result;
307
+ fromJSON(object: any): Result;
308
+ toJSON(message: Result): unknown;
309
+ fromPartial(object: Partial<Result>): Result;
310
+ };
311
+ export declare const SimulationResponse: {
312
+ encode(message: SimulationResponse, writer?: _m0.Writer): _m0.Writer;
313
+ decode(input: _m0.Reader | Uint8Array, length?: number): SimulationResponse;
314
+ fromJSON(object: any): SimulationResponse;
315
+ toJSON(message: SimulationResponse): unknown;
316
+ fromPartial(object: Partial<SimulationResponse>): SimulationResponse;
317
+ };
318
+ export declare const MsgData: {
319
+ encode(message: MsgData, writer?: _m0.Writer): _m0.Writer;
320
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgData;
321
+ fromJSON(object: any): MsgData;
322
+ toJSON(message: MsgData): unknown;
323
+ fromPartial(object: Partial<MsgData>): MsgData;
324
+ };
325
+ export declare const TxMsgData: {
326
+ encode(message: TxMsgData, writer?: _m0.Writer): _m0.Writer;
327
+ decode(input: _m0.Reader | Uint8Array, length?: number): TxMsgData;
328
+ fromJSON(object: any): TxMsgData;
329
+ toJSON(message: TxMsgData): unknown;
330
+ fromPartial(object: Partial<TxMsgData>): TxMsgData;
331
+ };
332
+ export declare const SearchTxsResult: {
333
+ encode(message: SearchTxsResult, writer?: _m0.Writer): _m0.Writer;
334
+ decode(input: _m0.Reader | Uint8Array, length?: number): SearchTxsResult;
335
+ fromJSON(object: any): SearchTxsResult;
336
+ toJSON(message: SearchTxsResult): unknown;
337
+ fromPartial(object: Partial<SearchTxsResult>): SearchTxsResult;
338
+ };
@@ -0,0 +1,33 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ /** Pairs defines a repeated slice of Pair objects. */
3
+ export interface Pairs {
4
+ pairs: Pair[];
5
+ }
6
+ /** Pairs defines a repeated slice of Pair objects. */
7
+ export interface PairsSDKType {
8
+ pairs: PairSDKType[];
9
+ }
10
+ /** Pair defines a key/value bytes tuple. */
11
+ export interface Pair {
12
+ key: Uint8Array;
13
+ value: Uint8Array;
14
+ }
15
+ /** Pair defines a key/value bytes tuple. */
16
+ export interface PairSDKType {
17
+ key: Uint8Array;
18
+ value: Uint8Array;
19
+ }
20
+ export declare const Pairs: {
21
+ encode(message: Pairs, writer?: _m0.Writer): _m0.Writer;
22
+ decode(input: _m0.Reader | Uint8Array, length?: number): Pairs;
23
+ fromJSON(object: any): Pairs;
24
+ toJSON(message: Pairs): unknown;
25
+ fromPartial(object: Partial<Pairs>): Pairs;
26
+ };
27
+ export declare const Pair: {
28
+ encode(message: Pair, writer?: _m0.Writer): _m0.Writer;
29
+ decode(input: _m0.Reader | Uint8Array, length?: number): Pair;
30
+ fromJSON(object: any): Pair;
31
+ toJSON(message: Pair): unknown;
32
+ fromPartial(object: Partial<Pair>): Pair;
33
+ };
@@ -0,0 +1,140 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ import { Long } from "../../../../helpers";
3
+ /**
4
+ * PageRequest is to be embedded in gRPC request messages for efficient
5
+ * pagination. Ex:
6
+ *
7
+ * message SomeRequest {
8
+ * Foo some_parameter = 1;
9
+ * PageRequest pagination = 2;
10
+ * }
11
+ */
12
+ export interface PageRequest {
13
+ /**
14
+ * key is a value returned in PageResponse.next_key to begin
15
+ * querying the next page most efficiently. Only one of offset or key
16
+ * should be set.
17
+ */
18
+ key: Uint8Array;
19
+ /**
20
+ * offset is a numeric offset that can be used when key is unavailable.
21
+ * It is less efficient than using key. Only one of offset or key should
22
+ * be set.
23
+ */
24
+ offset: Long;
25
+ /**
26
+ * limit is the total number of results to be returned in the result page.
27
+ * If left empty it will default to a value to be set by each app.
28
+ */
29
+ limit: Long;
30
+ /**
31
+ * count_total is set to true to indicate that the result set should include
32
+ * a count of the total number of items available for pagination in UIs.
33
+ * count_total is only respected when offset is used. It is ignored when key
34
+ * is set.
35
+ */
36
+ countTotal: boolean;
37
+ /**
38
+ * reverse is set to true if results are to be returned in the descending order.
39
+ *
40
+ * Since: cosmos-sdk 0.43
41
+ */
42
+ reverse: boolean;
43
+ }
44
+ /**
45
+ * PageRequest is to be embedded in gRPC request messages for efficient
46
+ * pagination. Ex:
47
+ *
48
+ * message SomeRequest {
49
+ * Foo some_parameter = 1;
50
+ * PageRequest pagination = 2;
51
+ * }
52
+ */
53
+ export interface PageRequestSDKType {
54
+ /**
55
+ * key is a value returned in PageResponse.next_key to begin
56
+ * querying the next page most efficiently. Only one of offset or key
57
+ * should be set.
58
+ */
59
+ key: Uint8Array;
60
+ /**
61
+ * offset is a numeric offset that can be used when key is unavailable.
62
+ * It is less efficient than using key. Only one of offset or key should
63
+ * be set.
64
+ */
65
+ offset: Long;
66
+ /**
67
+ * limit is the total number of results to be returned in the result page.
68
+ * If left empty it will default to a value to be set by each app.
69
+ */
70
+ limit: Long;
71
+ /**
72
+ * count_total is set to true to indicate that the result set should include
73
+ * a count of the total number of items available for pagination in UIs.
74
+ * count_total is only respected when offset is used. It is ignored when key
75
+ * is set.
76
+ */
77
+ count_total: boolean;
78
+ /**
79
+ * reverse is set to true if results are to be returned in the descending order.
80
+ *
81
+ * Since: cosmos-sdk 0.43
82
+ */
83
+ reverse: boolean;
84
+ }
85
+ /**
86
+ * PageResponse is to be embedded in gRPC response messages where the
87
+ * corresponding request message has used PageRequest.
88
+ *
89
+ * message SomeResponse {
90
+ * repeated Bar results = 1;
91
+ * PageResponse page = 2;
92
+ * }
93
+ */
94
+ export interface PageResponse {
95
+ /**
96
+ * next_key is the key to be passed to PageRequest.key to
97
+ * query the next page most efficiently
98
+ */
99
+ nextKey: Uint8Array;
100
+ /**
101
+ * total is total number of results available if PageRequest.count_total
102
+ * was set, its value is undefined otherwise
103
+ */
104
+ total: Long;
105
+ }
106
+ /**
107
+ * PageResponse is to be embedded in gRPC response messages where the
108
+ * corresponding request message has used PageRequest.
109
+ *
110
+ * message SomeResponse {
111
+ * repeated Bar results = 1;
112
+ * PageResponse page = 2;
113
+ * }
114
+ */
115
+ export interface PageResponseSDKType {
116
+ /**
117
+ * next_key is the key to be passed to PageRequest.key to
118
+ * query the next page most efficiently
119
+ */
120
+ next_key: Uint8Array;
121
+ /**
122
+ * total is total number of results available if PageRequest.count_total
123
+ * was set, its value is undefined otherwise
124
+ */
125
+ total: Long;
126
+ }
127
+ export declare const PageRequest: {
128
+ encode(message: PageRequest, writer?: _m0.Writer): _m0.Writer;
129
+ decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest;
130
+ fromJSON(object: any): PageRequest;
131
+ toJSON(message: PageRequest): unknown;
132
+ fromPartial(object: Partial<PageRequest>): PageRequest;
133
+ };
134
+ export declare const PageResponse: {
135
+ encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer;
136
+ decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse;
137
+ fromJSON(object: any): PageResponse;
138
+ toJSON(message: PageResponse): unknown;
139
+ fromPartial(object: Partial<PageResponse>): PageResponse;
140
+ };
@@ -0,0 +1,75 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */
3
+ export interface ListAllInterfacesRequest {
4
+ }
5
+ /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */
6
+ export interface ListAllInterfacesRequestSDKType {
7
+ }
8
+ /** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */
9
+ export interface ListAllInterfacesResponse {
10
+ /** interface_names is an array of all the registered interfaces. */
11
+ interfaceNames: string[];
12
+ }
13
+ /** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */
14
+ export interface ListAllInterfacesResponseSDKType {
15
+ /** interface_names is an array of all the registered interfaces. */
16
+ interface_names: string[];
17
+ }
18
+ /**
19
+ * ListImplementationsRequest is the request type of the ListImplementations
20
+ * RPC.
21
+ */
22
+ export interface ListImplementationsRequest {
23
+ /** interface_name defines the interface to query the implementations for. */
24
+ interfaceName: string;
25
+ }
26
+ /**
27
+ * ListImplementationsRequest is the request type of the ListImplementations
28
+ * RPC.
29
+ */
30
+ export interface ListImplementationsRequestSDKType {
31
+ /** interface_name defines the interface to query the implementations for. */
32
+ interface_name: string;
33
+ }
34
+ /**
35
+ * ListImplementationsResponse is the response type of the ListImplementations
36
+ * RPC.
37
+ */
38
+ export interface ListImplementationsResponse {
39
+ implementationMessageNames: string[];
40
+ }
41
+ /**
42
+ * ListImplementationsResponse is the response type of the ListImplementations
43
+ * RPC.
44
+ */
45
+ export interface ListImplementationsResponseSDKType {
46
+ implementation_message_names: string[];
47
+ }
48
+ export declare const ListAllInterfacesRequest: {
49
+ encode(_: ListAllInterfacesRequest, writer?: _m0.Writer): _m0.Writer;
50
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesRequest;
51
+ fromJSON(_: any): ListAllInterfacesRequest;
52
+ toJSON(_: ListAllInterfacesRequest): unknown;
53
+ fromPartial(_: Partial<ListAllInterfacesRequest>): ListAllInterfacesRequest;
54
+ };
55
+ export declare const ListAllInterfacesResponse: {
56
+ encode(message: ListAllInterfacesResponse, writer?: _m0.Writer): _m0.Writer;
57
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesResponse;
58
+ fromJSON(object: any): ListAllInterfacesResponse;
59
+ toJSON(message: ListAllInterfacesResponse): unknown;
60
+ fromPartial(object: Partial<ListAllInterfacesResponse>): ListAllInterfacesResponse;
61
+ };
62
+ export declare const ListImplementationsRequest: {
63
+ encode(message: ListImplementationsRequest, writer?: _m0.Writer): _m0.Writer;
64
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsRequest;
65
+ fromJSON(object: any): ListImplementationsRequest;
66
+ toJSON(message: ListImplementationsRequest): unknown;
67
+ fromPartial(object: Partial<ListImplementationsRequest>): ListImplementationsRequest;
68
+ };
69
+ export declare const ListImplementationsResponse: {
70
+ encode(message: ListImplementationsResponse, writer?: _m0.Writer): _m0.Writer;
71
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsResponse;
72
+ fromJSON(object: any): ListImplementationsResponse;
73
+ toJSON(message: ListImplementationsResponse): unknown;
74
+ fromPartial(object: Partial<ListImplementationsResponse>): ListImplementationsResponse;
75
+ };