@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
package/dist/varint.js ADDED
@@ -0,0 +1,426 @@
1
+ "use strict";
2
+ //@ts-nocheck
3
+ /**
4
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.0
5
+ * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
6
+ * and run the transpile command or npm scripts command that is used to regenerate this bundle.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.varint64read = varint64read;
10
+ exports.varint64write = varint64write;
11
+ exports.int64FromString = int64FromString;
12
+ exports.int64ToString = int64ToString;
13
+ exports.uInt64ToString = uInt64ToString;
14
+ exports.varint32write = varint32write;
15
+ exports.varint32read = varint32read;
16
+ exports.zzEncode = zzEncode;
17
+ exports.zzDecode = zzDecode;
18
+ exports.readUInt32 = readUInt32;
19
+ exports.readInt32 = readInt32;
20
+ exports.writeVarint32 = writeVarint32;
21
+ exports.writeVarint64 = writeVarint64;
22
+ exports.int64Length = int64Length;
23
+ exports.writeFixed32 = writeFixed32;
24
+ exports.writeByte = writeByte;
25
+ // Copyright 2008 Google Inc. All rights reserved.
26
+ //
27
+ // Redistribution and use in source and binary forms, with or without
28
+ // modification, are permitted provided that the following conditions are
29
+ // met:
30
+ //
31
+ // * Redistributions of source code must retain the above copyright
32
+ // notice, this list of conditions and the following disclaimer.
33
+ // * Redistributions in binary form must reproduce the above
34
+ // copyright notice, this list of conditions and the following disclaimer
35
+ // in the documentation and/or other materials provided with the
36
+ // distribution.
37
+ // * Neither the name of Google Inc. nor the names of its
38
+ // contributors may be used to endorse or promote products derived from
39
+ // this software without specific prior written permission.
40
+ //
41
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
42
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
43
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
44
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
45
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
48
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
49
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
50
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
51
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52
+ //
53
+ // Code generated by the Protocol Buffer compiler is owned by the owner
54
+ // of the input file used when generating it. This code is not
55
+ // standalone and requires a support library to be linked with it. This
56
+ // support library is itself covered by the above license.
57
+ /* eslint-disable prefer-const,@typescript-eslint/restrict-plus-operands */
58
+ /**
59
+ * Read a 64 bit varint as two JS numbers.
60
+ *
61
+ * Returns tuple:
62
+ * [0]: low bits
63
+ * [1]: high bits
64
+ *
65
+ * Copyright 2008 Google Inc. All rights reserved.
66
+ *
67
+ * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175
68
+ */
69
+ function varint64read() {
70
+ let lowBits = 0;
71
+ let highBits = 0;
72
+ for (let shift = 0; shift < 28; shift += 7) {
73
+ let b = this.buf[this.pos++];
74
+ lowBits |= (b & 0x7f) << shift;
75
+ if ((b & 0x80) == 0) {
76
+ this.assertBounds();
77
+ return [lowBits, highBits];
78
+ }
79
+ }
80
+ let middleByte = this.buf[this.pos++];
81
+ // last four bits of the first 32 bit number
82
+ lowBits |= (middleByte & 0x0f) << 28;
83
+ // 3 upper bits are part of the next 32 bit number
84
+ highBits = (middleByte & 0x70) >> 4;
85
+ if ((middleByte & 0x80) == 0) {
86
+ this.assertBounds();
87
+ return [lowBits, highBits];
88
+ }
89
+ for (let shift = 3; shift <= 31; shift += 7) {
90
+ let b = this.buf[this.pos++];
91
+ highBits |= (b & 0x7f) << shift;
92
+ if ((b & 0x80) == 0) {
93
+ this.assertBounds();
94
+ return [lowBits, highBits];
95
+ }
96
+ }
97
+ throw new Error("invalid varint");
98
+ }
99
+ /**
100
+ * Write a 64 bit varint, given as two JS numbers, to the given bytes array.
101
+ *
102
+ * Copyright 2008 Google Inc. All rights reserved.
103
+ *
104
+ * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344
105
+ */
106
+ function varint64write(lo, hi, bytes) {
107
+ for (let i = 0; i < 28; i = i + 7) {
108
+ const shift = lo >>> i;
109
+ const hasNext = !(shift >>> 7 == 0 && hi == 0);
110
+ const byte = (hasNext ? shift | 0x80 : shift) & 0xff;
111
+ bytes.push(byte);
112
+ if (!hasNext) {
113
+ return;
114
+ }
115
+ }
116
+ const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4);
117
+ const hasMoreBits = !(hi >> 3 == 0);
118
+ bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff);
119
+ if (!hasMoreBits) {
120
+ return;
121
+ }
122
+ for (let i = 3; i < 31; i = i + 7) {
123
+ const shift = hi >>> i;
124
+ const hasNext = !(shift >>> 7 == 0);
125
+ const byte = (hasNext ? shift | 0x80 : shift) & 0xff;
126
+ bytes.push(byte);
127
+ if (!hasNext) {
128
+ return;
129
+ }
130
+ }
131
+ bytes.push((hi >>> 31) & 0x01);
132
+ }
133
+ // constants for binary math
134
+ const TWO_PWR_32_DBL = 0x100000000;
135
+ /**
136
+ * Parse decimal string of 64 bit integer value as two JS numbers.
137
+ *
138
+ * Copyright 2008 Google Inc. All rights reserved.
139
+ *
140
+ * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10
141
+ */
142
+ function int64FromString(dec) {
143
+ // Check for minus sign.
144
+ const minus = dec[0] === "-";
145
+ if (minus) {
146
+ dec = dec.slice(1);
147
+ }
148
+ // Work 6 decimal digits at a time, acting like we're converting base 1e6
149
+ // digits to binary. This is safe to do with floating point math because
150
+ // Number.isSafeInteger(ALL_32_BITS * 1e6) == true.
151
+ const base = 1e6;
152
+ let lowBits = 0;
153
+ let highBits = 0;
154
+ function add1e6digit(begin, end) {
155
+ // Note: Number('') is 0.
156
+ const digit1e6 = Number(dec.slice(begin, end));
157
+ highBits *= base;
158
+ lowBits = lowBits * base + digit1e6;
159
+ // Carry bits from lowBits to
160
+ if (lowBits >= TWO_PWR_32_DBL) {
161
+ highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0);
162
+ lowBits = lowBits % TWO_PWR_32_DBL;
163
+ }
164
+ }
165
+ add1e6digit(-24, -18);
166
+ add1e6digit(-18, -12);
167
+ add1e6digit(-12, -6);
168
+ add1e6digit(-6);
169
+ return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits);
170
+ }
171
+ /**
172
+ * Losslessly converts a 64-bit signed integer in 32:32 split representation
173
+ * into a decimal string.
174
+ *
175
+ * Copyright 2008 Google Inc. All rights reserved.
176
+ *
177
+ * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10
178
+ */
179
+ function int64ToString(lo, hi) {
180
+ let bits = newBits(lo, hi);
181
+ // If we're treating the input as a signed value and the high bit is set, do
182
+ // a manual two's complement conversion before the decimal conversion.
183
+ const negative = bits.hi & 0x80000000;
184
+ if (negative) {
185
+ bits = negate(bits.lo, bits.hi);
186
+ }
187
+ const result = uInt64ToString(bits.lo, bits.hi);
188
+ return negative ? "-" + result : result;
189
+ }
190
+ /**
191
+ * Losslessly converts a 64-bit unsigned integer in 32:32 split representation
192
+ * into a decimal string.
193
+ *
194
+ * Copyright 2008 Google Inc. All rights reserved.
195
+ *
196
+ * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10
197
+ */
198
+ function uInt64ToString(lo, hi) {
199
+ ({ lo, hi } = toUnsigned(lo, hi));
200
+ // Skip the expensive conversion if the number is small enough to use the
201
+ // built-in conversions.
202
+ // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with
203
+ // highBits <= 0x1FFFFF can be safely expressed with a double and retain
204
+ // integer precision.
205
+ // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true.
206
+ if (hi <= 0x1fffff) {
207
+ return String(TWO_PWR_32_DBL * hi + lo);
208
+ }
209
+ // What this code is doing is essentially converting the input number from
210
+ // base-2 to base-1e7, which allows us to represent the 64-bit range with
211
+ // only 3 (very large) digits. Those digits are then trivial to convert to
212
+ // a base-10 string.
213
+ // The magic numbers used here are -
214
+ // 2^24 = 16777216 = (1,6777216) in base-1e7.
215
+ // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.
216
+ // Split 32:32 representation into 16:24:24 representation so our
217
+ // intermediate digits don't overflow.
218
+ const low = lo & 0xffffff;
219
+ const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff;
220
+ const high = (hi >> 16) & 0xffff;
221
+ // Assemble our three base-1e7 digits, ignoring carries. The maximum
222
+ // value in a digit at this step is representable as a 48-bit integer, which
223
+ // can be stored in a 64-bit floating point number.
224
+ let digitA = low + mid * 6777216 + high * 6710656;
225
+ let digitB = mid + high * 8147497;
226
+ let digitC = high * 2;
227
+ // Apply carries from A to B and from B to C.
228
+ const base = 10000000;
229
+ if (digitA >= base) {
230
+ digitB += Math.floor(digitA / base);
231
+ digitA %= base;
232
+ }
233
+ if (digitB >= base) {
234
+ digitC += Math.floor(digitB / base);
235
+ digitB %= base;
236
+ }
237
+ // If digitC is 0, then we should have returned in the trivial code path
238
+ // at the top for non-safe integers. Given this, we can assume both digitB
239
+ // and digitA need leading zeros.
240
+ return (digitC.toString() +
241
+ decimalFrom1e7WithLeadingZeros(digitB) +
242
+ decimalFrom1e7WithLeadingZeros(digitA));
243
+ }
244
+ function toUnsigned(lo, hi) {
245
+ return { lo: lo >>> 0, hi: hi >>> 0 };
246
+ }
247
+ function newBits(lo, hi) {
248
+ return { lo: lo | 0, hi: hi | 0 };
249
+ }
250
+ /**
251
+ * Returns two's compliment negation of input.
252
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers
253
+ */
254
+ function negate(lowBits, highBits) {
255
+ highBits = ~highBits;
256
+ if (lowBits) {
257
+ lowBits = ~lowBits + 1;
258
+ }
259
+ else {
260
+ // If lowBits is 0, then bitwise-not is 0xFFFFFFFF,
261
+ // adding 1 to that, results in 0x100000000, which leaves
262
+ // the low bits 0x0 and simply adds one to the high bits.
263
+ highBits += 1;
264
+ }
265
+ return newBits(lowBits, highBits);
266
+ }
267
+ /**
268
+ * Returns decimal representation of digit1e7 with leading zeros.
269
+ */
270
+ const decimalFrom1e7WithLeadingZeros = (digit1e7) => {
271
+ const partial = String(digit1e7);
272
+ return "0000000".slice(partial.length) + partial;
273
+ };
274
+ /**
275
+ * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`
276
+ *
277
+ * Copyright 2008 Google Inc. All rights reserved.
278
+ *
279
+ * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144
280
+ */
281
+ function varint32write(value, bytes) {
282
+ if (value >= 0) {
283
+ // write value as varint 32
284
+ while (value > 0x7f) {
285
+ bytes.push((value & 0x7f) | 0x80);
286
+ value = value >>> 7;
287
+ }
288
+ bytes.push(value);
289
+ }
290
+ else {
291
+ for (let i = 0; i < 9; i++) {
292
+ bytes.push((value & 127) | 128);
293
+ value = value >> 7;
294
+ }
295
+ bytes.push(1);
296
+ }
297
+ }
298
+ /**
299
+ * Read an unsigned 32 bit varint.
300
+ *
301
+ * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220
302
+ */
303
+ function varint32read() {
304
+ let b = this.buf[this.pos++];
305
+ let result = b & 0x7f;
306
+ if ((b & 0x80) == 0) {
307
+ this.assertBounds();
308
+ return result;
309
+ }
310
+ b = this.buf[this.pos++];
311
+ result |= (b & 0x7f) << 7;
312
+ if ((b & 0x80) == 0) {
313
+ this.assertBounds();
314
+ return result;
315
+ }
316
+ b = this.buf[this.pos++];
317
+ result |= (b & 0x7f) << 14;
318
+ if ((b & 0x80) == 0) {
319
+ this.assertBounds();
320
+ return result;
321
+ }
322
+ b = this.buf[this.pos++];
323
+ result |= (b & 0x7f) << 21;
324
+ if ((b & 0x80) == 0) {
325
+ this.assertBounds();
326
+ return result;
327
+ }
328
+ // Extract only last 4 bits
329
+ b = this.buf[this.pos++];
330
+ result |= (b & 0x0f) << 28;
331
+ for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++)
332
+ b = this.buf[this.pos++];
333
+ if ((b & 0x80) != 0)
334
+ throw new Error("invalid varint");
335
+ this.assertBounds();
336
+ // Result can have 32 bits, convert it to unsigned
337
+ return result >>> 0;
338
+ }
339
+ /**
340
+ * encode zig zag
341
+ */
342
+ function zzEncode(lo, hi) {
343
+ let mask = hi >> 31;
344
+ hi = (((hi << 1) | (lo >>> 31)) ^ mask) >>> 0;
345
+ lo = ((lo << 1) ^ mask) >>> 0;
346
+ return [lo, hi];
347
+ }
348
+ /**
349
+ * decode zig zag
350
+ */
351
+ function zzDecode(lo, hi) {
352
+ let mask = -(lo & 1);
353
+ lo = (((lo >>> 1) | (hi << 31)) ^ mask) >>> 0;
354
+ hi = ((hi >>> 1) ^ mask) >>> 0;
355
+ return [lo, hi];
356
+ }
357
+ /**
358
+ * unsigned int32 without moving pos.
359
+ */
360
+ function readUInt32(buf, pos) {
361
+ return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) +
362
+ buf[pos + 3] * 0x1000000);
363
+ }
364
+ /**
365
+ * signed int32 without moving pos.
366
+ */
367
+ function readInt32(buf, pos) {
368
+ return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) +
369
+ (buf[pos + 3] << 24));
370
+ }
371
+ /**
372
+ * writing varint32 to pos
373
+ */
374
+ function writeVarint32(val, buf, pos) {
375
+ while (val > 127) {
376
+ buf[pos++] = (val & 127) | 128;
377
+ val >>>= 7;
378
+ }
379
+ buf[pos] = val;
380
+ }
381
+ /**
382
+ * writing varint64 to pos
383
+ */
384
+ function writeVarint64(val, buf, pos) {
385
+ while (val.hi) {
386
+ buf[pos++] = (val.lo & 127) | 128;
387
+ val.lo = ((val.lo >>> 7) | (val.hi << 25)) >>> 0;
388
+ val.hi >>>= 7;
389
+ }
390
+ while (val.lo > 127) {
391
+ buf[pos++] = (val.lo & 127) | 128;
392
+ val.lo = val.lo >>> 7;
393
+ }
394
+ buf[pos++] = val.lo;
395
+ }
396
+ function int64Length(lo, hi) {
397
+ let part0 = lo, part1 = ((lo >>> 28) | (hi << 4)) >>> 0, part2 = hi >>> 24;
398
+ return part2 === 0
399
+ ? part1 === 0
400
+ ? part0 < 16384
401
+ ? part0 < 128
402
+ ? 1
403
+ : 2
404
+ : part0 < 2097152
405
+ ? 3
406
+ : 4
407
+ : part1 < 16384
408
+ ? part1 < 128
409
+ ? 5
410
+ : 6
411
+ : part1 < 2097152
412
+ ? 7
413
+ : 8
414
+ : part2 < 128
415
+ ? 9
416
+ : 10;
417
+ }
418
+ function writeFixed32(val, buf, pos) {
419
+ buf[pos] = val & 255;
420
+ buf[pos + 1] = (val >>> 8) & 255;
421
+ buf[pos + 2] = (val >>> 16) & 255;
422
+ buf[pos + 3] = val >>> 24;
423
+ }
424
+ function writeByte(val, buf, pos) {
425
+ buf[pos] = val & 255;
426
+ }
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "name": "@gitopia/gitopiajs",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "author": "Faza Mahamood <faza@gitopia.org>",
5
5
  "description": "js client library for gitopia protocol",
6
- "main": "index.js",
7
- "module": "esm/index.js",
8
- "types": "index.d.ts",
6
+ "main": "dist/index.js",
7
+ "module": "dist/esm/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
9
12
  "homepage": "https://gitopia.com/gitopia/gitopiajs",
10
13
  "license": "SEE LICENSE IN LICENSE",
11
14
  "publishConfig": {
12
- "access": "public",
13
- "directory": "dist"
15
+ "access": "public"
14
16
  },
15
17
  "repository": {
16
18
  "type": "git",
@@ -39,8 +41,9 @@
39
41
  "@cosmjs/math": "0.32.4",
40
42
  "@cosmjs/proto-signing": "0.32.4",
41
43
  "@cosmjs/stargate": "0.32.4",
42
- "@cosmology/lcd": "^0.14.0"
44
+ "@cosmology/lcd": "^0.14.0",
45
+ "buffer": "^6.0.3"
43
46
  },
44
47
  "keywords": [],
45
- "gitHead": "9881fb7f3da56c24e402ebb3283a6370874b8bba"
48
+ "gitHead": "3d85133277080ff9450911a37668dd7fd7143c5c"
46
49
  }
package/CHANGELOG.md DELETED
@@ -1,8 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## 0.0.2 (2026-01-16)
7
-
8
- **Note:** Version bump only for package @gitopia/gitopiajs