@zoguxprotocol/proto 0.1.0

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 (422) hide show
  1. package/LICENSE +800 -0
  2. package/README.md +14 -0
  3. package/package.json +48 -0
  4. package/src/codegen/amino/amino.ts +1 -0
  5. package/src/codegen/amino/bundle.ts +3 -0
  6. package/src/codegen/cosmos/app/runtime/v1alpha1/module.ts +277 -0
  7. package/src/codegen/cosmos/app/v1alpha1/config.ts +265 -0
  8. package/src/codegen/cosmos/app/v1alpha1/module.ts +274 -0
  9. package/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts +35 -0
  10. package/src/codegen/cosmos/app/v1alpha1/query.ts +99 -0
  11. package/src/codegen/cosmos/auth/module/v1/module.ts +159 -0
  12. package/src/codegen/cosmos/auth/v1beta1/auth.ts +365 -0
  13. package/src/codegen/cosmos/auth/v1beta1/genesis.ts +74 -0
  14. package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +130 -0
  15. package/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts +194 -0
  16. package/src/codegen/cosmos/auth/v1beta1/query.ts +1221 -0
  17. package/src/codegen/cosmos/auth/v1beta1/tx.rpc.msg.ts +29 -0
  18. package/src/codegen/cosmos/auth/v1beta1/tx.ts +135 -0
  19. package/src/codegen/cosmos/authz/module/v1/module.ts +42 -0
  20. package/src/codegen/cosmos/authz/v1beta1/authz.ts +298 -0
  21. package/src/codegen/cosmos/authz/v1beta1/event.ts +170 -0
  22. package/src/codegen/cosmos/authz/v1beta1/genesis.ts +58 -0
  23. package/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +79 -0
  24. package/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts +71 -0
  25. package/src/codegen/cosmos/authz/v1beta1/query.ts +447 -0
  26. package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +56 -0
  27. package/src/codegen/cosmos/authz/v1beta1/tx.ts +390 -0
  28. package/src/codegen/cosmos/bank/module/v1/module.ts +76 -0
  29. package/src/codegen/cosmos/bank/v1beta1/authz.ts +87 -0
  30. package/src/codegen/cosmos/bank/v1beta1/bank.ts +630 -0
  31. package/src/codegen/cosmos/bank/v1beta1/genesis.ts +199 -0
  32. package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +237 -0
  33. package/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts +243 -0
  34. package/src/codegen/cosmos/bank/v1beta1/query.ts +1727 -0
  35. package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +66 -0
  36. package/src/codegen/cosmos/bank/v1beta1/tx.ts +519 -0
  37. package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1147 -0
  38. package/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts +30 -0
  39. package/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts +49 -0
  40. package/src/codegen/cosmos/base/node/v1beta1/query.ts +276 -0
  41. package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +243 -0
  42. package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +221 -0
  43. package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1630 -0
  44. package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +113 -0
  45. package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +127 -0
  46. package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1486 -0
  47. package/src/codegen/cosmos/base/tendermint/v1beta1/types.ts +335 -0
  48. package/src/codegen/cosmos/base/v1beta1/coin.ts +278 -0
  49. package/src/codegen/cosmos/bundle.ts +578 -0
  50. package/src/codegen/cosmos/circuit/module/v1/module.ts +58 -0
  51. package/src/codegen/cosmos/circuit/v1/query.lcd.ts +49 -0
  52. package/src/codegen/cosmos/circuit/v1/query.rpc.Query.ts +65 -0
  53. package/src/codegen/cosmos/circuit/v1/query.ts +334 -0
  54. package/src/codegen/cosmos/circuit/v1/tx.rpc.msg.ts +50 -0
  55. package/src/codegen/cosmos/circuit/v1/tx.ts +409 -0
  56. package/src/codegen/cosmos/circuit/v1/types.ts +290 -0
  57. package/src/codegen/cosmos/consensus/module/v1/module.ts +58 -0
  58. package/src/codegen/cosmos/consensus/v1/query.lcd.ts +22 -0
  59. package/src/codegen/cosmos/consensus/v1/query.rpc.Query.ts +35 -0
  60. package/src/codegen/cosmos/consensus/v1/query.ts +103 -0
  61. package/src/codegen/cosmos/consensus/v1/tx.rpc.msg.ts +29 -0
  62. package/src/codegen/cosmos/consensus/v1/tx.ts +163 -0
  63. package/src/codegen/cosmos/crisis/module/v1/module.ts +72 -0
  64. package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +62 -0
  65. package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +39 -0
  66. package/src/codegen/cosmos/crisis/v1beta1/tx.ts +255 -0
  67. package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
  68. package/src/codegen/cosmos/crypto/hd/v1/hd.ts +117 -0
  69. package/src/codegen/cosmos/crypto/keyring/v1/record.ts +326 -0
  70. package/src/codegen/cosmos/crypto/multisig/keys.ts +78 -0
  71. package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +142 -0
  72. package/src/codegen/cosmos/crypto/secp256k1/keys.ts +124 -0
  73. package/src/codegen/cosmos/crypto/secp256r1/keys.ts +117 -0
  74. package/src/codegen/cosmos/distribution/module/v1/module.ts +71 -0
  75. package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +977 -0
  76. package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +752 -0
  77. package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +112 -0
  78. package/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts +164 -0
  79. package/src/codegen/cosmos/distribution/v1beta1/query.ts +1300 -0
  80. package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +113 -0
  81. package/src/codegen/cosmos/distribution/v1beta1/tx.ts +907 -0
  82. package/src/codegen/cosmos/evidence/module/v1/module.ts +42 -0
  83. package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
  84. package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +59 -0
  85. package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +49 -0
  86. package/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts +51 -0
  87. package/src/codegen/cosmos/evidence/v1beta1/query.ts +278 -0
  88. package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
  89. package/src/codegen/cosmos/evidence/v1beta1/tx.ts +135 -0
  90. package/src/codegen/cosmos/feegrant/module/v1/module.ts +42 -0
  91. package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +368 -0
  92. package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +58 -0
  93. package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +57 -0
  94. package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts +67 -0
  95. package/src/codegen/cosmos/feegrant/v1beta1/query.ts +424 -0
  96. package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +54 -0
  97. package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +355 -0
  98. package/src/codegen/cosmos/genutil/module/v1/module.ts +42 -0
  99. package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +58 -0
  100. package/src/codegen/cosmos/gov/module/v1/module.ts +75 -0
  101. package/src/codegen/cosmos/gov/v1/genesis.ts +203 -0
  102. package/src/codegen/cosmos/gov/v1/gov.ts +1353 -0
  103. package/src/codegen/cosmos/gov/v1/query.lcd.ts +123 -0
  104. package/src/codegen/cosmos/gov/v1/query.rpc.Query.ts +147 -0
  105. package/src/codegen/cosmos/gov/v1/query.ts +1210 -0
  106. package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +96 -0
  107. package/src/codegen/cosmos/gov/v1/tx.ts +1040 -0
  108. package/src/codegen/cosmos/gov/v1beta1/genesis.ts +143 -0
  109. package/src/codegen/cosmos/gov/v1beta1/gov.ts +1020 -0
  110. package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
  111. package/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts +133 -0
  112. package/src/codegen/cosmos/gov/v1beta1/query.ts +1076 -0
  113. package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +58 -0
  114. package/src/codegen/cosmos/gov/v1beta1/tx.ts +539 -0
  115. package/src/codegen/cosmos/group/module/v1/module.ts +79 -0
  116. package/src/codegen/cosmos/group/v1/events.ts +633 -0
  117. package/src/codegen/cosmos/group/v1/genesis.ts +166 -0
  118. package/src/codegen/cosmos/group/v1/query.lcd.ts +207 -0
  119. package/src/codegen/cosmos/group/v1/query.rpc.Query.ts +229 -0
  120. package/src/codegen/cosmos/group/v1/query.ts +1840 -0
  121. package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +154 -0
  122. package/src/codegen/cosmos/group/v1/tx.ts +2004 -0
  123. package/src/codegen/cosmos/group/v1/types.ts +1528 -0
  124. package/src/codegen/cosmos/lcd.ts +114 -0
  125. package/src/codegen/cosmos/mint/module/v1/module.ts +71 -0
  126. package/src/codegen/cosmos/mint/v1beta1/genesis.ts +73 -0
  127. package/src/codegen/cosmos/mint/v1beta1/mint.ts +198 -0
  128. package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +38 -0
  129. package/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts +63 -0
  130. package/src/codegen/cosmos/mint/v1beta1/query.ts +309 -0
  131. package/src/codegen/cosmos/mint/v1beta1/tx.rpc.msg.ts +29 -0
  132. package/src/codegen/cosmos/mint/v1beta1/tx.ts +135 -0
  133. package/src/codegen/cosmos/msg/textual/v1/textual.ts +1 -0
  134. package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
  135. package/src/codegen/cosmos/nft/module/v1/module.ts +42 -0
  136. package/src/codegen/cosmos/nft/v1beta1/event.ts +268 -0
  137. package/src/codegen/cosmos/nft/v1beta1/genesis.ts +143 -0
  138. package/src/codegen/cosmos/nft/v1beta1/nft.ts +255 -0
  139. package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +98 -0
  140. package/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts +124 -0
  141. package/src/codegen/cosmos/nft/v1beta1/query.ts +886 -0
  142. package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +24 -0
  143. package/src/codegen/cosmos/nft/v1beta1/tx.ts +140 -0
  144. package/src/codegen/cosmos/orm/module/v1alpha1/module.ts +50 -0
  145. package/src/codegen/cosmos/orm/query/v1alpha1/query.rpc.Query.ts +49 -0
  146. package/src/codegen/cosmos/orm/query/v1alpha1/query.ts +640 -0
  147. package/src/codegen/cosmos/orm/v1/orm.ts +356 -0
  148. package/src/codegen/cosmos/orm/v1alpha1/schema.ts +232 -0
  149. package/src/codegen/cosmos/params/module/v1/module.ts +42 -0
  150. package/src/codegen/cosmos/params/v1beta1/params.ts +166 -0
  151. package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +45 -0
  152. package/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts +56 -0
  153. package/src/codegen/cosmos/params/v1beta1/query.ts +321 -0
  154. package/src/codegen/cosmos/query/v1/query.ts +1 -0
  155. package/src/codegen/cosmos/reflection/v1/reflection.ts +99 -0
  156. package/src/codegen/cosmos/rpc.query.ts +82 -0
  157. package/src/codegen/cosmos/rpc.tx.ts +61 -0
  158. package/src/codegen/cosmos/slashing/module/v1/module.ts +58 -0
  159. package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +309 -0
  160. package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +49 -0
  161. package/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts +65 -0
  162. package/src/codegen/cosmos/slashing/v1beta1/query.ts +358 -0
  163. package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +249 -0
  164. package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +43 -0
  165. package/src/codegen/cosmos/slashing/v1beta1/tx.ts +230 -0
  166. package/src/codegen/cosmos/staking/module/v1/module.ts +104 -0
  167. package/src/codegen/cosmos/staking/v1beta1/authz.ts +244 -0
  168. package/src/codegen/cosmos/staking/v1beta1/genesis.ts +233 -0
  169. package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +220 -0
  170. package/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts +260 -0
  171. package/src/codegen/cosmos/staking/v1beta1/query.ts +1910 -0
  172. package/src/codegen/cosmos/staking/v1beta1/staking.ts +2075 -0
  173. package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +102 -0
  174. package/src/codegen/cosmos/staking/v1beta1/tx.ts +1039 -0
  175. package/src/codegen/cosmos/store/internal/kv/v1beta1/kv.ts +124 -0
  176. package/src/codegen/cosmos/store/snapshots/v1/snapshot.ts +564 -0
  177. package/src/codegen/cosmos/store/streaming/abci/grpc.ts +231 -0
  178. package/src/codegen/cosmos/store/v1beta1/commit_info.ts +234 -0
  179. package/src/codegen/cosmos/store/v1beta1/listening.ts +196 -0
  180. package/src/codegen/cosmos/tx/config/v1/config.ts +78 -0
  181. package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +487 -0
  182. package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +77 -0
  183. package/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts +167 -0
  184. package/src/codegen/cosmos/tx/v1beta1/service.ts +1536 -0
  185. package/src/codegen/cosmos/tx/v1beta1/tx.ts +1331 -0
  186. package/src/codegen/cosmos/upgrade/module/v1/module.ts +58 -0
  187. package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +71 -0
  188. package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts +106 -0
  189. package/src/codegen/cosmos/upgrade/v1beta1/query.ts +617 -0
  190. package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +43 -0
  191. package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +241 -0
  192. package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +403 -0
  193. package/src/codegen/cosmos/vesting/module/v1/module.ts +42 -0
  194. package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +57 -0
  195. package/src/codegen/cosmos/vesting/v1beta1/tx.ts +445 -0
  196. package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +473 -0
  197. package/src/codegen/cosmos_proto/bundle.ts +3 -0
  198. package/src/codegen/cosmos_proto/cosmos.ts +255 -0
  199. package/src/codegen/gogoproto/bundle.ts +3 -0
  200. package/src/codegen/gogoproto/gogo.ts +1 -0
  201. package/src/codegen/google/api/annotations.ts +1 -0
  202. package/src/codegen/google/api/http.ts +920 -0
  203. package/src/codegen/google/bundle.ts +16 -0
  204. package/src/codegen/google/protobuf/any.ts +260 -0
  205. package/src/codegen/google/protobuf/descriptor.ts +3697 -0
  206. package/src/codegen/google/protobuf/duration.ts +201 -0
  207. package/src/codegen/google/protobuf/timestamp.ts +247 -0
  208. package/src/codegen/helpers.ts +242 -0
  209. package/src/codegen/index.ts +13 -0
  210. package/src/codegen/tendermint/abci/types.ts +4487 -0
  211. package/src/codegen/tendermint/bundle.ts +32 -0
  212. package/src/codegen/tendermint/crypto/keys.ts +69 -0
  213. package/src/codegen/tendermint/crypto/proof.ts +372 -0
  214. package/src/codegen/tendermint/libs/bits/types.ts +77 -0
  215. package/src/codegen/tendermint/p2p/types.ts +350 -0
  216. package/src/codegen/tendermint/types/block.ts +91 -0
  217. package/src/codegen/tendermint/types/evidence.ts +325 -0
  218. package/src/codegen/tendermint/types/params.ts +544 -0
  219. package/src/codegen/tendermint/types/types.ts +1558 -0
  220. package/src/codegen/tendermint/types/validator.ts +286 -0
  221. package/src/codegen/tendermint/version/types.ts +152 -0
  222. package/src/codegen/zogux/accountplus/accountplus.ts +152 -0
  223. package/src/codegen/zogux/accountplus/genesis.ts +186 -0
  224. package/src/codegen/zogux/accountplus/models.ts +103 -0
  225. package/src/codegen/zogux/accountplus/params.ts +62 -0
  226. package/src/codegen/zogux/accountplus/query.lcd.ts +46 -0
  227. package/src/codegen/zogux/accountplus/query.rpc.Query.ts +77 -0
  228. package/src/codegen/zogux/accountplus/query.ts +455 -0
  229. package/src/codegen/zogux/accountplus/tx.rpc.msg.ts +47 -0
  230. package/src/codegen/zogux/accountplus/tx.ts +460 -0
  231. package/src/codegen/zogux/affiliates/affiliates.ts +425 -0
  232. package/src/codegen/zogux/affiliates/genesis.ts +73 -0
  233. package/src/codegen/zogux/affiliates/query.lcd.ts +62 -0
  234. package/src/codegen/zogux/affiliates/query.rpc.Query.ts +105 -0
  235. package/src/codegen/zogux/affiliates/query.ts +747 -0
  236. package/src/codegen/zogux/affiliates/tx.rpc.msg.ts +64 -0
  237. package/src/codegen/zogux/affiliates/tx.ts +553 -0
  238. package/src/codegen/zogux/assets/asset.ts +167 -0
  239. package/src/codegen/zogux/assets/genesis.ts +58 -0
  240. package/src/codegen/zogux/assets/query.lcd.ts +41 -0
  241. package/src/codegen/zogux/assets/query.rpc.Query.ts +51 -0
  242. package/src/codegen/zogux/assets/query.ts +238 -0
  243. package/src/codegen/zogux/assets/tx.ts +1 -0
  244. package/src/codegen/zogux/blocktime/blocktime.ts +203 -0
  245. package/src/codegen/zogux/blocktime/genesis.ts +58 -0
  246. package/src/codegen/zogux/blocktime/params.ts +125 -0
  247. package/src/codegen/zogux/blocktime/query.lcd.ts +38 -0
  248. package/src/codegen/zogux/blocktime/query.rpc.Query.ts +77 -0
  249. package/src/codegen/zogux/blocktime/query.ts +428 -0
  250. package/src/codegen/zogux/blocktime/tx.rpc.msg.ts +34 -0
  251. package/src/codegen/zogux/blocktime/tx.ts +233 -0
  252. package/src/codegen/zogux/bridge/bridge_event.ts +171 -0
  253. package/src/codegen/zogux/bridge/bridge_event_info.ts +81 -0
  254. package/src/codegen/zogux/bridge/events.ts +434 -0
  255. package/src/codegen/zogux/bridge/genesis.ts +131 -0
  256. package/src/codegen/zogux/bridge/params.ts +404 -0
  257. package/src/codegen/zogux/bridge/query.lcd.ts +162 -0
  258. package/src/codegen/zogux/bridge/query.rpc.Query.ts +249 -0
  259. package/src/codegen/zogux/bridge/query.ts +1342 -0
  260. package/src/codegen/zogux/bridge/token.ts +1030 -0
  261. package/src/codegen/zogux/bridge/tss.ts +883 -0
  262. package/src/codegen/zogux/bridge/tx.rpc.msg.ts +159 -0
  263. package/src/codegen/zogux/bridge/tx.ts +542 -0
  264. package/src/codegen/zogux/bridge/withdrawal.ts +306 -0
  265. package/src/codegen/zogux/bundle.ts +441 -0
  266. package/src/codegen/zogux/clob/block_rate_limit_config.ts +216 -0
  267. package/src/codegen/zogux/clob/clob_pair.ts +396 -0
  268. package/src/codegen/zogux/clob/equity_tier_limit_config.ts +154 -0
  269. package/src/codegen/zogux/clob/finalize_block.ts +65 -0
  270. package/src/codegen/zogux/clob/genesis.ts +97 -0
  271. package/src/codegen/zogux/clob/liquidations.ts +288 -0
  272. package/src/codegen/zogux/clob/liquidations_config.ts +358 -0
  273. package/src/codegen/zogux/clob/matches.ts +552 -0
  274. package/src/codegen/zogux/clob/mev.ts +525 -0
  275. package/src/codegen/zogux/clob/operation.ts +200 -0
  276. package/src/codegen/zogux/clob/order.ts +1538 -0
  277. package/src/codegen/zogux/clob/order_removals.ts +228 -0
  278. package/src/codegen/zogux/clob/process_proposer_matches_events.ts +176 -0
  279. package/src/codegen/zogux/clob/query.lcd.ts +81 -0
  280. package/src/codegen/zogux/clob/query.rpc.Query.ts +166 -0
  281. package/src/codegen/zogux/clob/query.ts +1945 -0
  282. package/src/codegen/zogux/clob/streaming.ts +96 -0
  283. package/src/codegen/zogux/clob/tx.rpc.msg.ts +131 -0
  284. package/src/codegen/zogux/clob/tx.ts +1472 -0
  285. package/src/codegen/zogux/daemons/bridge/bridge.ts +104 -0
  286. package/src/codegen/zogux/daemons/liquidation/liquidation.ts +156 -0
  287. package/src/codegen/zogux/daemons/pricefeed/price_feed.ts +244 -0
  288. package/src/codegen/zogux/delaymsg/block_message_ids.ts +79 -0
  289. package/src/codegen/zogux/delaymsg/delayed_message.ts +87 -0
  290. package/src/codegen/zogux/delaymsg/genesis.ts +73 -0
  291. package/src/codegen/zogux/delaymsg/query.lcd.ts +38 -0
  292. package/src/codegen/zogux/delaymsg/query.rpc.Query.ts +63 -0
  293. package/src/codegen/zogux/delaymsg/query.ts +364 -0
  294. package/src/codegen/zogux/delaymsg/tx.rpc.msg.ts +27 -0
  295. package/src/codegen/zogux/delaymsg/tx.ts +142 -0
  296. package/src/codegen/zogux/epochs/epoch_info.ts +167 -0
  297. package/src/codegen/zogux/epochs/genesis.ts +58 -0
  298. package/src/codegen/zogux/epochs/query.lcd.ts +41 -0
  299. package/src/codegen/zogux/epochs/query.rpc.Query.ts +51 -0
  300. package/src/codegen/zogux/epochs/query.ts +237 -0
  301. package/src/codegen/zogux/feetiers/genesis.ts +74 -0
  302. package/src/codegen/zogux/feetiers/params.ts +184 -0
  303. package/src/codegen/zogux/feetiers/per_market_fee_discount.ts +111 -0
  304. package/src/codegen/zogux/feetiers/query.lcd.ts +71 -0
  305. package/src/codegen/zogux/feetiers/query.rpc.Query.ts +108 -0
  306. package/src/codegen/zogux/feetiers/query.ts +715 -0
  307. package/src/codegen/zogux/feetiers/staking_tier.ts +151 -0
  308. package/src/codegen/zogux/feetiers/tx.rpc.msg.ts +47 -0
  309. package/src/codegen/zogux/feetiers/tx.ts +351 -0
  310. package/src/codegen/zogux/govplus/genesis.ts +42 -0
  311. package/src/codegen/zogux/govplus/query.rpc.Query.ts +18 -0
  312. package/src/codegen/zogux/govplus/query.ts +1 -0
  313. package/src/codegen/zogux/govplus/tx.rpc.msg.ts +27 -0
  314. package/src/codegen/zogux/govplus/tx.ts +173 -0
  315. package/src/codegen/zogux/indexer/events/events.ts +4292 -0
  316. package/src/codegen/zogux/indexer/indexer_manager/event.ts +428 -0
  317. package/src/codegen/zogux/indexer/off_chain_updates/off_chain_updates.ts +594 -0
  318. package/src/codegen/zogux/indexer/protocol/v1/clob.ts +887 -0
  319. package/src/codegen/zogux/indexer/protocol/v1/perpetual.ts +52 -0
  320. package/src/codegen/zogux/indexer/protocol/v1/subaccount.ts +281 -0
  321. package/src/codegen/zogux/indexer/protocol/v1/vault.ts +69 -0
  322. package/src/codegen/zogux/indexer/redis/redis_order.ts +190 -0
  323. package/src/codegen/zogux/indexer/shared/removal_reason.ts +216 -0
  324. package/src/codegen/zogux/indexer/socks/messages.ts +656 -0
  325. package/src/codegen/zogux/lcd.ts +176 -0
  326. package/src/codegen/zogux/listing/genesis.ts +76 -0
  327. package/src/codegen/zogux/listing/params.ts +89 -0
  328. package/src/codegen/zogux/listing/query.lcd.ts +30 -0
  329. package/src/codegen/zogux/listing/query.rpc.Query.ts +49 -0
  330. package/src/codegen/zogux/listing/query.ts +194 -0
  331. package/src/codegen/zogux/listing/tx.rpc.msg.ts +57 -0
  332. package/src/codegen/zogux/listing/tx.ts +483 -0
  333. package/src/codegen/zogux/perpetuals/genesis.ts +83 -0
  334. package/src/codegen/zogux/perpetuals/params.ts +97 -0
  335. package/src/codegen/zogux/perpetuals/perpetual.ts +660 -0
  336. package/src/codegen/zogux/perpetuals/query.lcd.ts +91 -0
  337. package/src/codegen/zogux/perpetuals/query.rpc.Query.ts +123 -0
  338. package/src/codegen/zogux/perpetuals/query.ts +765 -0
  339. package/src/codegen/zogux/perpetuals/tx.rpc.msg.ts +70 -0
  340. package/src/codegen/zogux/perpetuals/tx.ts +649 -0
  341. package/src/codegen/zogux/prices/genesis.ts +71 -0
  342. package/src/codegen/zogux/prices/market_param.ts +162 -0
  343. package/src/codegen/zogux/prices/market_price.ts +95 -0
  344. package/src/codegen/zogux/prices/query.lcd.ts +75 -0
  345. package/src/codegen/zogux/prices/query.rpc.Query.ts +95 -0
  346. package/src/codegen/zogux/prices/query.ts +630 -0
  347. package/src/codegen/zogux/prices/streaming.ts +87 -0
  348. package/src/codegen/zogux/prices/tx.rpc.msg.ts +50 -0
  349. package/src/codegen/zogux/prices/tx.ts +405 -0
  350. package/src/codegen/zogux/ratelimit/capacity.ts +147 -0
  351. package/src/codegen/zogux/ratelimit/genesis.ts +59 -0
  352. package/src/codegen/zogux/ratelimit/limit_params.ts +174 -0
  353. package/src/codegen/zogux/ratelimit/pending_send_packet.ts +75 -0
  354. package/src/codegen/zogux/ratelimit/query.lcd.ts +46 -0
  355. package/src/codegen/zogux/ratelimit/query.rpc.Query.ts +63 -0
  356. package/src/codegen/zogux/ratelimit/query.ts +333 -0
  357. package/src/codegen/zogux/ratelimit/tx.rpc.msg.ts +24 -0
  358. package/src/codegen/zogux/ratelimit/tx.ts +112 -0
  359. package/src/codegen/zogux/revshare/genesis.ts +58 -0
  360. package/src/codegen/zogux/revshare/params.ts +93 -0
  361. package/src/codegen/zogux/revshare/query.lcd.ts +47 -0
  362. package/src/codegen/zogux/revshare/query.rpc.Query.ts +80 -0
  363. package/src/codegen/zogux/revshare/query.ts +415 -0
  364. package/src/codegen/zogux/revshare/revshare.ts +266 -0
  365. package/src/codegen/zogux/revshare/tx.rpc.msg.ts +60 -0
  366. package/src/codegen/zogux/revshare/tx.ts +462 -0
  367. package/src/codegen/zogux/rewards/genesis.ts +59 -0
  368. package/src/codegen/zogux/rewards/params.ts +122 -0
  369. package/src/codegen/zogux/rewards/query.lcd.ts +22 -0
  370. package/src/codegen/zogux/rewards/query.rpc.Query.ts +35 -0
  371. package/src/codegen/zogux/rewards/query.ts +98 -0
  372. package/src/codegen/zogux/rewards/reward_share.ts +75 -0
  373. package/src/codegen/zogux/rewards/tx.rpc.msg.ts +24 -0
  374. package/src/codegen/zogux/rewards/tx.ts +112 -0
  375. package/src/codegen/zogux/rpc.query.ts +106 -0
  376. package/src/codegen/zogux/rpc.tx.ts +82 -0
  377. package/src/codegen/zogux/sending/genesis.ts +42 -0
  378. package/src/codegen/zogux/sending/query.rpc.Query.ts +18 -0
  379. package/src/codegen/zogux/sending/query.ts +1 -0
  380. package/src/codegen/zogux/sending/transfer.ts +420 -0
  381. package/src/codegen/zogux/sending/tx.rpc.msg.ts +64 -0
  382. package/src/codegen/zogux/sending/tx.ts +237 -0
  383. package/src/codegen/zogux/stats/genesis.ts +59 -0
  384. package/src/codegen/zogux/stats/params.ts +59 -0
  385. package/src/codegen/zogux/stats/query.lcd.ts +54 -0
  386. package/src/codegen/zogux/stats/query.rpc.Query.ts +77 -0
  387. package/src/codegen/zogux/stats/query.ts +412 -0
  388. package/src/codegen/zogux/stats/stats.ts +593 -0
  389. package/src/codegen/zogux/stats/tx.rpc.msg.ts +24 -0
  390. package/src/codegen/zogux/stats/tx.ts +112 -0
  391. package/src/codegen/zogux/subaccounts/asset_position.ts +96 -0
  392. package/src/codegen/zogux/subaccounts/genesis.ts +58 -0
  393. package/src/codegen/zogux/subaccounts/leverage.ts +134 -0
  394. package/src/codegen/zogux/subaccounts/perpetual_position.ts +109 -0
  395. package/src/codegen/zogux/subaccounts/query.lcd.ts +58 -0
  396. package/src/codegen/zogux/subaccounts/query.rpc.Query.ts +82 -0
  397. package/src/codegen/zogux/subaccounts/query.ts +527 -0
  398. package/src/codegen/zogux/subaccounts/streaming.ts +266 -0
  399. package/src/codegen/zogux/subaccounts/subaccount.ts +190 -0
  400. package/src/codegen/zogux/token/genesis.ts +73 -0
  401. package/src/codegen/zogux/token/params.ts +196 -0
  402. package/src/codegen/zogux/token/query.lcd.ts +38 -0
  403. package/src/codegen/zogux/token/query.rpc.Query.ts +63 -0
  404. package/src/codegen/zogux/token/query.ts +342 -0
  405. package/src/codegen/zogux/token/tx.rpc.msg.ts +84 -0
  406. package/src/codegen/zogux/token/tx.ts +828 -0
  407. package/src/codegen/zogux/vault/genesis.ts +433 -0
  408. package/src/codegen/zogux/vault/params.ts +523 -0
  409. package/src/codegen/zogux/vault/query.lcd.ts +91 -0
  410. package/src/codegen/zogux/vault/query.rpc.Query.ts +137 -0
  411. package/src/codegen/zogux/vault/query.ts +1162 -0
  412. package/src/codegen/zogux/vault/share.ts +271 -0
  413. package/src/codegen/zogux/vault/tx.rpc.msg.ts +97 -0
  414. package/src/codegen/zogux/vault/tx.ts +1189 -0
  415. package/src/codegen/zogux/vault/vault.ts +185 -0
  416. package/src/codegen/zogux/vest/genesis.ts +59 -0
  417. package/src/codegen/zogux/vest/query.lcd.ts +30 -0
  418. package/src/codegen/zogux/vest/query.rpc.Query.ts +35 -0
  419. package/src/codegen/zogux/vest/query.ts +114 -0
  420. package/src/codegen/zogux/vest/tx.rpc.msg.ts +34 -0
  421. package/src/codegen/zogux/vest/tx.ts +223 -0
  422. package/src/codegen/zogux/vest/vest_entry.ts +127 -0
@@ -0,0 +1,1331 @@
1
+ import { Any, AnySDKType } from "../../../google/protobuf/any";
2
+ import { SignMode } from "../signing/v1beta1/signing";
3
+ import { CompactBitArray, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig";
4
+ import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
5
+ import * as _m0 from "protobufjs/minimal";
6
+ import { DeepPartial, Long } from "../../../helpers";
7
+ /** Tx is the standard type used for broadcasting transactions. */
8
+
9
+ export interface Tx {
10
+ /** body is the processable content of the transaction */
11
+ body?: TxBody;
12
+ /**
13
+ * auth_info is the authorization related content of the transaction,
14
+ * specifically signers, signer modes and fee
15
+ */
16
+
17
+ authInfo?: AuthInfo;
18
+ /**
19
+ * signatures is a list of signatures that matches the length and order of
20
+ * AuthInfo's signer_infos to allow connecting signature meta information like
21
+ * public key and signing mode by position.
22
+ */
23
+
24
+ signatures: Uint8Array[];
25
+ }
26
+ /** Tx is the standard type used for broadcasting transactions. */
27
+
28
+ export interface TxSDKType {
29
+ body?: TxBodySDKType;
30
+ auth_info?: AuthInfoSDKType;
31
+ signatures: Uint8Array[];
32
+ }
33
+ /**
34
+ * TxRaw is a variant of Tx that pins the signer's exact binary representation
35
+ * of body and auth_info. This is used for signing, broadcasting and
36
+ * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
37
+ * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
38
+ * as the transaction ID.
39
+ */
40
+
41
+ export interface TxRaw {
42
+ /**
43
+ * body_bytes is a protobuf serialization of a TxBody that matches the
44
+ * representation in SignDoc.
45
+ */
46
+ bodyBytes: Uint8Array;
47
+ /**
48
+ * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
49
+ * representation in SignDoc.
50
+ */
51
+
52
+ authInfoBytes: Uint8Array;
53
+ /**
54
+ * signatures is a list of signatures that matches the length and order of
55
+ * AuthInfo's signer_infos to allow connecting signature meta information like
56
+ * public key and signing mode by position.
57
+ */
58
+
59
+ signatures: Uint8Array[];
60
+ }
61
+ /**
62
+ * TxRaw is a variant of Tx that pins the signer's exact binary representation
63
+ * of body and auth_info. This is used for signing, broadcasting and
64
+ * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
65
+ * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
66
+ * as the transaction ID.
67
+ */
68
+
69
+ export interface TxRawSDKType {
70
+ body_bytes: Uint8Array;
71
+ auth_info_bytes: Uint8Array;
72
+ signatures: Uint8Array[];
73
+ }
74
+ /** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */
75
+
76
+ export interface SignDoc {
77
+ /**
78
+ * body_bytes is protobuf serialization of a TxBody that matches the
79
+ * representation in TxRaw.
80
+ */
81
+ bodyBytes: Uint8Array;
82
+ /**
83
+ * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
84
+ * representation in TxRaw.
85
+ */
86
+
87
+ authInfoBytes: Uint8Array;
88
+ /**
89
+ * chain_id is the unique identifier of the chain this transaction targets.
90
+ * It prevents signed transactions from being used on another chain by an
91
+ * attacker
92
+ */
93
+
94
+ chainId: string;
95
+ /** account_number is the account number of the account in state */
96
+
97
+ accountNumber: Long;
98
+ }
99
+ /** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */
100
+
101
+ export interface SignDocSDKType {
102
+ body_bytes: Uint8Array;
103
+ auth_info_bytes: Uint8Array;
104
+ chain_id: string;
105
+ account_number: Long;
106
+ }
107
+ /**
108
+ * SignDocDirectAux is the type used for generating sign bytes for
109
+ * SIGN_MODE_DIRECT_AUX.
110
+ *
111
+ * Since: cosmos-sdk 0.46
112
+ */
113
+
114
+ export interface SignDocDirectAux {
115
+ /**
116
+ * body_bytes is protobuf serialization of a TxBody that matches the
117
+ * representation in TxRaw.
118
+ */
119
+ bodyBytes: Uint8Array;
120
+ /** public_key is the public key of the signing account. */
121
+
122
+ publicKey?: Any;
123
+ /**
124
+ * chain_id is the identifier of the chain this transaction targets.
125
+ * It prevents signed transactions from being used on another chain by an
126
+ * attacker.
127
+ */
128
+
129
+ chainId: string;
130
+ /** account_number is the account number of the account in state. */
131
+
132
+ accountNumber: Long;
133
+ /** sequence is the sequence number of the signing account. */
134
+
135
+ sequence: Long;
136
+ /** tips have been depreacted and should not be used */
137
+
138
+ /** @deprecated */
139
+
140
+ tip?: Tip;
141
+ }
142
+ /**
143
+ * SignDocDirectAux is the type used for generating sign bytes for
144
+ * SIGN_MODE_DIRECT_AUX.
145
+ *
146
+ * Since: cosmos-sdk 0.46
147
+ */
148
+
149
+ export interface SignDocDirectAuxSDKType {
150
+ body_bytes: Uint8Array;
151
+ public_key?: AnySDKType;
152
+ chain_id: string;
153
+ account_number: Long;
154
+ sequence: Long;
155
+ /** @deprecated */
156
+
157
+ tip?: TipSDKType;
158
+ }
159
+ /** TxBody is the body of a transaction that all signers sign over. */
160
+
161
+ export interface TxBody {
162
+ /**
163
+ * messages is a list of messages to be executed. The required signers of
164
+ * those messages define the number and order of elements in AuthInfo's
165
+ * signer_infos and Tx's signatures. Each required signer address is added to
166
+ * the list only the first time it occurs.
167
+ * By convention, the first required signer (usually from the first message)
168
+ * is referred to as the primary signer and pays the fee for the whole
169
+ * transaction.
170
+ */
171
+ messages: Any[];
172
+ /**
173
+ * memo is any arbitrary note/comment to be added to the transaction.
174
+ * WARNING: in clients, any publicly exposed text should not be called memo,
175
+ * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122).
176
+ */
177
+
178
+ memo: string;
179
+ /**
180
+ * timeout is the block height after which this transaction will not
181
+ * be processed by the chain
182
+ */
183
+
184
+ timeoutHeight: Long;
185
+ /**
186
+ * extension_options are arbitrary options that can be added by chains
187
+ * when the default options are not sufficient. If any of these are present
188
+ * and can't be handled, the transaction will be rejected
189
+ */
190
+
191
+ extensionOptions: Any[];
192
+ /**
193
+ * extension_options are arbitrary options that can be added by chains
194
+ * when the default options are not sufficient. If any of these are present
195
+ * and can't be handled, they will be ignored
196
+ */
197
+
198
+ nonCriticalExtensionOptions: Any[];
199
+ }
200
+ /** TxBody is the body of a transaction that all signers sign over. */
201
+
202
+ export interface TxBodySDKType {
203
+ messages: AnySDKType[];
204
+ memo: string;
205
+ timeout_height: Long;
206
+ extension_options: AnySDKType[];
207
+ non_critical_extension_options: AnySDKType[];
208
+ }
209
+ /**
210
+ * AuthInfo describes the fee and signer modes that are used to sign a
211
+ * transaction.
212
+ */
213
+
214
+ export interface AuthInfo {
215
+ /**
216
+ * signer_infos defines the signing modes for the required signers. The number
217
+ * and order of elements must match the required signers from TxBody's
218
+ * messages. The first element is the primary signer and the one which pays
219
+ * the fee.
220
+ */
221
+ signerInfos: SignerInfo[];
222
+ /**
223
+ * Fee is the fee and gas limit for the transaction. The first signer is the
224
+ * primary signer and the one which pays the fee. The fee can be calculated
225
+ * based on the cost of evaluating the body and doing signature verification
226
+ * of the signers. This can be estimated via simulation.
227
+ */
228
+
229
+ fee?: Fee;
230
+ /**
231
+ * Tip is the optional tip used for transactions fees paid in another denom.
232
+ *
233
+ * This field is ignored if the chain didn't enable tips, i.e. didn't add the
234
+ * `TipDecorator` in its posthandler.
235
+ *
236
+ * Since: cosmos-sdk 0.46
237
+ */
238
+
239
+ /** @deprecated */
240
+
241
+ tip?: Tip;
242
+ }
243
+ /**
244
+ * AuthInfo describes the fee and signer modes that are used to sign a
245
+ * transaction.
246
+ */
247
+
248
+ export interface AuthInfoSDKType {
249
+ signer_infos: SignerInfoSDKType[];
250
+ fee?: FeeSDKType;
251
+ /** @deprecated */
252
+
253
+ tip?: TipSDKType;
254
+ }
255
+ /**
256
+ * SignerInfo describes the public key and signing mode of a single top-level
257
+ * signer.
258
+ */
259
+
260
+ export interface SignerInfo {
261
+ /**
262
+ * public_key is the public key of the signer. It is optional for accounts
263
+ * that already exist in state. If unset, the verifier can use the required \
264
+ * signer address for this position and lookup the public key.
265
+ */
266
+ publicKey?: Any;
267
+ /**
268
+ * mode_info describes the signing mode of the signer and is a nested
269
+ * structure to support nested multisig pubkey's
270
+ */
271
+
272
+ modeInfo?: ModeInfo;
273
+ /**
274
+ * sequence is the sequence of the account, which describes the
275
+ * number of committed transactions signed by a given address. It is used to
276
+ * prevent replay attacks.
277
+ */
278
+
279
+ sequence: Long;
280
+ }
281
+ /**
282
+ * SignerInfo describes the public key and signing mode of a single top-level
283
+ * signer.
284
+ */
285
+
286
+ export interface SignerInfoSDKType {
287
+ public_key?: AnySDKType;
288
+ mode_info?: ModeInfoSDKType;
289
+ sequence: Long;
290
+ }
291
+ /** ModeInfo describes the signing mode of a single or nested multisig signer. */
292
+
293
+ export interface ModeInfo {
294
+ /** single represents a single signer */
295
+ single?: ModeInfo_Single;
296
+ /** multi represents a nested multisig signer */
297
+
298
+ multi?: ModeInfo_Multi;
299
+ }
300
+ /** ModeInfo describes the signing mode of a single or nested multisig signer. */
301
+
302
+ export interface ModeInfoSDKType {
303
+ single?: ModeInfo_SingleSDKType;
304
+ multi?: ModeInfo_MultiSDKType;
305
+ }
306
+ /**
307
+ * Single is the mode info for a single signer. It is structured as a message
308
+ * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
309
+ * future
310
+ */
311
+
312
+ export interface ModeInfo_Single {
313
+ /** mode is the signing mode of the single signer */
314
+ mode: SignMode;
315
+ }
316
+ /**
317
+ * Single is the mode info for a single signer. It is structured as a message
318
+ * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
319
+ * future
320
+ */
321
+
322
+ export interface ModeInfo_SingleSDKType {
323
+ mode: SignMode;
324
+ }
325
+ /** Multi is the mode info for a multisig public key */
326
+
327
+ export interface ModeInfo_Multi {
328
+ /** bitarray specifies which keys within the multisig are signing */
329
+ bitarray?: CompactBitArray;
330
+ /**
331
+ * mode_infos is the corresponding modes of the signers of the multisig
332
+ * which could include nested multisig public keys
333
+ */
334
+
335
+ modeInfos: ModeInfo[];
336
+ }
337
+ /** Multi is the mode info for a multisig public key */
338
+
339
+ export interface ModeInfo_MultiSDKType {
340
+ bitarray?: CompactBitArraySDKType;
341
+ mode_infos: ModeInfoSDKType[];
342
+ }
343
+ /**
344
+ * Fee includes the amount of coins paid in fees and the maximum
345
+ * gas to be used by the transaction. The ratio yields an effective "gasprice",
346
+ * which must be above some miminum to be accepted into the mempool.
347
+ */
348
+
349
+ export interface Fee {
350
+ /** amount is the amount of coins to be paid as a fee */
351
+ amount: Coin[];
352
+ /**
353
+ * gas_limit is the maximum gas that can be used in transaction processing
354
+ * before an out of gas error occurs
355
+ */
356
+
357
+ gasLimit: Long;
358
+ /**
359
+ * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
360
+ * the payer must be a tx signer (and thus have signed this field in AuthInfo).
361
+ * setting this field does *not* change the ordering of required signers for the transaction.
362
+ */
363
+
364
+ payer: string;
365
+ /**
366
+ * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
367
+ * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
368
+ * not support fee grants, this will fail
369
+ */
370
+
371
+ granter: string;
372
+ }
373
+ /**
374
+ * Fee includes the amount of coins paid in fees and the maximum
375
+ * gas to be used by the transaction. The ratio yields an effective "gasprice",
376
+ * which must be above some miminum to be accepted into the mempool.
377
+ */
378
+
379
+ export interface FeeSDKType {
380
+ amount: CoinSDKType[];
381
+ gas_limit: Long;
382
+ payer: string;
383
+ granter: string;
384
+ }
385
+ /**
386
+ * Tip is the tip used for meta-transactions.
387
+ *
388
+ * Since: cosmos-sdk 0.46
389
+ */
390
+
391
+ /** @deprecated */
392
+
393
+ export interface Tip {
394
+ /** amount is the amount of the tip */
395
+ amount: Coin[];
396
+ /** tipper is the address of the account paying for the tip */
397
+
398
+ tipper: string;
399
+ }
400
+ /**
401
+ * Tip is the tip used for meta-transactions.
402
+ *
403
+ * Since: cosmos-sdk 0.46
404
+ */
405
+
406
+ /** @deprecated */
407
+
408
+ export interface TipSDKType {
409
+ amount: CoinSDKType[];
410
+ tipper: string;
411
+ }
412
+ /**
413
+ * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a
414
+ * tipper) builds and sends to the fee payer (who will build and broadcast the
415
+ * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
416
+ * by the node if sent directly as-is.
417
+ *
418
+ * Since: cosmos-sdk 0.46
419
+ */
420
+
421
+ export interface AuxSignerData {
422
+ /**
423
+ * address is the bech32-encoded address of the auxiliary signer. If using
424
+ * AuxSignerData across different chains, the bech32 prefix of the target
425
+ * chain (where the final transaction is broadcasted) should be used.
426
+ */
427
+ address: string;
428
+ /**
429
+ * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer
430
+ * signs. Note: we use the same sign doc even if we're signing with
431
+ * LEGACY_AMINO_JSON.
432
+ */
433
+
434
+ signDoc?: SignDocDirectAux;
435
+ /** mode is the signing mode of the single signer. */
436
+
437
+ mode: SignMode;
438
+ /** sig is the signature of the sign doc. */
439
+
440
+ sig: Uint8Array;
441
+ }
442
+ /**
443
+ * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a
444
+ * tipper) builds and sends to the fee payer (who will build and broadcast the
445
+ * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
446
+ * by the node if sent directly as-is.
447
+ *
448
+ * Since: cosmos-sdk 0.46
449
+ */
450
+
451
+ export interface AuxSignerDataSDKType {
452
+ address: string;
453
+ sign_doc?: SignDocDirectAuxSDKType;
454
+ mode: SignMode;
455
+ sig: Uint8Array;
456
+ }
457
+
458
+ function createBaseTx(): Tx {
459
+ return {
460
+ body: undefined,
461
+ authInfo: undefined,
462
+ signatures: []
463
+ };
464
+ }
465
+
466
+ export const Tx = {
467
+ encode(message: Tx, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
468
+ if (message.body !== undefined) {
469
+ TxBody.encode(message.body, writer.uint32(10).fork()).ldelim();
470
+ }
471
+
472
+ if (message.authInfo !== undefined) {
473
+ AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim();
474
+ }
475
+
476
+ for (const v of message.signatures) {
477
+ writer.uint32(26).bytes(v!);
478
+ }
479
+
480
+ return writer;
481
+ },
482
+
483
+ decode(input: _m0.Reader | Uint8Array, length?: number): Tx {
484
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
485
+ let end = length === undefined ? reader.len : reader.pos + length;
486
+ const message = createBaseTx();
487
+
488
+ while (reader.pos < end) {
489
+ const tag = reader.uint32();
490
+
491
+ switch (tag >>> 3) {
492
+ case 1:
493
+ message.body = TxBody.decode(reader, reader.uint32());
494
+ break;
495
+
496
+ case 2:
497
+ message.authInfo = AuthInfo.decode(reader, reader.uint32());
498
+ break;
499
+
500
+ case 3:
501
+ message.signatures.push(reader.bytes());
502
+ break;
503
+
504
+ default:
505
+ reader.skipType(tag & 7);
506
+ break;
507
+ }
508
+ }
509
+
510
+ return message;
511
+ },
512
+
513
+ fromPartial(object: DeepPartial<Tx>): Tx {
514
+ const message = createBaseTx();
515
+ message.body = object.body !== undefined && object.body !== null ? TxBody.fromPartial(object.body) : undefined;
516
+ message.authInfo = object.authInfo !== undefined && object.authInfo !== null ? AuthInfo.fromPartial(object.authInfo) : undefined;
517
+ message.signatures = object.signatures?.map(e => e) || [];
518
+ return message;
519
+ }
520
+
521
+ };
522
+
523
+ function createBaseTxRaw(): TxRaw {
524
+ return {
525
+ bodyBytes: new Uint8Array(),
526
+ authInfoBytes: new Uint8Array(),
527
+ signatures: []
528
+ };
529
+ }
530
+
531
+ export const TxRaw = {
532
+ encode(message: TxRaw, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
533
+ if (message.bodyBytes.length !== 0) {
534
+ writer.uint32(10).bytes(message.bodyBytes);
535
+ }
536
+
537
+ if (message.authInfoBytes.length !== 0) {
538
+ writer.uint32(18).bytes(message.authInfoBytes);
539
+ }
540
+
541
+ for (const v of message.signatures) {
542
+ writer.uint32(26).bytes(v!);
543
+ }
544
+
545
+ return writer;
546
+ },
547
+
548
+ decode(input: _m0.Reader | Uint8Array, length?: number): TxRaw {
549
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
550
+ let end = length === undefined ? reader.len : reader.pos + length;
551
+ const message = createBaseTxRaw();
552
+
553
+ while (reader.pos < end) {
554
+ const tag = reader.uint32();
555
+
556
+ switch (tag >>> 3) {
557
+ case 1:
558
+ message.bodyBytes = reader.bytes();
559
+ break;
560
+
561
+ case 2:
562
+ message.authInfoBytes = reader.bytes();
563
+ break;
564
+
565
+ case 3:
566
+ message.signatures.push(reader.bytes());
567
+ break;
568
+
569
+ default:
570
+ reader.skipType(tag & 7);
571
+ break;
572
+ }
573
+ }
574
+
575
+ return message;
576
+ },
577
+
578
+ fromPartial(object: DeepPartial<TxRaw>): TxRaw {
579
+ const message = createBaseTxRaw();
580
+ message.bodyBytes = object.bodyBytes ?? new Uint8Array();
581
+ message.authInfoBytes = object.authInfoBytes ?? new Uint8Array();
582
+ message.signatures = object.signatures?.map(e => e) || [];
583
+ return message;
584
+ }
585
+
586
+ };
587
+
588
+ function createBaseSignDoc(): SignDoc {
589
+ return {
590
+ bodyBytes: new Uint8Array(),
591
+ authInfoBytes: new Uint8Array(),
592
+ chainId: "",
593
+ accountNumber: Long.UZERO
594
+ };
595
+ }
596
+
597
+ export const SignDoc = {
598
+ encode(message: SignDoc, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
599
+ if (message.bodyBytes.length !== 0) {
600
+ writer.uint32(10).bytes(message.bodyBytes);
601
+ }
602
+
603
+ if (message.authInfoBytes.length !== 0) {
604
+ writer.uint32(18).bytes(message.authInfoBytes);
605
+ }
606
+
607
+ if (message.chainId !== "") {
608
+ writer.uint32(26).string(message.chainId);
609
+ }
610
+
611
+ if (!message.accountNumber.isZero()) {
612
+ writer.uint32(32).uint64(message.accountNumber);
613
+ }
614
+
615
+ return writer;
616
+ },
617
+
618
+ decode(input: _m0.Reader | Uint8Array, length?: number): SignDoc {
619
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
620
+ let end = length === undefined ? reader.len : reader.pos + length;
621
+ const message = createBaseSignDoc();
622
+
623
+ while (reader.pos < end) {
624
+ const tag = reader.uint32();
625
+
626
+ switch (tag >>> 3) {
627
+ case 1:
628
+ message.bodyBytes = reader.bytes();
629
+ break;
630
+
631
+ case 2:
632
+ message.authInfoBytes = reader.bytes();
633
+ break;
634
+
635
+ case 3:
636
+ message.chainId = reader.string();
637
+ break;
638
+
639
+ case 4:
640
+ message.accountNumber = (reader.uint64() as Long);
641
+ break;
642
+
643
+ default:
644
+ reader.skipType(tag & 7);
645
+ break;
646
+ }
647
+ }
648
+
649
+ return message;
650
+ },
651
+
652
+ fromPartial(object: DeepPartial<SignDoc>): SignDoc {
653
+ const message = createBaseSignDoc();
654
+ message.bodyBytes = object.bodyBytes ?? new Uint8Array();
655
+ message.authInfoBytes = object.authInfoBytes ?? new Uint8Array();
656
+ message.chainId = object.chainId ?? "";
657
+ message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? Long.fromValue(object.accountNumber) : Long.UZERO;
658
+ return message;
659
+ }
660
+
661
+ };
662
+
663
+ function createBaseSignDocDirectAux(): SignDocDirectAux {
664
+ return {
665
+ bodyBytes: new Uint8Array(),
666
+ publicKey: undefined,
667
+ chainId: "",
668
+ accountNumber: Long.UZERO,
669
+ sequence: Long.UZERO,
670
+ tip: undefined
671
+ };
672
+ }
673
+
674
+ export const SignDocDirectAux = {
675
+ encode(message: SignDocDirectAux, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
676
+ if (message.bodyBytes.length !== 0) {
677
+ writer.uint32(10).bytes(message.bodyBytes);
678
+ }
679
+
680
+ if (message.publicKey !== undefined) {
681
+ Any.encode(message.publicKey, writer.uint32(18).fork()).ldelim();
682
+ }
683
+
684
+ if (message.chainId !== "") {
685
+ writer.uint32(26).string(message.chainId);
686
+ }
687
+
688
+ if (!message.accountNumber.isZero()) {
689
+ writer.uint32(32).uint64(message.accountNumber);
690
+ }
691
+
692
+ if (!message.sequence.isZero()) {
693
+ writer.uint32(40).uint64(message.sequence);
694
+ }
695
+
696
+ if (message.tip !== undefined) {
697
+ Tip.encode(message.tip, writer.uint32(50).fork()).ldelim();
698
+ }
699
+
700
+ return writer;
701
+ },
702
+
703
+ decode(input: _m0.Reader | Uint8Array, length?: number): SignDocDirectAux {
704
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
705
+ let end = length === undefined ? reader.len : reader.pos + length;
706
+ const message = createBaseSignDocDirectAux();
707
+
708
+ while (reader.pos < end) {
709
+ const tag = reader.uint32();
710
+
711
+ switch (tag >>> 3) {
712
+ case 1:
713
+ message.bodyBytes = reader.bytes();
714
+ break;
715
+
716
+ case 2:
717
+ message.publicKey = Any.decode(reader, reader.uint32());
718
+ break;
719
+
720
+ case 3:
721
+ message.chainId = reader.string();
722
+ break;
723
+
724
+ case 4:
725
+ message.accountNumber = (reader.uint64() as Long);
726
+ break;
727
+
728
+ case 5:
729
+ message.sequence = (reader.uint64() as Long);
730
+ break;
731
+
732
+ case 6:
733
+ message.tip = Tip.decode(reader, reader.uint32());
734
+ break;
735
+
736
+ default:
737
+ reader.skipType(tag & 7);
738
+ break;
739
+ }
740
+ }
741
+
742
+ return message;
743
+ },
744
+
745
+ fromPartial(object: DeepPartial<SignDocDirectAux>): SignDocDirectAux {
746
+ const message = createBaseSignDocDirectAux();
747
+ message.bodyBytes = object.bodyBytes ?? new Uint8Array();
748
+ message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined;
749
+ message.chainId = object.chainId ?? "";
750
+ message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? Long.fromValue(object.accountNumber) : Long.UZERO;
751
+ message.sequence = object.sequence !== undefined && object.sequence !== null ? Long.fromValue(object.sequence) : Long.UZERO;
752
+ message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined;
753
+ return message;
754
+ }
755
+
756
+ };
757
+
758
+ function createBaseTxBody(): TxBody {
759
+ return {
760
+ messages: [],
761
+ memo: "",
762
+ timeoutHeight: Long.UZERO,
763
+ extensionOptions: [],
764
+ nonCriticalExtensionOptions: []
765
+ };
766
+ }
767
+
768
+ export const TxBody = {
769
+ encode(message: TxBody, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
770
+ for (const v of message.messages) {
771
+ Any.encode(v!, writer.uint32(10).fork()).ldelim();
772
+ }
773
+
774
+ if (message.memo !== "") {
775
+ writer.uint32(18).string(message.memo);
776
+ }
777
+
778
+ if (!message.timeoutHeight.isZero()) {
779
+ writer.uint32(24).uint64(message.timeoutHeight);
780
+ }
781
+
782
+ for (const v of message.extensionOptions) {
783
+ Any.encode(v!, writer.uint32(8186).fork()).ldelim();
784
+ }
785
+
786
+ for (const v of message.nonCriticalExtensionOptions) {
787
+ Any.encode(v!, writer.uint32(16378).fork()).ldelim();
788
+ }
789
+
790
+ return writer;
791
+ },
792
+
793
+ decode(input: _m0.Reader | Uint8Array, length?: number): TxBody {
794
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
795
+ let end = length === undefined ? reader.len : reader.pos + length;
796
+ const message = createBaseTxBody();
797
+
798
+ while (reader.pos < end) {
799
+ const tag = reader.uint32();
800
+
801
+ switch (tag >>> 3) {
802
+ case 1:
803
+ message.messages.push(Any.decode(reader, reader.uint32()));
804
+ break;
805
+
806
+ case 2:
807
+ message.memo = reader.string();
808
+ break;
809
+
810
+ case 3:
811
+ message.timeoutHeight = (reader.uint64() as Long);
812
+ break;
813
+
814
+ case 1023:
815
+ message.extensionOptions.push(Any.decode(reader, reader.uint32()));
816
+ break;
817
+
818
+ case 2047:
819
+ message.nonCriticalExtensionOptions.push(Any.decode(reader, reader.uint32()));
820
+ break;
821
+
822
+ default:
823
+ reader.skipType(tag & 7);
824
+ break;
825
+ }
826
+ }
827
+
828
+ return message;
829
+ },
830
+
831
+ fromPartial(object: DeepPartial<TxBody>): TxBody {
832
+ const message = createBaseTxBody();
833
+ message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
834
+ message.memo = object.memo ?? "";
835
+ message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? Long.fromValue(object.timeoutHeight) : Long.UZERO;
836
+ message.extensionOptions = object.extensionOptions?.map(e => Any.fromPartial(e)) || [];
837
+ message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map(e => Any.fromPartial(e)) || [];
838
+ return message;
839
+ }
840
+
841
+ };
842
+
843
+ function createBaseAuthInfo(): AuthInfo {
844
+ return {
845
+ signerInfos: [],
846
+ fee: undefined,
847
+ tip: undefined
848
+ };
849
+ }
850
+
851
+ export const AuthInfo = {
852
+ encode(message: AuthInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
853
+ for (const v of message.signerInfos) {
854
+ SignerInfo.encode(v!, writer.uint32(10).fork()).ldelim();
855
+ }
856
+
857
+ if (message.fee !== undefined) {
858
+ Fee.encode(message.fee, writer.uint32(18).fork()).ldelim();
859
+ }
860
+
861
+ if (message.tip !== undefined) {
862
+ Tip.encode(message.tip, writer.uint32(26).fork()).ldelim();
863
+ }
864
+
865
+ return writer;
866
+ },
867
+
868
+ decode(input: _m0.Reader | Uint8Array, length?: number): AuthInfo {
869
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
870
+ let end = length === undefined ? reader.len : reader.pos + length;
871
+ const message = createBaseAuthInfo();
872
+
873
+ while (reader.pos < end) {
874
+ const tag = reader.uint32();
875
+
876
+ switch (tag >>> 3) {
877
+ case 1:
878
+ message.signerInfos.push(SignerInfo.decode(reader, reader.uint32()));
879
+ break;
880
+
881
+ case 2:
882
+ message.fee = Fee.decode(reader, reader.uint32());
883
+ break;
884
+
885
+ case 3:
886
+ message.tip = Tip.decode(reader, reader.uint32());
887
+ break;
888
+
889
+ default:
890
+ reader.skipType(tag & 7);
891
+ break;
892
+ }
893
+ }
894
+
895
+ return message;
896
+ },
897
+
898
+ fromPartial(object: DeepPartial<AuthInfo>): AuthInfo {
899
+ const message = createBaseAuthInfo();
900
+ message.signerInfos = object.signerInfos?.map(e => SignerInfo.fromPartial(e)) || [];
901
+ message.fee = object.fee !== undefined && object.fee !== null ? Fee.fromPartial(object.fee) : undefined;
902
+ message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined;
903
+ return message;
904
+ }
905
+
906
+ };
907
+
908
+ function createBaseSignerInfo(): SignerInfo {
909
+ return {
910
+ publicKey: undefined,
911
+ modeInfo: undefined,
912
+ sequence: Long.UZERO
913
+ };
914
+ }
915
+
916
+ export const SignerInfo = {
917
+ encode(message: SignerInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
918
+ if (message.publicKey !== undefined) {
919
+ Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim();
920
+ }
921
+
922
+ if (message.modeInfo !== undefined) {
923
+ ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim();
924
+ }
925
+
926
+ if (!message.sequence.isZero()) {
927
+ writer.uint32(24).uint64(message.sequence);
928
+ }
929
+
930
+ return writer;
931
+ },
932
+
933
+ decode(input: _m0.Reader | Uint8Array, length?: number): SignerInfo {
934
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
935
+ let end = length === undefined ? reader.len : reader.pos + length;
936
+ const message = createBaseSignerInfo();
937
+
938
+ while (reader.pos < end) {
939
+ const tag = reader.uint32();
940
+
941
+ switch (tag >>> 3) {
942
+ case 1:
943
+ message.publicKey = Any.decode(reader, reader.uint32());
944
+ break;
945
+
946
+ case 2:
947
+ message.modeInfo = ModeInfo.decode(reader, reader.uint32());
948
+ break;
949
+
950
+ case 3:
951
+ message.sequence = (reader.uint64() as Long);
952
+ break;
953
+
954
+ default:
955
+ reader.skipType(tag & 7);
956
+ break;
957
+ }
958
+ }
959
+
960
+ return message;
961
+ },
962
+
963
+ fromPartial(object: DeepPartial<SignerInfo>): SignerInfo {
964
+ const message = createBaseSignerInfo();
965
+ message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined;
966
+ message.modeInfo = object.modeInfo !== undefined && object.modeInfo !== null ? ModeInfo.fromPartial(object.modeInfo) : undefined;
967
+ message.sequence = object.sequence !== undefined && object.sequence !== null ? Long.fromValue(object.sequence) : Long.UZERO;
968
+ return message;
969
+ }
970
+
971
+ };
972
+
973
+ function createBaseModeInfo(): ModeInfo {
974
+ return {
975
+ single: undefined,
976
+ multi: undefined
977
+ };
978
+ }
979
+
980
+ export const ModeInfo = {
981
+ encode(message: ModeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
982
+ if (message.single !== undefined) {
983
+ ModeInfo_Single.encode(message.single, writer.uint32(10).fork()).ldelim();
984
+ }
985
+
986
+ if (message.multi !== undefined) {
987
+ ModeInfo_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim();
988
+ }
989
+
990
+ return writer;
991
+ },
992
+
993
+ decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo {
994
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
995
+ let end = length === undefined ? reader.len : reader.pos + length;
996
+ const message = createBaseModeInfo();
997
+
998
+ while (reader.pos < end) {
999
+ const tag = reader.uint32();
1000
+
1001
+ switch (tag >>> 3) {
1002
+ case 1:
1003
+ message.single = ModeInfo_Single.decode(reader, reader.uint32());
1004
+ break;
1005
+
1006
+ case 2:
1007
+ message.multi = ModeInfo_Multi.decode(reader, reader.uint32());
1008
+ break;
1009
+
1010
+ default:
1011
+ reader.skipType(tag & 7);
1012
+ break;
1013
+ }
1014
+ }
1015
+
1016
+ return message;
1017
+ },
1018
+
1019
+ fromPartial(object: DeepPartial<ModeInfo>): ModeInfo {
1020
+ const message = createBaseModeInfo();
1021
+ message.single = object.single !== undefined && object.single !== null ? ModeInfo_Single.fromPartial(object.single) : undefined;
1022
+ message.multi = object.multi !== undefined && object.multi !== null ? ModeInfo_Multi.fromPartial(object.multi) : undefined;
1023
+ return message;
1024
+ }
1025
+
1026
+ };
1027
+
1028
+ function createBaseModeInfo_Single(): ModeInfo_Single {
1029
+ return {
1030
+ mode: 0
1031
+ };
1032
+ }
1033
+
1034
+ export const ModeInfo_Single = {
1035
+ encode(message: ModeInfo_Single, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1036
+ if (message.mode !== 0) {
1037
+ writer.uint32(8).int32(message.mode);
1038
+ }
1039
+
1040
+ return writer;
1041
+ },
1042
+
1043
+ decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Single {
1044
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1045
+ let end = length === undefined ? reader.len : reader.pos + length;
1046
+ const message = createBaseModeInfo_Single();
1047
+
1048
+ while (reader.pos < end) {
1049
+ const tag = reader.uint32();
1050
+
1051
+ switch (tag >>> 3) {
1052
+ case 1:
1053
+ message.mode = (reader.int32() as any);
1054
+ break;
1055
+
1056
+ default:
1057
+ reader.skipType(tag & 7);
1058
+ break;
1059
+ }
1060
+ }
1061
+
1062
+ return message;
1063
+ },
1064
+
1065
+ fromPartial(object: DeepPartial<ModeInfo_Single>): ModeInfo_Single {
1066
+ const message = createBaseModeInfo_Single();
1067
+ message.mode = object.mode ?? 0;
1068
+ return message;
1069
+ }
1070
+
1071
+ };
1072
+
1073
+ function createBaseModeInfo_Multi(): ModeInfo_Multi {
1074
+ return {
1075
+ bitarray: undefined,
1076
+ modeInfos: []
1077
+ };
1078
+ }
1079
+
1080
+ export const ModeInfo_Multi = {
1081
+ encode(message: ModeInfo_Multi, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1082
+ if (message.bitarray !== undefined) {
1083
+ CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim();
1084
+ }
1085
+
1086
+ for (const v of message.modeInfos) {
1087
+ ModeInfo.encode(v!, writer.uint32(18).fork()).ldelim();
1088
+ }
1089
+
1090
+ return writer;
1091
+ },
1092
+
1093
+ decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Multi {
1094
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1095
+ let end = length === undefined ? reader.len : reader.pos + length;
1096
+ const message = createBaseModeInfo_Multi();
1097
+
1098
+ while (reader.pos < end) {
1099
+ const tag = reader.uint32();
1100
+
1101
+ switch (tag >>> 3) {
1102
+ case 1:
1103
+ message.bitarray = CompactBitArray.decode(reader, reader.uint32());
1104
+ break;
1105
+
1106
+ case 2:
1107
+ message.modeInfos.push(ModeInfo.decode(reader, reader.uint32()));
1108
+ break;
1109
+
1110
+ default:
1111
+ reader.skipType(tag & 7);
1112
+ break;
1113
+ }
1114
+ }
1115
+
1116
+ return message;
1117
+ },
1118
+
1119
+ fromPartial(object: DeepPartial<ModeInfo_Multi>): ModeInfo_Multi {
1120
+ const message = createBaseModeInfo_Multi();
1121
+ message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined;
1122
+ message.modeInfos = object.modeInfos?.map(e => ModeInfo.fromPartial(e)) || [];
1123
+ return message;
1124
+ }
1125
+
1126
+ };
1127
+
1128
+ function createBaseFee(): Fee {
1129
+ return {
1130
+ amount: [],
1131
+ gasLimit: Long.UZERO,
1132
+ payer: "",
1133
+ granter: ""
1134
+ };
1135
+ }
1136
+
1137
+ export const Fee = {
1138
+ encode(message: Fee, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1139
+ for (const v of message.amount) {
1140
+ Coin.encode(v!, writer.uint32(10).fork()).ldelim();
1141
+ }
1142
+
1143
+ if (!message.gasLimit.isZero()) {
1144
+ writer.uint32(16).uint64(message.gasLimit);
1145
+ }
1146
+
1147
+ if (message.payer !== "") {
1148
+ writer.uint32(26).string(message.payer);
1149
+ }
1150
+
1151
+ if (message.granter !== "") {
1152
+ writer.uint32(34).string(message.granter);
1153
+ }
1154
+
1155
+ return writer;
1156
+ },
1157
+
1158
+ decode(input: _m0.Reader | Uint8Array, length?: number): Fee {
1159
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1160
+ let end = length === undefined ? reader.len : reader.pos + length;
1161
+ const message = createBaseFee();
1162
+
1163
+ while (reader.pos < end) {
1164
+ const tag = reader.uint32();
1165
+
1166
+ switch (tag >>> 3) {
1167
+ case 1:
1168
+ message.amount.push(Coin.decode(reader, reader.uint32()));
1169
+ break;
1170
+
1171
+ case 2:
1172
+ message.gasLimit = (reader.uint64() as Long);
1173
+ break;
1174
+
1175
+ case 3:
1176
+ message.payer = reader.string();
1177
+ break;
1178
+
1179
+ case 4:
1180
+ message.granter = reader.string();
1181
+ break;
1182
+
1183
+ default:
1184
+ reader.skipType(tag & 7);
1185
+ break;
1186
+ }
1187
+ }
1188
+
1189
+ return message;
1190
+ },
1191
+
1192
+ fromPartial(object: DeepPartial<Fee>): Fee {
1193
+ const message = createBaseFee();
1194
+ message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
1195
+ message.gasLimit = object.gasLimit !== undefined && object.gasLimit !== null ? Long.fromValue(object.gasLimit) : Long.UZERO;
1196
+ message.payer = object.payer ?? "";
1197
+ message.granter = object.granter ?? "";
1198
+ return message;
1199
+ }
1200
+
1201
+ };
1202
+
1203
+ function createBaseTip(): Tip {
1204
+ return {
1205
+ amount: [],
1206
+ tipper: ""
1207
+ };
1208
+ }
1209
+
1210
+ export const Tip = {
1211
+ encode(message: Tip, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1212
+ for (const v of message.amount) {
1213
+ Coin.encode(v!, writer.uint32(10).fork()).ldelim();
1214
+ }
1215
+
1216
+ if (message.tipper !== "") {
1217
+ writer.uint32(18).string(message.tipper);
1218
+ }
1219
+
1220
+ return writer;
1221
+ },
1222
+
1223
+ decode(input: _m0.Reader | Uint8Array, length?: number): Tip {
1224
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1225
+ let end = length === undefined ? reader.len : reader.pos + length;
1226
+ const message = createBaseTip();
1227
+
1228
+ while (reader.pos < end) {
1229
+ const tag = reader.uint32();
1230
+
1231
+ switch (tag >>> 3) {
1232
+ case 1:
1233
+ message.amount.push(Coin.decode(reader, reader.uint32()));
1234
+ break;
1235
+
1236
+ case 2:
1237
+ message.tipper = reader.string();
1238
+ break;
1239
+
1240
+ default:
1241
+ reader.skipType(tag & 7);
1242
+ break;
1243
+ }
1244
+ }
1245
+
1246
+ return message;
1247
+ },
1248
+
1249
+ fromPartial(object: DeepPartial<Tip>): Tip {
1250
+ const message = createBaseTip();
1251
+ message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
1252
+ message.tipper = object.tipper ?? "";
1253
+ return message;
1254
+ }
1255
+
1256
+ };
1257
+
1258
+ function createBaseAuxSignerData(): AuxSignerData {
1259
+ return {
1260
+ address: "",
1261
+ signDoc: undefined,
1262
+ mode: 0,
1263
+ sig: new Uint8Array()
1264
+ };
1265
+ }
1266
+
1267
+ export const AuxSignerData = {
1268
+ encode(message: AuxSignerData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1269
+ if (message.address !== "") {
1270
+ writer.uint32(10).string(message.address);
1271
+ }
1272
+
1273
+ if (message.signDoc !== undefined) {
1274
+ SignDocDirectAux.encode(message.signDoc, writer.uint32(18).fork()).ldelim();
1275
+ }
1276
+
1277
+ if (message.mode !== 0) {
1278
+ writer.uint32(24).int32(message.mode);
1279
+ }
1280
+
1281
+ if (message.sig.length !== 0) {
1282
+ writer.uint32(34).bytes(message.sig);
1283
+ }
1284
+
1285
+ return writer;
1286
+ },
1287
+
1288
+ decode(input: _m0.Reader | Uint8Array, length?: number): AuxSignerData {
1289
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1290
+ let end = length === undefined ? reader.len : reader.pos + length;
1291
+ const message = createBaseAuxSignerData();
1292
+
1293
+ while (reader.pos < end) {
1294
+ const tag = reader.uint32();
1295
+
1296
+ switch (tag >>> 3) {
1297
+ case 1:
1298
+ message.address = reader.string();
1299
+ break;
1300
+
1301
+ case 2:
1302
+ message.signDoc = SignDocDirectAux.decode(reader, reader.uint32());
1303
+ break;
1304
+
1305
+ case 3:
1306
+ message.mode = (reader.int32() as any);
1307
+ break;
1308
+
1309
+ case 4:
1310
+ message.sig = reader.bytes();
1311
+ break;
1312
+
1313
+ default:
1314
+ reader.skipType(tag & 7);
1315
+ break;
1316
+ }
1317
+ }
1318
+
1319
+ return message;
1320
+ },
1321
+
1322
+ fromPartial(object: DeepPartial<AuxSignerData>): AuxSignerData {
1323
+ const message = createBaseAuxSignerData();
1324
+ message.address = object.address ?? "";
1325
+ message.signDoc = object.signDoc !== undefined && object.signDoc !== null ? SignDocDirectAux.fromPartial(object.signDoc) : undefined;
1326
+ message.mode = object.mode ?? 0;
1327
+ message.sig = object.sig ?? new Uint8Array();
1328
+ return message;
1329
+ }
1330
+
1331
+ };