juno-network 0.5.3 → 0.6.0

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