@gitopia/gitopiajs 0.0.4 → 0.0.6

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 (310) hide show
  1. package/dist/LICENSE +21 -0
  2. package/dist/amino/amino.d.ts +1 -0
  3. package/dist/amino/amino.js +2 -0
  4. package/dist/amino/bundle.d.ts +1 -0
  5. package/dist/amino/bundle.js +41 -0
  6. package/dist/binary.d.ts +130 -0
  7. package/dist/binary.js +371 -0
  8. package/dist/cosmos/bank/v1beta1/bank.d.ts +407 -0
  9. package/dist/cosmos/bank/v1beta1/bank.js +664 -0
  10. package/dist/cosmos/bank/v1beta1/query.d.ts +1062 -0
  11. package/dist/cosmos/bank/v1beta1/query.js +1759 -0
  12. package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +19 -0
  13. package/dist/cosmos/bank/v1beta1/query.lcd.js +173 -0
  14. package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +106 -0
  15. package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +123 -0
  16. package/dist/cosmos/base/query/v1beta1/pagination.d.ts +190 -0
  17. package/dist/cosmos/base/query/v1beta1/pagination.js +204 -0
  18. package/dist/cosmos/base/v1beta1/coin.d.ts +193 -0
  19. package/dist/cosmos/base/v1beta1/coin.js +306 -0
  20. package/dist/cosmos/bundle.d.ts +2311 -0
  21. package/dist/cosmos/bundle.js +134 -0
  22. package/dist/cosmos/client.d.ts +84 -0
  23. package/dist/cosmos/client.js +65 -0
  24. package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +245 -0
  25. package/dist/cosmos/feegrant/v1beta1/feegrant.js +456 -0
  26. package/dist/cosmos/feegrant/v1beta1/query.d.ts +258 -0
  27. package/dist/cosmos/feegrant/v1beta1/query.js +487 -0
  28. package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +11 -0
  29. package/dist/cosmos/feegrant/v1beta1/query.lcd.js +44 -0
  30. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +28 -0
  31. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +47 -0
  32. package/dist/cosmos/gov/v1beta1/gov.d.ts +571 -0
  33. package/dist/cosmos/gov/v1beta1/gov.js +1122 -0
  34. package/dist/cosmos/gov/v1beta1/query.d.ts +636 -0
  35. package/dist/cosmos/gov/v1beta1/query.js +1264 -0
  36. package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
  37. package/dist/cosmos/gov/v1beta1/query.lcd.js +87 -0
  38. package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +44 -0
  39. package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +92 -0
  40. package/dist/cosmos/group/v1/query.d.ts +1097 -0
  41. package/dist/cosmos/group/v1/query.js +2182 -0
  42. package/dist/cosmos/group/v1/query.lcd.d.ts +22 -0
  43. package/dist/cosmos/group/v1/query.lcd.js +158 -0
  44. package/dist/cosmos/group/v1/query.rpc.Query.d.ts +78 -0
  45. package/dist/cosmos/group/v1/query.rpc.Query.js +148 -0
  46. package/dist/cosmos/group/v1/tx.amino.d.ts +73 -0
  47. package/dist/cosmos/group/v1/tx.amino.js +77 -0
  48. package/dist/cosmos/group/v1/tx.d.ts +1198 -0
  49. package/dist/cosmos/group/v1/tx.js +2362 -0
  50. package/dist/cosmos/group/v1/tx.registry.d.ts +180 -0
  51. package/dist/cosmos/group/v1/tx.registry.js +271 -0
  52. package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +51 -0
  53. package/dist/cosmos/group/v1/tx.rpc.msg.js +96 -0
  54. package/dist/cosmos/group/v1/types.d.ts +873 -0
  55. package/dist/cosmos/group/v1/types.js +1495 -0
  56. package/dist/cosmos/msg/v1/msg.d.ts +1 -0
  57. package/dist/cosmos/msg/v1/msg.js +2 -0
  58. package/dist/cosmos/query/v1/query.d.ts +1 -0
  59. package/dist/cosmos/query/v1/query.js +2 -0
  60. package/dist/cosmos/rpc.query.d.ts +59 -0
  61. package/dist/cosmos/rpc.query.js +60 -0
  62. package/dist/cosmos/rpc.tx.d.ts +10 -0
  63. package/dist/cosmos/rpc.tx.js +44 -0
  64. package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +278 -0
  65. package/dist/cosmos/upgrade/v1beta1/upgrade.js +382 -0
  66. package/dist/cosmos_proto/bundle.d.ts +32 -0
  67. package/dist/cosmos_proto/bundle.js +41 -0
  68. package/dist/cosmos_proto/cosmos.d.ts +171 -0
  69. package/dist/cosmos_proto/cosmos.js +221 -0
  70. package/dist/esm/amino/amino.js +1 -0
  71. package/dist/esm/amino/bundle.js +5 -0
  72. package/dist/esm/binary.js +366 -0
  73. package/dist/esm/cosmos/bank/v1beta1/bank.js +661 -0
  74. package/dist/esm/cosmos/bank/v1beta1/query.js +1756 -0
  75. package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +169 -0
  76. package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +118 -0
  77. package/dist/esm/cosmos/base/query/v1beta1/pagination.js +201 -0
  78. package/dist/esm/cosmos/base/v1beta1/coin.js +303 -0
  79. package/dist/esm/cosmos/bundle.js +98 -0
  80. package/dist/esm/cosmos/client.js +27 -0
  81. package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +450 -0
  82. package/dist/esm/cosmos/feegrant/v1beta1/query.js +484 -0
  83. package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +40 -0
  84. package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +42 -0
  85. package/dist/esm/cosmos/gov/v1beta1/gov.js +1112 -0
  86. package/dist/esm/cosmos/gov/v1beta1/query.js +1261 -0
  87. package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +83 -0
  88. package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +87 -0
  89. package/dist/esm/cosmos/group/v1/query.js +2179 -0
  90. package/dist/esm/cosmos/group/v1/query.lcd.js +154 -0
  91. package/dist/esm/cosmos/group/v1/query.rpc.Query.js +143 -0
  92. package/dist/esm/cosmos/group/v1/tx.amino.js +74 -0
  93. package/dist/esm/cosmos/group/v1/tx.js +2354 -0
  94. package/dist/esm/cosmos/group/v1/tx.registry.js +267 -0
  95. package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +92 -0
  96. package/dist/esm/cosmos/group/v1/types.js +1483 -0
  97. package/dist/esm/cosmos/msg/v1/msg.js +1 -0
  98. package/dist/esm/cosmos/query/v1/query.js +1 -0
  99. package/dist/esm/cosmos/rpc.query.js +23 -0
  100. package/dist/esm/cosmos/rpc.tx.js +7 -0
  101. package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +379 -0
  102. package/dist/esm/cosmos_proto/bundle.js +5 -0
  103. package/dist/esm/cosmos_proto/cosmos.js +216 -0
  104. package/dist/esm/gitopia/bundle.js +95 -0
  105. package/dist/esm/gitopia/client.js +32 -0
  106. package/dist/esm/gitopia/custom-lcd-client.js +50 -0
  107. package/dist/esm/gitopia/gitopia/gitopia/attachment.js +101 -0
  108. package/dist/esm/gitopia/gitopia/gitopia/bounty.js +255 -0
  109. package/dist/esm/gitopia/gitopia/gitopia/branch.js +137 -0
  110. package/dist/esm/gitopia/gitopia/gitopia/comment.js +488 -0
  111. package/dist/esm/gitopia/gitopia/gitopia/dao.js +451 -0
  112. package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +78 -0
  113. package/dist/esm/gitopia/gitopia/gitopia/genesis.js +460 -0
  114. package/dist/esm/gitopia/gitopia/gitopia/issue.js +323 -0
  115. package/dist/esm/gitopia/gitopia/gitopia/params.js +293 -0
  116. package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +565 -0
  117. package/dist/esm/gitopia/gitopia/gitopia/query.js +7351 -0
  118. package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +452 -0
  119. package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +453 -0
  120. package/dist/esm/gitopia/gitopia/gitopia/reaction.js +123 -0
  121. package/dist/esm/gitopia/gitopia/gitopia/release.js +225 -0
  122. package/dist/esm/gitopia/gitopia/gitopia/repository.js +1200 -0
  123. package/dist/esm/gitopia/gitopia/gitopia/tag.js +125 -0
  124. package/dist/esm/gitopia/gitopia/gitopia/task.js +197 -0
  125. package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +464 -0
  126. package/dist/esm/gitopia/gitopia/gitopia/tx.js +14679 -0
  127. package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +1671 -0
  128. package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +560 -0
  129. package/dist/esm/gitopia/gitopia/gitopia/user.js +340 -0
  130. package/dist/esm/gitopia/gitopia/gitopia/whois.js +146 -0
  131. package/dist/esm/gitopia/gitopia/offchain/offchain.js +144 -0
  132. package/dist/esm/gitopia/gitopia/rewards/genesis.js +82 -0
  133. package/dist/esm/gitopia/gitopia/rewards/params.js +81 -0
  134. package/dist/esm/gitopia/gitopia/rewards/pool.js +191 -0
  135. package/dist/esm/gitopia/gitopia/rewards/query.js +654 -0
  136. package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +40 -0
  137. package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +53 -0
  138. package/dist/esm/gitopia/gitopia/rewards/rewards.js +191 -0
  139. package/dist/esm/gitopia/gitopia/rewards/task.js +176 -0
  140. package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +19 -0
  141. package/dist/esm/gitopia/gitopia/rewards/tx.js +525 -0
  142. package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +69 -0
  143. package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +26 -0
  144. package/dist/esm/gitopia/rpc.query.js +29 -0
  145. package/dist/esm/gitopia/rpc.tx.js +13 -0
  146. package/dist/esm/gogoproto/bundle.js +5 -0
  147. package/dist/esm/gogoproto/gogo.js +1 -0
  148. package/dist/esm/google/api/annotations.js +1 -0
  149. package/dist/esm/google/api/http.js +329 -0
  150. package/dist/esm/google/bundle.js +14 -0
  151. package/dist/esm/google/protobuf/any.js +74 -0
  152. package/dist/esm/google/protobuf/descriptor.js +4848 -0
  153. package/dist/esm/google/protobuf/duration.js +71 -0
  154. package/dist/esm/google/protobuf/timestamp.js +68 -0
  155. package/dist/esm/helpers.js +131 -0
  156. package/dist/esm/ibc/applications/transfer/v1/query.js +847 -0
  157. package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +70 -0
  158. package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +71 -0
  159. package/dist/esm/ibc/applications/transfer/v1/transfer.js +164 -0
  160. package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +9 -0
  161. package/dist/esm/ibc/applications/transfer/v1/tx.js +226 -0
  162. package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +33 -0
  163. package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +14 -0
  164. package/dist/esm/ibc/bundle.js +44 -0
  165. package/dist/esm/ibc/client.js +29 -0
  166. package/dist/esm/ibc/core/client/v1/client.js +611 -0
  167. package/dist/esm/ibc/rpc.query.js +30 -0
  168. package/dist/esm/ibc/rpc.tx.js +14 -0
  169. package/dist/esm/index.js +19 -0
  170. package/dist/esm/utf8.js +137 -0
  171. package/dist/esm/varint.js +408 -0
  172. package/dist/gitopia/bundle.d.ts +6123 -0
  173. package/dist/gitopia/bundle.js +131 -0
  174. package/dist/gitopia/client.d.ts +492 -0
  175. package/dist/gitopia/client.js +70 -0
  176. package/dist/gitopia/custom-lcd-client.d.ts +31 -0
  177. package/dist/gitopia/custom-lcd-client.js +87 -0
  178. package/dist/gitopia/gitopia/gitopia/attachment.d.ts +39 -0
  179. package/dist/gitopia/gitopia/gitopia/attachment.js +104 -0
  180. package/dist/gitopia/gitopia/gitopia/bounty.d.ts +79 -0
  181. package/dist/gitopia/gitopia/gitopia/bounty.js +262 -0
  182. package/dist/gitopia/gitopia/gitopia/branch.d.ts +48 -0
  183. package/dist/gitopia/gitopia/gitopia/branch.js +140 -0
  184. package/dist/gitopia/gitopia/gitopia/comment.d.ts +125 -0
  185. package/dist/gitopia/gitopia/gitopia/comment.js +495 -0
  186. package/dist/gitopia/gitopia/gitopia/dao.d.ts +160 -0
  187. package/dist/gitopia/gitopia/gitopia/dao.js +454 -0
  188. package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +34 -0
  189. package/dist/gitopia/gitopia/gitopia/exercised_amount.js +81 -0
  190. package/dist/gitopia/gitopia/gitopia/genesis.d.ts +143 -0
  191. package/dist/gitopia/gitopia/gitopia/genesis.js +463 -0
  192. package/dist/gitopia/gitopia/gitopia/issue.d.ts +88 -0
  193. package/dist/gitopia/gitopia/gitopia/issue.js +328 -0
  194. package/dist/gitopia/gitopia/gitopia/params.d.ts +115 -0
  195. package/dist/gitopia/gitopia/gitopia/params.js +296 -0
  196. package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +177 -0
  197. package/dist/gitopia/gitopia/gitopia/pullRequest.js +570 -0
  198. package/dist/gitopia/gitopia/gitopia/query.d.ts +3130 -0
  199. package/dist/gitopia/gitopia/gitopia/query.js +7355 -0
  200. package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +54 -0
  201. package/dist/gitopia/gitopia/gitopia/query.lcd.js +456 -0
  202. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +188 -0
  203. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +458 -0
  204. package/dist/gitopia/gitopia/gitopia/reaction.d.ts +42 -0
  205. package/dist/gitopia/gitopia/gitopia/reaction.js +128 -0
  206. package/dist/gitopia/gitopia/gitopia/release.d.ts +70 -0
  207. package/dist/gitopia/gitopia/gitopia/release.js +228 -0
  208. package/dist/gitopia/gitopia/gitopia/repository.d.ts +424 -0
  209. package/dist/gitopia/gitopia/gitopia/repository.js +1207 -0
  210. package/dist/gitopia/gitopia/gitopia/tag.d.ts +45 -0
  211. package/dist/gitopia/gitopia/gitopia/tag.js +128 -0
  212. package/dist/gitopia/gitopia/gitopia/task.d.ts +64 -0
  213. package/dist/gitopia/gitopia/gitopia/task.js +204 -0
  214. package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +463 -0
  215. package/dist/gitopia/gitopia/gitopia/tx.amino.js +467 -0
  216. package/dist/gitopia/gitopia/gitopia/tx.d.ts +6246 -0
  217. package/dist/gitopia/gitopia/gitopia/tx.js +14687 -0
  218. package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +1116 -0
  219. package/dist/gitopia/gitopia/gitopia/tx.registry.js +1675 -0
  220. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +200 -0
  221. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +564 -0
  222. package/dist/gitopia/gitopia/gitopia/user.d.ts +104 -0
  223. package/dist/gitopia/gitopia/gitopia/user.js +343 -0
  224. package/dist/gitopia/gitopia/gitopia/whois.d.ts +51 -0
  225. package/dist/gitopia/gitopia/gitopia/whois.js +151 -0
  226. package/dist/gitopia/gitopia/offchain/offchain.d.ts +74 -0
  227. package/dist/gitopia/gitopia/offchain/offchain.js +147 -0
  228. package/dist/gitopia/gitopia/rewards/genesis.d.ts +40 -0
  229. package/dist/gitopia/gitopia/rewards/genesis.js +85 -0
  230. package/dist/gitopia/gitopia/rewards/params.d.ts +37 -0
  231. package/dist/gitopia/gitopia/rewards/params.js +84 -0
  232. package/dist/gitopia/gitopia/rewards/pool.d.ts +59 -0
  233. package/dist/gitopia/gitopia/rewards/pool.js +196 -0
  234. package/dist/gitopia/gitopia/rewards/query.d.ts +294 -0
  235. package/dist/gitopia/gitopia/rewards/query.js +657 -0
  236. package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +12 -0
  237. package/dist/gitopia/gitopia/rewards/query.lcd.js +44 -0
  238. package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +28 -0
  239. package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +58 -0
  240. package/dist/gitopia/gitopia/rewards/rewards.d.ts +79 -0
  241. package/dist/gitopia/gitopia/rewards/rewards.js +194 -0
  242. package/dist/gitopia/gitopia/rewards/task.d.ts +54 -0
  243. package/dist/gitopia/gitopia/rewards/task.js +181 -0
  244. package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +18 -0
  245. package/dist/gitopia/gitopia/rewards/tx.amino.js +22 -0
  246. package/dist/gitopia/gitopia/rewards/tx.d.ts +242 -0
  247. package/dist/gitopia/gitopia/rewards/tx.js +528 -0
  248. package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +48 -0
  249. package/dist/gitopia/gitopia/rewards/tx.registry.js +73 -0
  250. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +19 -0
  251. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +30 -0
  252. package/dist/gitopia/rpc.query.d.ts +117 -0
  253. package/dist/gitopia/rpc.query.js +66 -0
  254. package/dist/gitopia/rpc.tx.d.ts +16 -0
  255. package/dist/gitopia/rpc.tx.js +50 -0
  256. package/dist/gogoproto/bundle.d.ts +1 -0
  257. package/dist/gogoproto/bundle.js +41 -0
  258. package/dist/gogoproto/gogo.d.ts +1 -0
  259. package/dist/gogoproto/gogo.js +2 -0
  260. package/dist/google/api/annotations.d.ts +1 -0
  261. package/dist/google/api/annotations.js +2 -0
  262. package/dist/google/api/http.d.ts +1049 -0
  263. package/dist/google/api/http.js +332 -0
  264. package/dist/google/bundle.d.ts +525 -0
  265. package/dist/google/bundle.js +50 -0
  266. package/dist/google/protobuf/any.d.ts +358 -0
  267. package/dist/google/protobuf/any.js +77 -0
  268. package/dist/google/protobuf/descriptor.d.ts +3178 -0
  269. package/dist/google/protobuf/descriptor.js +4886 -0
  270. package/dist/google/protobuf/duration.d.ts +223 -0
  271. package/dist/google/protobuf/duration.js +74 -0
  272. package/dist/google/protobuf/timestamp.d.ts +314 -0
  273. package/dist/google/protobuf/timestamp.js +71 -0
  274. package/dist/helpers.d.ts +82 -0
  275. package/dist/helpers.js +146 -0
  276. package/dist/ibc/applications/transfer/v1/query.d.ts +479 -0
  277. package/dist/ibc/applications/transfer/v1/query.js +850 -0
  278. package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +14 -0
  279. package/dist/ibc/applications/transfer/v1/query.lcd.js +74 -0
  280. package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +36 -0
  281. package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +76 -0
  282. package/dist/ibc/applications/transfer/v1/transfer.d.ts +123 -0
  283. package/dist/ibc/applications/transfer/v1/transfer.js +167 -0
  284. package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +8 -0
  285. package/dist/ibc/applications/transfer/v1/tx.amino.js +12 -0
  286. package/dist/ibc/applications/transfer/v1/tx.d.ts +132 -0
  287. package/dist/ibc/applications/transfer/v1/tx.js +229 -0
  288. package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
  289. package/dist/ibc/applications/transfer/v1/tx.registry.js +37 -0
  290. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
  291. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +18 -0
  292. package/dist/ibc/bundle.d.ts +450 -0
  293. package/dist/ibc/bundle.js +80 -0
  294. package/dist/ibc/client.d.ts +22 -0
  295. package/dist/ibc/client.js +67 -0
  296. package/dist/ibc/core/client/v1/client.d.ts +408 -0
  297. package/dist/ibc/core/client/v1/client.js +614 -0
  298. package/dist/ibc/rpc.query.d.ts +73 -0
  299. package/dist/ibc/rpc.query.js +67 -0
  300. package/dist/ibc/rpc.tx.d.ts +17 -0
  301. package/dist/ibc/rpc.tx.js +51 -0
  302. package/dist/index.d.ts +18 -0
  303. package/dist/index.js +35 -0
  304. package/dist/package.json +49 -0
  305. package/dist/utf8.d.ts +27 -0
  306. package/dist/utf8.js +141 -0
  307. package/dist/varint.d.ts +105 -0
  308. package/dist/varint.js +426 -0
  309. package/package.json +11 -8
  310. package/CHANGELOG.md +0 -8
@@ -0,0 +1,53 @@
1
+ import { BinaryReader } from "../../../binary";
2
+ import { createProtobufRpcClient } from "@cosmjs/stargate";
3
+ import { QueryParamsRequest, QueryParamsResponse, QueryTasksRequest, QueryTasksResponse, QueryGetRewardRequest, QueryGetRewardResponse, QueryAllRewardsRequest, QueryAllRewardsResponse } from "./query";
4
+ export class QueryClientImpl {
5
+ rpc;
6
+ constructor(rpc) {
7
+ this.rpc = rpc;
8
+ this.params = this.params.bind(this);
9
+ this.tasks = this.tasks.bind(this);
10
+ this.reward = this.reward.bind(this);
11
+ this.rewardsAll = this.rewardsAll.bind(this);
12
+ }
13
+ params(request = {}) {
14
+ const data = QueryParamsRequest.encode(request).finish();
15
+ const promise = this.rpc.request("gitopia.gitopia.rewards.Query", "Params", data);
16
+ return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data)));
17
+ }
18
+ tasks(request) {
19
+ const data = QueryTasksRequest.encode(request).finish();
20
+ const promise = this.rpc.request("gitopia.gitopia.rewards.Query", "Tasks", data);
21
+ return promise.then(data => QueryTasksResponse.decode(new BinaryReader(data)));
22
+ }
23
+ reward(request) {
24
+ const data = QueryGetRewardRequest.encode(request).finish();
25
+ const promise = this.rpc.request("gitopia.gitopia.rewards.Query", "Reward", data);
26
+ return promise.then(data => QueryGetRewardResponse.decode(new BinaryReader(data)));
27
+ }
28
+ rewardsAll(request = {
29
+ pagination: undefined
30
+ }) {
31
+ const data = QueryAllRewardsRequest.encode(request).finish();
32
+ const promise = this.rpc.request("gitopia.gitopia.rewards.Query", "RewardsAll", data);
33
+ return promise.then(data => QueryAllRewardsResponse.decode(new BinaryReader(data)));
34
+ }
35
+ }
36
+ export const createRpcQueryExtension = (base) => {
37
+ const rpc = createProtobufRpcClient(base);
38
+ const queryService = new QueryClientImpl(rpc);
39
+ return {
40
+ params(request) {
41
+ return queryService.params(request);
42
+ },
43
+ tasks(request) {
44
+ return queryService.tasks(request);
45
+ },
46
+ reward(request) {
47
+ return queryService.reward(request);
48
+ },
49
+ rewardsAll(request) {
50
+ return queryService.rewardsAll(request);
51
+ }
52
+ };
53
+ };
@@ -0,0 +1,191 @@
1
+ import { Coin } from "../../../cosmos/base/v1beta1/coin";
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ function createBaseReward() {
4
+ return {
5
+ recipient: "",
6
+ rewards: []
7
+ };
8
+ }
9
+ export const Reward = {
10
+ typeUrl: "/gitopia.gitopia.rewards.Reward",
11
+ encode(message, writer = BinaryWriter.create()) {
12
+ if (message.recipient !== "") {
13
+ writer.uint32(10).string(message.recipient);
14
+ }
15
+ for (const v of message.rewards) {
16
+ RecipientReward.encode(v, writer.uint32(18).fork()).ldelim();
17
+ }
18
+ return writer;
19
+ },
20
+ decode(input, length) {
21
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
22
+ let end = length === undefined ? reader.len : reader.pos + length;
23
+ const message = createBaseReward();
24
+ while (reader.pos < end) {
25
+ const tag = reader.uint32();
26
+ switch (tag >>> 3) {
27
+ case 1:
28
+ message.recipient = reader.string();
29
+ break;
30
+ case 2:
31
+ message.rewards.push(RecipientReward.decode(reader, reader.uint32()));
32
+ break;
33
+ default:
34
+ reader.skipType(tag & 7);
35
+ break;
36
+ }
37
+ }
38
+ return message;
39
+ },
40
+ fromPartial(object) {
41
+ const message = createBaseReward();
42
+ message.recipient = object.recipient ?? "";
43
+ message.rewards = object.rewards?.map(e => RecipientReward.fromPartial(e)) || [];
44
+ return message;
45
+ },
46
+ fromAmino(object) {
47
+ const message = createBaseReward();
48
+ if (object.recipient !== undefined && object.recipient !== null) {
49
+ message.recipient = object.recipient;
50
+ }
51
+ message.rewards = object.rewards?.map(e => RecipientReward.fromAmino(e)) || [];
52
+ return message;
53
+ },
54
+ toAmino(message) {
55
+ const obj = {};
56
+ obj.recipient = message.recipient === "" ? undefined : message.recipient;
57
+ if (message.rewards) {
58
+ obj.rewards = message.rewards.map(e => e ? RecipientReward.toAmino(e) : undefined);
59
+ }
60
+ else {
61
+ obj.rewards = message.rewards;
62
+ }
63
+ return obj;
64
+ },
65
+ fromAminoMsg(object) {
66
+ return Reward.fromAmino(object.value);
67
+ },
68
+ fromProtoMsg(message) {
69
+ return Reward.decode(message.value);
70
+ },
71
+ toProto(message) {
72
+ return Reward.encode(message).finish();
73
+ },
74
+ toProtoMsg(message) {
75
+ return {
76
+ typeUrl: "/gitopia.gitopia.rewards.Reward",
77
+ value: Reward.encode(message).finish()
78
+ };
79
+ }
80
+ };
81
+ function createBaseRecipientReward() {
82
+ return {
83
+ series: 0,
84
+ amount: Coin.fromPartial({}),
85
+ creator: "",
86
+ claimedAmount: Coin.fromPartial({}),
87
+ claimedAmountWithDecay: Coin.fromPartial({})
88
+ };
89
+ }
90
+ export const RecipientReward = {
91
+ typeUrl: "/gitopia.gitopia.rewards.RecipientReward",
92
+ encode(message, writer = BinaryWriter.create()) {
93
+ if (message.series !== 0) {
94
+ writer.uint32(8).int32(message.series);
95
+ }
96
+ if (message.amount !== undefined) {
97
+ Coin.encode(message.amount, writer.uint32(18).fork()).ldelim();
98
+ }
99
+ if (message.creator !== "") {
100
+ writer.uint32(26).string(message.creator);
101
+ }
102
+ if (message.claimedAmount !== undefined) {
103
+ Coin.encode(message.claimedAmount, writer.uint32(34).fork()).ldelim();
104
+ }
105
+ if (message.claimedAmountWithDecay !== undefined) {
106
+ Coin.encode(message.claimedAmountWithDecay, writer.uint32(42).fork()).ldelim();
107
+ }
108
+ return writer;
109
+ },
110
+ decode(input, length) {
111
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
112
+ let end = length === undefined ? reader.len : reader.pos + length;
113
+ const message = createBaseRecipientReward();
114
+ while (reader.pos < end) {
115
+ const tag = reader.uint32();
116
+ switch (tag >>> 3) {
117
+ case 1:
118
+ message.series = reader.int32();
119
+ break;
120
+ case 2:
121
+ message.amount = Coin.decode(reader, reader.uint32());
122
+ break;
123
+ case 3:
124
+ message.creator = reader.string();
125
+ break;
126
+ case 4:
127
+ message.claimedAmount = Coin.decode(reader, reader.uint32());
128
+ break;
129
+ case 5:
130
+ message.claimedAmountWithDecay = Coin.decode(reader, reader.uint32());
131
+ break;
132
+ default:
133
+ reader.skipType(tag & 7);
134
+ break;
135
+ }
136
+ }
137
+ return message;
138
+ },
139
+ fromPartial(object) {
140
+ const message = createBaseRecipientReward();
141
+ message.series = object.series ?? 0;
142
+ message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
143
+ message.creator = object.creator ?? "";
144
+ message.claimedAmount = object.claimedAmount !== undefined && object.claimedAmount !== null ? Coin.fromPartial(object.claimedAmount) : undefined;
145
+ message.claimedAmountWithDecay = object.claimedAmountWithDecay !== undefined && object.claimedAmountWithDecay !== null ? Coin.fromPartial(object.claimedAmountWithDecay) : undefined;
146
+ return message;
147
+ },
148
+ fromAmino(object) {
149
+ const message = createBaseRecipientReward();
150
+ if (object.series !== undefined && object.series !== null) {
151
+ message.series = object.series;
152
+ }
153
+ if (object.amount !== undefined && object.amount !== null) {
154
+ message.amount = Coin.fromAmino(object.amount);
155
+ }
156
+ if (object.creator !== undefined && object.creator !== null) {
157
+ message.creator = object.creator;
158
+ }
159
+ if (object.claimed_amount !== undefined && object.claimed_amount !== null) {
160
+ message.claimedAmount = Coin.fromAmino(object.claimed_amount);
161
+ }
162
+ if (object.claimed_amount_with_decay !== undefined && object.claimed_amount_with_decay !== null) {
163
+ message.claimedAmountWithDecay = Coin.fromAmino(object.claimed_amount_with_decay);
164
+ }
165
+ return message;
166
+ },
167
+ toAmino(message) {
168
+ const obj = {};
169
+ obj.series = message.series === 0 ? undefined : message.series;
170
+ obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined;
171
+ obj.creator = message.creator === "" ? undefined : message.creator;
172
+ obj.claimed_amount = message.claimedAmount ? Coin.toAmino(message.claimedAmount) : undefined;
173
+ obj.claimed_amount_with_decay = message.claimedAmountWithDecay ? Coin.toAmino(message.claimedAmountWithDecay) : undefined;
174
+ return obj;
175
+ },
176
+ fromAminoMsg(object) {
177
+ return RecipientReward.fromAmino(object.value);
178
+ },
179
+ fromProtoMsg(message) {
180
+ return RecipientReward.decode(message.value);
181
+ },
182
+ toProto(message) {
183
+ return RecipientReward.encode(message).finish();
184
+ },
185
+ toProtoMsg(message) {
186
+ return {
187
+ typeUrl: "/gitopia.gitopia.rewards.RecipientReward",
188
+ value: RecipientReward.encode(message).finish()
189
+ };
190
+ }
191
+ };
@@ -0,0 +1,176 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ export var taskType;
4
+ (function (taskType) {
5
+ taskType[taskType["UNKNOWN"] = 0] = "UNKNOWN";
6
+ taskType[taskType["CREATE_USER"] = 1] = "CREATE_USER";
7
+ taskType[taskType["CREATE_NON_EMPTY_REPO"] = 2] = "CREATE_NON_EMPTY_REPO";
8
+ taskType[taskType["CREATE_ISSUE"] = 3] = "CREATE_ISSUE";
9
+ taskType[taskType["CREATE_ISSUE_WITH_BOUNTY"] = 4] = "CREATE_ISSUE_WITH_BOUNTY";
10
+ taskType[taskType["CREATE_ISSUE_WITH_BOUNTY_VERIFIED"] = 5] = "CREATE_ISSUE_WITH_BOUNTY_VERIFIED";
11
+ taskType[taskType["PR_TO_REPO_MERGED"] = 6] = "PR_TO_REPO_MERGED";
12
+ taskType[taskType["PR_TO_VERIFIED_REPO_MERGED"] = 7] = "PR_TO_VERIFIED_REPO_MERGED";
13
+ taskType[taskType["PR_TO_VERIFIED_REPO_MERGED_WITH_BOUNTY"] = 8] = "PR_TO_VERIFIED_REPO_MERGED_WITH_BOUNTY";
14
+ taskType[taskType["LORE_STAKED"] = 9] = "LORE_STAKED";
15
+ taskType[taskType["VOTE_PROPOSAL"] = 10] = "VOTE_PROPOSAL";
16
+ taskType[taskType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
17
+ })(taskType || (taskType = {}));
18
+ export const taskTypeSDKType = taskType;
19
+ export const taskTypeAmino = taskType;
20
+ export function taskTypeFromJSON(object) {
21
+ switch (object) {
22
+ case 0:
23
+ case "UNKNOWN":
24
+ return taskType.UNKNOWN;
25
+ case 1:
26
+ case "CREATE_USER":
27
+ return taskType.CREATE_USER;
28
+ case 2:
29
+ case "CREATE_NON_EMPTY_REPO":
30
+ return taskType.CREATE_NON_EMPTY_REPO;
31
+ case 3:
32
+ case "CREATE_ISSUE":
33
+ return taskType.CREATE_ISSUE;
34
+ case 4:
35
+ case "CREATE_ISSUE_WITH_BOUNTY":
36
+ return taskType.CREATE_ISSUE_WITH_BOUNTY;
37
+ case 5:
38
+ case "CREATE_ISSUE_WITH_BOUNTY_VERIFIED":
39
+ return taskType.CREATE_ISSUE_WITH_BOUNTY_VERIFIED;
40
+ case 6:
41
+ case "PR_TO_REPO_MERGED":
42
+ return taskType.PR_TO_REPO_MERGED;
43
+ case 7:
44
+ case "PR_TO_VERIFIED_REPO_MERGED":
45
+ return taskType.PR_TO_VERIFIED_REPO_MERGED;
46
+ case 8:
47
+ case "PR_TO_VERIFIED_REPO_MERGED_WITH_BOUNTY":
48
+ return taskType.PR_TO_VERIFIED_REPO_MERGED_WITH_BOUNTY;
49
+ case 9:
50
+ case "LORE_STAKED":
51
+ return taskType.LORE_STAKED;
52
+ case 10:
53
+ case "VOTE_PROPOSAL":
54
+ return taskType.VOTE_PROPOSAL;
55
+ case -1:
56
+ case "UNRECOGNIZED":
57
+ default:
58
+ return taskType.UNRECOGNIZED;
59
+ }
60
+ }
61
+ export function taskTypeToJSON(object) {
62
+ switch (object) {
63
+ case taskType.UNKNOWN:
64
+ return "UNKNOWN";
65
+ case taskType.CREATE_USER:
66
+ return "CREATE_USER";
67
+ case taskType.CREATE_NON_EMPTY_REPO:
68
+ return "CREATE_NON_EMPTY_REPO";
69
+ case taskType.CREATE_ISSUE:
70
+ return "CREATE_ISSUE";
71
+ case taskType.CREATE_ISSUE_WITH_BOUNTY:
72
+ return "CREATE_ISSUE_WITH_BOUNTY";
73
+ case taskType.CREATE_ISSUE_WITH_BOUNTY_VERIFIED:
74
+ return "CREATE_ISSUE_WITH_BOUNTY_VERIFIED";
75
+ case taskType.PR_TO_REPO_MERGED:
76
+ return "PR_TO_REPO_MERGED";
77
+ case taskType.PR_TO_VERIFIED_REPO_MERGED:
78
+ return "PR_TO_VERIFIED_REPO_MERGED";
79
+ case taskType.PR_TO_VERIFIED_REPO_MERGED_WITH_BOUNTY:
80
+ return "PR_TO_VERIFIED_REPO_MERGED_WITH_BOUNTY";
81
+ case taskType.LORE_STAKED:
82
+ return "LORE_STAKED";
83
+ case taskType.VOTE_PROPOSAL:
84
+ return "VOTE_PROPOSAL";
85
+ case taskType.UNRECOGNIZED:
86
+ default:
87
+ return "UNRECOGNIZED";
88
+ }
89
+ }
90
+ function createBaseTask() {
91
+ return {
92
+ type: 0,
93
+ isComplete: false,
94
+ weight: 0
95
+ };
96
+ }
97
+ export const Task = {
98
+ typeUrl: "/gitopia.gitopia.rewards.Task",
99
+ encode(message, writer = BinaryWriter.create()) {
100
+ if (message.type !== 0) {
101
+ writer.uint32(8).int32(message.type);
102
+ }
103
+ if (message.isComplete === true) {
104
+ writer.uint32(16).bool(message.isComplete);
105
+ }
106
+ if (message.weight !== 0) {
107
+ writer.uint32(24).int32(message.weight);
108
+ }
109
+ return writer;
110
+ },
111
+ decode(input, length) {
112
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
113
+ let end = length === undefined ? reader.len : reader.pos + length;
114
+ const message = createBaseTask();
115
+ while (reader.pos < end) {
116
+ const tag = reader.uint32();
117
+ switch (tag >>> 3) {
118
+ case 1:
119
+ message.type = reader.int32();
120
+ break;
121
+ case 2:
122
+ message.isComplete = reader.bool();
123
+ break;
124
+ case 3:
125
+ message.weight = reader.int32();
126
+ break;
127
+ default:
128
+ reader.skipType(tag & 7);
129
+ break;
130
+ }
131
+ }
132
+ return message;
133
+ },
134
+ fromPartial(object) {
135
+ const message = createBaseTask();
136
+ message.type = object.type ?? 0;
137
+ message.isComplete = object.isComplete ?? false;
138
+ message.weight = object.weight ?? 0;
139
+ return message;
140
+ },
141
+ fromAmino(object) {
142
+ const message = createBaseTask();
143
+ if (object.type !== undefined && object.type !== null) {
144
+ message.type = object.type;
145
+ }
146
+ if (object.isComplete !== undefined && object.isComplete !== null) {
147
+ message.isComplete = object.isComplete;
148
+ }
149
+ if (object.weight !== undefined && object.weight !== null) {
150
+ message.weight = object.weight;
151
+ }
152
+ return message;
153
+ },
154
+ toAmino(message) {
155
+ const obj = {};
156
+ obj.type = message.type === 0 ? undefined : message.type;
157
+ obj.isComplete = message.isComplete === false ? undefined : message.isComplete;
158
+ obj.weight = message.weight === 0 ? undefined : message.weight;
159
+ return obj;
160
+ },
161
+ fromAminoMsg(object) {
162
+ return Task.fromAmino(object.value);
163
+ },
164
+ fromProtoMsg(message) {
165
+ return Task.decode(message.value);
166
+ },
167
+ toProto(message) {
168
+ return Task.encode(message).finish();
169
+ },
170
+ toProtoMsg(message) {
171
+ return {
172
+ typeUrl: "/gitopia.gitopia.rewards.Task",
173
+ value: Task.encode(message).finish()
174
+ };
175
+ }
176
+ };
@@ -0,0 +1,19 @@
1
+ //@ts-nocheck
2
+ import { MsgClaim, MsgCreateReward, MsgUpdateParams } from "./tx";
3
+ export const AminoConverter = {
4
+ "/gitopia.gitopia.rewards.MsgClaim": {
5
+ aminoType: "/gitopia.gitopia.rewards.MsgClaim",
6
+ toAmino: MsgClaim.toAmino,
7
+ fromAmino: MsgClaim.fromAmino
8
+ },
9
+ "/gitopia.gitopia.rewards.MsgCreateReward": {
10
+ aminoType: "/gitopia.gitopia.rewards.MsgCreateReward",
11
+ toAmino: MsgCreateReward.toAmino,
12
+ fromAmino: MsgCreateReward.fromAmino
13
+ },
14
+ "/gitopia.gitopia.rewards.MsgUpdateParams": {
15
+ aminoType: "/gitopia.gitopia.rewards.MsgUpdateParams",
16
+ toAmino: MsgUpdateParams.toAmino,
17
+ fromAmino: MsgUpdateParams.fromAmino
18
+ }
19
+ };