example-js-sdk 0.0.1

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 (1134) hide show
  1. package/README.md +89 -0
  2. package/lib/CarbonSDK.d.ts +145 -0
  3. package/lib/CarbonSDK.js +496 -0
  4. package/lib/clients/BatchQueryClient.d.ts +26 -0
  5. package/lib/clients/BatchQueryClient.js +88 -0
  6. package/lib/clients/BlockchainClient.d.ts +16 -0
  7. package/lib/clients/BlockchainClient.js +19 -0
  8. package/lib/clients/CarbonQueryClient.d.ts +108 -0
  9. package/lib/clients/CarbonQueryClient.js +109 -0
  10. package/lib/clients/ETHClient.d.ts +101 -0
  11. package/lib/clients/ETHClient.js +344 -0
  12. package/lib/clients/GasFee.d.ts +12 -0
  13. package/lib/clients/GasFee.js +30 -0
  14. package/lib/clients/GrpcQueryClient.d.ts +22 -0
  15. package/lib/clients/GrpcQueryClient.js +60 -0
  16. package/lib/clients/HydrogenClient.d.ts +28 -0
  17. package/lib/clients/HydrogenClient.js +225 -0
  18. package/lib/clients/InsightsQueryClient.d.ts +77 -0
  19. package/lib/clients/InsightsQueryClient.js +496 -0
  20. package/lib/clients/TokenClient.d.ts +93 -0
  21. package/lib/clients/TokenClient.js +715 -0
  22. package/lib/clients/index.d.ts +7 -0
  23. package/lib/clients/index.js +20 -0
  24. package/lib/codec/alliance/alliance/alliance.d.ts +72 -0
  25. package/lib/codec/alliance/alliance/alliance.js +369 -0
  26. package/lib/codec/alliance/alliance/delegations.d.ts +67 -0
  27. package/lib/codec/alliance/alliance/delegations.js +373 -0
  28. package/lib/codec/alliance/alliance/events.d.ts +76 -0
  29. package/lib/codec/alliance/alliance/events.js +451 -0
  30. package/lib/codec/alliance/alliance/export.d.ts +10 -0
  31. package/lib/codec/alliance/alliance/export.js +84 -0
  32. package/lib/codec/alliance/alliance/genesis.d.ts +80 -0
  33. package/lib/codec/alliance/alliance/genesis.js +503 -0
  34. package/lib/codec/alliance/alliance/gov.d.ts +84 -0
  35. package/lib/codec/alliance/alliance/gov.js +403 -0
  36. package/lib/codec/alliance/alliance/params.d.ts +37 -0
  37. package/lib/codec/alliance/alliance/params.js +204 -0
  38. package/lib/codec/alliance/alliance/query.d.ts +442 -0
  39. package/lib/codec/alliance/alliance/query.js +2036 -0
  40. package/lib/codec/alliance/alliance/redelegations.d.ts +60 -0
  41. package/lib/codec/alliance/alliance/redelegations.js +290 -0
  42. package/lib/codec/alliance/alliance/tx.d.ts +250 -0
  43. package/lib/codec/alliance/alliance/tx.js +1096 -0
  44. package/lib/codec/alliance/alliance/unbonding.d.ts +27 -0
  45. package/lib/codec/alliance/alliance/unbonding.js +128 -0
  46. package/lib/codec/amino/amino.d.ts +1 -0
  47. package/lib/codec/amino/amino.js +5 -0
  48. package/lib/codec/carbon-models.d.ts +23 -0
  49. package/lib/codec/carbon-models.js +59 -0
  50. package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +86 -0
  51. package/lib/codec/cosmos/app/runtime/v1alpha1/module.js +279 -0
  52. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +86 -0
  53. package/lib/codec/cosmos/app/v1alpha1/config.js +237 -0
  54. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +112 -0
  55. package/lib/codec/cosmos/app/v1alpha1/module.js +215 -0
  56. package/lib/codec/cosmos/app/v1alpha1/query.d.ts +49 -0
  57. package/lib/codec/cosmos/app/v1alpha1/query.js +118 -0
  58. package/lib/codec/cosmos/auth/module/v1/module.d.ts +43 -0
  59. package/lib/codec/cosmos/auth/module/v1/module.js +166 -0
  60. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +80 -0
  61. package/lib/codec/cosmos/auth/v1beta1/auth.js +424 -0
  62. package/lib/codec/cosmos/auth/v1beta1/export.d.ts +3 -0
  63. package/lib/codec/cosmos/auth/v1beta1/export.js +32 -0
  64. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +25 -0
  65. package/lib/codec/cosmos/auth/v1beta1/genesis.js +88 -0
  66. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +402 -0
  67. package/lib/codec/cosmos/auth/v1beta1/query.js +1110 -0
  68. package/lib/codec/cosmos/auth/v1beta1/tx.d.ts +69 -0
  69. package/lib/codec/cosmos/auth/v1beta1/tx.js +132 -0
  70. package/lib/codec/cosmos/authz/module/v1/module.d.ts +19 -0
  71. package/lib/codec/cosmos/authz/module/v1/module.js +51 -0
  72. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +78 -0
  73. package/lib/codec/cosmos/authz/v1beta1/authz.js +298 -0
  74. package/lib/codec/cosmos/authz/v1beta1/event.d.ts +43 -0
  75. package/lib/codec/cosmos/authz/v1beta1/event.js +165 -0
  76. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +22 -0
  77. package/lib/codec/cosmos/authz/v1beta1/genesis.js +72 -0
  78. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +131 -0
  79. package/lib/codec/cosmos/authz/v1beta1/query.js +473 -0
  80. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +135 -0
  81. package/lib/codec/cosmos/authz/v1beta1/tx.js +426 -0
  82. package/lib/codec/cosmos/autocli/v1/options.d.ts +191 -0
  83. package/lib/codec/cosmos/autocli/v1/options.js +737 -0
  84. package/lib/codec/cosmos/autocli/v1/query.d.ts +66 -0
  85. package/lib/codec/cosmos/autocli/v1/query.js +203 -0
  86. package/lib/codec/cosmos/bank/module/v1/module.d.ts +34 -0
  87. package/lib/codec/cosmos/bank/module/v1/module.js +105 -0
  88. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +33 -0
  89. package/lib/codec/cosmos/bank/v1beta1/authz.js +87 -0
  90. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +167 -0
  91. package/lib/codec/cosmos/bank/v1beta1/bank.js +554 -0
  92. package/lib/codec/cosmos/bank/v1beta1/export.d.ts +5 -0
  93. package/lib/codec/cosmos/bank/v1beta1/export.js +52 -0
  94. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +56 -0
  95. package/lib/codec/cosmos/bank/v1beta1/genesis.js +210 -0
  96. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +587 -0
  97. package/lib/codec/cosmos/bank/v1beta1/query.js +1710 -0
  98. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +184 -0
  99. package/lib/codec/cosmos/bank/v1beta1/tx.js +499 -0
  100. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +269 -0
  101. package/lib/codec/cosmos/base/abci/v1beta1/abci.js +1109 -0
  102. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +85 -0
  103. package/lib/codec/cosmos/base/node/v1beta1/query.js +374 -0
  104. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +87 -0
  105. package/lib/codec/cosmos/base/query/v1beta1/pagination.js +221 -0
  106. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +88 -0
  107. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js +233 -0
  108. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +443 -0
  109. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js +1537 -0
  110. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +343 -0
  111. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1530 -0
  112. package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +69 -0
  113. package/lib/codec/cosmos/base/tendermint/v1beta1/types.js +417 -0
  114. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +74 -0
  115. package/lib/codec/cosmos/base/v1beta1/coin.js +237 -0
  116. package/lib/codec/cosmos/circuit/module/v1/module.d.ts +21 -0
  117. package/lib/codec/cosmos/circuit/module/v1/module.js +65 -0
  118. package/lib/codec/cosmos/circuit/v1/query.d.ts +106 -0
  119. package/lib/codec/cosmos/circuit/v1/query.js +356 -0
  120. package/lib/codec/cosmos/circuit/v1/tx.d.ts +137 -0
  121. package/lib/codec/cosmos/circuit/v1/tx.js +398 -0
  122. package/lib/codec/cosmos/circuit/v1/types.d.ts +84 -0
  123. package/lib/codec/cosmos/circuit/v1/types.js +289 -0
  124. package/lib/codec/cosmos/consensus/module/v1/module.d.ts +21 -0
  125. package/lib/codec/cosmos/consensus/module/v1/module.js +65 -0
  126. package/lib/codec/cosmos/consensus/v1/query.d.ts +54 -0
  127. package/lib/codec/cosmos/consensus/v1/query.js +118 -0
  128. package/lib/codec/cosmos/consensus/v1/tx.d.ts +70 -0
  129. package/lib/codec/cosmos/consensus/v1/tx.js +176 -0
  130. package/lib/codec/cosmos/crisis/module/v1/module.d.ts +23 -0
  131. package/lib/codec/cosmos/crisis/module/v1/module.js +79 -0
  132. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +25 -0
  133. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +69 -0
  134. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +96 -0
  135. package/lib/codec/cosmos/crisis/v1beta1/tx.js +250 -0
  136. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +41 -0
  137. package/lib/codec/cosmos/crypto/ed25519/keys.js +155 -0
  138. package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +33 -0
  139. package/lib/codec/cosmos/crypto/hd/v1/hd.js +115 -0
  140. package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +83 -0
  141. package/lib/codec/cosmos/crypto/keyring/v1/record.js +314 -0
  142. package/lib/codec/cosmos/crypto/multisig/keys.d.ts +26 -0
  143. package/lib/codec/cosmos/crypto/multisig/keys.js +85 -0
  144. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +42 -0
  145. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js +175 -0
  146. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +38 -0
  147. package/lib/codec/cosmos/crypto/secp256k1/keys.js +155 -0
  148. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +38 -0
  149. package/lib/codec/cosmos/crypto/secp256r1/keys.js +155 -0
  150. package/lib/codec/cosmos/distribution/module/v1/module.d.ts +22 -0
  151. package/lib/codec/cosmos/distribution/module/v1/module.js +79 -0
  152. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +237 -0
  153. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +899 -0
  154. package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +4 -0
  155. package/lib/codec/cosmos/distribution/v1beta1/export.js +63 -0
  156. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +164 -0
  157. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +761 -0
  158. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +409 -0
  159. package/lib/codec/cosmos/distribution/v1beta1/query.js +1291 -0
  160. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +304 -0
  161. package/lib/codec/cosmos/distribution/v1beta1/tx.js +820 -0
  162. package/lib/codec/cosmos/evidence/module/v1/module.d.ts +19 -0
  163. package/lib/codec/cosmos/evidence/module/v1/module.js +51 -0
  164. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +30 -0
  165. package/lib/codec/cosmos/evidence/v1beta1/evidence.js +130 -0
  166. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +22 -0
  167. package/lib/codec/cosmos/evidence/v1beta1/genesis.js +68 -0
  168. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +100 -0
  169. package/lib/codec/cosmos/evidence/v1beta1/query.js +312 -0
  170. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +59 -0
  171. package/lib/codec/cosmos/evidence/v1beta1/tx.js +184 -0
  172. package/lib/codec/cosmos/feegrant/module/v1/module.d.ts +19 -0
  173. package/lib/codec/cosmos/feegrant/module/v1/module.js +51 -0
  174. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +100 -0
  175. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +373 -0
  176. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +22 -0
  177. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +70 -0
  178. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +131 -0
  179. package/lib/codec/cosmos/feegrant/v1beta1/query.js +427 -0
  180. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +131 -0
  181. package/lib/codec/cosmos/feegrant/v1beta1/tx.js +340 -0
  182. package/lib/codec/cosmos/genutil/module/v1/module.d.ts +19 -0
  183. package/lib/codec/cosmos/genutil/module/v1/module.js +51 -0
  184. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +21 -0
  185. package/lib/codec/cosmos/genutil/v1beta1/genesis.js +107 -0
  186. package/lib/codec/cosmos/gov/module/v1/module.d.ts +26 -0
  187. package/lib/codec/cosmos/gov/module/v1/module.js +81 -0
  188. package/lib/codec/cosmos/gov/v1/export.d.ts +3 -0
  189. package/lib/codec/cosmos/gov/v1/export.js +53 -0
  190. package/lib/codec/cosmos/gov/v1/genesis.d.ts +65 -0
  191. package/lib/codec/cosmos/gov/v1/genesis.js +203 -0
  192. package/lib/codec/cosmos/gov/v1/gov.d.ts +354 -0
  193. package/lib/codec/cosmos/gov/v1/gov.js +1221 -0
  194. package/lib/codec/cosmos/gov/v1/query.d.ts +333 -0
  195. package/lib/codec/cosmos/gov/v1/query.js +1169 -0
  196. package/lib/codec/cosmos/gov/v1/tx.d.ts +308 -0
  197. package/lib/codec/cosmos/gov/v1/tx.js +995 -0
  198. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +34 -0
  199. package/lib/codec/cosmos/gov/v1beta1/genesis.js +175 -0
  200. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +255 -0
  201. package/lib/codec/cosmos/gov/v1beta1/gov.js +971 -0
  202. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +284 -0
  203. package/lib/codec/cosmos/gov/v1beta1/query.js +1064 -0
  204. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +165 -0
  205. package/lib/codec/cosmos/gov/v1beta1/tx.js +533 -0
  206. package/lib/codec/cosmos/group/module/v1/module.d.ts +30 -0
  207. package/lib/codec/cosmos/group/module/v1/module.js +85 -0
  208. package/lib/codec/cosmos/group/v1/events.d.ts +165 -0
  209. package/lib/codec/cosmos/group/v1/events.js +647 -0
  210. package/lib/codec/cosmos/group/v1/genesis.d.ts +46 -0
  211. package/lib/codec/cosmos/group/v1/genesis.js +196 -0
  212. package/lib/codec/cosmos/group/v1/query.d.ts +484 -0
  213. package/lib/codec/cosmos/group/v1/query.js +1829 -0
  214. package/lib/codec/cosmos/group/v1/tx.d.ts +526 -0
  215. package/lib/codec/cosmos/group/v1/tx.js +1927 -0
  216. package/lib/codec/cosmos/group/v1/types.d.ts +393 -0
  217. package/lib/codec/cosmos/group/v1/types.js +1329 -0
  218. package/lib/codec/cosmos/ics23/v1/proofs.d.ts +342 -0
  219. package/lib/codec/cosmos/ics23/v1/proofs.js +1353 -0
  220. package/lib/codec/cosmos/mint/module/v1/module.d.ts +22 -0
  221. package/lib/codec/cosmos/mint/module/v1/module.js +79 -0
  222. package/lib/codec/cosmos/mint/v1beta1/export.d.ts +3 -0
  223. package/lib/codec/cosmos/mint/v1beta1/export.js +16 -0
  224. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +24 -0
  225. package/lib/codec/cosmos/mint/v1beta1/genesis.js +84 -0
  226. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +46 -0
  227. package/lib/codec/cosmos/mint/v1beta1/mint.js +198 -0
  228. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +112 -0
  229. package/lib/codec/cosmos/mint/v1beta1/query.js +344 -0
  230. package/lib/codec/cosmos/mint/v1beta1/tx.d.ts +69 -0
  231. package/lib/codec/cosmos/mint/v1beta1/tx.js +132 -0
  232. package/lib/codec/cosmos/msg/textual/v1/textual.d.ts +1 -0
  233. package/lib/codec/cosmos/msg/textual/v1/textual.js +5 -0
  234. package/lib/codec/cosmos/msg/v1/msg.d.ts +1 -0
  235. package/lib/codec/cosmos/msg/v1/msg.js +5 -0
  236. package/lib/codec/cosmos/nft/module/v1/module.d.ts +19 -0
  237. package/lib/codec/cosmos/nft/module/v1/module.js +51 -0
  238. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +61 -0
  239. package/lib/codec/cosmos/nft/v1beta1/event.js +251 -0
  240. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +39 -0
  241. package/lib/codec/cosmos/nft/v1beta1/genesis.js +157 -0
  242. package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +55 -0
  243. package/lib/codec/cosmos/nft/v1beta1/nft.js +238 -0
  244. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +243 -0
  245. package/lib/codec/cosmos/nft/v1beta1/query.js +862 -0
  246. package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +54 -0
  247. package/lib/codec/cosmos/nft/v1beta1/tx.js +153 -0
  248. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +23 -0
  249. package/lib/codec/cosmos/orm/module/v1alpha1/module.js +51 -0
  250. package/lib/codec/cosmos/orm/query/v1alpha1/query.d.ts +183 -0
  251. package/lib/codec/cosmos/orm/query/v1alpha1/query.js +680 -0
  252. package/lib/codec/cosmos/orm/v1/orm.d.ts +130 -0
  253. package/lib/codec/cosmos/orm/v1/orm.js +283 -0
  254. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +78 -0
  255. package/lib/codec/cosmos/orm/v1alpha1/schema.js +257 -0
  256. package/lib/codec/cosmos/params/module/v1/module.d.ts +19 -0
  257. package/lib/codec/cosmos/params/module/v1/module.js +51 -0
  258. package/lib/codec/cosmos/params/v1beta1/export.d.ts +2 -0
  259. package/lib/codec/cosmos/params/v1beta1/export.js +12 -0
  260. package/lib/codec/cosmos/params/v1beta1/params.d.ts +39 -0
  261. package/lib/codec/cosmos/params/v1beta1/params.js +170 -0
  262. package/lib/codec/cosmos/params/v1beta1/query.d.ts +114 -0
  263. package/lib/codec/cosmos/params/v1beta1/query.js +308 -0
  264. package/lib/codec/cosmos/query/v1/query.d.ts +1 -0
  265. package/lib/codec/cosmos/query/v1/query.js +5 -0
  266. package/lib/codec/cosmos/reflection/v1/reflection.d.ts +55 -0
  267. package/lib/codec/cosmos/reflection/v1/reflection.js +118 -0
  268. package/lib/codec/cosmos/slashing/module/v1/module.d.ts +21 -0
  269. package/lib/codec/cosmos/slashing/module/v1/module.js +65 -0
  270. package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +4 -0
  271. package/lib/codec/cosmos/slashing/v1beta1/export.js +22 -0
  272. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +80 -0
  273. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +307 -0
  274. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +119 -0
  275. package/lib/codec/cosmos/slashing/v1beta1/query.js +353 -0
  276. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +61 -0
  277. package/lib/codec/cosmos/slashing/v1beta1/slashing.js +329 -0
  278. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +99 -0
  279. package/lib/codec/cosmos/slashing/v1beta1/tx.js +223 -0
  280. package/lib/codec/cosmos/staking/module/v1/module.d.ts +31 -0
  281. package/lib/codec/cosmos/staking/module/v1/module.js +108 -0
  282. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +70 -0
  283. package/lib/codec/cosmos/staking/v1beta1/authz.js +227 -0
  284. package/lib/codec/cosmos/staking/v1beta1/export.d.ts +5 -0
  285. package/lib/codec/cosmos/staking/v1beta1/export.js +84 -0
  286. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +57 -0
  287. package/lib/codec/cosmos/staking/v1beta1/genesis.js +297 -0
  288. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +556 -0
  289. package/lib/codec/cosmos/staking/v1beta1/query.js +1804 -0
  290. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +448 -0
  291. package/lib/codec/cosmos/staking/v1beta1/staking.js +1924 -0
  292. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +299 -0
  293. package/lib/codec/cosmos/staking/v1beta1/tx.js +1012 -0
  294. package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.d.ts +33 -0
  295. package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.js +174 -0
  296. package/lib/codec/cosmos/store/snapshots/v1/snapshot.d.ts +126 -0
  297. package/lib/codec/cosmos/store/snapshots/v1/snapshot.js +563 -0
  298. package/lib/codec/cosmos/store/streaming/abci/grpc.d.ts +79 -0
  299. package/lib/codec/cosmos/store/streaming/abci/grpc.js +261 -0
  300. package/lib/codec/cosmos/store/v1beta1/commit_info.d.ts +57 -0
  301. package/lib/codec/cosmos/store/v1beta1/commit_info.js +292 -0
  302. package/lib/codec/cosmos/store/v1beta1/listening.d.ts +50 -0
  303. package/lib/codec/cosmos/store/v1beta1/listening.js +236 -0
  304. package/lib/codec/cosmos/tx/config/v1/config.d.ts +29 -0
  305. package/lib/codec/cosmos/tx/config/v1/config.js +79 -0
  306. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +152 -0
  307. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +504 -0
  308. package/lib/codec/cosmos/tx/v1beta1/export.d.ts +2 -0
  309. package/lib/codec/cosmos/tx/v1beta1/export.js +43 -0
  310. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +481 -0
  311. package/lib/codec/cosmos/tx/v1beta1/service.js +1357 -0
  312. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +390 -0
  313. package/lib/codec/cosmos/tx/v1beta1/tx.js +1149 -0
  314. package/lib/codec/cosmos/upgrade/module/v1/module.d.ts +21 -0
  315. package/lib/codec/cosmos/upgrade/module/v1/module.js +65 -0
  316. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +226 -0
  317. package/lib/codec/cosmos/upgrade/v1beta1/query.js +571 -0
  318. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +104 -0
  319. package/lib/codec/cosmos/upgrade/v1beta1/tx.js +221 -0
  320. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +118 -0
  321. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js +346 -0
  322. package/lib/codec/cosmos/vesting/module/v1/module.d.ts +19 -0
  323. package/lib/codec/cosmos/vesting/module/v1/module.js +51 -0
  324. package/lib/codec/cosmos/vesting/v1beta1/export.d.ts +2 -0
  325. package/lib/codec/cosmos/vesting/v1beta1/export.js +17 -0
  326. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +147 -0
  327. package/lib/codec/cosmos/vesting/v1beta1/tx.js +434 -0
  328. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +112 -0
  329. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +481 -0
  330. package/lib/codec/cosmos-models.d.ts +10 -0
  331. package/lib/codec/cosmos-models.js +46 -0
  332. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.d.ts +1 -0
  333. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.js +6 -0
  334. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +41 -0
  335. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.js +155 -0
  336. package/lib/codec/ethermint/evm/v1/events.d.ts +76 -0
  337. package/lib/codec/ethermint/evm/v1/events.js +314 -0
  338. package/lib/codec/ethermint/evm/v1/evm.d.ts +247 -0
  339. package/lib/codec/ethermint/evm/v1/evm.js +1146 -0
  340. package/lib/codec/ethermint/evm/v1/export.d.ts +5 -0
  341. package/lib/codec/ethermint/evm/v1/export.js +53 -0
  342. package/lib/codec/ethermint/evm/v1/genesis.d.ts +45 -0
  343. package/lib/codec/ethermint/evm/v1/genesis.js +166 -0
  344. package/lib/codec/ethermint/evm/v1/query.d.ts +451 -0
  345. package/lib/codec/ethermint/evm/v1/query.js +1687 -0
  346. package/lib/codec/ethermint/evm/v1/tx.d.ts +230 -0
  347. package/lib/codec/ethermint/evm/v1/tx.js +954 -0
  348. package/lib/codec/ethermint/feemarket/v1/events.d.ts +36 -0
  349. package/lib/codec/ethermint/feemarket/v1/events.js +127 -0
  350. package/lib/codec/ethermint/feemarket/v1/export.d.ts +4 -0
  351. package/lib/codec/ethermint/feemarket/v1/export.js +18 -0
  352. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +52 -0
  353. package/lib/codec/ethermint/feemarket/v1/feemarket.js +176 -0
  354. package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +27 -0
  355. package/lib/codec/ethermint/feemarket/v1/genesis.js +84 -0
  356. package/lib/codec/ethermint/feemarket/v1/query.d.ts +109 -0
  357. package/lib/codec/ethermint/feemarket/v1/query.js +300 -0
  358. package/lib/codec/ethermint/feemarket/v1/tx.d.ts +60 -0
  359. package/lib/codec/ethermint/feemarket/v1/tx.js +132 -0
  360. package/lib/codec/ethermint/types/v1/account.d.ts +27 -0
  361. package/lib/codec/ethermint/types/v1/account.js +83 -0
  362. package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +21 -0
  363. package/lib/codec/ethermint/types/v1/dynamic_fee.js +65 -0
  364. package/lib/codec/ethermint/types/v1/export.d.ts +4 -0
  365. package/lib/codec/ethermint/types/v1/export.js +11 -0
  366. package/lib/codec/ethermint/types/v1/indexer.d.ts +42 -0
  367. package/lib/codec/ethermint/types/v1/indexer.js +154 -0
  368. package/lib/codec/ethermint/types/v1/web3.d.ts +37 -0
  369. package/lib/codec/ethermint/types/v1/web3.js +135 -0
  370. package/lib/codec/ethermint-models.d.ts +4 -0
  371. package/lib/codec/ethermint-models.js +40 -0
  372. package/lib/codec/google/protobuf/any.d.ts +138 -0
  373. package/lib/codec/google/protobuf/any.js +120 -0
  374. package/lib/codec/google/protobuf/descriptor.d.ts +1446 -0
  375. package/lib/codec/google/protobuf/descriptor.js +4811 -0
  376. package/lib/codec/google/protobuf/duration.d.ts +93 -0
  377. package/lib/codec/google/protobuf/duration.js +81 -0
  378. package/lib/codec/google/protobuf/empty.d.ts +27 -0
  379. package/lib/codec/google/protobuf/empty.js +51 -0
  380. package/lib/codec/google/protobuf/timestamp.d.ts +122 -0
  381. package/lib/codec/google/protobuf/timestamp.js +81 -0
  382. package/lib/codec/google/protobuf/wrappers.d.ts +161 -0
  383. package/lib/codec/google/protobuf/wrappers.js +490 -0
  384. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +25 -0
  385. package/lib/codec/ibc/applications/fee/v1/ack.js +134 -0
  386. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +72 -0
  387. package/lib/codec/ibc/applications/fee/v1/fee.js +311 -0
  388. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +98 -0
  389. package/lib/codec/ibc/applications/fee/v1/genesis.js +433 -0
  390. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +26 -0
  391. package/lib/codec/ibc/applications/fee/v1/metadata.js +79 -0
  392. package/lib/codec/ibc/applications/fee/v1/query.d.ts +341 -0
  393. package/lib/codec/ibc/applications/fee/v1/query.js +1293 -0
  394. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +182 -0
  395. package/lib/codec/ibc/applications/fee/v1/tx.js +540 -0
  396. package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +3 -0
  397. package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +17 -0
  398. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +24 -0
  399. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.js +65 -0
  400. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +77 -0
  401. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +234 -0
  402. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +122 -0
  403. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +435 -0
  404. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +85 -0
  405. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +462 -0
  406. package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +3 -0
  407. package/lib/codec/ibc/applications/interchain_accounts/host/export.js +11 -0
  408. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +26 -0
  409. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.js +84 -0
  410. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +49 -0
  411. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.js +118 -0
  412. package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.d.ts +55 -0
  413. package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.js +132 -0
  414. package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +22 -0
  415. package/lib/codec/ibc/applications/interchain_accounts/v1/account.js +83 -0
  416. package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +3 -0
  417. package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +13 -0
  418. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +37 -0
  419. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.js +127 -0
  420. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +48 -0
  421. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.js +225 -0
  422. package/lib/codec/ibc/applications/transfer/v1/authz.d.ts +49 -0
  423. package/lib/codec/ibc/applications/transfer/v1/authz.js +188 -0
  424. package/lib/codec/ibc/applications/transfer/v1/export.d.ts +4 -0
  425. package/lib/codec/ibc/applications/transfer/v1/export.js +27 -0
  426. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +29 -0
  427. package/lib/codec/ibc/applications/transfer/v1/genesis.js +117 -0
  428. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +216 -0
  429. package/lib/codec/ibc/applications/transfer/v1/query.js +674 -0
  430. package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +55 -0
  431. package/lib/codec/ibc/applications/transfer/v1/transfer.js +141 -0
  432. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +113 -0
  433. package/lib/codec/ibc/applications/transfer/v1/tx.js +339 -0
  434. package/lib/codec/ibc/applications/transfer/v2/export.d.ts +1 -0
  435. package/lib/codec/ibc/applications/transfer/v2/export.js +5 -0
  436. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +33 -0
  437. package/lib/codec/ibc/applications/transfer/v2/packet.js +115 -0
  438. package/lib/codec/ibc/core/channel/v1/channel.d.ts +266 -0
  439. package/lib/codec/ibc/core/channel/v1/channel.js +1023 -0
  440. package/lib/codec/ibc/core/channel/v1/export.d.ts +5 -0
  441. package/lib/codec/ibc/core/channel/v1/export.js +103 -0
  442. package/lib/codec/ibc/core/channel/v1/genesis.d.ts +47 -0
  443. package/lib/codec/ibc/core/channel/v1/genesis.js +300 -0
  444. package/lib/codec/ibc/core/channel/v1/query.d.ts +724 -0
  445. package/lib/codec/ibc/core/channel/v1/query.js +2739 -0
  446. package/lib/codec/ibc/core/channel/v1/tx.d.ts +684 -0
  447. package/lib/codec/ibc/core/channel/v1/tx.js +3370 -0
  448. package/lib/codec/ibc/core/channel/v1/upgrade.d.ts +65 -0
  449. package/lib/codec/ibc/core/channel/v1/upgrade.js +242 -0
  450. package/lib/codec/ibc/core/client/v1/client.d.ts +168 -0
  451. package/lib/codec/ibc/core/client/v1/client.js +516 -0
  452. package/lib/codec/ibc/core/client/v1/export.d.ts +4 -0
  453. package/lib/codec/ibc/core/client/v1/export.js +48 -0
  454. package/lib/codec/ibc/core/client/v1/genesis.d.ts +70 -0
  455. package/lib/codec/ibc/core/client/v1/genesis.js +332 -0
  456. package/lib/codec/ibc/core/client/v1/query.d.ts +367 -0
  457. package/lib/codec/ibc/core/client/v1/query.js +1185 -0
  458. package/lib/codec/ibc/core/client/v1/tx.d.ts +281 -0
  459. package/lib/codec/ibc/core/client/v1/tx.js +946 -0
  460. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +74 -0
  461. package/lib/codec/ibc/core/commitment/v1/commitment.js +262 -0
  462. package/lib/codec/ibc/core/commitment/v1/export.d.ts +1 -0
  463. package/lib/codec/ibc/core/commitment/v1/export.js +8 -0
  464. package/lib/codec/ibc/core/connection/v1/connection.d.ts +177 -0
  465. package/lib/codec/ibc/core/connection/v1/connection.js +621 -0
  466. package/lib/codec/ibc/core/connection/v1/export.d.ts +3 -0
  467. package/lib/codec/ibc/core/connection/v1/export.js +38 -0
  468. package/lib/codec/ibc/core/connection/v1/genesis.d.ts +25 -0
  469. package/lib/codec/ibc/core/connection/v1/genesis.js +126 -0
  470. package/lib/codec/ibc/core/connection/v1/query.d.ts +260 -0
  471. package/lib/codec/ibc/core/connection/v1/query.js +892 -0
  472. package/lib/codec/ibc/core/connection/v1/tx.d.ts +234 -0
  473. package/lib/codec/ibc/core/connection/v1/tx.js +975 -0
  474. package/lib/codec/ibc/core/types/v1/genesis.d.ts +28 -0
  475. package/lib/codec/ibc/core/types/v1/genesis.js +103 -0
  476. package/lib/codec/ibc/lightclients/localhost/v2/export.d.ts +1 -0
  477. package/lib/codec/ibc/lightclients/localhost/v2/export.js +5 -0
  478. package/lib/codec/ibc/lightclients/localhost/v2/localhost.d.ts +22 -0
  479. package/lib/codec/ibc/lightclients/localhost/v2/localhost.js +69 -0
  480. package/lib/codec/ibc/lightclients/solomachine/v2/export.d.ts +1 -0
  481. package/lib/codec/ibc/lightclients/solomachine/v2/export.js +23 -0
  482. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +314 -0
  483. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.js +1359 -0
  484. package/lib/codec/ibc/lightclients/solomachine/v3/export.d.ts +1 -0
  485. package/lib/codec/ibc/lightclients/solomachine/v3/export.js +12 -0
  486. package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.d.ts +154 -0
  487. package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.js +719 -0
  488. package/lib/codec/ibc/lightclients/tendermint/v1/export.d.ts +1 -0
  489. package/lib/codec/ibc/lightclients/tendermint/v1/export.js +9 -0
  490. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +152 -0
  491. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +622 -0
  492. package/lib/codec/ibc/lightclients/wasm/v1/genesis.d.ts +34 -0
  493. package/lib/codec/ibc/lightclients/wasm/v1/genesis.js +161 -0
  494. package/lib/codec/ibc/lightclients/wasm/v1/query.d.ts +81 -0
  495. package/lib/codec/ibc/lightclients/wasm/v1/query.js +295 -0
  496. package/lib/codec/ibc/lightclients/wasm/v1/tx.d.ts +114 -0
  497. package/lib/codec/ibc/lightclients/wasm/v1/tx.js +419 -0
  498. package/lib/codec/ibc/lightclients/wasm/v1/wasm.d.ts +74 -0
  499. package/lib/codec/ibc/lightclients/wasm/v1/wasm.js +288 -0
  500. package/lib/codec/ibc-models.d.ts +13 -0
  501. package/lib/codec/ibc-models.js +49 -0
  502. package/lib/codec/index.d.ts +512 -0
  503. package/lib/codec/index.js +26760 -0
  504. package/lib/codec/mememax/orbix/adl/genesis.d.ts +19 -0
  505. package/lib/codec/mememax/orbix/adl/genesis.js +51 -0
  506. package/lib/codec/mememax/orbix/adl/query.d.ts +15 -0
  507. package/lib/codec/mememax/orbix/adl/query.js +12 -0
  508. package/lib/codec/mememax/orbix/adl/tx.d.ts +15 -0
  509. package/lib/codec/mememax/orbix/adl/tx.js +12 -0
  510. package/lib/codec/mememax/orbix/admin/export.d.ts +3 -0
  511. package/lib/codec/mememax/orbix/admin/export.js +22 -0
  512. package/lib/codec/mememax/orbix/admin/genesis.d.ts +24 -0
  513. package/lib/codec/mememax/orbix/admin/genesis.js +94 -0
  514. package/lib/codec/mememax/orbix/admin/params.d.ts +32 -0
  515. package/lib/codec/mememax/orbix/admin/params.js +114 -0
  516. package/lib/codec/mememax/orbix/admin/query.d.ts +97 -0
  517. package/lib/codec/mememax/orbix/admin/query.js +300 -0
  518. package/lib/codec/mememax/orbix/admin/tx.d.ts +134 -0
  519. package/lib/codec/mememax/orbix/admin/tx.js +419 -0
  520. package/lib/codec/mememax/orbix/bank/event.d.ts +70 -0
  521. package/lib/codec/mememax/orbix/bank/event.js +365 -0
  522. package/lib/codec/mememax/orbix/bank/export.d.ts +3 -0
  523. package/lib/codec/mememax/orbix/bank/export.js +21 -0
  524. package/lib/codec/mememax/orbix/bank/genesis.d.ts +20 -0
  525. package/lib/codec/mememax/orbix/bank/genesis.js +71 -0
  526. package/lib/codec/mememax/orbix/bank/query.d.ts +102 -0
  527. package/lib/codec/mememax/orbix/bank/query.js +492 -0
  528. package/lib/codec/mememax/orbix/bank/tx.d.ts +70 -0
  529. package/lib/codec/mememax/orbix/bank/tx.js +234 -0
  530. package/lib/codec/mememax/orbix/book/book.d.ts +61 -0
  531. package/lib/codec/mememax/orbix/book/book.js +350 -0
  532. package/lib/codec/mememax/orbix/book/event.d.ts +67 -0
  533. package/lib/codec/mememax/orbix/book/event.js +294 -0
  534. package/lib/codec/mememax/orbix/book/export.d.ts +4 -0
  535. package/lib/codec/mememax/orbix/book/export.js +26 -0
  536. package/lib/codec/mememax/orbix/book/genesis.d.ts +26 -0
  537. package/lib/codec/mememax/orbix/book/genesis.js +87 -0
  538. package/lib/codec/mememax/orbix/book/legacy.d.ts +23 -0
  539. package/lib/codec/mememax/orbix/book/legacy.js +125 -0
  540. package/lib/codec/mememax/orbix/book/query.d.ts +160 -0
  541. package/lib/codec/mememax/orbix/book/query.js +643 -0
  542. package/lib/codec/mememax/orbix/book/tx.d.ts +15 -0
  543. package/lib/codec/mememax/orbix/book/tx.js +12 -0
  544. package/lib/codec/mememax/orbix/bridge/bridge.d.ts +132 -0
  545. package/lib/codec/mememax/orbix/bridge/bridge.js +801 -0
  546. package/lib/codec/mememax/orbix/bridge/event.d.ts +316 -0
  547. package/lib/codec/mememax/orbix/bridge/event.js +1806 -0
  548. package/lib/codec/mememax/orbix/bridge/export.d.ts +6 -0
  549. package/lib/codec/mememax/orbix/bridge/export.js +122 -0
  550. package/lib/codec/mememax/orbix/bridge/genesis.d.ts +29 -0
  551. package/lib/codec/mememax/orbix/bridge/genesis.js +249 -0
  552. package/lib/codec/mememax/orbix/bridge/params.d.ts +71 -0
  553. package/lib/codec/mememax/orbix/bridge/params.js +376 -0
  554. package/lib/codec/mememax/orbix/bridge/pending_action.d.ts +102 -0
  555. package/lib/codec/mememax/orbix/bridge/pending_action.js +718 -0
  556. package/lib/codec/mememax/orbix/bridge/query.d.ts +365 -0
  557. package/lib/codec/mememax/orbix/bridge/query.js +1589 -0
  558. package/lib/codec/mememax/orbix/bridge/tx.d.ts +636 -0
  559. package/lib/codec/mememax/orbix/bridge/tx.js +3199 -0
  560. package/lib/codec/mememax/orbix/broker/amm.d.ts +49 -0
  561. package/lib/codec/mememax/orbix/broker/amm.js +278 -0
  562. package/lib/codec/mememax/orbix/broker/candlestick.d.ts +28 -0
  563. package/lib/codec/mememax/orbix/broker/candlestick.js +219 -0
  564. package/lib/codec/mememax/orbix/broker/event.d.ts +55 -0
  565. package/lib/codec/mememax/orbix/broker/event.js +474 -0
  566. package/lib/codec/mememax/orbix/broker/export.d.ts +7 -0
  567. package/lib/codec/mememax/orbix/broker/export.js +27 -0
  568. package/lib/codec/mememax/orbix/broker/genesis.d.ts +21 -0
  569. package/lib/codec/mememax/orbix/broker/genesis.js +70 -0
  570. package/lib/codec/mememax/orbix/broker/incoming_liquidations.d.ts +19 -0
  571. package/lib/codec/mememax/orbix/broker/incoming_liquidations.js +107 -0
  572. package/lib/codec/mememax/orbix/broker/pagination.d.ts +20 -0
  573. package/lib/codec/mememax/orbix/broker/pagination.js +79 -0
  574. package/lib/codec/mememax/orbix/broker/query.d.ts +116 -0
  575. package/lib/codec/mememax/orbix/broker/query.js +592 -0
  576. package/lib/codec/mememax/orbix/broker/tx.d.ts +59 -0
  577. package/lib/codec/mememax/orbix/broker/tx.js +198 -0
  578. package/lib/codec/mememax/orbix/coin/bridge.d.ts +25 -0
  579. package/lib/codec/mememax/orbix/coin/bridge.js +156 -0
  580. package/lib/codec/mememax/orbix/coin/event.d.ts +155 -0
  581. package/lib/codec/mememax/orbix/coin/event.js +787 -0
  582. package/lib/codec/mememax/orbix/coin/export.d.ts +9 -0
  583. package/lib/codec/mememax/orbix/coin/export.js +109 -0
  584. package/lib/codec/mememax/orbix/coin/genesis.d.ts +44 -0
  585. package/lib/codec/mememax/orbix/coin/genesis.js +239 -0
  586. package/lib/codec/mememax/orbix/coin/group.d.ts +56 -0
  587. package/lib/codec/mememax/orbix/coin/group.js +237 -0
  588. package/lib/codec/mememax/orbix/coin/params.d.ts +35 -0
  589. package/lib/codec/mememax/orbix/coin/params.js +148 -0
  590. package/lib/codec/mememax/orbix/coin/proposal.d.ts +22 -0
  591. package/lib/codec/mememax/orbix/coin/proposal.js +94 -0
  592. package/lib/codec/mememax/orbix/coin/query.d.ts +313 -0
  593. package/lib/codec/mememax/orbix/coin/query.js +1414 -0
  594. package/lib/codec/mememax/orbix/coin/token.d.ts +112 -0
  595. package/lib/codec/mememax/orbix/coin/token.js +714 -0
  596. package/lib/codec/mememax/orbix/coin/tx.d.ts +650 -0
  597. package/lib/codec/mememax/orbix/coin/tx.js +3318 -0
  598. package/lib/codec/mememax/orbix/evmbank/export.d.ts +2 -0
  599. package/lib/codec/mememax/orbix/evmbank/export.js +8 -0
  600. package/lib/codec/mememax/orbix/evmbank/genesis.d.ts +34 -0
  601. package/lib/codec/mememax/orbix/evmbank/genesis.js +173 -0
  602. package/lib/codec/mememax/orbix/evmbank/query.d.ts +45 -0
  603. package/lib/codec/mememax/orbix/evmbank/query.js +126 -0
  604. package/lib/codec/mememax/orbix/evmmerge/address.d.ts +20 -0
  605. package/lib/codec/mememax/orbix/evmmerge/address.js +79 -0
  606. package/lib/codec/mememax/orbix/evmmerge/event.d.ts +21 -0
  607. package/lib/codec/mememax/orbix/evmmerge/event.js +91 -0
  608. package/lib/codec/mememax/orbix/evmmerge/export.d.ts +6 -0
  609. package/lib/codec/mememax/orbix/evmmerge/export.js +20 -0
  610. package/lib/codec/mememax/orbix/evmmerge/genesis.d.ts +51 -0
  611. package/lib/codec/mememax/orbix/evmmerge/genesis.js +236 -0
  612. package/lib/codec/mememax/orbix/evmmerge/offchain.d.ts +26 -0
  613. package/lib/codec/mememax/orbix/evmmerge/offchain.js +121 -0
  614. package/lib/codec/mememax/orbix/evmmerge/query.d.ts +94 -0
  615. package/lib/codec/mememax/orbix/evmmerge/query.js +270 -0
  616. package/lib/codec/mememax/orbix/evmmerge/tx.d.ts +56 -0
  617. package/lib/codec/mememax/orbix/evmmerge/tx.js +142 -0
  618. package/lib/codec/mememax/orbix/fee/event.d.ts +21 -0
  619. package/lib/codec/mememax/orbix/fee/event.js +91 -0
  620. package/lib/codec/mememax/orbix/fee/export.d.ts +4 -0
  621. package/lib/codec/mememax/orbix/fee/export.js +27 -0
  622. package/lib/codec/mememax/orbix/fee/fee.d.ts +45 -0
  623. package/lib/codec/mememax/orbix/fee/fee.js +203 -0
  624. package/lib/codec/mememax/orbix/fee/genesis.d.ts +24 -0
  625. package/lib/codec/mememax/orbix/fee/genesis.js +89 -0
  626. package/lib/codec/mememax/orbix/fee/query.d.ts +125 -0
  627. package/lib/codec/mememax/orbix/fee/query.js +492 -0
  628. package/lib/codec/mememax/orbix/fee/tx.d.ts +119 -0
  629. package/lib/codec/mememax/orbix/fee/tx.js +454 -0
  630. package/lib/codec/mememax/orbix/insurance/event.d.ts +25 -0
  631. package/lib/codec/mememax/orbix/insurance/event.js +51 -0
  632. package/lib/codec/mememax/orbix/insurance/export.d.ts +5 -0
  633. package/lib/codec/mememax/orbix/insurance/export.js +26 -0
  634. package/lib/codec/mememax/orbix/insurance/fund.d.ts +51 -0
  635. package/lib/codec/mememax/orbix/insurance/fund.js +271 -0
  636. package/lib/codec/mememax/orbix/insurance/genesis.d.ts +27 -0
  637. package/lib/codec/mememax/orbix/insurance/genesis.js +90 -0
  638. package/lib/codec/mememax/orbix/insurance/params.d.ts +41 -0
  639. package/lib/codec/mememax/orbix/insurance/params.js +195 -0
  640. package/lib/codec/mememax/orbix/insurance/query.d.ts +121 -0
  641. package/lib/codec/mememax/orbix/insurance/query.js +453 -0
  642. package/lib/codec/mememax/orbix/insurance/tx.d.ts +76 -0
  643. package/lib/codec/mememax/orbix/insurance/tx.js +261 -0
  644. package/lib/codec/mememax/orbix/leverage/event.d.ts +22 -0
  645. package/lib/codec/mememax/orbix/leverage/event.js +103 -0
  646. package/lib/codec/mememax/orbix/leverage/export.d.ts +4 -0
  647. package/lib/codec/mememax/orbix/leverage/export.js +16 -0
  648. package/lib/codec/mememax/orbix/leverage/genesis.d.ts +25 -0
  649. package/lib/codec/mememax/orbix/leverage/genesis.js +72 -0
  650. package/lib/codec/mememax/orbix/leverage/leverage.d.ts +32 -0
  651. package/lib/codec/mememax/orbix/leverage/leverage.js +144 -0
  652. package/lib/codec/mememax/orbix/leverage/query.d.ts +77 -0
  653. package/lib/codec/mememax/orbix/leverage/query.js +257 -0
  654. package/lib/codec/mememax/orbix/leverage/tx.d.ts +48 -0
  655. package/lib/codec/mememax/orbix/leverage/tx.js +141 -0
  656. package/lib/codec/mememax/orbix/liquidation/event.d.ts +24 -0
  657. package/lib/codec/mememax/orbix/liquidation/event.js +159 -0
  658. package/lib/codec/mememax/orbix/liquidation/export.d.ts +5 -0
  659. package/lib/codec/mememax/orbix/liquidation/export.js +15 -0
  660. package/lib/codec/mememax/orbix/liquidation/genesis.d.ts +39 -0
  661. package/lib/codec/mememax/orbix/liquidation/genesis.js +153 -0
  662. package/lib/codec/mememax/orbix/liquidation/outstanding_position.d.ts +35 -0
  663. package/lib/codec/mememax/orbix/liquidation/outstanding_position.js +216 -0
  664. package/lib/codec/mememax/orbix/liquidation/query.d.ts +57 -0
  665. package/lib/codec/mememax/orbix/liquidation/query.js +256 -0
  666. package/lib/codec/mememax/orbix/liquidation/quote_changes.d.ts +23 -0
  667. package/lib/codec/mememax/orbix/liquidation/quote_changes.js +105 -0
  668. package/lib/codec/mememax/orbix/liquidation/tx.d.ts +15 -0
  669. package/lib/codec/mememax/orbix/liquidation/tx.js +12 -0
  670. package/lib/codec/mememax/orbix/market/event.d.ts +21 -0
  671. package/lib/codec/mememax/orbix/market/event.js +82 -0
  672. package/lib/codec/mememax/orbix/market/export.d.ts +7 -0
  673. package/lib/codec/mememax/orbix/market/export.js +71 -0
  674. package/lib/codec/mememax/orbix/market/fee.d.ts +134 -0
  675. package/lib/codec/mememax/orbix/market/fee.js +350 -0
  676. package/lib/codec/mememax/orbix/market/genesis.d.ts +33 -0
  677. package/lib/codec/mememax/orbix/market/genesis.js +164 -0
  678. package/lib/codec/mememax/orbix/market/market.d.ts +116 -0
  679. package/lib/codec/mememax/orbix/market/market.js +930 -0
  680. package/lib/codec/mememax/orbix/market/params.d.ts +81 -0
  681. package/lib/codec/mememax/orbix/market/params.js +754 -0
  682. package/lib/codec/mememax/orbix/market/proposal.d.ts +49 -0
  683. package/lib/codec/mememax/orbix/market/proposal.js +249 -0
  684. package/lib/codec/mememax/orbix/market/query.d.ts +267 -0
  685. package/lib/codec/mememax/orbix/market/query.js +1095 -0
  686. package/lib/codec/mememax/orbix/market/tx.d.ts +394 -0
  687. package/lib/codec/mememax/orbix/market/tx.js +1823 -0
  688. package/lib/codec/mememax/orbix/marketstats/export.d.ts +2 -0
  689. package/lib/codec/mememax/orbix/marketstats/export.js +8 -0
  690. package/lib/codec/mememax/orbix/marketstats/genesis.d.ts +19 -0
  691. package/lib/codec/mememax/orbix/marketstats/genesis.js +51 -0
  692. package/lib/codec/mememax/orbix/marketstats/marketstats.d.ts +32 -0
  693. package/lib/codec/mememax/orbix/marketstats/marketstats.js +263 -0
  694. package/lib/codec/mememax/orbix/marketstats/query.d.ts +45 -0
  695. package/lib/codec/mememax/orbix/marketstats/query.js +122 -0
  696. package/lib/codec/mememax/orbix/marketstats/tx.d.ts +15 -0
  697. package/lib/codec/mememax/orbix/marketstats/tx.js +12 -0
  698. package/lib/codec/mememax/orbix/misc/block.d.ts +22 -0
  699. package/lib/codec/mememax/orbix/misc/block.js +105 -0
  700. package/lib/codec/mememax/orbix/misc/export.d.ts +6 -0
  701. package/lib/codec/mememax/orbix/misc/export.js +29 -0
  702. package/lib/codec/mememax/orbix/misc/message.d.ts +25 -0
  703. package/lib/codec/mememax/orbix/misc/message.js +166 -0
  704. package/lib/codec/mememax/orbix/misc/message_type.d.ts +19 -0
  705. package/lib/codec/mememax/orbix/misc/message_type.js +65 -0
  706. package/lib/codec/mememax/orbix/misc/query.d.ts +209 -0
  707. package/lib/codec/mememax/orbix/misc/query.js +957 -0
  708. package/lib/codec/mememax/orbix/misc/trade.d.ts +29 -0
  709. package/lib/codec/mememax/orbix/misc/trade.js +228 -0
  710. package/lib/codec/mememax/orbix/misc/transaction.d.ts +47 -0
  711. package/lib/codec/mememax/orbix/misc/transaction.js +372 -0
  712. package/lib/codec/mememax/orbix/oracle/event.d.ts +39 -0
  713. package/lib/codec/mememax/orbix/oracle/event.js +229 -0
  714. package/lib/codec/mememax/orbix/oracle/export.d.ts +7 -0
  715. package/lib/codec/mememax/orbix/oracle/export.js +70 -0
  716. package/lib/codec/mememax/orbix/oracle/genesis.d.ts +31 -0
  717. package/lib/codec/mememax/orbix/oracle/genesis.js +172 -0
  718. package/lib/codec/mememax/orbix/oracle/historical.d.ts +47 -0
  719. package/lib/codec/mememax/orbix/oracle/historical.js +227 -0
  720. package/lib/codec/mememax/orbix/oracle/oracle.d.ts +42 -0
  721. package/lib/codec/mememax/orbix/oracle/oracle.js +284 -0
  722. package/lib/codec/mememax/orbix/oracle/params.d.ts +49 -0
  723. package/lib/codec/mememax/orbix/oracle/params.js +395 -0
  724. package/lib/codec/mememax/orbix/oracle/query.d.ts +363 -0
  725. package/lib/codec/mememax/orbix/oracle/query.js +1623 -0
  726. package/lib/codec/mememax/orbix/oracle/slashing.d.ts +35 -0
  727. package/lib/codec/mememax/orbix/oracle/slashing.js +189 -0
  728. package/lib/codec/mememax/orbix/oracle/tx.d.ts +333 -0
  729. package/lib/codec/mememax/orbix/oracle/tx.js +1627 -0
  730. package/lib/codec/mememax/orbix/order/event.d.ts +24 -0
  731. package/lib/codec/mememax/orbix/order/event.js +141 -0
  732. package/lib/codec/mememax/orbix/order/export.d.ts +6 -0
  733. package/lib/codec/mememax/orbix/order/export.js +46 -0
  734. package/lib/codec/mememax/orbix/order/genesis.d.ts +67 -0
  735. package/lib/codec/mememax/orbix/order/genesis.js +346 -0
  736. package/lib/codec/mememax/orbix/order/order.d.ts +98 -0
  737. package/lib/codec/mememax/orbix/order/order.js +812 -0
  738. package/lib/codec/mememax/orbix/order/params.d.ts +32 -0
  739. package/lib/codec/mememax/orbix/order/params.js +154 -0
  740. package/lib/codec/mememax/orbix/order/query.d.ts +188 -0
  741. package/lib/codec/mememax/orbix/order/query.js +748 -0
  742. package/lib/codec/mememax/orbix/order/tx.d.ts +228 -0
  743. package/lib/codec/mememax/orbix/order/tx.js +1010 -0
  744. package/lib/codec/mememax/orbix/perpspool/event.d.ts +182 -0
  745. package/lib/codec/mememax/orbix/perpspool/event.js +1158 -0
  746. package/lib/codec/mememax/orbix/perpspool/export.d.ts +9 -0
  747. package/lib/codec/mememax/orbix/perpspool/export.js +116 -0
  748. package/lib/codec/mememax/orbix/perpspool/genesis.d.ts +83 -0
  749. package/lib/codec/mememax/orbix/perpspool/genesis.js +506 -0
  750. package/lib/codec/mememax/orbix/perpspool/market.d.ts +139 -0
  751. package/lib/codec/mememax/orbix/perpspool/market.js +582 -0
  752. package/lib/codec/mememax/orbix/perpspool/params.d.ts +86 -0
  753. package/lib/codec/mememax/orbix/perpspool/params.js +765 -0
  754. package/lib/codec/mememax/orbix/perpspool/pool.d.ts +132 -0
  755. package/lib/codec/mememax/orbix/perpspool/pool.js +694 -0
  756. package/lib/codec/mememax/orbix/perpspool/query.d.ts +465 -0
  757. package/lib/codec/mememax/orbix/perpspool/query.js +2106 -0
  758. package/lib/codec/mememax/orbix/perpspool/quote.d.ts +52 -0
  759. package/lib/codec/mememax/orbix/perpspool/quote.js +238 -0
  760. package/lib/codec/mememax/orbix/perpspool/tx.d.ts +447 -0
  761. package/lib/codec/mememax/orbix/perpspool/tx.js +2030 -0
  762. package/lib/codec/mememax/orbix/perpspool/user_vault.d.ts +82 -0
  763. package/lib/codec/mememax/orbix/perpspool/user_vault.js +488 -0
  764. package/lib/codec/mememax/orbix/position/event.d.ts +38 -0
  765. package/lib/codec/mememax/orbix/position/event.js +221 -0
  766. package/lib/codec/mememax/orbix/position/export.d.ts +4 -0
  767. package/lib/codec/mememax/orbix/position/export.js +26 -0
  768. package/lib/codec/mememax/orbix/position/genesis.d.ts +25 -0
  769. package/lib/codec/mememax/orbix/position/genesis.js +72 -0
  770. package/lib/codec/mememax/orbix/position/position.d.ts +89 -0
  771. package/lib/codec/mememax/orbix/position/position.js +655 -0
  772. package/lib/codec/mememax/orbix/position/query.d.ts +148 -0
  773. package/lib/codec/mememax/orbix/position/query.js +625 -0
  774. package/lib/codec/mememax/orbix/position/tx.d.ts +47 -0
  775. package/lib/codec/mememax/orbix/position/tx.js +141 -0
  776. package/lib/codec/mememax/orbix/pricing/event.d.ts +91 -0
  777. package/lib/codec/mememax/orbix/pricing/event.js +430 -0
  778. package/lib/codec/mememax/orbix/pricing/export.d.ts +6 -0
  779. package/lib/codec/mememax/orbix/pricing/export.js +59 -0
  780. package/lib/codec/mememax/orbix/pricing/genesis.d.ts +28 -0
  781. package/lib/codec/mememax/orbix/pricing/genesis.js +105 -0
  782. package/lib/codec/mememax/orbix/pricing/legacy.d.ts +23 -0
  783. package/lib/codec/mememax/orbix/pricing/legacy.js +99 -0
  784. package/lib/codec/mememax/orbix/pricing/params.d.ts +41 -0
  785. package/lib/codec/mememax/orbix/pricing/params.js +293 -0
  786. package/lib/codec/mememax/orbix/pricing/pricing.d.ts +100 -0
  787. package/lib/codec/mememax/orbix/pricing/pricing.js +669 -0
  788. package/lib/codec/mememax/orbix/pricing/query.d.ts +252 -0
  789. package/lib/codec/mememax/orbix/pricing/query.js +1039 -0
  790. package/lib/codec/mememax/orbix/pricing/tx.d.ts +239 -0
  791. package/lib/codec/mememax/orbix/pricing/tx.js +916 -0
  792. package/lib/codec/mememax/orbix/sequence/export.d.ts +3 -0
  793. package/lib/codec/mememax/orbix/sequence/export.js +13 -0
  794. package/lib/codec/mememax/orbix/sequence/genesis.d.ts +32 -0
  795. package/lib/codec/mememax/orbix/sequence/genesis.js +136 -0
  796. package/lib/codec/mememax/orbix/sequence/query.d.ts +73 -0
  797. package/lib/codec/mememax/orbix/sequence/query.js +262 -0
  798. package/lib/codec/mememax/orbix/sequence/tx.d.ts +46 -0
  799. package/lib/codec/mememax/orbix/sequence/tx.js +155 -0
  800. package/lib/codec/mememax/orbix/subaccount/export.d.ts +5 -0
  801. package/lib/codec/mememax/orbix/subaccount/export.js +41 -0
  802. package/lib/codec/mememax/orbix/subaccount/genesis.d.ts +30 -0
  803. package/lib/codec/mememax/orbix/subaccount/genesis.js +128 -0
  804. package/lib/codec/mememax/orbix/subaccount/legacy.d.ts +20 -0
  805. package/lib/codec/mememax/orbix/subaccount/legacy.js +79 -0
  806. package/lib/codec/mememax/orbix/subaccount/params.d.ts +31 -0
  807. package/lib/codec/mememax/orbix/subaccount/params.js +134 -0
  808. package/lib/codec/mememax/orbix/subaccount/query.d.ts +275 -0
  809. package/lib/codec/mememax/orbix/subaccount/query.js +1197 -0
  810. package/lib/codec/mememax/orbix/subaccount/subaccount.d.ts +49 -0
  811. package/lib/codec/mememax/orbix/subaccount/subaccount.js +296 -0
  812. package/lib/codec/mememax/orbix/subaccount/tx.d.ts +145 -0
  813. package/lib/codec/mememax/orbix/subaccount/tx.js +519 -0
  814. package/lib/codec/oraclesvc/query.d.ts +23 -0
  815. package/lib/codec/oraclesvc/query.js +25 -0
  816. package/lib/codec/tendermint/abci/types.d.ts +867 -0
  817. package/lib/codec/tendermint/abci/types.js +4883 -0
  818. package/lib/codec/tendermint/crypto/keys.d.ts +21 -0
  819. package/lib/codec/tendermint/crypto/keys.js +121 -0
  820. package/lib/codec/tendermint/crypto/proof.d.ts +79 -0
  821. package/lib/codec/tendermint/crypto/proof.js +415 -0
  822. package/lib/codec/tendermint/libs/bits/types.d.ts +20 -0
  823. package/lib/codec/tendermint/libs/bits/types.js +93 -0
  824. package/lib/codec/tendermint/oracle/types.d.ts +96 -0
  825. package/lib/codec/tendermint/oracle/types.js +666 -0
  826. package/lib/codec/tendermint/p2p/types.d.ts +64 -0
  827. package/lib/codec/tendermint/p2p/types.js +416 -0
  828. package/lib/codec/tendermint/types/block.d.ts +24 -0
  829. package/lib/codec/tendermint/types/block.js +113 -0
  830. package/lib/codec/tendermint/types/evidence.d.ts +65 -0
  831. package/lib/codec/tendermint/types/evidence.js +402 -0
  832. package/lib/codec/tendermint/types/params.d.ts +148 -0
  833. package/lib/codec/tendermint/types/params.js +499 -0
  834. package/lib/codec/tendermint/types/types.d.ts +289 -0
  835. package/lib/codec/tendermint/types/types.js +1650 -0
  836. package/lib/codec/tendermint/types/validator.d.ts +62 -0
  837. package/lib/codec/tendermint/types/validator.js +353 -0
  838. package/lib/codec/tendermint/version/types.d.ts +42 -0
  839. package/lib/codec/tendermint/version/types.js +143 -0
  840. package/lib/constant/address.d.ts +3 -0
  841. package/lib/constant/address.js +5 -0
  842. package/lib/constant/eip6963Provider.d.ts +66 -0
  843. package/lib/constant/eip6963Provider.js +31 -0
  844. package/lib/constant/eip712.d.ts +46 -0
  845. package/lib/constant/eip712.js +106 -0
  846. package/lib/constant/generic.d.ts +24 -0
  847. package/lib/constant/generic.js +24 -0
  848. package/lib/constant/grant.d.ts +1 -0
  849. package/lib/constant/grant.js +4 -0
  850. package/lib/constant/ibc.d.ts +190 -0
  851. package/lib/constant/ibc.js +2145 -0
  852. package/lib/constant/index.d.ts +10 -0
  853. package/lib/constant/index.js +26 -0
  854. package/lib/constant/modules.d.ts +1 -0
  855. package/lib/constant/modules.js +2 -0
  856. package/lib/constant/network.d.ts +77 -0
  857. package/lib/constant/network.js +429 -0
  858. package/lib/constant/node.d.ts +5 -0
  859. package/lib/constant/node.js +80 -0
  860. package/lib/constant/token.d.ts +13 -0
  861. package/lib/constant/token.js +375 -0
  862. package/lib/constant/walletProvider.d.ts +10 -0
  863. package/lib/constant/walletProvider.js +15 -0
  864. package/lib/constant/web3Config.d.ts +23 -0
  865. package/lib/constant/web3Config.js +46 -0
  866. package/lib/eth/abis/axelarBridge.json +1150 -0
  867. package/lib/eth/abis/balanceReader.json +26 -0
  868. package/lib/eth/abis/bridgeEntrance.json +105 -0
  869. package/lib/eth/abis/erc20.json +222 -0
  870. package/lib/eth/abis/index.d.ts +9 -0
  871. package/lib/eth/abis/index.js +22 -0
  872. package/lib/eth/abis/keyStorage.json +44 -0
  873. package/lib/eth/abis/lockProxy.json +574 -0
  874. package/lib/eth/abis/nativeDepositer.json +167 -0
  875. package/lib/eth/abis/vault.json +119 -0
  876. package/lib/eth/index.d.ts +1 -0
  877. package/lib/eth/index.js +37 -0
  878. package/lib/hydrogen/feeQuote.d.ts +23 -0
  879. package/lib/hydrogen/feeQuote.js +2 -0
  880. package/lib/hydrogen/index.d.ts +3 -0
  881. package/lib/hydrogen/index.js +19 -0
  882. package/lib/hydrogen/relays.d.ts +34 -0
  883. package/lib/hydrogen/relays.js +2 -0
  884. package/lib/hydrogen/stats.d.ts +26 -0
  885. package/lib/hydrogen/stats.js +2 -0
  886. package/lib/hydrogen/transfer.d.ts +159 -0
  887. package/lib/hydrogen/transfer.js +10 -0
  888. package/lib/index.d.ts +12 -0
  889. package/lib/index.js +69 -0
  890. package/lib/insights/alliances.d.ts +39 -0
  891. package/lib/insights/alliances.js +2 -0
  892. package/lib/insights/balance.d.ts +74 -0
  893. package/lib/insights/balance.js +2 -0
  894. package/lib/insights/block.d.ts +25 -0
  895. package/lib/insights/block.js +2 -0
  896. package/lib/insights/chain.d.ts +40 -0
  897. package/lib/insights/chain.js +2 -0
  898. package/lib/insights/common.d.ts +101 -0
  899. package/lib/insights/common.js +83 -0
  900. package/lib/insights/competition.d.ts +196 -0
  901. package/lib/insights/competition.js +2 -0
  902. package/lib/insights/crosschain.d.ts +10 -0
  903. package/lib/insights/crosschain.js +2 -0
  904. package/lib/insights/delegation.d.ts +26 -0
  905. package/lib/insights/delegation.js +2 -0
  906. package/lib/insights/funding.d.ts +41 -0
  907. package/lib/insights/funding.js +2 -0
  908. package/lib/insights/index.d.ts +16 -0
  909. package/lib/insights/index.js +32 -0
  910. package/lib/insights/inflation.d.ts +6 -0
  911. package/lib/insights/inflation.js +2 -0
  912. package/lib/insights/market.d.ts +25 -0
  913. package/lib/insights/market.js +8 -0
  914. package/lib/insights/node.d.ts +32 -0
  915. package/lib/insights/node.js +2 -0
  916. package/lib/insights/oracles.d.ts +17 -0
  917. package/lib/insights/oracles.js +2 -0
  918. package/lib/insights/pool.d.ts +201 -0
  919. package/lib/insights/pool.js +2 -0
  920. package/lib/insights/position.d.ts +104 -0
  921. package/lib/insights/position.js +10 -0
  922. package/lib/insights/proposal.d.ts +21 -0
  923. package/lib/insights/proposal.js +2 -0
  924. package/lib/insights/transaction.d.ts +30 -0
  925. package/lib/insights/transaction.js +2 -0
  926. package/lib/insights/user.d.ts +148 -0
  927. package/lib/insights/user.js +2 -0
  928. package/lib/modules/admin.d.ts +298 -0
  929. package/lib/modules/admin.js +368 -0
  930. package/lib/modules/alliance.d.ts +43 -0
  931. package/lib/modules/alliance.js +79 -0
  932. package/lib/modules/bank.d.ts +14 -0
  933. package/lib/modules/bank.js +24 -0
  934. package/lib/modules/base.d.ts +12 -0
  935. package/lib/modules/base.js +18 -0
  936. package/lib/modules/bridge.d.ts +38 -0
  937. package/lib/modules/bridge.js +84 -0
  938. package/lib/modules/broker.d.ts +16 -0
  939. package/lib/modules/broker.js +37 -0
  940. package/lib/modules/coin.d.ts +54 -0
  941. package/lib/modules/coin.js +108 -0
  942. package/lib/modules/cosmwasm.d.ts +20 -0
  943. package/lib/modules/cosmwasm.js +69 -0
  944. package/lib/modules/evm.d.ts +45 -0
  945. package/lib/modules/evm.js +73 -0
  946. package/lib/modules/evmmerge.d.ts +12 -0
  947. package/lib/modules/evmmerge.js +24 -0
  948. package/lib/modules/fee.d.ts +5 -0
  949. package/lib/modules/fee.js +16 -0
  950. package/lib/modules/gov.d.ts +21 -0
  951. package/lib/modules/gov.js +55 -0
  952. package/lib/modules/grant.d.ts +29 -0
  953. package/lib/modules/grant.js +137 -0
  954. package/lib/modules/ibc.d.ts +46 -0
  955. package/lib/modules/ibc.js +244 -0
  956. package/lib/modules/index.d.ts +19 -0
  957. package/lib/modules/index.js +35 -0
  958. package/lib/modules/leverage.d.ts +14 -0
  959. package/lib/modules/leverage.js +41 -0
  960. package/lib/modules/market.d.ts +104 -0
  961. package/lib/modules/market.js +153 -0
  962. package/lib/modules/oracle.d.ts +5 -0
  963. package/lib/modules/oracle.js +10 -0
  964. package/lib/modules/order.d.ts +78 -0
  965. package/lib/modules/order.js +156 -0
  966. package/lib/modules/perpspool.d.ts +72 -0
  967. package/lib/modules/perpspool.js +178 -0
  968. package/lib/modules/position.d.ts +14 -0
  969. package/lib/modules/position.js +41 -0
  970. package/lib/modules/staking.d.ts +36 -0
  971. package/lib/modules/staking.js +81 -0
  972. package/lib/modules/subaccount.d.ts +24 -0
  973. package/lib/modules/subaccount.js +51 -0
  974. package/lib/provider/amino/AminoTypesMap.d.ts +3 -0
  975. package/lib/provider/amino/AminoTypesMap.js +27 -0
  976. package/lib/provider/amino/index.d.ts +1 -0
  977. package/lib/provider/amino/index.js +8 -0
  978. package/lib/provider/amino/types/admin.d.ts +4 -0
  979. package/lib/provider/amino/types/admin.js +132 -0
  980. package/lib/provider/amino/types/bank.d.ts +4 -0
  981. package/lib/provider/amino/types/bank.js +48 -0
  982. package/lib/provider/amino/types/bridge.d.ts +4 -0
  983. package/lib/provider/amino/types/bridge.js +59 -0
  984. package/lib/provider/amino/types/broker.d.ts +4 -0
  985. package/lib/provider/amino/types/broker.js +48 -0
  986. package/lib/provider/amino/types/coin.d.ts +4 -0
  987. package/lib/provider/amino/types/coin.js +66 -0
  988. package/lib/provider/amino/types/evm.d.ts +4 -0
  989. package/lib/provider/amino/types/evm.js +48 -0
  990. package/lib/provider/amino/types/evmmerge.d.ts +4 -0
  991. package/lib/provider/amino/types/evmmerge.js +48 -0
  992. package/lib/provider/amino/types/feemarket.d.ts +4 -0
  993. package/lib/provider/amino/types/feemarket.js +48 -0
  994. package/lib/provider/amino/types/gov.d.ts +4 -0
  995. package/lib/provider/amino/types/gov.js +358 -0
  996. package/lib/provider/amino/types/grant.d.ts +4 -0
  997. package/lib/provider/amino/types/grant.js +217 -0
  998. package/lib/provider/amino/types/group.d.ts +4 -0
  999. package/lib/provider/amino/types/group.js +64 -0
  1000. package/lib/provider/amino/types/ibc.d.ts +4 -0
  1001. package/lib/provider/amino/types/ibc.js +74 -0
  1002. package/lib/provider/amino/types/index.d.ts +20 -0
  1003. package/lib/provider/amino/types/index.js +46 -0
  1004. package/lib/provider/amino/types/leverage.d.ts +4 -0
  1005. package/lib/provider/amino/types/leverage.js +50 -0
  1006. package/lib/provider/amino/types/market.d.ts +4 -0
  1007. package/lib/provider/amino/types/market.js +104 -0
  1008. package/lib/provider/amino/types/oracle.d.ts +4 -0
  1009. package/lib/provider/amino/types/oracle.js +4 -0
  1010. package/lib/provider/amino/types/order.d.ts +4 -0
  1011. package/lib/provider/amino/types/order.js +105 -0
  1012. package/lib/provider/amino/types/perpspool.d.ts +4 -0
  1013. package/lib/provider/amino/types/perpspool.js +121 -0
  1014. package/lib/provider/amino/types/position.d.ts +4 -0
  1015. package/lib/provider/amino/types/position.js +48 -0
  1016. package/lib/provider/amino/types/staking.d.ts +4 -0
  1017. package/lib/provider/amino/types/staking.js +66 -0
  1018. package/lib/provider/amino/types/subaccount.d.ts +4 -0
  1019. package/lib/provider/amino/types/subaccount.js +60 -0
  1020. package/lib/provider/amino/utils.d.ts +45 -0
  1021. package/lib/provider/amino/utils.js +249 -0
  1022. package/lib/provider/chainProvider/GetSigningCosmosClientOptions.d.ts +2 -0
  1023. package/lib/provider/chainProvider/GetSigningCosmosClientOptions.js +18 -0
  1024. package/lib/provider/chainProvider/index.d.ts +2 -0
  1025. package/lib/provider/chainProvider/index.js +5 -0
  1026. package/lib/provider/eip6963Provider/Eip6963Provider.d.ts +9 -0
  1027. package/lib/provider/eip6963Provider/Eip6963Provider.js +27 -0
  1028. package/lib/provider/eip6963Provider/index.d.ts +1 -0
  1029. package/lib/provider/eip6963Provider/index.js +8 -0
  1030. package/lib/provider/index.d.ts +10 -0
  1031. package/lib/provider/index.js +22 -0
  1032. package/lib/provider/keplr/KeplrAccount.d.ts +27 -0
  1033. package/lib/provider/keplr/KeplrAccount.js +229 -0
  1034. package/lib/provider/keplr/KeplrStore.d.ts +0 -0
  1035. package/lib/provider/keplr/KeplrStore.js +1 -0
  1036. package/lib/provider/keplr/index.d.ts +3 -0
  1037. package/lib/provider/keplr/index.js +8 -0
  1038. package/lib/provider/leap/LeapAccount.d.ts +28 -0
  1039. package/lib/provider/leap/LeapAccount.js +203 -0
  1040. package/lib/provider/leap/index.d.ts +3 -0
  1041. package/lib/provider/leap/index.js +8 -0
  1042. package/lib/provider/ledger/index.d.ts +1 -0
  1043. package/lib/provider/ledger/index.js +8 -0
  1044. package/lib/provider/ledger/ledger.d.ts +28 -0
  1045. package/lib/provider/ledger/ledger.js +308 -0
  1046. package/lib/provider/metamask/MetaMask.d.ts +83 -0
  1047. package/lib/provider/metamask/MetaMask.js +665 -0
  1048. package/lib/provider/metamask/error.d.ts +2 -0
  1049. package/lib/provider/metamask/error.js +18 -0
  1050. package/lib/provider/metamask/index.d.ts +1 -0
  1051. package/lib/provider/metamask/index.js +5 -0
  1052. package/lib/provider/metamask/legacy-accounts.d.ts +11 -0
  1053. package/lib/provider/metamask/legacy-accounts.js +2254 -0
  1054. package/lib/provider/rainbowKit/RainbowKitAccount.d.ts +41 -0
  1055. package/lib/provider/rainbowKit/RainbowKitAccount.js +298 -0
  1056. package/lib/provider/rainbowKit/index.d.ts +1 -0
  1057. package/lib/provider/rainbowKit/index.js +8 -0
  1058. package/lib/provider/sdk/SDKProvider.d.ts +13 -0
  1059. package/lib/provider/sdk/SDKProvider.js +2 -0
  1060. package/lib/provider/sdk/index.d.ts +1 -0
  1061. package/lib/provider/sdk/index.js +2 -0
  1062. package/lib/util/address.d.ts +72 -0
  1063. package/lib/util/address.js +252 -0
  1064. package/lib/util/alliance.d.ts +2 -0
  1065. package/lib/util/alliance.js +27 -0
  1066. package/lib/util/api.d.ts +122 -0
  1067. package/lib/util/api.js +175 -0
  1068. package/lib/util/auth.d.ts +31 -0
  1069. package/lib/util/auth.js +46 -0
  1070. package/lib/util/blockchain.d.ts +96 -0
  1071. package/lib/util/blockchain.js +571 -0
  1072. package/lib/util/bytes.d.ts +1 -0
  1073. package/lib/util/bytes.js +9 -0
  1074. package/lib/util/eip712.d.ts +10 -0
  1075. package/lib/util/eip712.js +199 -0
  1076. package/lib/util/ethermint.d.ts +9 -0
  1077. package/lib/util/ethermint.js +131 -0
  1078. package/lib/util/evm.d.ts +2 -0
  1079. package/lib/util/evm.js +10 -0
  1080. package/lib/util/external.d.ts +11 -0
  1081. package/lib/util/external.js +7 -0
  1082. package/lib/util/fetch.d.ts +1 -0
  1083. package/lib/util/fetch.js +15 -0
  1084. package/lib/util/generic.d.ts +40 -0
  1085. package/lib/util/generic.js +163 -0
  1086. package/lib/util/gov.d.ts +47 -0
  1087. package/lib/util/gov.js +251 -0
  1088. package/lib/util/grant.d.ts +21 -0
  1089. package/lib/util/grant.js +59 -0
  1090. package/lib/util/ibc.d.ts +19 -0
  1091. package/lib/util/ibc.js +148 -0
  1092. package/lib/util/index.d.ts +20 -0
  1093. package/lib/util/index.js +56 -0
  1094. package/lib/util/ledger.d.ts +3 -0
  1095. package/lib/util/ledger.js +43 -0
  1096. package/lib/util/legacyEIP712.d.ts +20 -0
  1097. package/lib/util/legacyEIP712.js +100 -0
  1098. package/lib/util/message.d.ts +2 -0
  1099. package/lib/util/message.js +24 -0
  1100. package/lib/util/network.d.ts +9 -0
  1101. package/lib/util/network.js +39 -0
  1102. package/lib/util/number.d.ts +9 -0
  1103. package/lib/util/number.js +47 -0
  1104. package/lib/util/order.d.ts +3 -0
  1105. package/lib/util/order.js +13 -0
  1106. package/lib/util/provider.d.ts +1 -0
  1107. package/lib/util/provider.js +12 -0
  1108. package/lib/util/token.d.ts +16 -0
  1109. package/lib/util/token.js +23 -0
  1110. package/lib/util/transferfees.d.ts +18 -0
  1111. package/lib/util/transferfees.js +9 -0
  1112. package/lib/util/tx.d.ts +559 -0
  1113. package/lib/util/tx.js +168 -0
  1114. package/lib/util/type.d.ts +22 -0
  1115. package/lib/util/type.js +45 -0
  1116. package/lib/wallet/CarbonSigner.d.ts +67 -0
  1117. package/lib/wallet/CarbonSigner.js +131 -0
  1118. package/lib/wallet/CarbonSigningClient.d.ts +41 -0
  1119. package/lib/wallet/CarbonSigningClient.js +201 -0
  1120. package/lib/wallet/CarbonWallet.d.ts +220 -0
  1121. package/lib/wallet/CarbonWallet.js +790 -0
  1122. package/lib/wallet/index.d.ts +2 -0
  1123. package/lib/wallet/index.js +18 -0
  1124. package/lib/websocket/channel.d.ts +3 -0
  1125. package/lib/websocket/channel.js +209 -0
  1126. package/lib/websocket/connector.d.ts +234 -0
  1127. package/lib/websocket/connector.js +502 -0
  1128. package/lib/websocket/index.d.ts +1 -0
  1129. package/lib/websocket/index.js +17 -0
  1130. package/lib/websocket/models.d.ts +332 -0
  1131. package/lib/websocket/models.js +2 -0
  1132. package/lib/websocket/types.d.ts +154 -0
  1133. package/lib/websocket/types.js +44 -0
  1134. package/package.json +90 -0
@@ -0,0 +1,1329 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Vote = exports.TallyResult = exports.Proposal = exports.GroupPolicyInfo = exports.GroupMember = exports.GroupInfo = exports.DecisionPolicyWindows = exports.PercentageDecisionPolicy = exports.ThresholdDecisionPolicy = exports.MemberRequest = exports.Member = exports.ProposalExecutorResult = exports.ProposalStatus = exports.VoteOption = exports.protobufPackage = void 0;
7
+ exports.voteOptionFromJSON = voteOptionFromJSON;
8
+ exports.voteOptionToJSON = voteOptionToJSON;
9
+ exports.proposalStatusFromJSON = proposalStatusFromJSON;
10
+ exports.proposalStatusToJSON = proposalStatusToJSON;
11
+ exports.proposalExecutorResultFromJSON = proposalExecutorResultFromJSON;
12
+ exports.proposalExecutorResultToJSON = proposalExecutorResultToJSON;
13
+ /* eslint-disable */
14
+ const long_1 = __importDefault(require("long"));
15
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
16
+ const any_1 = require("../../../google/protobuf/any");
17
+ const duration_1 = require("../../../google/protobuf/duration");
18
+ const timestamp_1 = require("../../../google/protobuf/timestamp");
19
+ exports.protobufPackage = "cosmos.group.v1";
20
+ /** Since: cosmos-sdk 0.46 */
21
+ /** VoteOption enumerates the valid vote options for a given proposal. */
22
+ var VoteOption;
23
+ (function (VoteOption) {
24
+ /**
25
+ * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will
26
+ * return an error.
27
+ */
28
+ VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED";
29
+ /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
30
+ VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES";
31
+ /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
32
+ VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN";
33
+ /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
34
+ VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO";
35
+ /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
36
+ VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO";
37
+ VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
38
+ })(VoteOption || (exports.VoteOption = VoteOption = {}));
39
+ function voteOptionFromJSON(object) {
40
+ switch (object) {
41
+ case 0:
42
+ case "VOTE_OPTION_UNSPECIFIED":
43
+ return VoteOption.VOTE_OPTION_UNSPECIFIED;
44
+ case 1:
45
+ case "VOTE_OPTION_YES":
46
+ return VoteOption.VOTE_OPTION_YES;
47
+ case 2:
48
+ case "VOTE_OPTION_ABSTAIN":
49
+ return VoteOption.VOTE_OPTION_ABSTAIN;
50
+ case 3:
51
+ case "VOTE_OPTION_NO":
52
+ return VoteOption.VOTE_OPTION_NO;
53
+ case 4:
54
+ case "VOTE_OPTION_NO_WITH_VETO":
55
+ return VoteOption.VOTE_OPTION_NO_WITH_VETO;
56
+ case -1:
57
+ case "UNRECOGNIZED":
58
+ default:
59
+ return VoteOption.UNRECOGNIZED;
60
+ }
61
+ }
62
+ function voteOptionToJSON(object) {
63
+ switch (object) {
64
+ case VoteOption.VOTE_OPTION_UNSPECIFIED:
65
+ return "VOTE_OPTION_UNSPECIFIED";
66
+ case VoteOption.VOTE_OPTION_YES:
67
+ return "VOTE_OPTION_YES";
68
+ case VoteOption.VOTE_OPTION_ABSTAIN:
69
+ return "VOTE_OPTION_ABSTAIN";
70
+ case VoteOption.VOTE_OPTION_NO:
71
+ return "VOTE_OPTION_NO";
72
+ case VoteOption.VOTE_OPTION_NO_WITH_VETO:
73
+ return "VOTE_OPTION_NO_WITH_VETO";
74
+ case VoteOption.UNRECOGNIZED:
75
+ default:
76
+ return "UNRECOGNIZED";
77
+ }
78
+ }
79
+ /** ProposalStatus defines proposal statuses. */
80
+ var ProposalStatus;
81
+ (function (ProposalStatus) {
82
+ /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */
83
+ ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED";
84
+ /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */
85
+ ProposalStatus[ProposalStatus["PROPOSAL_STATUS_SUBMITTED"] = 1] = "PROPOSAL_STATUS_SUBMITTED";
86
+ /**
87
+ * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome
88
+ * passes the group policy's decision policy.
89
+ */
90
+ ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ACCEPTED"] = 2] = "PROPOSAL_STATUS_ACCEPTED";
91
+ /**
92
+ * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome
93
+ * is rejected by the group policy's decision policy.
94
+ */
95
+ ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 3] = "PROPOSAL_STATUS_REJECTED";
96
+ /**
97
+ * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the
98
+ * final tally.
99
+ */
100
+ ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ABORTED"] = 4] = "PROPOSAL_STATUS_ABORTED";
101
+ /**
102
+ * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner.
103
+ * When this happens the final status is Withdrawn.
104
+ */
105
+ ProposalStatus[ProposalStatus["PROPOSAL_STATUS_WITHDRAWN"] = 5] = "PROPOSAL_STATUS_WITHDRAWN";
106
+ ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
107
+ })(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {}));
108
+ function proposalStatusFromJSON(object) {
109
+ switch (object) {
110
+ case 0:
111
+ case "PROPOSAL_STATUS_UNSPECIFIED":
112
+ return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
113
+ case 1:
114
+ case "PROPOSAL_STATUS_SUBMITTED":
115
+ return ProposalStatus.PROPOSAL_STATUS_SUBMITTED;
116
+ case 2:
117
+ case "PROPOSAL_STATUS_ACCEPTED":
118
+ return ProposalStatus.PROPOSAL_STATUS_ACCEPTED;
119
+ case 3:
120
+ case "PROPOSAL_STATUS_REJECTED":
121
+ return ProposalStatus.PROPOSAL_STATUS_REJECTED;
122
+ case 4:
123
+ case "PROPOSAL_STATUS_ABORTED":
124
+ return ProposalStatus.PROPOSAL_STATUS_ABORTED;
125
+ case 5:
126
+ case "PROPOSAL_STATUS_WITHDRAWN":
127
+ return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN;
128
+ case -1:
129
+ case "UNRECOGNIZED":
130
+ default:
131
+ return ProposalStatus.UNRECOGNIZED;
132
+ }
133
+ }
134
+ function proposalStatusToJSON(object) {
135
+ switch (object) {
136
+ case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
137
+ return "PROPOSAL_STATUS_UNSPECIFIED";
138
+ case ProposalStatus.PROPOSAL_STATUS_SUBMITTED:
139
+ return "PROPOSAL_STATUS_SUBMITTED";
140
+ case ProposalStatus.PROPOSAL_STATUS_ACCEPTED:
141
+ return "PROPOSAL_STATUS_ACCEPTED";
142
+ case ProposalStatus.PROPOSAL_STATUS_REJECTED:
143
+ return "PROPOSAL_STATUS_REJECTED";
144
+ case ProposalStatus.PROPOSAL_STATUS_ABORTED:
145
+ return "PROPOSAL_STATUS_ABORTED";
146
+ case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN:
147
+ return "PROPOSAL_STATUS_WITHDRAWN";
148
+ case ProposalStatus.UNRECOGNIZED:
149
+ default:
150
+ return "UNRECOGNIZED";
151
+ }
152
+ }
153
+ /** ProposalExecutorResult defines types of proposal executor results. */
154
+ var ProposalExecutorResult;
155
+ (function (ProposalExecutorResult) {
156
+ /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */
157
+ ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"] = 0] = "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";
158
+ /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */
159
+ ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_NOT_RUN"] = 1] = "PROPOSAL_EXECUTOR_RESULT_NOT_RUN";
160
+ /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */
161
+ ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_SUCCESS"] = 2] = "PROPOSAL_EXECUTOR_RESULT_SUCCESS";
162
+ /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */
163
+ ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_FAILURE"] = 3] = "PROPOSAL_EXECUTOR_RESULT_FAILURE";
164
+ ProposalExecutorResult[ProposalExecutorResult["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
165
+ })(ProposalExecutorResult || (exports.ProposalExecutorResult = ProposalExecutorResult = {}));
166
+ function proposalExecutorResultFromJSON(object) {
167
+ switch (object) {
168
+ case 0:
169
+ case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED":
170
+ return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED;
171
+ case 1:
172
+ case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN":
173
+ return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN;
174
+ case 2:
175
+ case "PROPOSAL_EXECUTOR_RESULT_SUCCESS":
176
+ return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS;
177
+ case 3:
178
+ case "PROPOSAL_EXECUTOR_RESULT_FAILURE":
179
+ return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE;
180
+ case -1:
181
+ case "UNRECOGNIZED":
182
+ default:
183
+ return ProposalExecutorResult.UNRECOGNIZED;
184
+ }
185
+ }
186
+ function proposalExecutorResultToJSON(object) {
187
+ switch (object) {
188
+ case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED:
189
+ return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";
190
+ case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN:
191
+ return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN";
192
+ case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS:
193
+ return "PROPOSAL_EXECUTOR_RESULT_SUCCESS";
194
+ case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE:
195
+ return "PROPOSAL_EXECUTOR_RESULT_FAILURE";
196
+ case ProposalExecutorResult.UNRECOGNIZED:
197
+ default:
198
+ return "UNRECOGNIZED";
199
+ }
200
+ }
201
+ function createBaseMember() {
202
+ return { address: "", weight: "", metadata: "", addedAt: undefined };
203
+ }
204
+ exports.Member = {
205
+ encode(message, writer = minimal_1.default.Writer.create()) {
206
+ if (message.address !== "") {
207
+ writer.uint32(10).string(message.address);
208
+ }
209
+ if (message.weight !== "") {
210
+ writer.uint32(18).string(message.weight);
211
+ }
212
+ if (message.metadata !== "") {
213
+ writer.uint32(26).string(message.metadata);
214
+ }
215
+ if (message.addedAt !== undefined) {
216
+ timestamp_1.Timestamp.encode(toTimestamp(message.addedAt), writer.uint32(34).fork()).ldelim();
217
+ }
218
+ return writer;
219
+ },
220
+ decode(input, length) {
221
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
222
+ let end = length === undefined ? reader.len : reader.pos + length;
223
+ const message = createBaseMember();
224
+ while (reader.pos < end) {
225
+ const tag = reader.uint32();
226
+ switch (tag >>> 3) {
227
+ case 1:
228
+ if (tag !== 10) {
229
+ break;
230
+ }
231
+ message.address = reader.string();
232
+ continue;
233
+ case 2:
234
+ if (tag !== 18) {
235
+ break;
236
+ }
237
+ message.weight = reader.string();
238
+ continue;
239
+ case 3:
240
+ if (tag !== 26) {
241
+ break;
242
+ }
243
+ message.metadata = reader.string();
244
+ continue;
245
+ case 4:
246
+ if (tag !== 34) {
247
+ break;
248
+ }
249
+ message.addedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
250
+ continue;
251
+ }
252
+ if ((tag & 7) === 4 || tag === 0) {
253
+ break;
254
+ }
255
+ reader.skipType(tag & 7);
256
+ }
257
+ return message;
258
+ },
259
+ fromJSON(object) {
260
+ return {
261
+ address: isSet(object.address) ? String(object.address) : "",
262
+ weight: isSet(object.weight) ? String(object.weight) : "",
263
+ metadata: isSet(object.metadata) ? String(object.metadata) : "",
264
+ addedAt: isSet(object.addedAt) ? fromJsonTimestamp(object.addedAt) : undefined,
265
+ };
266
+ },
267
+ toJSON(message) {
268
+ const obj = {};
269
+ message.address !== undefined && (obj.address = message.address);
270
+ message.weight !== undefined && (obj.weight = message.weight);
271
+ message.metadata !== undefined && (obj.metadata = message.metadata);
272
+ message.addedAt !== undefined && (obj.addedAt = message.addedAt.toISOString());
273
+ return obj;
274
+ },
275
+ create(base) {
276
+ return exports.Member.fromPartial(base ?? {});
277
+ },
278
+ fromPartial(object) {
279
+ const message = createBaseMember();
280
+ message.address = object.address ?? "";
281
+ message.weight = object.weight ?? "";
282
+ message.metadata = object.metadata ?? "";
283
+ message.addedAt = object.addedAt ?? undefined;
284
+ return message;
285
+ },
286
+ };
287
+ function createBaseMemberRequest() {
288
+ return { address: "", weight: "", metadata: "" };
289
+ }
290
+ exports.MemberRequest = {
291
+ encode(message, writer = minimal_1.default.Writer.create()) {
292
+ if (message.address !== "") {
293
+ writer.uint32(10).string(message.address);
294
+ }
295
+ if (message.weight !== "") {
296
+ writer.uint32(18).string(message.weight);
297
+ }
298
+ if (message.metadata !== "") {
299
+ writer.uint32(26).string(message.metadata);
300
+ }
301
+ return writer;
302
+ },
303
+ decode(input, length) {
304
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
305
+ let end = length === undefined ? reader.len : reader.pos + length;
306
+ const message = createBaseMemberRequest();
307
+ while (reader.pos < end) {
308
+ const tag = reader.uint32();
309
+ switch (tag >>> 3) {
310
+ case 1:
311
+ if (tag !== 10) {
312
+ break;
313
+ }
314
+ message.address = reader.string();
315
+ continue;
316
+ case 2:
317
+ if (tag !== 18) {
318
+ break;
319
+ }
320
+ message.weight = reader.string();
321
+ continue;
322
+ case 3:
323
+ if (tag !== 26) {
324
+ break;
325
+ }
326
+ message.metadata = reader.string();
327
+ continue;
328
+ }
329
+ if ((tag & 7) === 4 || tag === 0) {
330
+ break;
331
+ }
332
+ reader.skipType(tag & 7);
333
+ }
334
+ return message;
335
+ },
336
+ fromJSON(object) {
337
+ return {
338
+ address: isSet(object.address) ? String(object.address) : "",
339
+ weight: isSet(object.weight) ? String(object.weight) : "",
340
+ metadata: isSet(object.metadata) ? String(object.metadata) : "",
341
+ };
342
+ },
343
+ toJSON(message) {
344
+ const obj = {};
345
+ message.address !== undefined && (obj.address = message.address);
346
+ message.weight !== undefined && (obj.weight = message.weight);
347
+ message.metadata !== undefined && (obj.metadata = message.metadata);
348
+ return obj;
349
+ },
350
+ create(base) {
351
+ return exports.MemberRequest.fromPartial(base ?? {});
352
+ },
353
+ fromPartial(object) {
354
+ const message = createBaseMemberRequest();
355
+ message.address = object.address ?? "";
356
+ message.weight = object.weight ?? "";
357
+ message.metadata = object.metadata ?? "";
358
+ return message;
359
+ },
360
+ };
361
+ function createBaseThresholdDecisionPolicy() {
362
+ return { threshold: "", windows: undefined };
363
+ }
364
+ exports.ThresholdDecisionPolicy = {
365
+ encode(message, writer = minimal_1.default.Writer.create()) {
366
+ if (message.threshold !== "") {
367
+ writer.uint32(10).string(message.threshold);
368
+ }
369
+ if (message.windows !== undefined) {
370
+ exports.DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim();
371
+ }
372
+ return writer;
373
+ },
374
+ decode(input, length) {
375
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
376
+ let end = length === undefined ? reader.len : reader.pos + length;
377
+ const message = createBaseThresholdDecisionPolicy();
378
+ while (reader.pos < end) {
379
+ const tag = reader.uint32();
380
+ switch (tag >>> 3) {
381
+ case 1:
382
+ if (tag !== 10) {
383
+ break;
384
+ }
385
+ message.threshold = reader.string();
386
+ continue;
387
+ case 2:
388
+ if (tag !== 18) {
389
+ break;
390
+ }
391
+ message.windows = exports.DecisionPolicyWindows.decode(reader, reader.uint32());
392
+ continue;
393
+ }
394
+ if ((tag & 7) === 4 || tag === 0) {
395
+ break;
396
+ }
397
+ reader.skipType(tag & 7);
398
+ }
399
+ return message;
400
+ },
401
+ fromJSON(object) {
402
+ return {
403
+ threshold: isSet(object.threshold) ? String(object.threshold) : "",
404
+ windows: isSet(object.windows) ? exports.DecisionPolicyWindows.fromJSON(object.windows) : undefined,
405
+ };
406
+ },
407
+ toJSON(message) {
408
+ const obj = {};
409
+ message.threshold !== undefined && (obj.threshold = message.threshold);
410
+ message.windows !== undefined &&
411
+ (obj.windows = message.windows ? exports.DecisionPolicyWindows.toJSON(message.windows) : undefined);
412
+ return obj;
413
+ },
414
+ create(base) {
415
+ return exports.ThresholdDecisionPolicy.fromPartial(base ?? {});
416
+ },
417
+ fromPartial(object) {
418
+ const message = createBaseThresholdDecisionPolicy();
419
+ message.threshold = object.threshold ?? "";
420
+ message.windows = (object.windows !== undefined && object.windows !== null)
421
+ ? exports.DecisionPolicyWindows.fromPartial(object.windows)
422
+ : undefined;
423
+ return message;
424
+ },
425
+ };
426
+ function createBasePercentageDecisionPolicy() {
427
+ return { percentage: "", windows: undefined };
428
+ }
429
+ exports.PercentageDecisionPolicy = {
430
+ encode(message, writer = minimal_1.default.Writer.create()) {
431
+ if (message.percentage !== "") {
432
+ writer.uint32(10).string(message.percentage);
433
+ }
434
+ if (message.windows !== undefined) {
435
+ exports.DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim();
436
+ }
437
+ return writer;
438
+ },
439
+ decode(input, length) {
440
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
441
+ let end = length === undefined ? reader.len : reader.pos + length;
442
+ const message = createBasePercentageDecisionPolicy();
443
+ while (reader.pos < end) {
444
+ const tag = reader.uint32();
445
+ switch (tag >>> 3) {
446
+ case 1:
447
+ if (tag !== 10) {
448
+ break;
449
+ }
450
+ message.percentage = reader.string();
451
+ continue;
452
+ case 2:
453
+ if (tag !== 18) {
454
+ break;
455
+ }
456
+ message.windows = exports.DecisionPolicyWindows.decode(reader, reader.uint32());
457
+ continue;
458
+ }
459
+ if ((tag & 7) === 4 || tag === 0) {
460
+ break;
461
+ }
462
+ reader.skipType(tag & 7);
463
+ }
464
+ return message;
465
+ },
466
+ fromJSON(object) {
467
+ return {
468
+ percentage: isSet(object.percentage) ? String(object.percentage) : "",
469
+ windows: isSet(object.windows) ? exports.DecisionPolicyWindows.fromJSON(object.windows) : undefined,
470
+ };
471
+ },
472
+ toJSON(message) {
473
+ const obj = {};
474
+ message.percentage !== undefined && (obj.percentage = message.percentage);
475
+ message.windows !== undefined &&
476
+ (obj.windows = message.windows ? exports.DecisionPolicyWindows.toJSON(message.windows) : undefined);
477
+ return obj;
478
+ },
479
+ create(base) {
480
+ return exports.PercentageDecisionPolicy.fromPartial(base ?? {});
481
+ },
482
+ fromPartial(object) {
483
+ const message = createBasePercentageDecisionPolicy();
484
+ message.percentage = object.percentage ?? "";
485
+ message.windows = (object.windows !== undefined && object.windows !== null)
486
+ ? exports.DecisionPolicyWindows.fromPartial(object.windows)
487
+ : undefined;
488
+ return message;
489
+ },
490
+ };
491
+ function createBaseDecisionPolicyWindows() {
492
+ return { votingPeriod: undefined, minExecutionPeriod: undefined };
493
+ }
494
+ exports.DecisionPolicyWindows = {
495
+ encode(message, writer = minimal_1.default.Writer.create()) {
496
+ if (message.votingPeriod !== undefined) {
497
+ duration_1.Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
498
+ }
499
+ if (message.minExecutionPeriod !== undefined) {
500
+ duration_1.Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim();
501
+ }
502
+ return writer;
503
+ },
504
+ decode(input, length) {
505
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
506
+ let end = length === undefined ? reader.len : reader.pos + length;
507
+ const message = createBaseDecisionPolicyWindows();
508
+ while (reader.pos < end) {
509
+ const tag = reader.uint32();
510
+ switch (tag >>> 3) {
511
+ case 1:
512
+ if (tag !== 10) {
513
+ break;
514
+ }
515
+ message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32());
516
+ continue;
517
+ case 2:
518
+ if (tag !== 18) {
519
+ break;
520
+ }
521
+ message.minExecutionPeriod = duration_1.Duration.decode(reader, reader.uint32());
522
+ continue;
523
+ }
524
+ if ((tag & 7) === 4 || tag === 0) {
525
+ break;
526
+ }
527
+ reader.skipType(tag & 7);
528
+ }
529
+ return message;
530
+ },
531
+ fromJSON(object) {
532
+ return {
533
+ votingPeriod: isSet(object.votingPeriod) ? duration_1.Duration.fromJSON(object.votingPeriod) : undefined,
534
+ minExecutionPeriod: isSet(object.minExecutionPeriod) ? duration_1.Duration.fromJSON(object.minExecutionPeriod) : undefined,
535
+ };
536
+ },
537
+ toJSON(message) {
538
+ const obj = {};
539
+ message.votingPeriod !== undefined &&
540
+ (obj.votingPeriod = message.votingPeriod ? duration_1.Duration.toJSON(message.votingPeriod) : undefined);
541
+ message.minExecutionPeriod !== undefined &&
542
+ (obj.minExecutionPeriod = message.minExecutionPeriod ? duration_1.Duration.toJSON(message.minExecutionPeriod) : undefined);
543
+ return obj;
544
+ },
545
+ create(base) {
546
+ return exports.DecisionPolicyWindows.fromPartial(base ?? {});
547
+ },
548
+ fromPartial(object) {
549
+ const message = createBaseDecisionPolicyWindows();
550
+ message.votingPeriod = (object.votingPeriod !== undefined && object.votingPeriod !== null)
551
+ ? duration_1.Duration.fromPartial(object.votingPeriod)
552
+ : undefined;
553
+ message.minExecutionPeriod = (object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null)
554
+ ? duration_1.Duration.fromPartial(object.minExecutionPeriod)
555
+ : undefined;
556
+ return message;
557
+ },
558
+ };
559
+ function createBaseGroupInfo() {
560
+ return { id: long_1.default.UZERO, admin: "", metadata: "", version: long_1.default.UZERO, totalWeight: "", createdAt: undefined };
561
+ }
562
+ exports.GroupInfo = {
563
+ encode(message, writer = minimal_1.default.Writer.create()) {
564
+ if (!message.id.isZero()) {
565
+ writer.uint32(8).uint64(message.id);
566
+ }
567
+ if (message.admin !== "") {
568
+ writer.uint32(18).string(message.admin);
569
+ }
570
+ if (message.metadata !== "") {
571
+ writer.uint32(26).string(message.metadata);
572
+ }
573
+ if (!message.version.isZero()) {
574
+ writer.uint32(32).uint64(message.version);
575
+ }
576
+ if (message.totalWeight !== "") {
577
+ writer.uint32(42).string(message.totalWeight);
578
+ }
579
+ if (message.createdAt !== undefined) {
580
+ timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).ldelim();
581
+ }
582
+ return writer;
583
+ },
584
+ decode(input, length) {
585
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
586
+ let end = length === undefined ? reader.len : reader.pos + length;
587
+ const message = createBaseGroupInfo();
588
+ while (reader.pos < end) {
589
+ const tag = reader.uint32();
590
+ switch (tag >>> 3) {
591
+ case 1:
592
+ if (tag !== 8) {
593
+ break;
594
+ }
595
+ message.id = reader.uint64();
596
+ continue;
597
+ case 2:
598
+ if (tag !== 18) {
599
+ break;
600
+ }
601
+ message.admin = reader.string();
602
+ continue;
603
+ case 3:
604
+ if (tag !== 26) {
605
+ break;
606
+ }
607
+ message.metadata = reader.string();
608
+ continue;
609
+ case 4:
610
+ if (tag !== 32) {
611
+ break;
612
+ }
613
+ message.version = reader.uint64();
614
+ continue;
615
+ case 5:
616
+ if (tag !== 42) {
617
+ break;
618
+ }
619
+ message.totalWeight = reader.string();
620
+ continue;
621
+ case 6:
622
+ if (tag !== 50) {
623
+ break;
624
+ }
625
+ message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
626
+ continue;
627
+ }
628
+ if ((tag & 7) === 4 || tag === 0) {
629
+ break;
630
+ }
631
+ reader.skipType(tag & 7);
632
+ }
633
+ return message;
634
+ },
635
+ fromJSON(object) {
636
+ return {
637
+ id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
638
+ admin: isSet(object.admin) ? String(object.admin) : "",
639
+ metadata: isSet(object.metadata) ? String(object.metadata) : "",
640
+ version: isSet(object.version) ? long_1.default.fromValue(object.version) : long_1.default.UZERO,
641
+ totalWeight: isSet(object.totalWeight) ? String(object.totalWeight) : "",
642
+ createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
643
+ };
644
+ },
645
+ toJSON(message) {
646
+ const obj = {};
647
+ message.id !== undefined && (obj.id = (message.id || long_1.default.UZERO).toString());
648
+ message.admin !== undefined && (obj.admin = message.admin);
649
+ message.metadata !== undefined && (obj.metadata = message.metadata);
650
+ message.version !== undefined && (obj.version = (message.version || long_1.default.UZERO).toString());
651
+ message.totalWeight !== undefined && (obj.totalWeight = message.totalWeight);
652
+ message.createdAt !== undefined && (obj.createdAt = message.createdAt.toISOString());
653
+ return obj;
654
+ },
655
+ create(base) {
656
+ return exports.GroupInfo.fromPartial(base ?? {});
657
+ },
658
+ fromPartial(object) {
659
+ const message = createBaseGroupInfo();
660
+ message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
661
+ message.admin = object.admin ?? "";
662
+ message.metadata = object.metadata ?? "";
663
+ message.version = (object.version !== undefined && object.version !== null)
664
+ ? long_1.default.fromValue(object.version)
665
+ : long_1.default.UZERO;
666
+ message.totalWeight = object.totalWeight ?? "";
667
+ message.createdAt = object.createdAt ?? undefined;
668
+ return message;
669
+ },
670
+ };
671
+ function createBaseGroupMember() {
672
+ return { groupId: long_1.default.UZERO, member: undefined };
673
+ }
674
+ exports.GroupMember = {
675
+ encode(message, writer = minimal_1.default.Writer.create()) {
676
+ if (!message.groupId.isZero()) {
677
+ writer.uint32(8).uint64(message.groupId);
678
+ }
679
+ if (message.member !== undefined) {
680
+ exports.Member.encode(message.member, writer.uint32(18).fork()).ldelim();
681
+ }
682
+ return writer;
683
+ },
684
+ decode(input, length) {
685
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
686
+ let end = length === undefined ? reader.len : reader.pos + length;
687
+ const message = createBaseGroupMember();
688
+ while (reader.pos < end) {
689
+ const tag = reader.uint32();
690
+ switch (tag >>> 3) {
691
+ case 1:
692
+ if (tag !== 8) {
693
+ break;
694
+ }
695
+ message.groupId = reader.uint64();
696
+ continue;
697
+ case 2:
698
+ if (tag !== 18) {
699
+ break;
700
+ }
701
+ message.member = exports.Member.decode(reader, reader.uint32());
702
+ continue;
703
+ }
704
+ if ((tag & 7) === 4 || tag === 0) {
705
+ break;
706
+ }
707
+ reader.skipType(tag & 7);
708
+ }
709
+ return message;
710
+ },
711
+ fromJSON(object) {
712
+ return {
713
+ groupId: isSet(object.groupId) ? long_1.default.fromValue(object.groupId) : long_1.default.UZERO,
714
+ member: isSet(object.member) ? exports.Member.fromJSON(object.member) : undefined,
715
+ };
716
+ },
717
+ toJSON(message) {
718
+ const obj = {};
719
+ message.groupId !== undefined && (obj.groupId = (message.groupId || long_1.default.UZERO).toString());
720
+ message.member !== undefined && (obj.member = message.member ? exports.Member.toJSON(message.member) : undefined);
721
+ return obj;
722
+ },
723
+ create(base) {
724
+ return exports.GroupMember.fromPartial(base ?? {});
725
+ },
726
+ fromPartial(object) {
727
+ const message = createBaseGroupMember();
728
+ message.groupId = (object.groupId !== undefined && object.groupId !== null)
729
+ ? long_1.default.fromValue(object.groupId)
730
+ : long_1.default.UZERO;
731
+ message.member = (object.member !== undefined && object.member !== null)
732
+ ? exports.Member.fromPartial(object.member)
733
+ : undefined;
734
+ return message;
735
+ },
736
+ };
737
+ function createBaseGroupPolicyInfo() {
738
+ return {
739
+ address: "",
740
+ groupId: long_1.default.UZERO,
741
+ admin: "",
742
+ metadata: "",
743
+ version: long_1.default.UZERO,
744
+ decisionPolicy: undefined,
745
+ createdAt: undefined,
746
+ };
747
+ }
748
+ exports.GroupPolicyInfo = {
749
+ encode(message, writer = minimal_1.default.Writer.create()) {
750
+ if (message.address !== "") {
751
+ writer.uint32(10).string(message.address);
752
+ }
753
+ if (!message.groupId.isZero()) {
754
+ writer.uint32(16).uint64(message.groupId);
755
+ }
756
+ if (message.admin !== "") {
757
+ writer.uint32(26).string(message.admin);
758
+ }
759
+ if (message.metadata !== "") {
760
+ writer.uint32(34).string(message.metadata);
761
+ }
762
+ if (!message.version.isZero()) {
763
+ writer.uint32(40).uint64(message.version);
764
+ }
765
+ if (message.decisionPolicy !== undefined) {
766
+ any_1.Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim();
767
+ }
768
+ if (message.createdAt !== undefined) {
769
+ timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).ldelim();
770
+ }
771
+ return writer;
772
+ },
773
+ decode(input, length) {
774
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
775
+ let end = length === undefined ? reader.len : reader.pos + length;
776
+ const message = createBaseGroupPolicyInfo();
777
+ while (reader.pos < end) {
778
+ const tag = reader.uint32();
779
+ switch (tag >>> 3) {
780
+ case 1:
781
+ if (tag !== 10) {
782
+ break;
783
+ }
784
+ message.address = reader.string();
785
+ continue;
786
+ case 2:
787
+ if (tag !== 16) {
788
+ break;
789
+ }
790
+ message.groupId = reader.uint64();
791
+ continue;
792
+ case 3:
793
+ if (tag !== 26) {
794
+ break;
795
+ }
796
+ message.admin = reader.string();
797
+ continue;
798
+ case 4:
799
+ if (tag !== 34) {
800
+ break;
801
+ }
802
+ message.metadata = reader.string();
803
+ continue;
804
+ case 5:
805
+ if (tag !== 40) {
806
+ break;
807
+ }
808
+ message.version = reader.uint64();
809
+ continue;
810
+ case 6:
811
+ if (tag !== 50) {
812
+ break;
813
+ }
814
+ message.decisionPolicy = any_1.Any.decode(reader, reader.uint32());
815
+ continue;
816
+ case 7:
817
+ if (tag !== 58) {
818
+ break;
819
+ }
820
+ message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
821
+ continue;
822
+ }
823
+ if ((tag & 7) === 4 || tag === 0) {
824
+ break;
825
+ }
826
+ reader.skipType(tag & 7);
827
+ }
828
+ return message;
829
+ },
830
+ fromJSON(object) {
831
+ return {
832
+ address: isSet(object.address) ? String(object.address) : "",
833
+ groupId: isSet(object.groupId) ? long_1.default.fromValue(object.groupId) : long_1.default.UZERO,
834
+ admin: isSet(object.admin) ? String(object.admin) : "",
835
+ metadata: isSet(object.metadata) ? String(object.metadata) : "",
836
+ version: isSet(object.version) ? long_1.default.fromValue(object.version) : long_1.default.UZERO,
837
+ decisionPolicy: isSet(object.decisionPolicy) ? any_1.Any.fromJSON(object.decisionPolicy) : undefined,
838
+ createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
839
+ };
840
+ },
841
+ toJSON(message) {
842
+ const obj = {};
843
+ message.address !== undefined && (obj.address = message.address);
844
+ message.groupId !== undefined && (obj.groupId = (message.groupId || long_1.default.UZERO).toString());
845
+ message.admin !== undefined && (obj.admin = message.admin);
846
+ message.metadata !== undefined && (obj.metadata = message.metadata);
847
+ message.version !== undefined && (obj.version = (message.version || long_1.default.UZERO).toString());
848
+ message.decisionPolicy !== undefined &&
849
+ (obj.decisionPolicy = message.decisionPolicy ? any_1.Any.toJSON(message.decisionPolicy) : undefined);
850
+ message.createdAt !== undefined && (obj.createdAt = message.createdAt.toISOString());
851
+ return obj;
852
+ },
853
+ create(base) {
854
+ return exports.GroupPolicyInfo.fromPartial(base ?? {});
855
+ },
856
+ fromPartial(object) {
857
+ const message = createBaseGroupPolicyInfo();
858
+ message.address = object.address ?? "";
859
+ message.groupId = (object.groupId !== undefined && object.groupId !== null)
860
+ ? long_1.default.fromValue(object.groupId)
861
+ : long_1.default.UZERO;
862
+ message.admin = object.admin ?? "";
863
+ message.metadata = object.metadata ?? "";
864
+ message.version = (object.version !== undefined && object.version !== null)
865
+ ? long_1.default.fromValue(object.version)
866
+ : long_1.default.UZERO;
867
+ message.decisionPolicy = (object.decisionPolicy !== undefined && object.decisionPolicy !== null)
868
+ ? any_1.Any.fromPartial(object.decisionPolicy)
869
+ : undefined;
870
+ message.createdAt = object.createdAt ?? undefined;
871
+ return message;
872
+ },
873
+ };
874
+ function createBaseProposal() {
875
+ return {
876
+ id: long_1.default.UZERO,
877
+ groupPolicyAddress: "",
878
+ metadata: "",
879
+ proposers: [],
880
+ submitTime: undefined,
881
+ groupVersion: long_1.default.UZERO,
882
+ groupPolicyVersion: long_1.default.UZERO,
883
+ status: 0,
884
+ finalTallyResult: undefined,
885
+ votingPeriodEnd: undefined,
886
+ executorResult: 0,
887
+ messages: [],
888
+ title: "",
889
+ summary: "",
890
+ };
891
+ }
892
+ exports.Proposal = {
893
+ encode(message, writer = minimal_1.default.Writer.create()) {
894
+ if (!message.id.isZero()) {
895
+ writer.uint32(8).uint64(message.id);
896
+ }
897
+ if (message.groupPolicyAddress !== "") {
898
+ writer.uint32(18).string(message.groupPolicyAddress);
899
+ }
900
+ if (message.metadata !== "") {
901
+ writer.uint32(26).string(message.metadata);
902
+ }
903
+ for (const v of message.proposers) {
904
+ writer.uint32(34).string(v);
905
+ }
906
+ if (message.submitTime !== undefined) {
907
+ timestamp_1.Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
908
+ }
909
+ if (!message.groupVersion.isZero()) {
910
+ writer.uint32(48).uint64(message.groupVersion);
911
+ }
912
+ if (!message.groupPolicyVersion.isZero()) {
913
+ writer.uint32(56).uint64(message.groupPolicyVersion);
914
+ }
915
+ if (message.status !== 0) {
916
+ writer.uint32(64).int32(message.status);
917
+ }
918
+ if (message.finalTallyResult !== undefined) {
919
+ exports.TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim();
920
+ }
921
+ if (message.votingPeriodEnd !== undefined) {
922
+ timestamp_1.Timestamp.encode(toTimestamp(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim();
923
+ }
924
+ if (message.executorResult !== 0) {
925
+ writer.uint32(88).int32(message.executorResult);
926
+ }
927
+ for (const v of message.messages) {
928
+ any_1.Any.encode(v, writer.uint32(98).fork()).ldelim();
929
+ }
930
+ if (message.title !== "") {
931
+ writer.uint32(106).string(message.title);
932
+ }
933
+ if (message.summary !== "") {
934
+ writer.uint32(114).string(message.summary);
935
+ }
936
+ return writer;
937
+ },
938
+ decode(input, length) {
939
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
940
+ let end = length === undefined ? reader.len : reader.pos + length;
941
+ const message = createBaseProposal();
942
+ while (reader.pos < end) {
943
+ const tag = reader.uint32();
944
+ switch (tag >>> 3) {
945
+ case 1:
946
+ if (tag !== 8) {
947
+ break;
948
+ }
949
+ message.id = reader.uint64();
950
+ continue;
951
+ case 2:
952
+ if (tag !== 18) {
953
+ break;
954
+ }
955
+ message.groupPolicyAddress = reader.string();
956
+ continue;
957
+ case 3:
958
+ if (tag !== 26) {
959
+ break;
960
+ }
961
+ message.metadata = reader.string();
962
+ continue;
963
+ case 4:
964
+ if (tag !== 34) {
965
+ break;
966
+ }
967
+ message.proposers.push(reader.string());
968
+ continue;
969
+ case 5:
970
+ if (tag !== 42) {
971
+ break;
972
+ }
973
+ message.submitTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
974
+ continue;
975
+ case 6:
976
+ if (tag !== 48) {
977
+ break;
978
+ }
979
+ message.groupVersion = reader.uint64();
980
+ continue;
981
+ case 7:
982
+ if (tag !== 56) {
983
+ break;
984
+ }
985
+ message.groupPolicyVersion = reader.uint64();
986
+ continue;
987
+ case 8:
988
+ if (tag !== 64) {
989
+ break;
990
+ }
991
+ message.status = reader.int32();
992
+ continue;
993
+ case 9:
994
+ if (tag !== 74) {
995
+ break;
996
+ }
997
+ message.finalTallyResult = exports.TallyResult.decode(reader, reader.uint32());
998
+ continue;
999
+ case 10:
1000
+ if (tag !== 82) {
1001
+ break;
1002
+ }
1003
+ message.votingPeriodEnd = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1004
+ continue;
1005
+ case 11:
1006
+ if (tag !== 88) {
1007
+ break;
1008
+ }
1009
+ message.executorResult = reader.int32();
1010
+ continue;
1011
+ case 12:
1012
+ if (tag !== 98) {
1013
+ break;
1014
+ }
1015
+ message.messages.push(any_1.Any.decode(reader, reader.uint32()));
1016
+ continue;
1017
+ case 13:
1018
+ if (tag !== 106) {
1019
+ break;
1020
+ }
1021
+ message.title = reader.string();
1022
+ continue;
1023
+ case 14:
1024
+ if (tag !== 114) {
1025
+ break;
1026
+ }
1027
+ message.summary = reader.string();
1028
+ continue;
1029
+ }
1030
+ if ((tag & 7) === 4 || tag === 0) {
1031
+ break;
1032
+ }
1033
+ reader.skipType(tag & 7);
1034
+ }
1035
+ return message;
1036
+ },
1037
+ fromJSON(object) {
1038
+ return {
1039
+ id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
1040
+ groupPolicyAddress: isSet(object.groupPolicyAddress) ? String(object.groupPolicyAddress) : "",
1041
+ metadata: isSet(object.metadata) ? String(object.metadata) : "",
1042
+ proposers: Array.isArray(object?.proposers) ? object.proposers.map((e) => String(e)) : [],
1043
+ submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined,
1044
+ groupVersion: isSet(object.groupVersion) ? long_1.default.fromValue(object.groupVersion) : long_1.default.UZERO,
1045
+ groupPolicyVersion: isSet(object.groupPolicyVersion) ? long_1.default.fromValue(object.groupPolicyVersion) : long_1.default.UZERO,
1046
+ status: isSet(object.status) ? proposalStatusFromJSON(object.status) : 0,
1047
+ finalTallyResult: isSet(object.finalTallyResult) ? exports.TallyResult.fromJSON(object.finalTallyResult) : undefined,
1048
+ votingPeriodEnd: isSet(object.votingPeriodEnd) ? fromJsonTimestamp(object.votingPeriodEnd) : undefined,
1049
+ executorResult: isSet(object.executorResult) ? proposalExecutorResultFromJSON(object.executorResult) : 0,
1050
+ messages: Array.isArray(object?.messages) ? object.messages.map((e) => any_1.Any.fromJSON(e)) : [],
1051
+ title: isSet(object.title) ? String(object.title) : "",
1052
+ summary: isSet(object.summary) ? String(object.summary) : "",
1053
+ };
1054
+ },
1055
+ toJSON(message) {
1056
+ const obj = {};
1057
+ message.id !== undefined && (obj.id = (message.id || long_1.default.UZERO).toString());
1058
+ message.groupPolicyAddress !== undefined && (obj.groupPolicyAddress = message.groupPolicyAddress);
1059
+ message.metadata !== undefined && (obj.metadata = message.metadata);
1060
+ if (message.proposers) {
1061
+ obj.proposers = message.proposers.map((e) => e);
1062
+ }
1063
+ else {
1064
+ obj.proposers = [];
1065
+ }
1066
+ message.submitTime !== undefined && (obj.submitTime = message.submitTime.toISOString());
1067
+ message.groupVersion !== undefined && (obj.groupVersion = (message.groupVersion || long_1.default.UZERO).toString());
1068
+ message.groupPolicyVersion !== undefined &&
1069
+ (obj.groupPolicyVersion = (message.groupPolicyVersion || long_1.default.UZERO).toString());
1070
+ message.status !== undefined && (obj.status = proposalStatusToJSON(message.status));
1071
+ message.finalTallyResult !== undefined &&
1072
+ (obj.finalTallyResult = message.finalTallyResult ? exports.TallyResult.toJSON(message.finalTallyResult) : undefined);
1073
+ message.votingPeriodEnd !== undefined && (obj.votingPeriodEnd = message.votingPeriodEnd.toISOString());
1074
+ message.executorResult !== undefined && (obj.executorResult = proposalExecutorResultToJSON(message.executorResult));
1075
+ if (message.messages) {
1076
+ obj.messages = message.messages.map((e) => e ? any_1.Any.toJSON(e) : undefined);
1077
+ }
1078
+ else {
1079
+ obj.messages = [];
1080
+ }
1081
+ message.title !== undefined && (obj.title = message.title);
1082
+ message.summary !== undefined && (obj.summary = message.summary);
1083
+ return obj;
1084
+ },
1085
+ create(base) {
1086
+ return exports.Proposal.fromPartial(base ?? {});
1087
+ },
1088
+ fromPartial(object) {
1089
+ const message = createBaseProposal();
1090
+ message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
1091
+ message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1092
+ message.metadata = object.metadata ?? "";
1093
+ message.proposers = object.proposers?.map((e) => e) || [];
1094
+ message.submitTime = object.submitTime ?? undefined;
1095
+ message.groupVersion = (object.groupVersion !== undefined && object.groupVersion !== null)
1096
+ ? long_1.default.fromValue(object.groupVersion)
1097
+ : long_1.default.UZERO;
1098
+ message.groupPolicyVersion = (object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null)
1099
+ ? long_1.default.fromValue(object.groupPolicyVersion)
1100
+ : long_1.default.UZERO;
1101
+ message.status = object.status ?? 0;
1102
+ message.finalTallyResult = (object.finalTallyResult !== undefined && object.finalTallyResult !== null)
1103
+ ? exports.TallyResult.fromPartial(object.finalTallyResult)
1104
+ : undefined;
1105
+ message.votingPeriodEnd = object.votingPeriodEnd ?? undefined;
1106
+ message.executorResult = object.executorResult ?? 0;
1107
+ message.messages = object.messages?.map((e) => any_1.Any.fromPartial(e)) || [];
1108
+ message.title = object.title ?? "";
1109
+ message.summary = object.summary ?? "";
1110
+ return message;
1111
+ },
1112
+ };
1113
+ function createBaseTallyResult() {
1114
+ return { yesCount: "", abstainCount: "", noCount: "", noWithVetoCount: "" };
1115
+ }
1116
+ exports.TallyResult = {
1117
+ encode(message, writer = minimal_1.default.Writer.create()) {
1118
+ if (message.yesCount !== "") {
1119
+ writer.uint32(10).string(message.yesCount);
1120
+ }
1121
+ if (message.abstainCount !== "") {
1122
+ writer.uint32(18).string(message.abstainCount);
1123
+ }
1124
+ if (message.noCount !== "") {
1125
+ writer.uint32(26).string(message.noCount);
1126
+ }
1127
+ if (message.noWithVetoCount !== "") {
1128
+ writer.uint32(34).string(message.noWithVetoCount);
1129
+ }
1130
+ return writer;
1131
+ },
1132
+ decode(input, length) {
1133
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1134
+ let end = length === undefined ? reader.len : reader.pos + length;
1135
+ const message = createBaseTallyResult();
1136
+ while (reader.pos < end) {
1137
+ const tag = reader.uint32();
1138
+ switch (tag >>> 3) {
1139
+ case 1:
1140
+ if (tag !== 10) {
1141
+ break;
1142
+ }
1143
+ message.yesCount = reader.string();
1144
+ continue;
1145
+ case 2:
1146
+ if (tag !== 18) {
1147
+ break;
1148
+ }
1149
+ message.abstainCount = reader.string();
1150
+ continue;
1151
+ case 3:
1152
+ if (tag !== 26) {
1153
+ break;
1154
+ }
1155
+ message.noCount = reader.string();
1156
+ continue;
1157
+ case 4:
1158
+ if (tag !== 34) {
1159
+ break;
1160
+ }
1161
+ message.noWithVetoCount = reader.string();
1162
+ continue;
1163
+ }
1164
+ if ((tag & 7) === 4 || tag === 0) {
1165
+ break;
1166
+ }
1167
+ reader.skipType(tag & 7);
1168
+ }
1169
+ return message;
1170
+ },
1171
+ fromJSON(object) {
1172
+ return {
1173
+ yesCount: isSet(object.yesCount) ? String(object.yesCount) : "",
1174
+ abstainCount: isSet(object.abstainCount) ? String(object.abstainCount) : "",
1175
+ noCount: isSet(object.noCount) ? String(object.noCount) : "",
1176
+ noWithVetoCount: isSet(object.noWithVetoCount) ? String(object.noWithVetoCount) : "",
1177
+ };
1178
+ },
1179
+ toJSON(message) {
1180
+ const obj = {};
1181
+ message.yesCount !== undefined && (obj.yesCount = message.yesCount);
1182
+ message.abstainCount !== undefined && (obj.abstainCount = message.abstainCount);
1183
+ message.noCount !== undefined && (obj.noCount = message.noCount);
1184
+ message.noWithVetoCount !== undefined && (obj.noWithVetoCount = message.noWithVetoCount);
1185
+ return obj;
1186
+ },
1187
+ create(base) {
1188
+ return exports.TallyResult.fromPartial(base ?? {});
1189
+ },
1190
+ fromPartial(object) {
1191
+ const message = createBaseTallyResult();
1192
+ message.yesCount = object.yesCount ?? "";
1193
+ message.abstainCount = object.abstainCount ?? "";
1194
+ message.noCount = object.noCount ?? "";
1195
+ message.noWithVetoCount = object.noWithVetoCount ?? "";
1196
+ return message;
1197
+ },
1198
+ };
1199
+ function createBaseVote() {
1200
+ return { proposalId: long_1.default.UZERO, voter: "", option: 0, metadata: "", submitTime: undefined };
1201
+ }
1202
+ exports.Vote = {
1203
+ encode(message, writer = minimal_1.default.Writer.create()) {
1204
+ if (!message.proposalId.isZero()) {
1205
+ writer.uint32(8).uint64(message.proposalId);
1206
+ }
1207
+ if (message.voter !== "") {
1208
+ writer.uint32(18).string(message.voter);
1209
+ }
1210
+ if (message.option !== 0) {
1211
+ writer.uint32(24).int32(message.option);
1212
+ }
1213
+ if (message.metadata !== "") {
1214
+ writer.uint32(34).string(message.metadata);
1215
+ }
1216
+ if (message.submitTime !== undefined) {
1217
+ timestamp_1.Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
1218
+ }
1219
+ return writer;
1220
+ },
1221
+ decode(input, length) {
1222
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1223
+ let end = length === undefined ? reader.len : reader.pos + length;
1224
+ const message = createBaseVote();
1225
+ while (reader.pos < end) {
1226
+ const tag = reader.uint32();
1227
+ switch (tag >>> 3) {
1228
+ case 1:
1229
+ if (tag !== 8) {
1230
+ break;
1231
+ }
1232
+ message.proposalId = reader.uint64();
1233
+ continue;
1234
+ case 2:
1235
+ if (tag !== 18) {
1236
+ break;
1237
+ }
1238
+ message.voter = reader.string();
1239
+ continue;
1240
+ case 3:
1241
+ if (tag !== 24) {
1242
+ break;
1243
+ }
1244
+ message.option = reader.int32();
1245
+ continue;
1246
+ case 4:
1247
+ if (tag !== 34) {
1248
+ break;
1249
+ }
1250
+ message.metadata = reader.string();
1251
+ continue;
1252
+ case 5:
1253
+ if (tag !== 42) {
1254
+ break;
1255
+ }
1256
+ message.submitTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1257
+ continue;
1258
+ }
1259
+ if ((tag & 7) === 4 || tag === 0) {
1260
+ break;
1261
+ }
1262
+ reader.skipType(tag & 7);
1263
+ }
1264
+ return message;
1265
+ },
1266
+ fromJSON(object) {
1267
+ return {
1268
+ proposalId: isSet(object.proposalId) ? long_1.default.fromValue(object.proposalId) : long_1.default.UZERO,
1269
+ voter: isSet(object.voter) ? String(object.voter) : "",
1270
+ option: isSet(object.option) ? voteOptionFromJSON(object.option) : 0,
1271
+ metadata: isSet(object.metadata) ? String(object.metadata) : "",
1272
+ submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined,
1273
+ };
1274
+ },
1275
+ toJSON(message) {
1276
+ const obj = {};
1277
+ message.proposalId !== undefined && (obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
1278
+ message.voter !== undefined && (obj.voter = message.voter);
1279
+ message.option !== undefined && (obj.option = voteOptionToJSON(message.option));
1280
+ message.metadata !== undefined && (obj.metadata = message.metadata);
1281
+ message.submitTime !== undefined && (obj.submitTime = message.submitTime.toISOString());
1282
+ return obj;
1283
+ },
1284
+ create(base) {
1285
+ return exports.Vote.fromPartial(base ?? {});
1286
+ },
1287
+ fromPartial(object) {
1288
+ const message = createBaseVote();
1289
+ message.proposalId = (object.proposalId !== undefined && object.proposalId !== null)
1290
+ ? long_1.default.fromValue(object.proposalId)
1291
+ : long_1.default.UZERO;
1292
+ message.voter = object.voter ?? "";
1293
+ message.option = object.option ?? 0;
1294
+ message.metadata = object.metadata ?? "";
1295
+ message.submitTime = object.submitTime ?? undefined;
1296
+ return message;
1297
+ },
1298
+ };
1299
+ function toTimestamp(date) {
1300
+ const seconds = numberToLong(date.getTime() / 1000);
1301
+ const nanos = (date.getTime() % 1000) * 1000000;
1302
+ return { seconds, nanos };
1303
+ }
1304
+ function fromTimestamp(t) {
1305
+ let millis = (t.seconds.toNumber() || 0) * 1000;
1306
+ millis += (t.nanos || 0) / 1000000;
1307
+ return new Date(millis);
1308
+ }
1309
+ function fromJsonTimestamp(o) {
1310
+ if (o instanceof Date) {
1311
+ return o;
1312
+ }
1313
+ else if (typeof o === "string") {
1314
+ return new Date(o);
1315
+ }
1316
+ else {
1317
+ return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
1318
+ }
1319
+ }
1320
+ function numberToLong(number) {
1321
+ return long_1.default.fromNumber(number);
1322
+ }
1323
+ if (minimal_1.default.util.Long !== long_1.default) {
1324
+ minimal_1.default.util.Long = long_1.default;
1325
+ minimal_1.default.configure();
1326
+ }
1327
+ function isSet(value) {
1328
+ return value !== null && value !== undefined;
1329
+ }