@gitopia/gitopiajs 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/package.json +3 -3
  2. package/dist/LICENSE +0 -21
  3. package/dist/amino/amino.d.ts +0 -1
  4. package/dist/amino/amino.js +0 -2
  5. package/dist/amino/bundle.d.ts +0 -1
  6. package/dist/amino/bundle.js +0 -41
  7. package/dist/binary.d.ts +0 -130
  8. package/dist/binary.js +0 -371
  9. package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -407
  10. package/dist/cosmos/bank/v1beta1/bank.js +0 -664
  11. package/dist/cosmos/bank/v1beta1/query.d.ts +0 -1062
  12. package/dist/cosmos/bank/v1beta1/query.js +0 -1759
  13. package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +0 -19
  14. package/dist/cosmos/bank/v1beta1/query.lcd.js +0 -173
  15. package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +0 -106
  16. package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +0 -123
  17. package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -190
  18. package/dist/cosmos/base/query/v1beta1/pagination.js +0 -204
  19. package/dist/cosmos/base/v1beta1/coin.d.ts +0 -193
  20. package/dist/cosmos/base/v1beta1/coin.js +0 -306
  21. package/dist/cosmos/bundle.d.ts +0 -2311
  22. package/dist/cosmos/bundle.js +0 -134
  23. package/dist/cosmos/client.d.ts +0 -84
  24. package/dist/cosmos/client.js +0 -65
  25. package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -245
  26. package/dist/cosmos/feegrant/v1beta1/feegrant.js +0 -456
  27. package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -258
  28. package/dist/cosmos/feegrant/v1beta1/query.js +0 -487
  29. package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +0 -11
  30. package/dist/cosmos/feegrant/v1beta1/query.lcd.js +0 -44
  31. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +0 -28
  32. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -47
  33. package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -571
  34. package/dist/cosmos/gov/v1beta1/gov.js +0 -1122
  35. package/dist/cosmos/gov/v1beta1/query.d.ts +0 -636
  36. package/dist/cosmos/gov/v1beta1/query.js +0 -1264
  37. package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +0 -16
  38. package/dist/cosmos/gov/v1beta1/query.lcd.js +0 -87
  39. package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +0 -44
  40. package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +0 -92
  41. package/dist/cosmos/group/v1/query.d.ts +0 -1097
  42. package/dist/cosmos/group/v1/query.js +0 -2182
  43. package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
  44. package/dist/cosmos/group/v1/query.lcd.js +0 -158
  45. package/dist/cosmos/group/v1/query.rpc.Query.d.ts +0 -78
  46. package/dist/cosmos/group/v1/query.rpc.Query.js +0 -148
  47. package/dist/cosmos/group/v1/tx.amino.d.ts +0 -73
  48. package/dist/cosmos/group/v1/tx.amino.js +0 -77
  49. package/dist/cosmos/group/v1/tx.d.ts +0 -1198
  50. package/dist/cosmos/group/v1/tx.js +0 -2362
  51. package/dist/cosmos/group/v1/tx.registry.d.ts +0 -180
  52. package/dist/cosmos/group/v1/tx.registry.js +0 -271
  53. package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +0 -51
  54. package/dist/cosmos/group/v1/tx.rpc.msg.js +0 -96
  55. package/dist/cosmos/group/v1/types.d.ts +0 -873
  56. package/dist/cosmos/group/v1/types.js +0 -1495
  57. package/dist/cosmos/msg/v1/msg.d.ts +0 -1
  58. package/dist/cosmos/msg/v1/msg.js +0 -2
  59. package/dist/cosmos/query/v1/query.d.ts +0 -1
  60. package/dist/cosmos/query/v1/query.js +0 -2
  61. package/dist/cosmos/rpc.query.d.ts +0 -59
  62. package/dist/cosmos/rpc.query.js +0 -60
  63. package/dist/cosmos/rpc.tx.d.ts +0 -10
  64. package/dist/cosmos/rpc.tx.js +0 -44
  65. package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -278
  66. package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -382
  67. package/dist/cosmos_proto/bundle.d.ts +0 -32
  68. package/dist/cosmos_proto/bundle.js +0 -41
  69. package/dist/cosmos_proto/cosmos.d.ts +0 -171
  70. package/dist/cosmos_proto/cosmos.js +0 -221
  71. package/dist/esm/amino/amino.js +0 -1
  72. package/dist/esm/amino/bundle.js +0 -5
  73. package/dist/esm/binary.js +0 -366
  74. package/dist/esm/cosmos/bank/v1beta1/bank.js +0 -661
  75. package/dist/esm/cosmos/bank/v1beta1/query.js +0 -1756
  76. package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +0 -169
  77. package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +0 -118
  78. package/dist/esm/cosmos/base/query/v1beta1/pagination.js +0 -201
  79. package/dist/esm/cosmos/base/v1beta1/coin.js +0 -303
  80. package/dist/esm/cosmos/bundle.js +0 -98
  81. package/dist/esm/cosmos/client.js +0 -27
  82. package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +0 -450
  83. package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -484
  84. package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +0 -40
  85. package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -42
  86. package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -1112
  87. package/dist/esm/cosmos/gov/v1beta1/query.js +0 -1261
  88. package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +0 -83
  89. package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +0 -87
  90. package/dist/esm/cosmos/group/v1/query.js +0 -2179
  91. package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
  92. package/dist/esm/cosmos/group/v1/query.rpc.Query.js +0 -143
  93. package/dist/esm/cosmos/group/v1/tx.amino.js +0 -74
  94. package/dist/esm/cosmos/group/v1/tx.js +0 -2354
  95. package/dist/esm/cosmos/group/v1/tx.registry.js +0 -267
  96. package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +0 -92
  97. package/dist/esm/cosmos/group/v1/types.js +0 -1483
  98. package/dist/esm/cosmos/msg/v1/msg.js +0 -1
  99. package/dist/esm/cosmos/query/v1/query.js +0 -1
  100. package/dist/esm/cosmos/rpc.query.js +0 -23
  101. package/dist/esm/cosmos/rpc.tx.js +0 -7
  102. package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -379
  103. package/dist/esm/cosmos_proto/bundle.js +0 -5
  104. package/dist/esm/cosmos_proto/cosmos.js +0 -216
  105. package/dist/esm/gitopia/bundle.js +0 -95
  106. package/dist/esm/gitopia/client.js +0 -32
  107. package/dist/esm/gitopia/custom-lcd-client.js +0 -50
  108. package/dist/esm/gitopia/gitopia/gitopia/attachment.js +0 -101
  109. package/dist/esm/gitopia/gitopia/gitopia/bounty.js +0 -255
  110. package/dist/esm/gitopia/gitopia/gitopia/branch.js +0 -137
  111. package/dist/esm/gitopia/gitopia/gitopia/comment.js +0 -488
  112. package/dist/esm/gitopia/gitopia/gitopia/dao.js +0 -451
  113. package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +0 -78
  114. package/dist/esm/gitopia/gitopia/gitopia/genesis.js +0 -460
  115. package/dist/esm/gitopia/gitopia/gitopia/issue.js +0 -323
  116. package/dist/esm/gitopia/gitopia/gitopia/params.js +0 -293
  117. package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +0 -565
  118. package/dist/esm/gitopia/gitopia/gitopia/query.js +0 -7351
  119. package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +0 -452
  120. package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -453
  121. package/dist/esm/gitopia/gitopia/gitopia/reaction.js +0 -123
  122. package/dist/esm/gitopia/gitopia/gitopia/release.js +0 -225
  123. package/dist/esm/gitopia/gitopia/gitopia/repository.js +0 -1200
  124. package/dist/esm/gitopia/gitopia/gitopia/tag.js +0 -125
  125. package/dist/esm/gitopia/gitopia/gitopia/task.js +0 -197
  126. package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +0 -464
  127. package/dist/esm/gitopia/gitopia/gitopia/tx.js +0 -14679
  128. package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +0 -1671
  129. package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -560
  130. package/dist/esm/gitopia/gitopia/gitopia/user.js +0 -340
  131. package/dist/esm/gitopia/gitopia/gitopia/whois.js +0 -146
  132. package/dist/esm/gitopia/gitopia/offchain/offchain.js +0 -144
  133. package/dist/esm/gitopia/gitopia/rewards/genesis.js +0 -82
  134. package/dist/esm/gitopia/gitopia/rewards/params.js +0 -81
  135. package/dist/esm/gitopia/gitopia/rewards/pool.js +0 -191
  136. package/dist/esm/gitopia/gitopia/rewards/query.js +0 -654
  137. package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +0 -40
  138. package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +0 -53
  139. package/dist/esm/gitopia/gitopia/rewards/rewards.js +0 -191
  140. package/dist/esm/gitopia/gitopia/rewards/task.js +0 -176
  141. package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +0 -19
  142. package/dist/esm/gitopia/gitopia/rewards/tx.js +0 -525
  143. package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +0 -69
  144. package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -26
  145. package/dist/esm/gitopia/rpc.query.js +0 -29
  146. package/dist/esm/gitopia/rpc.tx.js +0 -13
  147. package/dist/esm/gogoproto/bundle.js +0 -5
  148. package/dist/esm/gogoproto/gogo.js +0 -1
  149. package/dist/esm/google/api/annotations.js +0 -1
  150. package/dist/esm/google/api/http.js +0 -329
  151. package/dist/esm/google/bundle.js +0 -14
  152. package/dist/esm/google/protobuf/any.js +0 -74
  153. package/dist/esm/google/protobuf/descriptor.js +0 -4848
  154. package/dist/esm/google/protobuf/duration.js +0 -71
  155. package/dist/esm/google/protobuf/timestamp.js +0 -68
  156. package/dist/esm/helpers.js +0 -129
  157. package/dist/esm/ibc/applications/transfer/v1/query.js +0 -847
  158. package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +0 -70
  159. package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +0 -71
  160. package/dist/esm/ibc/applications/transfer/v1/transfer.js +0 -164
  161. package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +0 -9
  162. package/dist/esm/ibc/applications/transfer/v1/tx.js +0 -226
  163. package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +0 -33
  164. package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -14
  165. package/dist/esm/ibc/bundle.js +0 -44
  166. package/dist/esm/ibc/client.js +0 -29
  167. package/dist/esm/ibc/core/client/v1/client.js +0 -611
  168. package/dist/esm/ibc/rpc.query.js +0 -30
  169. package/dist/esm/ibc/rpc.tx.js +0 -14
  170. package/dist/esm/index.js +0 -19
  171. package/dist/esm/utf8.js +0 -137
  172. package/dist/esm/varint.js +0 -408
  173. package/dist/gitopia/bundle.d.ts +0 -6123
  174. package/dist/gitopia/bundle.js +0 -131
  175. package/dist/gitopia/client.d.ts +0 -492
  176. package/dist/gitopia/client.js +0 -70
  177. package/dist/gitopia/custom-lcd-client.d.ts +0 -31
  178. package/dist/gitopia/custom-lcd-client.js +0 -87
  179. package/dist/gitopia/gitopia/gitopia/attachment.d.ts +0 -39
  180. package/dist/gitopia/gitopia/gitopia/attachment.js +0 -104
  181. package/dist/gitopia/gitopia/gitopia/bounty.d.ts +0 -79
  182. package/dist/gitopia/gitopia/gitopia/bounty.js +0 -262
  183. package/dist/gitopia/gitopia/gitopia/branch.d.ts +0 -48
  184. package/dist/gitopia/gitopia/gitopia/branch.js +0 -140
  185. package/dist/gitopia/gitopia/gitopia/comment.d.ts +0 -125
  186. package/dist/gitopia/gitopia/gitopia/comment.js +0 -495
  187. package/dist/gitopia/gitopia/gitopia/dao.d.ts +0 -160
  188. package/dist/gitopia/gitopia/gitopia/dao.js +0 -454
  189. package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +0 -34
  190. package/dist/gitopia/gitopia/gitopia/exercised_amount.js +0 -81
  191. package/dist/gitopia/gitopia/gitopia/genesis.d.ts +0 -143
  192. package/dist/gitopia/gitopia/gitopia/genesis.js +0 -463
  193. package/dist/gitopia/gitopia/gitopia/issue.d.ts +0 -88
  194. package/dist/gitopia/gitopia/gitopia/issue.js +0 -328
  195. package/dist/gitopia/gitopia/gitopia/params.d.ts +0 -115
  196. package/dist/gitopia/gitopia/gitopia/params.js +0 -296
  197. package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +0 -177
  198. package/dist/gitopia/gitopia/gitopia/pullRequest.js +0 -570
  199. package/dist/gitopia/gitopia/gitopia/query.d.ts +0 -3130
  200. package/dist/gitopia/gitopia/gitopia/query.js +0 -7355
  201. package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +0 -54
  202. package/dist/gitopia/gitopia/gitopia/query.lcd.js +0 -456
  203. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +0 -188
  204. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -458
  205. package/dist/gitopia/gitopia/gitopia/reaction.d.ts +0 -42
  206. package/dist/gitopia/gitopia/gitopia/reaction.js +0 -128
  207. package/dist/gitopia/gitopia/gitopia/release.d.ts +0 -70
  208. package/dist/gitopia/gitopia/gitopia/release.js +0 -228
  209. package/dist/gitopia/gitopia/gitopia/repository.d.ts +0 -424
  210. package/dist/gitopia/gitopia/gitopia/repository.js +0 -1207
  211. package/dist/gitopia/gitopia/gitopia/tag.d.ts +0 -45
  212. package/dist/gitopia/gitopia/gitopia/tag.js +0 -128
  213. package/dist/gitopia/gitopia/gitopia/task.d.ts +0 -64
  214. package/dist/gitopia/gitopia/gitopia/task.js +0 -204
  215. package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +0 -463
  216. package/dist/gitopia/gitopia/gitopia/tx.amino.js +0 -467
  217. package/dist/gitopia/gitopia/gitopia/tx.d.ts +0 -6246
  218. package/dist/gitopia/gitopia/gitopia/tx.js +0 -14687
  219. package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +0 -1116
  220. package/dist/gitopia/gitopia/gitopia/tx.registry.js +0 -1675
  221. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +0 -200
  222. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -564
  223. package/dist/gitopia/gitopia/gitopia/user.d.ts +0 -104
  224. package/dist/gitopia/gitopia/gitopia/user.js +0 -343
  225. package/dist/gitopia/gitopia/gitopia/whois.d.ts +0 -51
  226. package/dist/gitopia/gitopia/gitopia/whois.js +0 -151
  227. package/dist/gitopia/gitopia/offchain/offchain.d.ts +0 -74
  228. package/dist/gitopia/gitopia/offchain/offchain.js +0 -147
  229. package/dist/gitopia/gitopia/rewards/genesis.d.ts +0 -40
  230. package/dist/gitopia/gitopia/rewards/genesis.js +0 -85
  231. package/dist/gitopia/gitopia/rewards/params.d.ts +0 -37
  232. package/dist/gitopia/gitopia/rewards/params.js +0 -84
  233. package/dist/gitopia/gitopia/rewards/pool.d.ts +0 -59
  234. package/dist/gitopia/gitopia/rewards/pool.js +0 -196
  235. package/dist/gitopia/gitopia/rewards/query.d.ts +0 -294
  236. package/dist/gitopia/gitopia/rewards/query.js +0 -657
  237. package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +0 -12
  238. package/dist/gitopia/gitopia/rewards/query.lcd.js +0 -44
  239. package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +0 -28
  240. package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +0 -58
  241. package/dist/gitopia/gitopia/rewards/rewards.d.ts +0 -79
  242. package/dist/gitopia/gitopia/rewards/rewards.js +0 -194
  243. package/dist/gitopia/gitopia/rewards/task.d.ts +0 -54
  244. package/dist/gitopia/gitopia/rewards/task.js +0 -181
  245. package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +0 -18
  246. package/dist/gitopia/gitopia/rewards/tx.amino.js +0 -22
  247. package/dist/gitopia/gitopia/rewards/tx.d.ts +0 -242
  248. package/dist/gitopia/gitopia/rewards/tx.js +0 -528
  249. package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +0 -48
  250. package/dist/gitopia/gitopia/rewards/tx.registry.js +0 -73
  251. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +0 -19
  252. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -30
  253. package/dist/gitopia/rpc.query.d.ts +0 -117
  254. package/dist/gitopia/rpc.query.js +0 -66
  255. package/dist/gitopia/rpc.tx.d.ts +0 -16
  256. package/dist/gitopia/rpc.tx.js +0 -50
  257. package/dist/gogoproto/bundle.d.ts +0 -1
  258. package/dist/gogoproto/bundle.js +0 -41
  259. package/dist/gogoproto/gogo.d.ts +0 -1
  260. package/dist/gogoproto/gogo.js +0 -2
  261. package/dist/google/api/annotations.d.ts +0 -1
  262. package/dist/google/api/annotations.js +0 -2
  263. package/dist/google/api/http.d.ts +0 -1049
  264. package/dist/google/api/http.js +0 -332
  265. package/dist/google/bundle.d.ts +0 -525
  266. package/dist/google/bundle.js +0 -50
  267. package/dist/google/protobuf/any.d.ts +0 -358
  268. package/dist/google/protobuf/any.js +0 -77
  269. package/dist/google/protobuf/descriptor.d.ts +0 -3178
  270. package/dist/google/protobuf/descriptor.js +0 -4886
  271. package/dist/google/protobuf/duration.d.ts +0 -223
  272. package/dist/google/protobuf/duration.js +0 -74
  273. package/dist/google/protobuf/timestamp.d.ts +0 -314
  274. package/dist/google/protobuf/timestamp.js +0 -71
  275. package/dist/helpers.d.ts +0 -82
  276. package/dist/helpers.js +0 -144
  277. package/dist/ibc/applications/transfer/v1/query.d.ts +0 -479
  278. package/dist/ibc/applications/transfer/v1/query.js +0 -850
  279. package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +0 -14
  280. package/dist/ibc/applications/transfer/v1/query.lcd.js +0 -74
  281. package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +0 -36
  282. package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +0 -76
  283. package/dist/ibc/applications/transfer/v1/transfer.d.ts +0 -123
  284. package/dist/ibc/applications/transfer/v1/transfer.js +0 -167
  285. package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +0 -8
  286. package/dist/ibc/applications/transfer/v1/tx.amino.js +0 -12
  287. package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -132
  288. package/dist/ibc/applications/transfer/v1/tx.js +0 -229
  289. package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +0 -24
  290. package/dist/ibc/applications/transfer/v1/tx.registry.js +0 -37
  291. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +0 -12
  292. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -18
  293. package/dist/ibc/bundle.d.ts +0 -450
  294. package/dist/ibc/bundle.js +0 -80
  295. package/dist/ibc/client.d.ts +0 -22
  296. package/dist/ibc/client.js +0 -67
  297. package/dist/ibc/core/client/v1/client.d.ts +0 -408
  298. package/dist/ibc/core/client/v1/client.js +0 -614
  299. package/dist/ibc/rpc.query.d.ts +0 -73
  300. package/dist/ibc/rpc.query.js +0 -67
  301. package/dist/ibc/rpc.tx.d.ts +0 -17
  302. package/dist/ibc/rpc.tx.js +0 -51
  303. package/dist/index.d.ts +0 -18
  304. package/dist/index.js +0 -35
  305. package/dist/package.json +0 -46
  306. package/dist/utf8.d.ts +0 -27
  307. package/dist/utf8.js +0 -141
  308. package/dist/varint.d.ts +0 -105
  309. package/dist/varint.js +0 -426
package/dist/esm/utf8.js DELETED
@@ -1,137 +0,0 @@
1
- //@ts-nocheck
2
- /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.0
4
- * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
- * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
- */
7
- // Copyright (c) 2016, Daniel Wirtz All rights reserved.
8
- // Redistribution and use in source and binary forms, with or without
9
- // modification, are permitted provided that the following conditions are
10
- // met:
11
- // * Redistributions of source code must retain the above copyright
12
- // notice, this list of conditions and the following disclaimer.
13
- // * Redistributions in binary form must reproduce the above copyright
14
- // notice, this list of conditions and the following disclaimer in the
15
- // documentation and/or other materials provided with the distribution.
16
- // * Neither the name of its author, nor the names of its contributors
17
- // may be used to endorse or promote products derived from this software
18
- // without specific prior written permission.
19
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- "use strict";
31
- /**
32
- * Calculates the UTF8 byte length of a string.
33
- * @param {string} string String
34
- * @returns {number} Byte length
35
- */
36
- export function utf8Length(str) {
37
- let len = 0, c = 0;
38
- for (let i = 0; i < str.length; ++i) {
39
- c = str.charCodeAt(i);
40
- if (c < 128)
41
- len += 1;
42
- else if (c < 2048)
43
- len += 2;
44
- else if ((c & 0xfc00) === 0xd800 &&
45
- (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
46
- ++i;
47
- len += 4;
48
- }
49
- else
50
- len += 3;
51
- }
52
- return len;
53
- }
54
- /**
55
- * Reads UTF8 bytes as a string.
56
- * @param {Uint8Array} buffer Source buffer
57
- * @param {number} start Source start
58
- * @param {number} end Source end
59
- * @returns {string} String read
60
- */
61
- export function utf8Read(buffer, start, end) {
62
- const len = end - start;
63
- if (len < 1)
64
- return "";
65
- const chunk = [];
66
- let parts = [], i = 0, // char offset
67
- t; // temporary
68
- while (start < end) {
69
- t = buffer[start++];
70
- if (t < 128)
71
- chunk[i++] = t;
72
- else if (t > 191 && t < 224)
73
- chunk[i++] = ((t & 31) << 6) | (buffer[start++] & 63);
74
- else if (t > 239 && t < 365) {
75
- t =
76
- (((t & 7) << 18) |
77
- ((buffer[start++] & 63) << 12) |
78
- ((buffer[start++] & 63) << 6) |
79
- (buffer[start++] & 63)) -
80
- 0x10000;
81
- chunk[i++] = 0xd800 + (t >> 10);
82
- chunk[i++] = 0xdc00 + (t & 1023);
83
- }
84
- else
85
- chunk[i++] =
86
- ((t & 15) << 12) |
87
- ((buffer[start++] & 63) << 6) |
88
- (buffer[start++] & 63);
89
- if (i > 8191) {
90
- (parts || (parts = [])).push(String.fromCharCode(...chunk));
91
- i = 0;
92
- }
93
- }
94
- if (parts) {
95
- if (i)
96
- parts.push(String.fromCharCode(...chunk.slice(0, i)));
97
- return parts.join("");
98
- }
99
- return String.fromCharCode(...chunk.slice(0, i));
100
- }
101
- /**
102
- * Writes a string as UTF8 bytes.
103
- * @param {string} string Source string
104
- * @param {Uint8Array} buffer Destination buffer
105
- * @param {number} offset Destination offset
106
- * @returns {number} Bytes written
107
- */
108
- export function utf8Write(str, buffer, offset) {
109
- const start = offset;
110
- let c1, // character 1
111
- c2; // character 2
112
- for (let i = 0; i < str.length; ++i) {
113
- c1 = str.charCodeAt(i);
114
- if (c1 < 128) {
115
- buffer[offset++] = c1;
116
- }
117
- else if (c1 < 2048) {
118
- buffer[offset++] = (c1 >> 6) | 192;
119
- buffer[offset++] = (c1 & 63) | 128;
120
- }
121
- else if ((c1 & 0xfc00) === 0xd800 &&
122
- ((c2 = str.charCodeAt(i + 1)) & 0xfc00) === 0xdc00) {
123
- c1 = 0x10000 + ((c1 & 0x03ff) << 10) + (c2 & 0x03ff);
124
- ++i;
125
- buffer[offset++] = (c1 >> 18) | 240;
126
- buffer[offset++] = ((c1 >> 12) & 63) | 128;
127
- buffer[offset++] = ((c1 >> 6) & 63) | 128;
128
- buffer[offset++] = (c1 & 63) | 128;
129
- }
130
- else {
131
- buffer[offset++] = (c1 >> 12) | 224;
132
- buffer[offset++] = ((c1 >> 6) & 63) | 128;
133
- buffer[offset++] = (c1 & 63) | 128;
134
- }
135
- }
136
- return offset - start;
137
- }
@@ -1,408 +0,0 @@
1
- //@ts-nocheck
2
- /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.0
4
- * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
- * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
- */
7
- // Copyright 2008 Google Inc. All rights reserved.
8
- //
9
- // Redistribution and use in source and binary forms, with or without
10
- // modification, are permitted provided that the following conditions are
11
- // met:
12
- //
13
- // * Redistributions of source code must retain the above copyright
14
- // notice, this list of conditions and the following disclaimer.
15
- // * Redistributions in binary form must reproduce the above
16
- // copyright notice, this list of conditions and the following disclaimer
17
- // in the documentation and/or other materials provided with the
18
- // distribution.
19
- // * Neither the name of Google Inc. nor the names of its
20
- // contributors may be used to endorse or promote products derived from
21
- // this software without specific prior written permission.
22
- //
23
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
- //
35
- // Code generated by the Protocol Buffer compiler is owned by the owner
36
- // of the input file used when generating it. This code is not
37
- // standalone and requires a support library to be linked with it. This
38
- // support library is itself covered by the above license.
39
- /* eslint-disable prefer-const,@typescript-eslint/restrict-plus-operands */
40
- /**
41
- * Read a 64 bit varint as two JS numbers.
42
- *
43
- * Returns tuple:
44
- * [0]: low bits
45
- * [1]: high bits
46
- *
47
- * Copyright 2008 Google Inc. All rights reserved.
48
- *
49
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175
50
- */
51
- export function varint64read() {
52
- let lowBits = 0;
53
- let highBits = 0;
54
- for (let shift = 0; shift < 28; shift += 7) {
55
- let b = this.buf[this.pos++];
56
- lowBits |= (b & 0x7f) << shift;
57
- if ((b & 0x80) == 0) {
58
- this.assertBounds();
59
- return [lowBits, highBits];
60
- }
61
- }
62
- let middleByte = this.buf[this.pos++];
63
- // last four bits of the first 32 bit number
64
- lowBits |= (middleByte & 0x0f) << 28;
65
- // 3 upper bits are part of the next 32 bit number
66
- highBits = (middleByte & 0x70) >> 4;
67
- if ((middleByte & 0x80) == 0) {
68
- this.assertBounds();
69
- return [lowBits, highBits];
70
- }
71
- for (let shift = 3; shift <= 31; shift += 7) {
72
- let b = this.buf[this.pos++];
73
- highBits |= (b & 0x7f) << shift;
74
- if ((b & 0x80) == 0) {
75
- this.assertBounds();
76
- return [lowBits, highBits];
77
- }
78
- }
79
- throw new Error("invalid varint");
80
- }
81
- /**
82
- * Write a 64 bit varint, given as two JS numbers, to the given bytes array.
83
- *
84
- * Copyright 2008 Google Inc. All rights reserved.
85
- *
86
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344
87
- */
88
- export function varint64write(lo, hi, bytes) {
89
- for (let i = 0; i < 28; i = i + 7) {
90
- const shift = lo >>> i;
91
- const hasNext = !(shift >>> 7 == 0 && hi == 0);
92
- const byte = (hasNext ? shift | 0x80 : shift) & 0xff;
93
- bytes.push(byte);
94
- if (!hasNext) {
95
- return;
96
- }
97
- }
98
- const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4);
99
- const hasMoreBits = !(hi >> 3 == 0);
100
- bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff);
101
- if (!hasMoreBits) {
102
- return;
103
- }
104
- for (let i = 3; i < 31; i = i + 7) {
105
- const shift = hi >>> i;
106
- const hasNext = !(shift >>> 7 == 0);
107
- const byte = (hasNext ? shift | 0x80 : shift) & 0xff;
108
- bytes.push(byte);
109
- if (!hasNext) {
110
- return;
111
- }
112
- }
113
- bytes.push((hi >>> 31) & 0x01);
114
- }
115
- // constants for binary math
116
- const TWO_PWR_32_DBL = 0x100000000;
117
- /**
118
- * Parse decimal string of 64 bit integer value as two JS numbers.
119
- *
120
- * Copyright 2008 Google Inc. All rights reserved.
121
- *
122
- * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10
123
- */
124
- export function int64FromString(dec) {
125
- // Check for minus sign.
126
- const minus = dec[0] === "-";
127
- if (minus) {
128
- dec = dec.slice(1);
129
- }
130
- // Work 6 decimal digits at a time, acting like we're converting base 1e6
131
- // digits to binary. This is safe to do with floating point math because
132
- // Number.isSafeInteger(ALL_32_BITS * 1e6) == true.
133
- const base = 1e6;
134
- let lowBits = 0;
135
- let highBits = 0;
136
- function add1e6digit(begin, end) {
137
- // Note: Number('') is 0.
138
- const digit1e6 = Number(dec.slice(begin, end));
139
- highBits *= base;
140
- lowBits = lowBits * base + digit1e6;
141
- // Carry bits from lowBits to
142
- if (lowBits >= TWO_PWR_32_DBL) {
143
- highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0);
144
- lowBits = lowBits % TWO_PWR_32_DBL;
145
- }
146
- }
147
- add1e6digit(-24, -18);
148
- add1e6digit(-18, -12);
149
- add1e6digit(-12, -6);
150
- add1e6digit(-6);
151
- return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits);
152
- }
153
- /**
154
- * Losslessly converts a 64-bit signed integer in 32:32 split representation
155
- * into a decimal string.
156
- *
157
- * Copyright 2008 Google Inc. All rights reserved.
158
- *
159
- * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10
160
- */
161
- export function int64ToString(lo, hi) {
162
- let bits = newBits(lo, hi);
163
- // If we're treating the input as a signed value and the high bit is set, do
164
- // a manual two's complement conversion before the decimal conversion.
165
- const negative = bits.hi & 0x80000000;
166
- if (negative) {
167
- bits = negate(bits.lo, bits.hi);
168
- }
169
- const result = uInt64ToString(bits.lo, bits.hi);
170
- return negative ? "-" + result : result;
171
- }
172
- /**
173
- * Losslessly converts a 64-bit unsigned integer in 32:32 split representation
174
- * into a decimal string.
175
- *
176
- * Copyright 2008 Google Inc. All rights reserved.
177
- *
178
- * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10
179
- */
180
- export function uInt64ToString(lo, hi) {
181
- ({ lo, hi } = toUnsigned(lo, hi));
182
- // Skip the expensive conversion if the number is small enough to use the
183
- // built-in conversions.
184
- // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with
185
- // highBits <= 0x1FFFFF can be safely expressed with a double and retain
186
- // integer precision.
187
- // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true.
188
- if (hi <= 0x1fffff) {
189
- return String(TWO_PWR_32_DBL * hi + lo);
190
- }
191
- // What this code is doing is essentially converting the input number from
192
- // base-2 to base-1e7, which allows us to represent the 64-bit range with
193
- // only 3 (very large) digits. Those digits are then trivial to convert to
194
- // a base-10 string.
195
- // The magic numbers used here are -
196
- // 2^24 = 16777216 = (1,6777216) in base-1e7.
197
- // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.
198
- // Split 32:32 representation into 16:24:24 representation so our
199
- // intermediate digits don't overflow.
200
- const low = lo & 0xffffff;
201
- const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff;
202
- const high = (hi >> 16) & 0xffff;
203
- // Assemble our three base-1e7 digits, ignoring carries. The maximum
204
- // value in a digit at this step is representable as a 48-bit integer, which
205
- // can be stored in a 64-bit floating point number.
206
- let digitA = low + mid * 6777216 + high * 6710656;
207
- let digitB = mid + high * 8147497;
208
- let digitC = high * 2;
209
- // Apply carries from A to B and from B to C.
210
- const base = 10000000;
211
- if (digitA >= base) {
212
- digitB += Math.floor(digitA / base);
213
- digitA %= base;
214
- }
215
- if (digitB >= base) {
216
- digitC += Math.floor(digitB / base);
217
- digitB %= base;
218
- }
219
- // If digitC is 0, then we should have returned in the trivial code path
220
- // at the top for non-safe integers. Given this, we can assume both digitB
221
- // and digitA need leading zeros.
222
- return (digitC.toString() +
223
- decimalFrom1e7WithLeadingZeros(digitB) +
224
- decimalFrom1e7WithLeadingZeros(digitA));
225
- }
226
- function toUnsigned(lo, hi) {
227
- return { lo: lo >>> 0, hi: hi >>> 0 };
228
- }
229
- function newBits(lo, hi) {
230
- return { lo: lo | 0, hi: hi | 0 };
231
- }
232
- /**
233
- * Returns two's compliment negation of input.
234
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers
235
- */
236
- function negate(lowBits, highBits) {
237
- highBits = ~highBits;
238
- if (lowBits) {
239
- lowBits = ~lowBits + 1;
240
- }
241
- else {
242
- // If lowBits is 0, then bitwise-not is 0xFFFFFFFF,
243
- // adding 1 to that, results in 0x100000000, which leaves
244
- // the low bits 0x0 and simply adds one to the high bits.
245
- highBits += 1;
246
- }
247
- return newBits(lowBits, highBits);
248
- }
249
- /**
250
- * Returns decimal representation of digit1e7 with leading zeros.
251
- */
252
- const decimalFrom1e7WithLeadingZeros = (digit1e7) => {
253
- const partial = String(digit1e7);
254
- return "0000000".slice(partial.length) + partial;
255
- };
256
- /**
257
- * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`
258
- *
259
- * Copyright 2008 Google Inc. All rights reserved.
260
- *
261
- * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144
262
- */
263
- export function varint32write(value, bytes) {
264
- if (value >= 0) {
265
- // write value as varint 32
266
- while (value > 0x7f) {
267
- bytes.push((value & 0x7f) | 0x80);
268
- value = value >>> 7;
269
- }
270
- bytes.push(value);
271
- }
272
- else {
273
- for (let i = 0; i < 9; i++) {
274
- bytes.push((value & 127) | 128);
275
- value = value >> 7;
276
- }
277
- bytes.push(1);
278
- }
279
- }
280
- /**
281
- * Read an unsigned 32 bit varint.
282
- *
283
- * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220
284
- */
285
- export function varint32read() {
286
- let b = this.buf[this.pos++];
287
- let result = b & 0x7f;
288
- if ((b & 0x80) == 0) {
289
- this.assertBounds();
290
- return result;
291
- }
292
- b = this.buf[this.pos++];
293
- result |= (b & 0x7f) << 7;
294
- if ((b & 0x80) == 0) {
295
- this.assertBounds();
296
- return result;
297
- }
298
- b = this.buf[this.pos++];
299
- result |= (b & 0x7f) << 14;
300
- if ((b & 0x80) == 0) {
301
- this.assertBounds();
302
- return result;
303
- }
304
- b = this.buf[this.pos++];
305
- result |= (b & 0x7f) << 21;
306
- if ((b & 0x80) == 0) {
307
- this.assertBounds();
308
- return result;
309
- }
310
- // Extract only last 4 bits
311
- b = this.buf[this.pos++];
312
- result |= (b & 0x0f) << 28;
313
- for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++)
314
- b = this.buf[this.pos++];
315
- if ((b & 0x80) != 0)
316
- throw new Error("invalid varint");
317
- this.assertBounds();
318
- // Result can have 32 bits, convert it to unsigned
319
- return result >>> 0;
320
- }
321
- /**
322
- * encode zig zag
323
- */
324
- export function zzEncode(lo, hi) {
325
- let mask = hi >> 31;
326
- hi = (((hi << 1) | (lo >>> 31)) ^ mask) >>> 0;
327
- lo = ((lo << 1) ^ mask) >>> 0;
328
- return [lo, hi];
329
- }
330
- /**
331
- * decode zig zag
332
- */
333
- export function zzDecode(lo, hi) {
334
- let mask = -(lo & 1);
335
- lo = (((lo >>> 1) | (hi << 31)) ^ mask) >>> 0;
336
- hi = ((hi >>> 1) ^ mask) >>> 0;
337
- return [lo, hi];
338
- }
339
- /**
340
- * unsigned int32 without moving pos.
341
- */
342
- export function readUInt32(buf, pos) {
343
- return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) +
344
- buf[pos + 3] * 0x1000000);
345
- }
346
- /**
347
- * signed int32 without moving pos.
348
- */
349
- export function readInt32(buf, pos) {
350
- return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) +
351
- (buf[pos + 3] << 24));
352
- }
353
- /**
354
- * writing varint32 to pos
355
- */
356
- export function writeVarint32(val, buf, pos) {
357
- while (val > 127) {
358
- buf[pos++] = (val & 127) | 128;
359
- val >>>= 7;
360
- }
361
- buf[pos] = val;
362
- }
363
- /**
364
- * writing varint64 to pos
365
- */
366
- export function writeVarint64(val, buf, pos) {
367
- while (val.hi) {
368
- buf[pos++] = (val.lo & 127) | 128;
369
- val.lo = ((val.lo >>> 7) | (val.hi << 25)) >>> 0;
370
- val.hi >>>= 7;
371
- }
372
- while (val.lo > 127) {
373
- buf[pos++] = (val.lo & 127) | 128;
374
- val.lo = val.lo >>> 7;
375
- }
376
- buf[pos++] = val.lo;
377
- }
378
- export function int64Length(lo, hi) {
379
- let part0 = lo, part1 = ((lo >>> 28) | (hi << 4)) >>> 0, part2 = hi >>> 24;
380
- return part2 === 0
381
- ? part1 === 0
382
- ? part0 < 16384
383
- ? part0 < 128
384
- ? 1
385
- : 2
386
- : part0 < 2097152
387
- ? 3
388
- : 4
389
- : part1 < 16384
390
- ? part1 < 128
391
- ? 5
392
- : 6
393
- : part1 < 2097152
394
- ? 7
395
- : 8
396
- : part2 < 128
397
- ? 9
398
- : 10;
399
- }
400
- export function writeFixed32(val, buf, pos) {
401
- buf[pos] = val & 255;
402
- buf[pos + 1] = (val >>> 8) & 255;
403
- buf[pos + 2] = (val >>> 16) & 255;
404
- buf[pos + 3] = val >>> 24;
405
- }
406
- export function writeByte(val, buf, pos) {
407
- buf[pos] = val & 255;
408
- }