@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,82 @@
1
+ //@ts-nocheck
2
+ import { Reward } from "./rewards";
3
+ import { Params } from "./params";
4
+ import { BinaryReader, BinaryWriter } from "../../../binary";
5
+ function createBaseGenesisState() {
6
+ return {
7
+ rewardsList: [],
8
+ params: Params.fromPartial({})
9
+ };
10
+ }
11
+ export const GenesisState = {
12
+ typeUrl: "/gitopia.gitopia.rewards.GenesisState",
13
+ encode(message, writer = BinaryWriter.create()) {
14
+ for (const v of message.rewardsList) {
15
+ Reward.encode(v, writer.uint32(18).fork()).ldelim();
16
+ }
17
+ if (message.params !== undefined) {
18
+ Params.encode(message.params, writer.uint32(10).fork()).ldelim();
19
+ }
20
+ return writer;
21
+ },
22
+ decode(input, length) {
23
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
+ const message = createBaseGenesisState();
26
+ while (reader.pos < end) {
27
+ const tag = reader.uint32();
28
+ switch (tag >>> 3) {
29
+ case 2:
30
+ message.rewardsList.push(Reward.decode(reader, reader.uint32()));
31
+ break;
32
+ case 1:
33
+ message.params = Params.decode(reader, reader.uint32());
34
+ break;
35
+ default:
36
+ reader.skipType(tag & 7);
37
+ break;
38
+ }
39
+ }
40
+ return message;
41
+ },
42
+ fromPartial(object) {
43
+ const message = createBaseGenesisState();
44
+ message.rewardsList = object.rewardsList?.map(e => Reward.fromPartial(e)) || [];
45
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
46
+ return message;
47
+ },
48
+ fromAmino(object) {
49
+ const message = createBaseGenesisState();
50
+ message.rewardsList = object.rewardsList?.map(e => Reward.fromAmino(e)) || [];
51
+ if (object.params !== undefined && object.params !== null) {
52
+ message.params = Params.fromAmino(object.params);
53
+ }
54
+ return message;
55
+ },
56
+ toAmino(message) {
57
+ const obj = {};
58
+ if (message.rewardsList) {
59
+ obj.rewardsList = message.rewardsList.map(e => e ? Reward.toAmino(e) : undefined);
60
+ }
61
+ else {
62
+ obj.rewardsList = message.rewardsList;
63
+ }
64
+ obj.params = message.params ? Params.toAmino(message.params) : undefined;
65
+ return obj;
66
+ },
67
+ fromAminoMsg(object) {
68
+ return GenesisState.fromAmino(object.value);
69
+ },
70
+ fromProtoMsg(message) {
71
+ return GenesisState.decode(message.value);
72
+ },
73
+ toProto(message) {
74
+ return GenesisState.encode(message).finish();
75
+ },
76
+ toProtoMsg(message) {
77
+ return {
78
+ typeUrl: "/gitopia.gitopia.rewards.GenesisState",
79
+ value: GenesisState.encode(message).finish()
80
+ };
81
+ }
82
+ };
@@ -0,0 +1,81 @@
1
+ //@ts-nocheck
2
+ import { RewardPool } from "./pool";
3
+ import { BinaryReader, BinaryWriter } from "../../../binary";
4
+ function createBaseParams() {
5
+ return {
6
+ evaluatorAddress: "",
7
+ rewardSeries: []
8
+ };
9
+ }
10
+ export const Params = {
11
+ typeUrl: "/gitopia.gitopia.rewards.Params",
12
+ encode(message, writer = BinaryWriter.create()) {
13
+ if (message.evaluatorAddress !== "") {
14
+ writer.uint32(10).string(message.evaluatorAddress);
15
+ }
16
+ for (const v of message.rewardSeries) {
17
+ RewardPool.encode(v, writer.uint32(18).fork()).ldelim();
18
+ }
19
+ return writer;
20
+ },
21
+ decode(input, length) {
22
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
23
+ let end = length === undefined ? reader.len : reader.pos + length;
24
+ const message = createBaseParams();
25
+ while (reader.pos < end) {
26
+ const tag = reader.uint32();
27
+ switch (tag >>> 3) {
28
+ case 1:
29
+ message.evaluatorAddress = reader.string();
30
+ break;
31
+ case 2:
32
+ message.rewardSeries.push(RewardPool.decode(reader, reader.uint32()));
33
+ break;
34
+ default:
35
+ reader.skipType(tag & 7);
36
+ break;
37
+ }
38
+ }
39
+ return message;
40
+ },
41
+ fromPartial(object) {
42
+ const message = createBaseParams();
43
+ message.evaluatorAddress = object.evaluatorAddress ?? "";
44
+ message.rewardSeries = object.rewardSeries?.map(e => RewardPool.fromPartial(e)) || [];
45
+ return message;
46
+ },
47
+ fromAmino(object) {
48
+ const message = createBaseParams();
49
+ if (object.evaluator_address !== undefined && object.evaluator_address !== null) {
50
+ message.evaluatorAddress = object.evaluator_address;
51
+ }
52
+ message.rewardSeries = object.reward_series?.map(e => RewardPool.fromAmino(e)) || [];
53
+ return message;
54
+ },
55
+ toAmino(message) {
56
+ const obj = {};
57
+ obj.evaluator_address = message.evaluatorAddress === "" ? undefined : message.evaluatorAddress;
58
+ if (message.rewardSeries) {
59
+ obj.reward_series = message.rewardSeries.map(e => e ? RewardPool.toAmino(e) : undefined);
60
+ }
61
+ else {
62
+ obj.reward_series = message.rewardSeries;
63
+ }
64
+ return obj;
65
+ },
66
+ fromAminoMsg(object) {
67
+ return Params.fromAmino(object.value);
68
+ },
69
+ fromProtoMsg(message) {
70
+ return Params.decode(message.value);
71
+ },
72
+ toProto(message) {
73
+ return Params.encode(message).finish();
74
+ },
75
+ toProtoMsg(message) {
76
+ return {
77
+ typeUrl: "/gitopia.gitopia.rewards.Params",
78
+ value: Params.encode(message).finish()
79
+ };
80
+ }
81
+ };
@@ -0,0 +1,191 @@
1
+ //@ts-nocheck
2
+ import { Coin } from "../../../cosmos/base/v1beta1/coin";
3
+ import { Timestamp } from "../../../google/protobuf/timestamp";
4
+ import { BinaryReader, BinaryWriter } from "../../../binary";
5
+ import { toTimestamp, fromTimestamp } from "../../../helpers";
6
+ export var Series;
7
+ (function (Series) {
8
+ Series[Series["NONE"] = 0] = "NONE";
9
+ Series[Series["ONE"] = 1] = "ONE";
10
+ Series[Series["TWO"] = 2] = "TWO";
11
+ Series[Series["THREE"] = 3] = "THREE";
12
+ Series[Series["FOUR"] = 4] = "FOUR";
13
+ Series[Series["FIVE"] = 5] = "FIVE";
14
+ Series[Series["SIX"] = 6] = "SIX";
15
+ Series[Series["SEVEN"] = 7] = "SEVEN";
16
+ Series[Series["COSMOS"] = 8] = "COSMOS";
17
+ Series[Series["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
18
+ })(Series || (Series = {}));
19
+ export const SeriesSDKType = Series;
20
+ export const SeriesAmino = Series;
21
+ export function seriesFromJSON(object) {
22
+ switch (object) {
23
+ case 0:
24
+ case "NONE":
25
+ return Series.NONE;
26
+ case 1:
27
+ case "ONE":
28
+ return Series.ONE;
29
+ case 2:
30
+ case "TWO":
31
+ return Series.TWO;
32
+ case 3:
33
+ case "THREE":
34
+ return Series.THREE;
35
+ case 4:
36
+ case "FOUR":
37
+ return Series.FOUR;
38
+ case 5:
39
+ case "FIVE":
40
+ return Series.FIVE;
41
+ case 6:
42
+ case "SIX":
43
+ return Series.SIX;
44
+ case 7:
45
+ case "SEVEN":
46
+ return Series.SEVEN;
47
+ case 8:
48
+ case "COSMOS":
49
+ return Series.COSMOS;
50
+ case -1:
51
+ case "UNRECOGNIZED":
52
+ default:
53
+ return Series.UNRECOGNIZED;
54
+ }
55
+ }
56
+ export function seriesToJSON(object) {
57
+ switch (object) {
58
+ case Series.NONE:
59
+ return "NONE";
60
+ case Series.ONE:
61
+ return "ONE";
62
+ case Series.TWO:
63
+ return "TWO";
64
+ case Series.THREE:
65
+ return "THREE";
66
+ case Series.FOUR:
67
+ return "FOUR";
68
+ case Series.FIVE:
69
+ return "FIVE";
70
+ case Series.SIX:
71
+ return "SIX";
72
+ case Series.SEVEN:
73
+ return "SEVEN";
74
+ case Series.COSMOS:
75
+ return "COSMOS";
76
+ case Series.UNRECOGNIZED:
77
+ default:
78
+ return "UNRECOGNIZED";
79
+ }
80
+ }
81
+ function createBaseRewardPool() {
82
+ return {
83
+ totalAmount: Coin.fromPartial({}),
84
+ claimedAmount: Coin.fromPartial({}),
85
+ startTime: new Date(),
86
+ endTime: new Date(),
87
+ series: 0
88
+ };
89
+ }
90
+ export const RewardPool = {
91
+ typeUrl: "/gitopia.gitopia.rewards.RewardPool",
92
+ encode(message, writer = BinaryWriter.create()) {
93
+ if (message.totalAmount !== undefined) {
94
+ Coin.encode(message.totalAmount, writer.uint32(10).fork()).ldelim();
95
+ }
96
+ if (message.claimedAmount !== undefined) {
97
+ Coin.encode(message.claimedAmount, writer.uint32(18).fork()).ldelim();
98
+ }
99
+ if (message.startTime !== undefined) {
100
+ Timestamp.encode(toTimestamp(message.startTime), writer.uint32(26).fork()).ldelim();
101
+ }
102
+ if (message.endTime !== undefined) {
103
+ Timestamp.encode(toTimestamp(message.endTime), writer.uint32(34).fork()).ldelim();
104
+ }
105
+ if (message.series !== 0) {
106
+ writer.uint32(40).int32(message.series);
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 = createBaseRewardPool();
114
+ while (reader.pos < end) {
115
+ const tag = reader.uint32();
116
+ switch (tag >>> 3) {
117
+ case 1:
118
+ message.totalAmount = Coin.decode(reader, reader.uint32());
119
+ break;
120
+ case 2:
121
+ message.claimedAmount = Coin.decode(reader, reader.uint32());
122
+ break;
123
+ case 3:
124
+ message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
125
+ break;
126
+ case 4:
127
+ message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
128
+ break;
129
+ case 5:
130
+ message.series = reader.int32();
131
+ break;
132
+ default:
133
+ reader.skipType(tag & 7);
134
+ break;
135
+ }
136
+ }
137
+ return message;
138
+ },
139
+ fromPartial(object) {
140
+ const message = createBaseRewardPool();
141
+ message.totalAmount = object.totalAmount !== undefined && object.totalAmount !== null ? Coin.fromPartial(object.totalAmount) : undefined;
142
+ message.claimedAmount = object.claimedAmount !== undefined && object.claimedAmount !== null ? Coin.fromPartial(object.claimedAmount) : undefined;
143
+ message.startTime = object.startTime ?? undefined;
144
+ message.endTime = object.endTime ?? undefined;
145
+ message.series = object.series ?? 0;
146
+ return message;
147
+ },
148
+ fromAmino(object) {
149
+ const message = createBaseRewardPool();
150
+ if (object.total_amount !== undefined && object.total_amount !== null) {
151
+ message.totalAmount = Coin.fromAmino(object.total_amount);
152
+ }
153
+ if (object.claimed_amount !== undefined && object.claimed_amount !== null) {
154
+ message.claimedAmount = Coin.fromAmino(object.claimed_amount);
155
+ }
156
+ if (object.start_time !== undefined && object.start_time !== null) {
157
+ message.startTime = fromTimestamp(Timestamp.fromAmino(object.start_time));
158
+ }
159
+ if (object.end_time !== undefined && object.end_time !== null) {
160
+ message.endTime = fromTimestamp(Timestamp.fromAmino(object.end_time));
161
+ }
162
+ if (object.series !== undefined && object.series !== null) {
163
+ message.series = object.series;
164
+ }
165
+ return message;
166
+ },
167
+ toAmino(message) {
168
+ const obj = {};
169
+ obj.total_amount = message.totalAmount ? Coin.toAmino(message.totalAmount) : undefined;
170
+ obj.claimed_amount = message.claimedAmount ? Coin.toAmino(message.claimedAmount) : undefined;
171
+ obj.start_time = message.startTime ? Timestamp.toAmino(toTimestamp(message.startTime)) : undefined;
172
+ obj.end_time = message.endTime ? Timestamp.toAmino(toTimestamp(message.endTime)) : undefined;
173
+ obj.series = message.series === 0 ? undefined : message.series;
174
+ return obj;
175
+ },
176
+ fromAminoMsg(object) {
177
+ return RewardPool.fromAmino(object.value);
178
+ },
179
+ fromProtoMsg(message) {
180
+ return RewardPool.decode(message.value);
181
+ },
182
+ toProto(message) {
183
+ return RewardPool.encode(message).finish();
184
+ },
185
+ toProtoMsg(message) {
186
+ return {
187
+ typeUrl: "/gitopia.gitopia.rewards.RewardPool",
188
+ value: RewardPool.encode(message).finish()
189
+ };
190
+ }
191
+ };