@gitopia/gitopiajs 0.0.3 → 0.0.4

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 (309) hide show
  1. package/package.json +3 -3
  2. package/dist/LICENSE +0 -21
  3. package/dist/amino/amino.d.ts +0 -1
  4. package/dist/amino/amino.js +0 -2
  5. package/dist/amino/bundle.d.ts +0 -1
  6. package/dist/amino/bundle.js +0 -41
  7. package/dist/binary.d.ts +0 -130
  8. package/dist/binary.js +0 -371
  9. package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -407
  10. package/dist/cosmos/bank/v1beta1/bank.js +0 -664
  11. package/dist/cosmos/bank/v1beta1/query.d.ts +0 -1062
  12. package/dist/cosmos/bank/v1beta1/query.js +0 -1759
  13. package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +0 -19
  14. package/dist/cosmos/bank/v1beta1/query.lcd.js +0 -173
  15. package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +0 -106
  16. package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +0 -123
  17. package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -190
  18. package/dist/cosmos/base/query/v1beta1/pagination.js +0 -204
  19. package/dist/cosmos/base/v1beta1/coin.d.ts +0 -193
  20. package/dist/cosmos/base/v1beta1/coin.js +0 -306
  21. package/dist/cosmos/bundle.d.ts +0 -2311
  22. package/dist/cosmos/bundle.js +0 -134
  23. package/dist/cosmos/client.d.ts +0 -84
  24. package/dist/cosmos/client.js +0 -65
  25. package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -245
  26. package/dist/cosmos/feegrant/v1beta1/feegrant.js +0 -456
  27. package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -258
  28. package/dist/cosmos/feegrant/v1beta1/query.js +0 -487
  29. package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +0 -11
  30. package/dist/cosmos/feegrant/v1beta1/query.lcd.js +0 -44
  31. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +0 -28
  32. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -47
  33. package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -571
  34. package/dist/cosmos/gov/v1beta1/gov.js +0 -1122
  35. package/dist/cosmos/gov/v1beta1/query.d.ts +0 -636
  36. package/dist/cosmos/gov/v1beta1/query.js +0 -1264
  37. package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +0 -16
  38. package/dist/cosmos/gov/v1beta1/query.lcd.js +0 -87
  39. package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +0 -44
  40. package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +0 -92
  41. package/dist/cosmos/group/v1/query.d.ts +0 -1097
  42. package/dist/cosmos/group/v1/query.js +0 -2182
  43. package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
  44. package/dist/cosmos/group/v1/query.lcd.js +0 -158
  45. package/dist/cosmos/group/v1/query.rpc.Query.d.ts +0 -78
  46. package/dist/cosmos/group/v1/query.rpc.Query.js +0 -148
  47. package/dist/cosmos/group/v1/tx.amino.d.ts +0 -73
  48. package/dist/cosmos/group/v1/tx.amino.js +0 -77
  49. package/dist/cosmos/group/v1/tx.d.ts +0 -1198
  50. package/dist/cosmos/group/v1/tx.js +0 -2362
  51. package/dist/cosmos/group/v1/tx.registry.d.ts +0 -180
  52. package/dist/cosmos/group/v1/tx.registry.js +0 -271
  53. package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +0 -51
  54. package/dist/cosmos/group/v1/tx.rpc.msg.js +0 -96
  55. package/dist/cosmos/group/v1/types.d.ts +0 -873
  56. package/dist/cosmos/group/v1/types.js +0 -1495
  57. package/dist/cosmos/msg/v1/msg.d.ts +0 -1
  58. package/dist/cosmos/msg/v1/msg.js +0 -2
  59. package/dist/cosmos/query/v1/query.d.ts +0 -1
  60. package/dist/cosmos/query/v1/query.js +0 -2
  61. package/dist/cosmos/rpc.query.d.ts +0 -59
  62. package/dist/cosmos/rpc.query.js +0 -60
  63. package/dist/cosmos/rpc.tx.d.ts +0 -10
  64. package/dist/cosmos/rpc.tx.js +0 -44
  65. package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -278
  66. package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -382
  67. package/dist/cosmos_proto/bundle.d.ts +0 -32
  68. package/dist/cosmos_proto/bundle.js +0 -41
  69. package/dist/cosmos_proto/cosmos.d.ts +0 -171
  70. package/dist/cosmos_proto/cosmos.js +0 -221
  71. package/dist/esm/amino/amino.js +0 -1
  72. package/dist/esm/amino/bundle.js +0 -5
  73. package/dist/esm/binary.js +0 -366
  74. package/dist/esm/cosmos/bank/v1beta1/bank.js +0 -661
  75. package/dist/esm/cosmos/bank/v1beta1/query.js +0 -1756
  76. package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +0 -169
  77. package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +0 -118
  78. package/dist/esm/cosmos/base/query/v1beta1/pagination.js +0 -201
  79. package/dist/esm/cosmos/base/v1beta1/coin.js +0 -303
  80. package/dist/esm/cosmos/bundle.js +0 -98
  81. package/dist/esm/cosmos/client.js +0 -27
  82. package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +0 -450
  83. package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -484
  84. package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +0 -40
  85. package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -42
  86. package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -1112
  87. package/dist/esm/cosmos/gov/v1beta1/query.js +0 -1261
  88. package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +0 -83
  89. package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +0 -87
  90. package/dist/esm/cosmos/group/v1/query.js +0 -2179
  91. package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
  92. package/dist/esm/cosmos/group/v1/query.rpc.Query.js +0 -143
  93. package/dist/esm/cosmos/group/v1/tx.amino.js +0 -74
  94. package/dist/esm/cosmos/group/v1/tx.js +0 -2354
  95. package/dist/esm/cosmos/group/v1/tx.registry.js +0 -267
  96. package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +0 -92
  97. package/dist/esm/cosmos/group/v1/types.js +0 -1483
  98. package/dist/esm/cosmos/msg/v1/msg.js +0 -1
  99. package/dist/esm/cosmos/query/v1/query.js +0 -1
  100. package/dist/esm/cosmos/rpc.query.js +0 -23
  101. package/dist/esm/cosmos/rpc.tx.js +0 -7
  102. package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -379
  103. package/dist/esm/cosmos_proto/bundle.js +0 -5
  104. package/dist/esm/cosmos_proto/cosmos.js +0 -216
  105. package/dist/esm/gitopia/bundle.js +0 -95
  106. package/dist/esm/gitopia/client.js +0 -32
  107. package/dist/esm/gitopia/custom-lcd-client.js +0 -50
  108. package/dist/esm/gitopia/gitopia/gitopia/attachment.js +0 -101
  109. package/dist/esm/gitopia/gitopia/gitopia/bounty.js +0 -255
  110. package/dist/esm/gitopia/gitopia/gitopia/branch.js +0 -137
  111. package/dist/esm/gitopia/gitopia/gitopia/comment.js +0 -488
  112. package/dist/esm/gitopia/gitopia/gitopia/dao.js +0 -451
  113. package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +0 -78
  114. package/dist/esm/gitopia/gitopia/gitopia/genesis.js +0 -460
  115. package/dist/esm/gitopia/gitopia/gitopia/issue.js +0 -323
  116. package/dist/esm/gitopia/gitopia/gitopia/params.js +0 -293
  117. package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +0 -565
  118. package/dist/esm/gitopia/gitopia/gitopia/query.js +0 -7351
  119. package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +0 -452
  120. package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -453
  121. package/dist/esm/gitopia/gitopia/gitopia/reaction.js +0 -123
  122. package/dist/esm/gitopia/gitopia/gitopia/release.js +0 -225
  123. package/dist/esm/gitopia/gitopia/gitopia/repository.js +0 -1200
  124. package/dist/esm/gitopia/gitopia/gitopia/tag.js +0 -125
  125. package/dist/esm/gitopia/gitopia/gitopia/task.js +0 -197
  126. package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +0 -464
  127. package/dist/esm/gitopia/gitopia/gitopia/tx.js +0 -14679
  128. package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +0 -1671
  129. package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -560
  130. package/dist/esm/gitopia/gitopia/gitopia/user.js +0 -340
  131. package/dist/esm/gitopia/gitopia/gitopia/whois.js +0 -146
  132. package/dist/esm/gitopia/gitopia/offchain/offchain.js +0 -144
  133. package/dist/esm/gitopia/gitopia/rewards/genesis.js +0 -82
  134. package/dist/esm/gitopia/gitopia/rewards/params.js +0 -81
  135. package/dist/esm/gitopia/gitopia/rewards/pool.js +0 -191
  136. package/dist/esm/gitopia/gitopia/rewards/query.js +0 -654
  137. package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +0 -40
  138. package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +0 -53
  139. package/dist/esm/gitopia/gitopia/rewards/rewards.js +0 -191
  140. package/dist/esm/gitopia/gitopia/rewards/task.js +0 -176
  141. package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +0 -19
  142. package/dist/esm/gitopia/gitopia/rewards/tx.js +0 -525
  143. package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +0 -69
  144. package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -26
  145. package/dist/esm/gitopia/rpc.query.js +0 -29
  146. package/dist/esm/gitopia/rpc.tx.js +0 -13
  147. package/dist/esm/gogoproto/bundle.js +0 -5
  148. package/dist/esm/gogoproto/gogo.js +0 -1
  149. package/dist/esm/google/api/annotations.js +0 -1
  150. package/dist/esm/google/api/http.js +0 -329
  151. package/dist/esm/google/bundle.js +0 -14
  152. package/dist/esm/google/protobuf/any.js +0 -74
  153. package/dist/esm/google/protobuf/descriptor.js +0 -4848
  154. package/dist/esm/google/protobuf/duration.js +0 -71
  155. package/dist/esm/google/protobuf/timestamp.js +0 -68
  156. package/dist/esm/helpers.js +0 -129
  157. package/dist/esm/ibc/applications/transfer/v1/query.js +0 -847
  158. package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +0 -70
  159. package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +0 -71
  160. package/dist/esm/ibc/applications/transfer/v1/transfer.js +0 -164
  161. package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +0 -9
  162. package/dist/esm/ibc/applications/transfer/v1/tx.js +0 -226
  163. package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +0 -33
  164. package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -14
  165. package/dist/esm/ibc/bundle.js +0 -44
  166. package/dist/esm/ibc/client.js +0 -29
  167. package/dist/esm/ibc/core/client/v1/client.js +0 -611
  168. package/dist/esm/ibc/rpc.query.js +0 -30
  169. package/dist/esm/ibc/rpc.tx.js +0 -14
  170. package/dist/esm/index.js +0 -19
  171. package/dist/esm/utf8.js +0 -137
  172. package/dist/esm/varint.js +0 -408
  173. package/dist/gitopia/bundle.d.ts +0 -6123
  174. package/dist/gitopia/bundle.js +0 -131
  175. package/dist/gitopia/client.d.ts +0 -492
  176. package/dist/gitopia/client.js +0 -70
  177. package/dist/gitopia/custom-lcd-client.d.ts +0 -31
  178. package/dist/gitopia/custom-lcd-client.js +0 -87
  179. package/dist/gitopia/gitopia/gitopia/attachment.d.ts +0 -39
  180. package/dist/gitopia/gitopia/gitopia/attachment.js +0 -104
  181. package/dist/gitopia/gitopia/gitopia/bounty.d.ts +0 -79
  182. package/dist/gitopia/gitopia/gitopia/bounty.js +0 -262
  183. package/dist/gitopia/gitopia/gitopia/branch.d.ts +0 -48
  184. package/dist/gitopia/gitopia/gitopia/branch.js +0 -140
  185. package/dist/gitopia/gitopia/gitopia/comment.d.ts +0 -125
  186. package/dist/gitopia/gitopia/gitopia/comment.js +0 -495
  187. package/dist/gitopia/gitopia/gitopia/dao.d.ts +0 -160
  188. package/dist/gitopia/gitopia/gitopia/dao.js +0 -454
  189. package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +0 -34
  190. package/dist/gitopia/gitopia/gitopia/exercised_amount.js +0 -81
  191. package/dist/gitopia/gitopia/gitopia/genesis.d.ts +0 -143
  192. package/dist/gitopia/gitopia/gitopia/genesis.js +0 -463
  193. package/dist/gitopia/gitopia/gitopia/issue.d.ts +0 -88
  194. package/dist/gitopia/gitopia/gitopia/issue.js +0 -328
  195. package/dist/gitopia/gitopia/gitopia/params.d.ts +0 -115
  196. package/dist/gitopia/gitopia/gitopia/params.js +0 -296
  197. package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +0 -177
  198. package/dist/gitopia/gitopia/gitopia/pullRequest.js +0 -570
  199. package/dist/gitopia/gitopia/gitopia/query.d.ts +0 -3130
  200. package/dist/gitopia/gitopia/gitopia/query.js +0 -7355
  201. package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +0 -54
  202. package/dist/gitopia/gitopia/gitopia/query.lcd.js +0 -456
  203. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +0 -188
  204. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -458
  205. package/dist/gitopia/gitopia/gitopia/reaction.d.ts +0 -42
  206. package/dist/gitopia/gitopia/gitopia/reaction.js +0 -128
  207. package/dist/gitopia/gitopia/gitopia/release.d.ts +0 -70
  208. package/dist/gitopia/gitopia/gitopia/release.js +0 -228
  209. package/dist/gitopia/gitopia/gitopia/repository.d.ts +0 -424
  210. package/dist/gitopia/gitopia/gitopia/repository.js +0 -1207
  211. package/dist/gitopia/gitopia/gitopia/tag.d.ts +0 -45
  212. package/dist/gitopia/gitopia/gitopia/tag.js +0 -128
  213. package/dist/gitopia/gitopia/gitopia/task.d.ts +0 -64
  214. package/dist/gitopia/gitopia/gitopia/task.js +0 -204
  215. package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +0 -463
  216. package/dist/gitopia/gitopia/gitopia/tx.amino.js +0 -467
  217. package/dist/gitopia/gitopia/gitopia/tx.d.ts +0 -6246
  218. package/dist/gitopia/gitopia/gitopia/tx.js +0 -14687
  219. package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +0 -1116
  220. package/dist/gitopia/gitopia/gitopia/tx.registry.js +0 -1675
  221. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +0 -200
  222. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -564
  223. package/dist/gitopia/gitopia/gitopia/user.d.ts +0 -104
  224. package/dist/gitopia/gitopia/gitopia/user.js +0 -343
  225. package/dist/gitopia/gitopia/gitopia/whois.d.ts +0 -51
  226. package/dist/gitopia/gitopia/gitopia/whois.js +0 -151
  227. package/dist/gitopia/gitopia/offchain/offchain.d.ts +0 -74
  228. package/dist/gitopia/gitopia/offchain/offchain.js +0 -147
  229. package/dist/gitopia/gitopia/rewards/genesis.d.ts +0 -40
  230. package/dist/gitopia/gitopia/rewards/genesis.js +0 -85
  231. package/dist/gitopia/gitopia/rewards/params.d.ts +0 -37
  232. package/dist/gitopia/gitopia/rewards/params.js +0 -84
  233. package/dist/gitopia/gitopia/rewards/pool.d.ts +0 -59
  234. package/dist/gitopia/gitopia/rewards/pool.js +0 -196
  235. package/dist/gitopia/gitopia/rewards/query.d.ts +0 -294
  236. package/dist/gitopia/gitopia/rewards/query.js +0 -657
  237. package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +0 -12
  238. package/dist/gitopia/gitopia/rewards/query.lcd.js +0 -44
  239. package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +0 -28
  240. package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +0 -58
  241. package/dist/gitopia/gitopia/rewards/rewards.d.ts +0 -79
  242. package/dist/gitopia/gitopia/rewards/rewards.js +0 -194
  243. package/dist/gitopia/gitopia/rewards/task.d.ts +0 -54
  244. package/dist/gitopia/gitopia/rewards/task.js +0 -181
  245. package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +0 -18
  246. package/dist/gitopia/gitopia/rewards/tx.amino.js +0 -22
  247. package/dist/gitopia/gitopia/rewards/tx.d.ts +0 -242
  248. package/dist/gitopia/gitopia/rewards/tx.js +0 -528
  249. package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +0 -48
  250. package/dist/gitopia/gitopia/rewards/tx.registry.js +0 -73
  251. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +0 -19
  252. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -30
  253. package/dist/gitopia/rpc.query.d.ts +0 -117
  254. package/dist/gitopia/rpc.query.js +0 -66
  255. package/dist/gitopia/rpc.tx.d.ts +0 -16
  256. package/dist/gitopia/rpc.tx.js +0 -50
  257. package/dist/gogoproto/bundle.d.ts +0 -1
  258. package/dist/gogoproto/bundle.js +0 -41
  259. package/dist/gogoproto/gogo.d.ts +0 -1
  260. package/dist/gogoproto/gogo.js +0 -2
  261. package/dist/google/api/annotations.d.ts +0 -1
  262. package/dist/google/api/annotations.js +0 -2
  263. package/dist/google/api/http.d.ts +0 -1049
  264. package/dist/google/api/http.js +0 -332
  265. package/dist/google/bundle.d.ts +0 -525
  266. package/dist/google/bundle.js +0 -50
  267. package/dist/google/protobuf/any.d.ts +0 -358
  268. package/dist/google/protobuf/any.js +0 -77
  269. package/dist/google/protobuf/descriptor.d.ts +0 -3178
  270. package/dist/google/protobuf/descriptor.js +0 -4886
  271. package/dist/google/protobuf/duration.d.ts +0 -223
  272. package/dist/google/protobuf/duration.js +0 -74
  273. package/dist/google/protobuf/timestamp.d.ts +0 -314
  274. package/dist/google/protobuf/timestamp.js +0 -71
  275. package/dist/helpers.d.ts +0 -82
  276. package/dist/helpers.js +0 -144
  277. package/dist/ibc/applications/transfer/v1/query.d.ts +0 -479
  278. package/dist/ibc/applications/transfer/v1/query.js +0 -850
  279. package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +0 -14
  280. package/dist/ibc/applications/transfer/v1/query.lcd.js +0 -74
  281. package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +0 -36
  282. package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +0 -76
  283. package/dist/ibc/applications/transfer/v1/transfer.d.ts +0 -123
  284. package/dist/ibc/applications/transfer/v1/transfer.js +0 -167
  285. package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +0 -8
  286. package/dist/ibc/applications/transfer/v1/tx.amino.js +0 -12
  287. package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -132
  288. package/dist/ibc/applications/transfer/v1/tx.js +0 -229
  289. package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +0 -24
  290. package/dist/ibc/applications/transfer/v1/tx.registry.js +0 -37
  291. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +0 -12
  292. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -18
  293. package/dist/ibc/bundle.d.ts +0 -450
  294. package/dist/ibc/bundle.js +0 -80
  295. package/dist/ibc/client.d.ts +0 -22
  296. package/dist/ibc/client.js +0 -67
  297. package/dist/ibc/core/client/v1/client.d.ts +0 -408
  298. package/dist/ibc/core/client/v1/client.js +0 -614
  299. package/dist/ibc/rpc.query.d.ts +0 -73
  300. package/dist/ibc/rpc.query.js +0 -67
  301. package/dist/ibc/rpc.tx.d.ts +0 -17
  302. package/dist/ibc/rpc.tx.js +0 -51
  303. package/dist/index.d.ts +0 -18
  304. package/dist/index.js +0 -35
  305. package/dist/package.json +0 -46
  306. package/dist/utf8.d.ts +0 -27
  307. package/dist/utf8.js +0 -141
  308. package/dist/varint.d.ts +0 -105
  309. package/dist/varint.js +0 -426
@@ -1,221 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScalarDescriptor = exports.InterfaceDescriptor = exports.ScalarTypeAmino = exports.ScalarTypeSDKType = exports.ScalarType = void 0;
4
- exports.scalarTypeFromJSON = scalarTypeFromJSON;
5
- exports.scalarTypeToJSON = scalarTypeToJSON;
6
- //@ts-nocheck
7
- const binary_1 = require("../binary");
8
- var ScalarType;
9
- (function (ScalarType) {
10
- ScalarType[ScalarType["SCALAR_TYPE_UNSPECIFIED"] = 0] = "SCALAR_TYPE_UNSPECIFIED";
11
- ScalarType[ScalarType["SCALAR_TYPE_STRING"] = 1] = "SCALAR_TYPE_STRING";
12
- ScalarType[ScalarType["SCALAR_TYPE_BYTES"] = 2] = "SCALAR_TYPE_BYTES";
13
- ScalarType[ScalarType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
14
- })(ScalarType || (exports.ScalarType = ScalarType = {}));
15
- exports.ScalarTypeSDKType = ScalarType;
16
- exports.ScalarTypeAmino = ScalarType;
17
- function scalarTypeFromJSON(object) {
18
- switch (object) {
19
- case 0:
20
- case "SCALAR_TYPE_UNSPECIFIED":
21
- return ScalarType.SCALAR_TYPE_UNSPECIFIED;
22
- case 1:
23
- case "SCALAR_TYPE_STRING":
24
- return ScalarType.SCALAR_TYPE_STRING;
25
- case 2:
26
- case "SCALAR_TYPE_BYTES":
27
- return ScalarType.SCALAR_TYPE_BYTES;
28
- case -1:
29
- case "UNRECOGNIZED":
30
- default:
31
- return ScalarType.UNRECOGNIZED;
32
- }
33
- }
34
- function scalarTypeToJSON(object) {
35
- switch (object) {
36
- case ScalarType.SCALAR_TYPE_UNSPECIFIED:
37
- return "SCALAR_TYPE_UNSPECIFIED";
38
- case ScalarType.SCALAR_TYPE_STRING:
39
- return "SCALAR_TYPE_STRING";
40
- case ScalarType.SCALAR_TYPE_BYTES:
41
- return "SCALAR_TYPE_BYTES";
42
- case ScalarType.UNRECOGNIZED:
43
- default:
44
- return "UNRECOGNIZED";
45
- }
46
- }
47
- function createBaseInterfaceDescriptor() {
48
- return {
49
- name: "",
50
- description: ""
51
- };
52
- }
53
- exports.InterfaceDescriptor = {
54
- typeUrl: "/cosmos_proto.InterfaceDescriptor",
55
- encode(message, writer = binary_1.BinaryWriter.create()) {
56
- if (message.name !== "") {
57
- writer.uint32(10).string(message.name);
58
- }
59
- if (message.description !== "") {
60
- writer.uint32(18).string(message.description);
61
- }
62
- return writer;
63
- },
64
- decode(input, length) {
65
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
66
- let end = length === undefined ? reader.len : reader.pos + length;
67
- const message = createBaseInterfaceDescriptor();
68
- while (reader.pos < end) {
69
- const tag = reader.uint32();
70
- switch (tag >>> 3) {
71
- case 1:
72
- message.name = reader.string();
73
- break;
74
- case 2:
75
- message.description = reader.string();
76
- break;
77
- default:
78
- reader.skipType(tag & 7);
79
- break;
80
- }
81
- }
82
- return message;
83
- },
84
- fromPartial(object) {
85
- const message = createBaseInterfaceDescriptor();
86
- message.name = object.name ?? "";
87
- message.description = object.description ?? "";
88
- return message;
89
- },
90
- fromAmino(object) {
91
- const message = createBaseInterfaceDescriptor();
92
- if (object.name !== undefined && object.name !== null) {
93
- message.name = object.name;
94
- }
95
- if (object.description !== undefined && object.description !== null) {
96
- message.description = object.description;
97
- }
98
- return message;
99
- },
100
- toAmino(message) {
101
- const obj = {};
102
- obj.name = message.name === "" ? undefined : message.name;
103
- obj.description = message.description === "" ? undefined : message.description;
104
- return obj;
105
- },
106
- fromAminoMsg(object) {
107
- return exports.InterfaceDescriptor.fromAmino(object.value);
108
- },
109
- fromProtoMsg(message) {
110
- return exports.InterfaceDescriptor.decode(message.value);
111
- },
112
- toProto(message) {
113
- return exports.InterfaceDescriptor.encode(message).finish();
114
- },
115
- toProtoMsg(message) {
116
- return {
117
- typeUrl: "/cosmos_proto.InterfaceDescriptor",
118
- value: exports.InterfaceDescriptor.encode(message).finish()
119
- };
120
- }
121
- };
122
- function createBaseScalarDescriptor() {
123
- return {
124
- name: "",
125
- description: "",
126
- fieldType: []
127
- };
128
- }
129
- exports.ScalarDescriptor = {
130
- typeUrl: "/cosmos_proto.ScalarDescriptor",
131
- encode(message, writer = binary_1.BinaryWriter.create()) {
132
- if (message.name !== "") {
133
- writer.uint32(10).string(message.name);
134
- }
135
- if (message.description !== "") {
136
- writer.uint32(18).string(message.description);
137
- }
138
- writer.uint32(26).fork();
139
- for (const v of message.fieldType) {
140
- writer.int32(v);
141
- }
142
- writer.ldelim();
143
- return writer;
144
- },
145
- decode(input, length) {
146
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
147
- let end = length === undefined ? reader.len : reader.pos + length;
148
- const message = createBaseScalarDescriptor();
149
- while (reader.pos < end) {
150
- const tag = reader.uint32();
151
- switch (tag >>> 3) {
152
- case 1:
153
- message.name = reader.string();
154
- break;
155
- case 2:
156
- message.description = reader.string();
157
- break;
158
- case 3:
159
- if ((tag & 7) === 2) {
160
- const end2 = reader.uint32() + reader.pos;
161
- while (reader.pos < end2) {
162
- message.fieldType.push(reader.int32());
163
- }
164
- }
165
- else {
166
- message.fieldType.push(reader.int32());
167
- }
168
- break;
169
- default:
170
- reader.skipType(tag & 7);
171
- break;
172
- }
173
- }
174
- return message;
175
- },
176
- fromPartial(object) {
177
- const message = createBaseScalarDescriptor();
178
- message.name = object.name ?? "";
179
- message.description = object.description ?? "";
180
- message.fieldType = object.fieldType?.map(e => e) || [];
181
- return message;
182
- },
183
- fromAmino(object) {
184
- const message = createBaseScalarDescriptor();
185
- if (object.name !== undefined && object.name !== null) {
186
- message.name = object.name;
187
- }
188
- if (object.description !== undefined && object.description !== null) {
189
- message.description = object.description;
190
- }
191
- message.fieldType = object.field_type?.map(e => e) || [];
192
- return message;
193
- },
194
- toAmino(message) {
195
- const obj = {};
196
- obj.name = message.name === "" ? undefined : message.name;
197
- obj.description = message.description === "" ? undefined : message.description;
198
- if (message.fieldType) {
199
- obj.field_type = message.fieldType.map(e => e);
200
- }
201
- else {
202
- obj.field_type = message.fieldType;
203
- }
204
- return obj;
205
- },
206
- fromAminoMsg(object) {
207
- return exports.ScalarDescriptor.fromAmino(object.value);
208
- },
209
- fromProtoMsg(message) {
210
- return exports.ScalarDescriptor.decode(message.value);
211
- },
212
- toProto(message) {
213
- return exports.ScalarDescriptor.encode(message).finish();
214
- },
215
- toProtoMsg(message) {
216
- return {
217
- typeUrl: "/cosmos_proto.ScalarDescriptor",
218
- value: exports.ScalarDescriptor.encode(message).finish()
219
- };
220
- }
221
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- //@ts-nocheck
2
- import * as _0 from "./amino";
3
- export const amino = {
4
- ..._0
5
- };
@@ -1,366 +0,0 @@
1
- //@ts-nocheck
2
- /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.0
4
- * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
- * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
- */
7
- // Copyright (c) 2016, Daniel Wirtz All rights reserved.
8
- // Redistribution and use in source and binary forms, with or without
9
- // modification, are permitted provided that the following conditions are
10
- // met:
11
- // * Redistributions of source code must retain the above copyright
12
- // notice, this list of conditions and the following disclaimer.
13
- // * Redistributions in binary form must reproduce the above copyright
14
- // notice, this list of conditions and the following disclaimer in the
15
- // documentation and/or other materials provided with the distribution.
16
- // * Neither the name of its author, nor the names of its contributors
17
- // may be used to endorse or promote products derived from this software
18
- // without specific prior written permission.
19
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- // ---
31
- // Code generated by the command line utilities is owned by the owner
32
- // of the input file used when generating it. This code is not
33
- // standalone and requires a support library to be linked with it. This
34
- // support library is itself covered by the above license.
35
- import { utf8Length, utf8Read, utf8Write } from "./utf8";
36
- import { int64ToString, readInt32, readUInt32, uInt64ToString, varint32read, varint64read, writeVarint32, writeVarint64, int64FromString, int64Length, writeFixed32, writeByte, zzDecode, zzEncode, } from "./varint";
37
- export var WireType;
38
- (function (WireType) {
39
- WireType[WireType["Varint"] = 0] = "Varint";
40
- WireType[WireType["Fixed64"] = 1] = "Fixed64";
41
- WireType[WireType["Bytes"] = 2] = "Bytes";
42
- WireType[WireType["Fixed32"] = 5] = "Fixed32";
43
- })(WireType || (WireType = {}));
44
- export class BinaryReader {
45
- buf;
46
- pos;
47
- type;
48
- len;
49
- assertBounds() {
50
- if (this.pos > this.len)
51
- throw new RangeError("premature EOF");
52
- }
53
- constructor(buf) {
54
- this.buf = buf ? new Uint8Array(buf) : new Uint8Array(0);
55
- this.pos = 0;
56
- this.type = 0;
57
- this.len = this.buf.length;
58
- }
59
- tag() {
60
- const tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7;
61
- if (fieldNo <= 0 || wireType < 0 || wireType > 5)
62
- throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType);
63
- return [fieldNo, wireType, tag];
64
- }
65
- skip(length) {
66
- if (typeof length === "number") {
67
- if (this.pos + length > this.len)
68
- throw indexOutOfRange(this, length);
69
- this.pos += length;
70
- }
71
- else {
72
- do {
73
- if (this.pos >= this.len)
74
- throw indexOutOfRange(this);
75
- } while (this.buf[this.pos++] & 128);
76
- }
77
- return this;
78
- }
79
- skipType(wireType) {
80
- switch (wireType) {
81
- case WireType.Varint:
82
- this.skip();
83
- break;
84
- case WireType.Fixed64:
85
- this.skip(8);
86
- break;
87
- case WireType.Bytes:
88
- this.skip(this.uint32());
89
- break;
90
- case 3:
91
- while ((wireType = this.uint32() & 7) !== 4) {
92
- this.skipType(wireType);
93
- }
94
- break;
95
- case WireType.Fixed32:
96
- this.skip(4);
97
- break;
98
- /* istanbul ignore next */
99
- default:
100
- throw Error("invalid wire type " + wireType + " at offset " + this.pos);
101
- }
102
- return this;
103
- }
104
- uint32() {
105
- return varint32read.bind(this)();
106
- }
107
- int32() {
108
- return this.uint32() | 0;
109
- }
110
- sint32() {
111
- const num = this.uint32();
112
- return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding
113
- }
114
- fixed32() {
115
- const val = readUInt32(this.buf, this.pos);
116
- this.pos += 4;
117
- return val;
118
- }
119
- sfixed32() {
120
- const val = readInt32(this.buf, this.pos);
121
- this.pos += 4;
122
- return val;
123
- }
124
- int64() {
125
- const [lo, hi] = varint64read.bind(this)();
126
- return BigInt(int64ToString(lo, hi));
127
- }
128
- uint64() {
129
- const [lo, hi] = varint64read.bind(this)();
130
- return BigInt(uInt64ToString(lo, hi));
131
- }
132
- sint64() {
133
- let [lo, hi] = varint64read.bind(this)();
134
- // zig zag
135
- [lo, hi] = zzDecode(lo, hi);
136
- return BigInt(int64ToString(lo, hi));
137
- }
138
- fixed64() {
139
- const lo = this.sfixed32();
140
- const hi = this.sfixed32();
141
- return BigInt(uInt64ToString(lo, hi));
142
- }
143
- sfixed64() {
144
- const lo = this.sfixed32();
145
- const hi = this.sfixed32();
146
- return BigInt(int64ToString(lo, hi));
147
- }
148
- float() {
149
- throw new Error("float not supported");
150
- }
151
- double() {
152
- throw new Error("double not supported");
153
- }
154
- bool() {
155
- const [lo, hi] = varint64read.bind(this)();
156
- return lo !== 0 || hi !== 0;
157
- }
158
- bytes() {
159
- const len = this.uint32(), start = this.pos;
160
- this.pos += len;
161
- this.assertBounds();
162
- return this.buf.subarray(start, start + len);
163
- }
164
- string() {
165
- const bytes = this.bytes();
166
- return utf8Read(bytes, 0, bytes.length);
167
- }
168
- }
169
- class Op {
170
- fn;
171
- len;
172
- val;
173
- next;
174
- constructor(fn, len, val) {
175
- this.fn = fn;
176
- this.len = len;
177
- this.val = val;
178
- }
179
- proceed(buf, pos) {
180
- if (this.fn) {
181
- this.fn(this.val, buf, pos);
182
- }
183
- }
184
- }
185
- class State {
186
- head;
187
- tail;
188
- len;
189
- next;
190
- constructor(writer) {
191
- this.head = writer.head;
192
- this.tail = writer.tail;
193
- this.len = writer.len;
194
- this.next = writer.states;
195
- }
196
- }
197
- export class BinaryWriter {
198
- len = 0;
199
- head;
200
- tail;
201
- states;
202
- constructor() {
203
- this.head = new Op(null, 0, 0);
204
- this.tail = this.head;
205
- this.states = null;
206
- }
207
- static create() {
208
- return new BinaryWriter();
209
- }
210
- static alloc(size) {
211
- if (typeof Uint8Array !== "undefined") {
212
- return pool((size) => new Uint8Array(size), Uint8Array.prototype.subarray)(size);
213
- }
214
- else {
215
- return new Array(size);
216
- }
217
- }
218
- _push(fn, len, val) {
219
- this.tail = this.tail.next = new Op(fn, len, val);
220
- this.len += len;
221
- return this;
222
- }
223
- finish() {
224
- let head = this.head.next, pos = 0;
225
- const buf = BinaryWriter.alloc(this.len);
226
- while (head) {
227
- head.proceed(buf, pos);
228
- pos += head.len;
229
- head = head.next;
230
- }
231
- return buf;
232
- }
233
- fork() {
234
- this.states = new State(this);
235
- this.head = this.tail = new Op(null, 0, 0);
236
- this.len = 0;
237
- return this;
238
- }
239
- reset() {
240
- if (this.states) {
241
- this.head = this.states.head;
242
- this.tail = this.states.tail;
243
- this.len = this.states.len;
244
- this.states = this.states.next;
245
- }
246
- else {
247
- this.head = this.tail = new Op(null, 0, 0);
248
- this.len = 0;
249
- }
250
- return this;
251
- }
252
- ldelim() {
253
- const head = this.head, tail = this.tail, len = this.len;
254
- this.reset().uint32(len);
255
- if (len) {
256
- this.tail.next = head.next; // skip noop
257
- this.tail = tail;
258
- this.len += len;
259
- }
260
- return this;
261
- }
262
- tag(fieldNo, type) {
263
- return this.uint32(((fieldNo << 3) | type) >>> 0);
264
- }
265
- uint32(value) {
266
- this.len += (this.tail = this.tail.next =
267
- new Op(writeVarint32, (value = value >>> 0) < 128
268
- ? 1
269
- : value < 16384
270
- ? 2
271
- : value < 2097152
272
- ? 3
273
- : value < 268435456
274
- ? 4
275
- : 5, value)).len;
276
- return this;
277
- }
278
- int32(value) {
279
- return value < 0
280
- ? this._push(writeVarint64, 10, int64FromString(value.toString())) // 10 bytes per spec
281
- : this.uint32(value);
282
- }
283
- sint32(value) {
284
- return this.uint32(((value << 1) ^ (value >> 31)) >>> 0);
285
- }
286
- int64(value) {
287
- const { lo, hi } = int64FromString(value.toString());
288
- return this._push(writeVarint64, int64Length(lo, hi), { lo, hi });
289
- }
290
- // uint64 is the same with int64
291
- uint64 = BinaryWriter.prototype.int64;
292
- sint64(value) {
293
- let { lo, hi } = int64FromString(value.toString());
294
- // zig zag
295
- [lo, hi] = zzEncode(lo, hi);
296
- return this._push(writeVarint64, int64Length(lo, hi), { lo, hi });
297
- }
298
- fixed64(value) {
299
- const { lo, hi } = int64FromString(value.toString());
300
- return this._push(writeFixed32, 4, lo)._push(writeFixed32, 4, hi);
301
- }
302
- // sfixed64 is the same with fixed64
303
- sfixed64 = BinaryWriter.prototype.fixed64;
304
- bool(value) {
305
- return this._push(writeByte, 1, value ? 1 : 0);
306
- }
307
- fixed32(value) {
308
- return this._push(writeFixed32, 4, value >>> 0);
309
- }
310
- // sfixed32 is the same with fixed32
311
- sfixed32 = BinaryWriter.prototype.fixed32;
312
- float(value) {
313
- throw new Error("float not supported" + value);
314
- }
315
- double(value) {
316
- throw new Error("double not supported" + value);
317
- }
318
- bytes(value) {
319
- const len = value.length >>> 0;
320
- if (!len)
321
- return this._push(writeByte, 1, 0);
322
- return this.uint32(len)._push(writeBytes, len, value);
323
- }
324
- string(value) {
325
- const len = utf8Length(value);
326
- return len
327
- ? this.uint32(len)._push(utf8Write, len, value)
328
- : this._push(writeByte, 1, 0);
329
- }
330
- }
331
- function writeBytes(val, buf, pos) {
332
- if (typeof Uint8Array !== "undefined") {
333
- buf.set(val, pos);
334
- }
335
- else {
336
- for (let i = 0; i < val.length; ++i)
337
- buf[pos + i] = val[i];
338
- }
339
- }
340
- function pool(alloc, slice, size) {
341
- const SIZE = size || 8192;
342
- const MAX = SIZE >>> 1;
343
- let slab = null;
344
- let offset = SIZE;
345
- return function pool_alloc(size) {
346
- if (size < 1 || size > MAX)
347
- return alloc(size);
348
- if (offset + size > SIZE) {
349
- slab = alloc(SIZE);
350
- offset = 0;
351
- }
352
- const buf = slice.call(slab, offset, (offset += size));
353
- if (offset & 7)
354
- // align to 32 bit
355
- offset = (offset | 7) + 1;
356
- return buf;
357
- };
358
- }
359
- function indexOutOfRange(reader, writeLength) {
360
- return RangeError("index out of range: " +
361
- reader.pos +
362
- " + " +
363
- (writeLength || 1) +
364
- " > " +
365
- reader.len);
366
- }