@burnt-labs/xion-types 0.0.1-test.1762962136

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 (554) hide show
  1. package/jest.config.js +18 -0
  2. package/package.json +56 -0
  3. package/scripts/aminos.ts +29 -0
  4. package/scripts/codegen.ts +94 -0
  5. package/scripts/download-protos.ts +248 -0
  6. package/telescope.config.json +84 -0
  7. package/tsconfig.esm.json +9 -0
  8. package/tsconfig.json +18 -0
  9. package/types/abstractaccount/bundle.ts +35 -0
  10. package/types/abstractaccount/client.ts +48 -0
  11. package/types/abstractaccount/lcd.ts +130 -0
  12. package/types/abstractaccount/rpc.query.ts +93 -0
  13. package/types/abstractaccount/rpc.tx.ts +74 -0
  14. package/types/abstractaccount/v1/account.ts +250 -0
  15. package/types/abstractaccount/v1/events.ts +135 -0
  16. package/types/abstractaccount/v1/genesis.ts +106 -0
  17. package/types/abstractaccount/v1/params.ts +192 -0
  18. package/types/abstractaccount/v1/query.lcd.ts +19 -0
  19. package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
  20. package/types/abstractaccount/v1/query.ts +160 -0
  21. package/types/abstractaccount/v1/tx.amino.ts +14 -0
  22. package/types/abstractaccount/v1/tx.registry.ts +53 -0
  23. package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
  24. package/types/abstractaccount/v1/tx.ts +454 -0
  25. package/types/amino/amino.ts +1 -0
  26. package/types/amino/bundle.ts +5 -0
  27. package/types/binary.ts +535 -0
  28. package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
  29. package/types/cosmos/app/v1alpha1/config.ts +437 -0
  30. package/types/cosmos/app/v1alpha1/module.ts +466 -0
  31. package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
  32. package/types/cosmos/app/v1alpha1/query.ts +176 -0
  33. package/types/cosmos/auth/module/v1/module.ts +288 -0
  34. package/types/cosmos/auth/v1beta1/auth.ts +562 -0
  35. package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
  36. package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
  37. package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
  38. package/types/cosmos/auth/v1beta1/query.ts +2005 -0
  39. package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
  40. package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
  41. package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
  42. package/types/cosmos/auth/v1beta1/tx.ts +208 -0
  43. package/types/cosmos/authz/module/v1/module.ts +77 -0
  44. package/types/cosmos/authz/v1beta1/authz.ts +599 -0
  45. package/types/cosmos/authz/v1beta1/event.ts +274 -0
  46. package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
  47. package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
  48. package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
  49. package/types/cosmos/authz/v1beta1/query.ts +734 -0
  50. package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
  51. package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
  52. package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
  53. package/types/cosmos/authz/v1beta1/tx.ts +666 -0
  54. package/types/cosmos/autocli/v1/options.ts +1317 -0
  55. package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
  56. package/types/cosmos/autocli/v1/query.ts +298 -0
  57. package/types/cosmos/bank/module/v1/module.ts +156 -0
  58. package/types/cosmos/bank/v1beta1/authz.ts +134 -0
  59. package/types/cosmos/bank/v1beta1/bank.ts +984 -0
  60. package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
  61. package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
  62. package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
  63. package/types/cosmos/bank/v1beta1/query.ts +3051 -0
  64. package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
  65. package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
  66. package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
  67. package/types/cosmos/bank/v1beta1/tx.ts +845 -0
  68. package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
  69. package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
  70. package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
  71. package/types/cosmos/base/node/v1beta1/query.ts +467 -0
  72. package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
  73. package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
  74. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
  75. package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
  76. package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
  77. package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
  78. package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
  79. package/types/cosmos/base/v1beta1/coin.ts +449 -0
  80. package/types/cosmos/benchmark/module/v1/module.ts +384 -0
  81. package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
  82. package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
  83. package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
  84. package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
  85. package/types/cosmos/benchmark/v1/tx.ts +224 -0
  86. package/types/cosmos/bundle.ts +807 -0
  87. package/types/cosmos/circuit/module/v1/module.ts +100 -0
  88. package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
  89. package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
  90. package/types/cosmos/circuit/v1/query.ts +576 -0
  91. package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
  92. package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
  93. package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
  94. package/types/cosmos/circuit/v1/tx.ts +685 -0
  95. package/types/cosmos/circuit/v1/types.ts +419 -0
  96. package/types/cosmos/client.ts +100 -0
  97. package/types/cosmos/consensus/module/v1/module.ts +100 -0
  98. package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
  99. package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
  100. package/types/cosmos/consensus/v1/query.ts +182 -0
  101. package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
  102. package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
  103. package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
  104. package/types/cosmos/consensus/v1/tx.ts +257 -0
  105. package/types/cosmos/counter/module/v1/module.ts +100 -0
  106. package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
  107. package/types/cosmos/counter/v1/query.ts +171 -0
  108. package/types/cosmos/counter/v1/tx.amino.ts +9 -0
  109. package/types/cosmos/counter/v1/tx.registry.ts +35 -0
  110. package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
  111. package/types/cosmos/counter/v1/tx.ts +217 -0
  112. package/types/cosmos/crisis/module/v1/module.ts +119 -0
  113. package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
  114. package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
  115. package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
  116. package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
  117. package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
  118. package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
  119. package/types/cosmos/crypto/ed25519/keys.ts +214 -0
  120. package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
  121. package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
  122. package/types/cosmos/crypto/multisig/keys.ts +124 -0
  123. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
  124. package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
  125. package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
  126. package/types/cosmos/distribution/module/v1/module.ts +115 -0
  127. package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
  128. package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
  129. package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
  130. package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
  131. package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
  132. package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
  133. package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
  134. package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
  135. package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
  136. package/types/cosmos/epochs/module/v1/module.ts +77 -0
  137. package/types/cosmos/epochs/v1beta1/events.ts +205 -0
  138. package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
  139. package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
  140. package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
  141. package/types/cosmos/epochs/v1beta1/query.ts +390 -0
  142. package/types/cosmos/evidence/module/v1/module.ts +77 -0
  143. package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
  144. package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
  145. package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
  146. package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
  147. package/types/cosmos/evidence/v1beta1/query.ts +458 -0
  148. package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
  149. package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
  150. package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
  151. package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
  152. package/types/cosmos/feegrant/module/v1/module.ts +77 -0
  153. package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
  154. package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
  155. package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
  156. package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
  157. package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
  158. package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
  159. package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
  160. package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
  161. package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
  162. package/types/cosmos/genutil/module/v1/module.ts +77 -0
  163. package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
  164. package/types/cosmos/gov/module/v1/module.ts +123 -0
  165. package/types/cosmos/gov/v1/genesis.ts +288 -0
  166. package/types/cosmos/gov/v1/gov.ts +1889 -0
  167. package/types/cosmos/gov/v1/query.lcd.ts +95 -0
  168. package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
  169. package/types/cosmos/gov/v1/query.ts +2026 -0
  170. package/types/cosmos/gov/v1/tx.amino.ts +39 -0
  171. package/types/cosmos/gov/v1/tx.registry.ts +143 -0
  172. package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
  173. package/types/cosmos/gov/v1/tx.ts +1911 -0
  174. package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
  175. package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
  176. package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
  177. package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
  178. package/types/cosmos/gov/v1beta1/query.ts +1813 -0
  179. package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
  180. package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
  181. package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
  182. package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
  183. package/types/cosmos/group/module/v1/module.ts +128 -0
  184. package/types/cosmos/group/v1/events.ts +1195 -0
  185. package/types/cosmos/group/v1/genesis.ts +256 -0
  186. package/types/cosmos/group/v1/query.lcd.ts +158 -0
  187. package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
  188. package/types/cosmos/group/v1/query.ts +3108 -0
  189. package/types/cosmos/group/v1/tx.amino.ts +74 -0
  190. package/types/cosmos/group/v1/tx.registry.ts +269 -0
  191. package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
  192. package/types/cosmos/group/v1/tx.ts +3353 -0
  193. package/types/cosmos/group/v1/types.ts +2248 -0
  194. package/types/cosmos/ics23/v1/proofs.ts +2167 -0
  195. package/types/cosmos/lcd.ts +125 -0
  196. package/types/cosmos/mint/module/v1/module.ts +115 -0
  197. package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
  198. package/types/cosmos/mint/v1beta1/mint.ts +313 -0
  199. package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
  200. package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
  201. package/types/cosmos/mint/v1beta1/query.ts +544 -0
  202. package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
  203. package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
  204. package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
  205. package/types/cosmos/mint/v1beta1/tx.ts +208 -0
  206. package/types/cosmos/msg/textual/v1/textual.ts +1 -0
  207. package/types/cosmos/msg/v1/msg.ts +1 -0
  208. package/types/cosmos/nft/module/v1/module.ts +77 -0
  209. package/types/cosmos/nft/v1beta1/event.ts +429 -0
  210. package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
  211. package/types/cosmos/nft/v1beta1/nft.ts +389 -0
  212. package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
  213. package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
  214. package/types/cosmos/nft/v1beta1/query.ts +1513 -0
  215. package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
  216. package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
  217. package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
  218. package/types/cosmos/nft/v1beta1/tx.ts +232 -0
  219. package/types/cosmos/params/module/v1/module.ts +77 -0
  220. package/types/cosmos/params/v1beta1/params.ts +262 -0
  221. package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
  222. package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
  223. package/types/cosmos/params/v1beta1/query.ts +521 -0
  224. package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
  225. package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
  226. package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
  227. package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
  228. package/types/cosmos/protocolpool/v1/query.ts +761 -0
  229. package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
  230. package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
  231. package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
  232. package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
  233. package/types/cosmos/protocolpool/v1/types.ts +268 -0
  234. package/types/cosmos/query/v1/query.ts +1 -0
  235. package/types/cosmos/reflection/v1/reflection.ts +178 -0
  236. package/types/cosmos/rpc.query.ts +90 -0
  237. package/types/cosmos/rpc.tx.ts +71 -0
  238. package/types/cosmos/slashing/module/v1/module.ts +100 -0
  239. package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
  240. package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
  241. package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
  242. package/types/cosmos/slashing/v1beta1/query.ts +606 -0
  243. package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
  244. package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
  245. package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
  246. package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
  247. package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
  248. package/types/cosmos/staking/module/v1/module.ts +165 -0
  249. package/types/cosmos/staking/v1beta1/authz.ts +321 -0
  250. package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
  251. package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
  252. package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
  253. package/types/cosmos/staking/v1beta1/query.ts +3187 -0
  254. package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
  255. package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
  256. package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
  257. package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
  258. package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
  259. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
  260. package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
  261. package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
  262. package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
  263. package/types/cosmos/store/v1beta1/listening.ts +296 -0
  264. package/types/cosmos/tx/config/v1/config.ts +127 -0
  265. package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
  266. package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
  267. package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
  268. package/types/cosmos/tx/v1beta1/service.ts +2319 -0
  269. package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
  270. package/types/cosmos/upgrade/module/v1/module.ts +100 -0
  271. package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
  272. package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
  273. package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
  274. package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
  275. package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
  276. package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
  277. package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
  278. package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
  279. package/types/cosmos/vesting/module/v1/module.ts +77 -0
  280. package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
  281. package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
  282. package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
  283. package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
  284. package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
  285. package/types/cosmos_proto/bundle.ts +5 -0
  286. package/types/cosmos_proto/cosmos.ts +355 -0
  287. package/types/cosmwasm/bundle.ts +39 -0
  288. package/types/cosmwasm/client.ts +48 -0
  289. package/types/cosmwasm/lcd.ts +132 -0
  290. package/types/cosmwasm/rpc.query.ts +95 -0
  291. package/types/cosmwasm/rpc.tx.ts +76 -0
  292. package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
  293. package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
  294. package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
  295. package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
  296. package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
  297. package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
  298. package/types/cosmwasm/wasm/v1/query.ts +3339 -0
  299. package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
  300. package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
  301. package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
  302. package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
  303. package/types/cosmwasm/wasm/v1/types.ts +1193 -0
  304. package/types/gogoproto/bundle.ts +5 -0
  305. package/types/gogoproto/gogo.ts +1 -0
  306. package/types/google/api/annotations.ts +1 -0
  307. package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
  308. package/types/google/api/apikeys/v2/resources.ts +1268 -0
  309. package/types/google/api/auth.ts +1175 -0
  310. package/types/google/api/backend.ts +691 -0
  311. package/types/google/api/billing.ts +333 -0
  312. package/types/google/api/client.ts +3100 -0
  313. package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
  314. package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
  315. package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
  316. package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
  317. package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
  318. package/types/google/api/config_change.ts +385 -0
  319. package/types/google/api/consumer.ts +362 -0
  320. package/types/google/api/context.ts +418 -0
  321. package/types/google/api/control.ts +141 -0
  322. package/types/google/api/distribution.ts +1253 -0
  323. package/types/google/api/documentation.ts +738 -0
  324. package/types/google/api/endpoint.ts +245 -0
  325. package/types/google/api/error_reason.ts +816 -0
  326. package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
  327. package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
  328. package/types/google/api/expr/v1alpha1/eval.ts +675 -0
  329. package/types/google/api/expr/v1alpha1/explain.ts +257 -0
  330. package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
  331. package/types/google/api/expr/v1alpha1/value.ts +771 -0
  332. package/types/google/api/expr/v1beta1/decl.ts +563 -0
  333. package/types/google/api/expr/v1beta1/eval.ts +758 -0
  334. package/types/google/api/expr/v1beta1/expr.ts +1750 -0
  335. package/types/google/api/expr/v1beta1/source.ts +446 -0
  336. package/types/google/api/expr/v1beta1/value.ts +771 -0
  337. package/types/google/api/field_behavior.ts +136 -0
  338. package/types/google/api/field_info.ts +319 -0
  339. package/types/google/api/http.ts +1362 -0
  340. package/types/google/api/httpbody.ts +270 -0
  341. package/types/google/api/label.ts +174 -0
  342. package/types/google/api/launch_stage.ts +112 -0
  343. package/types/google/api/log.ts +201 -0
  344. package/types/google/api/logging.ts +355 -0
  345. package/types/google/api/metric.ts +1174 -0
  346. package/types/google/api/monitored_resource.ts +841 -0
  347. package/types/google/api/monitoring.ts +430 -0
  348. package/types/google/api/policy.ts +314 -0
  349. package/types/google/api/quota.ts +1040 -0
  350. package/types/google/api/resource.ts +769 -0
  351. package/types/google/api/routing.ts +1405 -0
  352. package/types/google/api/service.ts +790 -0
  353. package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
  354. package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
  355. package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
  356. package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
  357. package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
  358. package/types/google/api/servicecontrol/v1/operation.ts +544 -0
  359. package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
  360. package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
  361. package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
  362. package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
  363. package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
  364. package/types/google/api/serviceusage/v1/resources.ts +629 -0
  365. package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
  366. package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
  367. package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
  368. package/types/google/api/source_info.ts +97 -0
  369. package/types/google/api/system_parameter.ts +461 -0
  370. package/types/google/api/usage.ts +404 -0
  371. package/types/google/api/visibility.ts +328 -0
  372. package/types/google/bundle.ts +115 -0
  373. package/types/google/logging/type/log_severity.ts +104 -0
  374. package/types/google/longrunning/operations.ts +1153 -0
  375. package/types/google/protobuf/any.ts +424 -0
  376. package/types/google/protobuf/api.ts +942 -0
  377. package/types/google/protobuf/descriptor.ts +7801 -0
  378. package/types/google/protobuf/duration.ts +284 -0
  379. package/types/google/protobuf/empty.ts +93 -0
  380. package/types/google/protobuf/field_mask.ts +694 -0
  381. package/types/google/protobuf/source_context.ts +105 -0
  382. package/types/google/protobuf/struct.ts +584 -0
  383. package/types/google/protobuf/timestamp.ts +373 -0
  384. package/types/google/protobuf/type.ts +1279 -0
  385. package/types/google/protobuf/wrappers.ts +1002 -0
  386. package/types/google/rpc/code.ts +286 -0
  387. package/types/google/rpc/context/attribute_context.ts +2517 -0
  388. package/types/google/rpc/context/audit_context.ts +188 -0
  389. package/types/google/rpc/error_details.ts +2467 -0
  390. package/types/google/rpc/http.ts +424 -0
  391. package/types/google/rpc/status.ts +173 -0
  392. package/types/helpers.ts +259 -0
  393. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
  394. package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
  395. package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
  396. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  397. package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
  398. package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
  399. package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
  400. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
  401. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
  402. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
  403. package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
  404. package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
  405. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
  406. package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
  407. package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
  408. package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
  409. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
  410. package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
  411. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
  412. package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
  413. package/types/ibc/applications/transfer/v1/authz.ts +297 -0
  414. package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
  415. package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
  416. package/types/ibc/applications/transfer/v1/packet.ts +186 -0
  417. package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
  418. package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
  419. package/types/ibc/applications/transfer/v1/query.ts +1233 -0
  420. package/types/ibc/applications/transfer/v1/token.ts +347 -0
  421. package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
  422. package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
  423. package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
  424. package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
  425. package/types/ibc/applications/transfer/v1/tx.ts +579 -0
  426. package/types/ibc/bundle.ts +265 -0
  427. package/types/ibc/client.ts +72 -0
  428. package/types/ibc/core/channel/v1/channel.ts +1455 -0
  429. package/types/ibc/core/channel/v1/genesis.ts +351 -0
  430. package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
  431. package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
  432. package/types/ibc/core/channel/v1/query.ts +3943 -0
  433. package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
  434. package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
  435. package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
  436. package/types/ibc/core/channel/v1/tx.ts +2558 -0
  437. package/types/ibc/core/channel/v2/genesis.ts +433 -0
  438. package/types/ibc/core/channel/v2/packet.ts +640 -0
  439. package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
  440. package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
  441. package/types/ibc/core/channel/v2/query.ts +2075 -0
  442. package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
  443. package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
  444. package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
  445. package/types/ibc/core/channel/v2/tx.ts +1003 -0
  446. package/types/ibc/core/client/v1/client.ts +636 -0
  447. package/types/ibc/core/client/v1/genesis.ts +448 -0
  448. package/types/ibc/core/client/v1/query.lcd.ts +102 -0
  449. package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
  450. package/types/ibc/core/client/v1/query.ts +2588 -0
  451. package/types/ibc/core/client/v1/tx.amino.ts +44 -0
  452. package/types/ibc/core/client/v1/tx.registry.ts +161 -0
  453. package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
  454. package/types/ibc/core/client/v1/tx.ts +1796 -0
  455. package/types/ibc/core/client/v2/config.ts +115 -0
  456. package/types/ibc/core/client/v2/counterparty.ts +122 -0
  457. package/types/ibc/core/client/v2/genesis.ts +220 -0
  458. package/types/ibc/core/client/v2/query.lcd.ts +25 -0
  459. package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
  460. package/types/ibc/core/client/v2/query.ts +402 -0
  461. package/types/ibc/core/client/v2/tx.amino.ts +14 -0
  462. package/types/ibc/core/client/v2/tx.registry.ts +53 -0
  463. package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
  464. package/types/ibc/core/client/v2/tx.ts +453 -0
  465. package/types/ibc/core/commitment/v1/commitment.ts +321 -0
  466. package/types/ibc/core/commitment/v2/commitment.ts +193 -0
  467. package/types/ibc/core/connection/v1/connection.ts +1056 -0
  468. package/types/ibc/core/connection/v1/genesis.ts +150 -0
  469. package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
  470. package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
  471. package/types/ibc/core/connection/v1/query.ts +1472 -0
  472. package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
  473. package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
  474. package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
  475. package/types/ibc/core/connection/v1/tx.ts +1456 -0
  476. package/types/ibc/core/types/v1/genesis.ts +191 -0
  477. package/types/ibc/lcd.ts +176 -0
  478. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
  479. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
  480. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
  481. package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
  482. package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
  483. package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
  484. package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
  485. package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
  486. package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
  487. package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
  488. package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
  489. package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
  490. package/types/ibc/rpc.query.ts +123 -0
  491. package/types/ibc/rpc.tx.ts +104 -0
  492. package/types/index.ts +25 -0
  493. package/types/tendermint/abci/types.ts +6565 -0
  494. package/types/tendermint/bundle.ts +33 -0
  495. package/types/tendermint/crypto/keys.ts +106 -0
  496. package/types/tendermint/crypto/proof.ts +576 -0
  497. package/types/tendermint/p2p/types.ts +523 -0
  498. package/types/tendermint/types/block.ts +134 -0
  499. package/types/tendermint/types/evidence.ts +491 -0
  500. package/types/tendermint/types/params.ts +839 -0
  501. package/types/tendermint/types/types.ts +2266 -0
  502. package/types/tendermint/types/validator.ts +399 -0
  503. package/types/tendermint/version/types.ts +228 -0
  504. package/types/utf8.ts +149 -0
  505. package/types/varint.ts +489 -0
  506. package/types/xion/bundle.ts +117 -0
  507. package/types/xion/client.ts +57 -0
  508. package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
  509. package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
  510. package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
  511. package/types/xion/feeabs/v1beta1/params.ts +189 -0
  512. package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
  513. package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
  514. package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
  515. package/types/xion/feeabs/v1beta1/query.ts +732 -0
  516. package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
  517. package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
  518. package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
  519. package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
  520. package/types/xion/globalfee/v1/genesis.ts +249 -0
  521. package/types/xion/globalfee/v1/query.lcd.ts +19 -0
  522. package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
  523. package/types/xion/globalfee/v1/query.ts +178 -0
  524. package/types/xion/jwk/v1/audience.ts +224 -0
  525. package/types/xion/jwk/v1/genesis.ts +117 -0
  526. package/types/xion/jwk/v1/params.ts +113 -0
  527. package/types/xion/jwk/v1/query.lcd.ts +52 -0
  528. package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
  529. package/types/xion/jwk/v1/query.ts +1697 -0
  530. package/types/xion/jwk/v1/tx.amino.ts +29 -0
  531. package/types/xion/jwk/v1/tx.registry.ts +107 -0
  532. package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
  533. package/types/xion/jwk/v1/tx.ts +1040 -0
  534. package/types/xion/lcd.ts +147 -0
  535. package/types/xion/mint/v1/event.ts +216 -0
  536. package/types/xion/mint/v1/genesis.ts +114 -0
  537. package/types/xion/mint/v1/mint.ts +307 -0
  538. package/types/xion/mint/v1/query.lcd.ts +31 -0
  539. package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
  540. package/types/xion/mint/v1/query.ts +508 -0
  541. package/types/xion/mint/v1/tx.amino.ts +9 -0
  542. package/types/xion/mint/v1/tx.registry.ts +35 -0
  543. package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
  544. package/types/xion/mint/v1/tx.ts +222 -0
  545. package/types/xion/rpc.query.ts +105 -0
  546. package/types/xion/rpc.tx.ts +83 -0
  547. package/types/xion/v1/feegrant.ts +457 -0
  548. package/types/xion/v1/genesis.ts +116 -0
  549. package/types/xion/v1/query.rpc.Query.ts +64 -0
  550. package/types/xion/v1/query.ts +862 -0
  551. package/types/xion/v1/tx.amino.ts +24 -0
  552. package/types/xion/v1/tx.registry.ts +89 -0
  553. package/types/xion/v1/tx.rpc.msg.ts +57 -0
  554. package/types/xion/v1/tx.ts +793 -0
@@ -0,0 +1,2168 @@
1
+ //@ts-nocheck
2
+ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
3
+ import { Timestamp } from "../../../google/protobuf/timestamp";
4
+ import { SignMode } from "../signing/v1beta1/signing";
5
+ import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig";
6
+ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
7
+ import { BinaryReader, BinaryWriter } from "../../../binary";
8
+ import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers";
9
+ /** Tx is the standard type used for broadcasting transactions. */
10
+ export interface Tx {
11
+ /** body is the processable content of the transaction */
12
+ body?: TxBody;
13
+ /**
14
+ * auth_info is the authorization related content of the transaction,
15
+ * specifically signers, signer modes and fee
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
+ signatures: Uint8Array[];
24
+ }
25
+ export interface TxProtoMsg {
26
+ typeUrl: "/cosmos.tx.v1beta1.Tx";
27
+ value: Uint8Array;
28
+ }
29
+ /**
30
+ * Tx is the standard type used for broadcasting transactions.
31
+ * @name TxAmino
32
+ * @package cosmos.tx.v1beta1
33
+ * @see proto type: cosmos.tx.v1beta1.Tx
34
+ */
35
+ export interface TxAmino {
36
+ /**
37
+ * body is the processable content of the transaction
38
+ */
39
+ body?: TxBodyAmino;
40
+ /**
41
+ * auth_info is the authorization related content of the transaction,
42
+ * specifically signers, signer modes and fee
43
+ */
44
+ auth_info?: AuthInfoAmino;
45
+ /**
46
+ * signatures is a list of signatures that matches the length and order of
47
+ * AuthInfo's signer_infos to allow connecting signature meta information like
48
+ * public key and signing mode by position.
49
+ */
50
+ signatures?: string[];
51
+ }
52
+ export interface TxAminoMsg {
53
+ type: "cosmos-sdk/Tx";
54
+ value: TxAmino;
55
+ }
56
+ /** Tx is the standard type used for broadcasting transactions. */
57
+ export interface TxSDKType {
58
+ body?: TxBodySDKType;
59
+ auth_info?: AuthInfoSDKType;
60
+ signatures: Uint8Array[];
61
+ }
62
+ /**
63
+ * TxRaw is a variant of Tx that pins the signer's exact binary representation
64
+ * of body and auth_info. This is used for signing, broadcasting and
65
+ * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
66
+ * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
67
+ * as the transaction ID.
68
+ */
69
+ export interface TxRaw {
70
+ /**
71
+ * body_bytes is a protobuf serialization of a TxBody that matches the
72
+ * representation in SignDoc.
73
+ */
74
+ bodyBytes: Uint8Array;
75
+ /**
76
+ * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
77
+ * representation in SignDoc.
78
+ */
79
+ authInfoBytes: Uint8Array;
80
+ /**
81
+ * signatures is a list of signatures that matches the length and order of
82
+ * AuthInfo's signer_infos to allow connecting signature meta information like
83
+ * public key and signing mode by position.
84
+ */
85
+ signatures: Uint8Array[];
86
+ }
87
+ export interface TxRawProtoMsg {
88
+ typeUrl: "/cosmos.tx.v1beta1.TxRaw";
89
+ value: Uint8Array;
90
+ }
91
+ /**
92
+ * TxRaw is a variant of Tx that pins the signer's exact binary representation
93
+ * of body and auth_info. This is used for signing, broadcasting and
94
+ * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
95
+ * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
96
+ * as the transaction ID.
97
+ * @name TxRawAmino
98
+ * @package cosmos.tx.v1beta1
99
+ * @see proto type: cosmos.tx.v1beta1.TxRaw
100
+ */
101
+ export interface TxRawAmino {
102
+ /**
103
+ * body_bytes is a protobuf serialization of a TxBody that matches the
104
+ * representation in SignDoc.
105
+ */
106
+ body_bytes?: string;
107
+ /**
108
+ * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
109
+ * representation in SignDoc.
110
+ */
111
+ auth_info_bytes?: string;
112
+ /**
113
+ * signatures is a list of signatures that matches the length and order of
114
+ * AuthInfo's signer_infos to allow connecting signature meta information like
115
+ * public key and signing mode by position.
116
+ */
117
+ signatures?: string[];
118
+ }
119
+ export interface TxRawAminoMsg {
120
+ type: "cosmos-sdk/TxRaw";
121
+ value: TxRawAmino;
122
+ }
123
+ /**
124
+ * TxRaw is a variant of Tx that pins the signer's exact binary representation
125
+ * of body and auth_info. This is used for signing, broadcasting and
126
+ * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
127
+ * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
128
+ * as the transaction ID.
129
+ */
130
+ export interface TxRawSDKType {
131
+ body_bytes: Uint8Array;
132
+ auth_info_bytes: Uint8Array;
133
+ signatures: Uint8Array[];
134
+ }
135
+ /** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */
136
+ export interface SignDoc {
137
+ /**
138
+ * body_bytes is protobuf serialization of a TxBody that matches the
139
+ * representation in TxRaw.
140
+ */
141
+ bodyBytes: Uint8Array;
142
+ /**
143
+ * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
144
+ * representation in TxRaw.
145
+ */
146
+ authInfoBytes: Uint8Array;
147
+ /**
148
+ * chain_id is the unique identifier of the chain this transaction targets.
149
+ * It prevents signed transactions from being used on another chain by an
150
+ * attacker
151
+ */
152
+ chainId: string;
153
+ /** account_number is the account number of the account in state */
154
+ accountNumber: bigint;
155
+ }
156
+ export interface SignDocProtoMsg {
157
+ typeUrl: "/cosmos.tx.v1beta1.SignDoc";
158
+ value: Uint8Array;
159
+ }
160
+ /**
161
+ * SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
162
+ * @name SignDocAmino
163
+ * @package cosmos.tx.v1beta1
164
+ * @see proto type: cosmos.tx.v1beta1.SignDoc
165
+ */
166
+ export interface SignDocAmino {
167
+ /**
168
+ * body_bytes is protobuf serialization of a TxBody that matches the
169
+ * representation in TxRaw.
170
+ */
171
+ body_bytes?: string;
172
+ /**
173
+ * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
174
+ * representation in TxRaw.
175
+ */
176
+ auth_info_bytes?: string;
177
+ /**
178
+ * chain_id is the unique identifier of the chain this transaction targets.
179
+ * It prevents signed transactions from being used on another chain by an
180
+ * attacker
181
+ */
182
+ chain_id?: string;
183
+ /**
184
+ * account_number is the account number of the account in state
185
+ */
186
+ account_number?: string;
187
+ }
188
+ export interface SignDocAminoMsg {
189
+ type: "cosmos-sdk/SignDoc";
190
+ value: SignDocAmino;
191
+ }
192
+ /** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */
193
+ export interface SignDocSDKType {
194
+ body_bytes: Uint8Array;
195
+ auth_info_bytes: Uint8Array;
196
+ chain_id: string;
197
+ account_number: bigint;
198
+ }
199
+ /**
200
+ * SignDocDirectAux is the type used for generating sign bytes for
201
+ * SIGN_MODE_DIRECT_AUX.
202
+ */
203
+ export interface SignDocDirectAux {
204
+ /**
205
+ * body_bytes is protobuf serialization of a TxBody that matches the
206
+ * representation in TxRaw.
207
+ */
208
+ bodyBytes: Uint8Array;
209
+ /** public_key is the public key of the signing account. */
210
+ publicKey?: Any;
211
+ /**
212
+ * chain_id is the identifier of the chain this transaction targets.
213
+ * It prevents signed transactions from being used on another chain by an
214
+ * attacker.
215
+ */
216
+ chainId: string;
217
+ /** account_number is the account number of the account in state. */
218
+ accountNumber: bigint;
219
+ /** sequence is the sequence number of the signing account. */
220
+ sequence: bigint;
221
+ /** tips have been depreacted and should not be used */
222
+ /** @deprecated */
223
+ tip?: Tip;
224
+ }
225
+ export interface SignDocDirectAuxProtoMsg {
226
+ typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux";
227
+ value: Uint8Array;
228
+ }
229
+ /**
230
+ * SignDocDirectAux is the type used for generating sign bytes for
231
+ * SIGN_MODE_DIRECT_AUX.
232
+ * @name SignDocDirectAuxAmino
233
+ * @package cosmos.tx.v1beta1
234
+ * @see proto type: cosmos.tx.v1beta1.SignDocDirectAux
235
+ */
236
+ export interface SignDocDirectAuxAmino {
237
+ /**
238
+ * body_bytes is protobuf serialization of a TxBody that matches the
239
+ * representation in TxRaw.
240
+ */
241
+ body_bytes?: string;
242
+ /**
243
+ * public_key is the public key of the signing account.
244
+ */
245
+ public_key?: AnyAmino;
246
+ /**
247
+ * chain_id is the identifier of the chain this transaction targets.
248
+ * It prevents signed transactions from being used on another chain by an
249
+ * attacker.
250
+ */
251
+ chain_id?: string;
252
+ /**
253
+ * account_number is the account number of the account in state.
254
+ */
255
+ account_number?: string;
256
+ /**
257
+ * sequence is the sequence number of the signing account.
258
+ */
259
+ sequence?: string;
260
+ /**
261
+ * tips have been depreacted and should not be used
262
+ * @deprecated
263
+ */
264
+ tip?: TipAmino;
265
+ }
266
+ export interface SignDocDirectAuxAminoMsg {
267
+ type: "cosmos-sdk/SignDocDirectAux";
268
+ value: SignDocDirectAuxAmino;
269
+ }
270
+ /**
271
+ * SignDocDirectAux is the type used for generating sign bytes for
272
+ * SIGN_MODE_DIRECT_AUX.
273
+ */
274
+ export interface SignDocDirectAuxSDKType {
275
+ body_bytes: Uint8Array;
276
+ public_key?: AnySDKType;
277
+ chain_id: string;
278
+ account_number: bigint;
279
+ sequence: bigint;
280
+ /** @deprecated */
281
+ tip?: TipSDKType;
282
+ }
283
+ /** TxBody is the body of a transaction that all signers sign over. */
284
+ export interface TxBody {
285
+ /**
286
+ * messages is a list of messages to be executed. The required signers of
287
+ * those messages define the number and order of elements in AuthInfo's
288
+ * signer_infos and Tx's signatures. Each required signer address is added to
289
+ * the list only the first time it occurs.
290
+ * By convention, the first required signer (usually from the first message)
291
+ * is referred to as the primary signer and pays the fee for the whole
292
+ * transaction.
293
+ */
294
+ messages: Any[];
295
+ /**
296
+ * memo is any arbitrary note/comment to be added to the transaction.
297
+ * WARNING: in clients, any publicly exposed text should not be called memo,
298
+ * but should be called `note` instead (see
299
+ * https://github.com/cosmos/cosmos-sdk/issues/9122).
300
+ */
301
+ memo: string;
302
+ /**
303
+ * timeout_height is the block height after which this transaction will not
304
+ * be processed by the chain.
305
+ */
306
+ timeoutHeight: bigint;
307
+ /**
308
+ * unordered, when set to true, indicates that the transaction signer(s)
309
+ * intend for the transaction to be evaluated and executed in an un-ordered
310
+ * fashion. Specifically, the account's nonce will NOT be checked or
311
+ * incremented, which allows for fire-and-forget as well as concurrent
312
+ * transaction execution.
313
+ *
314
+ * Note, when set to true, the existing 'timeout_timestamp' value must
315
+ * be set and will be used to correspond to a timestamp in which the transaction is deemed
316
+ * valid.
317
+ *
318
+ * When true, the sequence value MUST be 0, and any transaction with unordered=true and a non-zero sequence value will
319
+ * be rejected.
320
+ * External services that make assumptions about sequence values may need to be updated because of this.
321
+ */
322
+ unordered: boolean;
323
+ /**
324
+ * timeout_timestamp is the block time after which this transaction will not
325
+ * be processed by the chain.
326
+ *
327
+ * Note, if unordered=true this value MUST be set
328
+ * and will act as a short-lived TTL in which the transaction is deemed valid
329
+ * and kept in memory to prevent duplicates.
330
+ */
331
+ timeoutTimestamp?: Date;
332
+ /**
333
+ * extension_options are arbitrary options that can be added by chains
334
+ * when the default options are not sufficient. If any of these are present
335
+ * and can't be handled, the transaction will be rejected
336
+ */
337
+ extensionOptions: Any[];
338
+ /**
339
+ * extension_options are arbitrary options that can be added by chains
340
+ * when the default options are not sufficient. If any of these are present
341
+ * and can't be handled, they will be ignored
342
+ */
343
+ nonCriticalExtensionOptions: Any[];
344
+ }
345
+ export interface TxBodyProtoMsg {
346
+ typeUrl: "/cosmos.tx.v1beta1.TxBody";
347
+ value: Uint8Array;
348
+ }
349
+ /**
350
+ * TxBody is the body of a transaction that all signers sign over.
351
+ * @name TxBodyAmino
352
+ * @package cosmos.tx.v1beta1
353
+ * @see proto type: cosmos.tx.v1beta1.TxBody
354
+ */
355
+ export interface TxBodyAmino {
356
+ /**
357
+ * messages is a list of messages to be executed. The required signers of
358
+ * those messages define the number and order of elements in AuthInfo's
359
+ * signer_infos and Tx's signatures. Each required signer address is added to
360
+ * the list only the first time it occurs.
361
+ * By convention, the first required signer (usually from the first message)
362
+ * is referred to as the primary signer and pays the fee for the whole
363
+ * transaction.
364
+ */
365
+ messages?: AnyAmino[];
366
+ /**
367
+ * memo is any arbitrary note/comment to be added to the transaction.
368
+ * WARNING: in clients, any publicly exposed text should not be called memo,
369
+ * but should be called `note` instead (see
370
+ * https://github.com/cosmos/cosmos-sdk/issues/9122).
371
+ */
372
+ memo?: string;
373
+ /**
374
+ * timeout_height is the block height after which this transaction will not
375
+ * be processed by the chain.
376
+ */
377
+ timeout_height?: string;
378
+ /**
379
+ * unordered, when set to true, indicates that the transaction signer(s)
380
+ * intend for the transaction to be evaluated and executed in an un-ordered
381
+ * fashion. Specifically, the account's nonce will NOT be checked or
382
+ * incremented, which allows for fire-and-forget as well as concurrent
383
+ * transaction execution.
384
+ *
385
+ * Note, when set to true, the existing 'timeout_timestamp' value must
386
+ * be set and will be used to correspond to a timestamp in which the transaction is deemed
387
+ * valid.
388
+ *
389
+ * When true, the sequence value MUST be 0, and any transaction with unordered=true and a non-zero sequence value will
390
+ * be rejected.
391
+ * External services that make assumptions about sequence values may need to be updated because of this.
392
+ */
393
+ unordered?: boolean;
394
+ /**
395
+ * timeout_timestamp is the block time after which this transaction will not
396
+ * be processed by the chain.
397
+ *
398
+ * Note, if unordered=true this value MUST be set
399
+ * and will act as a short-lived TTL in which the transaction is deemed valid
400
+ * and kept in memory to prevent duplicates.
401
+ */
402
+ timeout_timestamp?: string;
403
+ /**
404
+ * extension_options are arbitrary options that can be added by chains
405
+ * when the default options are not sufficient. If any of these are present
406
+ * and can't be handled, the transaction will be rejected
407
+ */
408
+ extension_options?: AnyAmino[];
409
+ /**
410
+ * extension_options are arbitrary options that can be added by chains
411
+ * when the default options are not sufficient. If any of these are present
412
+ * and can't be handled, they will be ignored
413
+ */
414
+ non_critical_extension_options?: AnyAmino[];
415
+ }
416
+ export interface TxBodyAminoMsg {
417
+ type: "cosmos-sdk/TxBody";
418
+ value: TxBodyAmino;
419
+ }
420
+ /** TxBody is the body of a transaction that all signers sign over. */
421
+ export interface TxBodySDKType {
422
+ messages: AnySDKType[];
423
+ memo: string;
424
+ timeout_height: bigint;
425
+ unordered: boolean;
426
+ timeout_timestamp?: Date;
427
+ extension_options: AnySDKType[];
428
+ non_critical_extension_options: AnySDKType[];
429
+ }
430
+ /**
431
+ * AuthInfo describes the fee and signer modes that are used to sign a
432
+ * transaction.
433
+ */
434
+ export interface AuthInfo {
435
+ /**
436
+ * signer_infos defines the signing modes for the required signers. The number
437
+ * and order of elements must match the required signers from TxBody's
438
+ * messages. The first element is the primary signer and the one which pays
439
+ * the fee.
440
+ */
441
+ signerInfos: SignerInfo[];
442
+ /**
443
+ * Fee is the fee and gas limit for the transaction. The first signer is the
444
+ * primary signer and the one which pays the fee. The fee can be calculated
445
+ * based on the cost of evaluating the body and doing signature verification
446
+ * of the signers. This can be estimated via simulation.
447
+ */
448
+ fee?: Fee;
449
+ /**
450
+ * Tip is the optional tip used for transactions fees paid in another denom.
451
+ *
452
+ * This field is ignored if the chain didn't enable tips, i.e. didn't add the
453
+ * `TipDecorator` in its posthandler.
454
+ */
455
+ /** @deprecated */
456
+ tip?: Tip;
457
+ }
458
+ export interface AuthInfoProtoMsg {
459
+ typeUrl: "/cosmos.tx.v1beta1.AuthInfo";
460
+ value: Uint8Array;
461
+ }
462
+ /**
463
+ * AuthInfo describes the fee and signer modes that are used to sign a
464
+ * transaction.
465
+ * @name AuthInfoAmino
466
+ * @package cosmos.tx.v1beta1
467
+ * @see proto type: cosmos.tx.v1beta1.AuthInfo
468
+ */
469
+ export interface AuthInfoAmino {
470
+ /**
471
+ * signer_infos defines the signing modes for the required signers. The number
472
+ * and order of elements must match the required signers from TxBody's
473
+ * messages. The first element is the primary signer and the one which pays
474
+ * the fee.
475
+ */
476
+ signer_infos?: SignerInfoAmino[];
477
+ /**
478
+ * Fee is the fee and gas limit for the transaction. The first signer is the
479
+ * primary signer and the one which pays the fee. The fee can be calculated
480
+ * based on the cost of evaluating the body and doing signature verification
481
+ * of the signers. This can be estimated via simulation.
482
+ */
483
+ fee?: FeeAmino;
484
+ /**
485
+ * Tip is the optional tip used for transactions fees paid in another denom.
486
+ *
487
+ * This field is ignored if the chain didn't enable tips, i.e. didn't add the
488
+ * `TipDecorator` in its posthandler.
489
+ * @deprecated
490
+ */
491
+ tip?: TipAmino;
492
+ }
493
+ export interface AuthInfoAminoMsg {
494
+ type: "cosmos-sdk/AuthInfo";
495
+ value: AuthInfoAmino;
496
+ }
497
+ /**
498
+ * AuthInfo describes the fee and signer modes that are used to sign a
499
+ * transaction.
500
+ */
501
+ export interface AuthInfoSDKType {
502
+ signer_infos: SignerInfoSDKType[];
503
+ fee?: FeeSDKType;
504
+ /** @deprecated */
505
+ tip?: TipSDKType;
506
+ }
507
+ /**
508
+ * SignerInfo describes the public key and signing mode of a single top-level
509
+ * signer.
510
+ */
511
+ export interface SignerInfo {
512
+ /**
513
+ * public_key is the public key of the signer. It is optional for accounts
514
+ * that already exist in state. If unset, the verifier can use the required \
515
+ * signer address for this position and lookup the public key.
516
+ */
517
+ publicKey?: Any;
518
+ /**
519
+ * mode_info describes the signing mode of the signer and is a nested
520
+ * structure to support nested multisig pubkey's
521
+ */
522
+ modeInfo?: ModeInfo;
523
+ /**
524
+ * sequence is the sequence of the account, which describes the
525
+ * number of committed transactions signed by a given address. It is used to
526
+ * prevent replay attacks.
527
+ */
528
+ sequence: bigint;
529
+ }
530
+ export interface SignerInfoProtoMsg {
531
+ typeUrl: "/cosmos.tx.v1beta1.SignerInfo";
532
+ value: Uint8Array;
533
+ }
534
+ /**
535
+ * SignerInfo describes the public key and signing mode of a single top-level
536
+ * signer.
537
+ * @name SignerInfoAmino
538
+ * @package cosmos.tx.v1beta1
539
+ * @see proto type: cosmos.tx.v1beta1.SignerInfo
540
+ */
541
+ export interface SignerInfoAmino {
542
+ /**
543
+ * public_key is the public key of the signer. It is optional for accounts
544
+ * that already exist in state. If unset, the verifier can use the required \
545
+ * signer address for this position and lookup the public key.
546
+ */
547
+ public_key?: AnyAmino;
548
+ /**
549
+ * mode_info describes the signing mode of the signer and is a nested
550
+ * structure to support nested multisig pubkey's
551
+ */
552
+ mode_info?: ModeInfoAmino;
553
+ /**
554
+ * sequence is the sequence of the account, which describes the
555
+ * number of committed transactions signed by a given address. It is used to
556
+ * prevent replay attacks.
557
+ */
558
+ sequence?: string;
559
+ }
560
+ export interface SignerInfoAminoMsg {
561
+ type: "cosmos-sdk/SignerInfo";
562
+ value: SignerInfoAmino;
563
+ }
564
+ /**
565
+ * SignerInfo describes the public key and signing mode of a single top-level
566
+ * signer.
567
+ */
568
+ export interface SignerInfoSDKType {
569
+ public_key?: AnySDKType;
570
+ mode_info?: ModeInfoSDKType;
571
+ sequence: bigint;
572
+ }
573
+ /** ModeInfo describes the signing mode of a single or nested multisig signer. */
574
+ export interface ModeInfo {
575
+ /** single represents a single signer */
576
+ single?: ModeInfo_Single;
577
+ /** multi represents a nested multisig signer */
578
+ multi?: ModeInfo_Multi;
579
+ }
580
+ export interface ModeInfoProtoMsg {
581
+ typeUrl: "/cosmos.tx.v1beta1.ModeInfo";
582
+ value: Uint8Array;
583
+ }
584
+ /**
585
+ * ModeInfo describes the signing mode of a single or nested multisig signer.
586
+ * @name ModeInfoAmino
587
+ * @package cosmos.tx.v1beta1
588
+ * @see proto type: cosmos.tx.v1beta1.ModeInfo
589
+ */
590
+ export interface ModeInfoAmino {
591
+ /**
592
+ * single represents a single signer
593
+ */
594
+ single?: ModeInfo_SingleAmino;
595
+ /**
596
+ * multi represents a nested multisig signer
597
+ */
598
+ multi?: ModeInfo_MultiAmino;
599
+ }
600
+ export interface ModeInfoAminoMsg {
601
+ type: "cosmos-sdk/ModeInfo";
602
+ value: ModeInfoAmino;
603
+ }
604
+ /** ModeInfo describes the signing mode of a single or nested multisig signer. */
605
+ export interface ModeInfoSDKType {
606
+ single?: ModeInfo_SingleSDKType;
607
+ multi?: ModeInfo_MultiSDKType;
608
+ }
609
+ /**
610
+ * Single is the mode info for a single signer. It is structured as a message
611
+ * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
612
+ * future
613
+ */
614
+ export interface ModeInfo_Single {
615
+ /** mode is the signing mode of the single signer */
616
+ mode: SignMode;
617
+ }
618
+ export interface ModeInfo_SingleProtoMsg {
619
+ typeUrl: "/cosmos.tx.v1beta1.Single";
620
+ value: Uint8Array;
621
+ }
622
+ /**
623
+ * Single is the mode info for a single signer. It is structured as a message
624
+ * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
625
+ * future
626
+ * @name ModeInfo_SingleAmino
627
+ * @package cosmos.tx.v1beta1
628
+ * @see proto type: cosmos.tx.v1beta1.ModeInfo_Single
629
+ */
630
+ export interface ModeInfo_SingleAmino {
631
+ /**
632
+ * mode is the signing mode of the single signer
633
+ */
634
+ mode?: SignMode;
635
+ }
636
+ export interface ModeInfo_SingleAminoMsg {
637
+ type: "cosmos-sdk/Single";
638
+ value: ModeInfo_SingleAmino;
639
+ }
640
+ /**
641
+ * Single is the mode info for a single signer. It is structured as a message
642
+ * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
643
+ * future
644
+ */
645
+ export interface ModeInfo_SingleSDKType {
646
+ mode: SignMode;
647
+ }
648
+ /** Multi is the mode info for a multisig public key */
649
+ export interface ModeInfo_Multi {
650
+ /** bitarray specifies which keys within the multisig are signing */
651
+ bitarray?: CompactBitArray;
652
+ /**
653
+ * mode_infos is the corresponding modes of the signers of the multisig
654
+ * which could include nested multisig public keys
655
+ */
656
+ modeInfos: ModeInfo[];
657
+ }
658
+ export interface ModeInfo_MultiProtoMsg {
659
+ typeUrl: "/cosmos.tx.v1beta1.Multi";
660
+ value: Uint8Array;
661
+ }
662
+ /**
663
+ * Multi is the mode info for a multisig public key
664
+ * @name ModeInfo_MultiAmino
665
+ * @package cosmos.tx.v1beta1
666
+ * @see proto type: cosmos.tx.v1beta1.ModeInfo_Multi
667
+ */
668
+ export interface ModeInfo_MultiAmino {
669
+ /**
670
+ * bitarray specifies which keys within the multisig are signing
671
+ */
672
+ bitarray?: CompactBitArrayAmino;
673
+ /**
674
+ * mode_infos is the corresponding modes of the signers of the multisig
675
+ * which could include nested multisig public keys
676
+ */
677
+ mode_infos?: ModeInfoAmino[];
678
+ }
679
+ export interface ModeInfo_MultiAminoMsg {
680
+ type: "cosmos-sdk/Multi";
681
+ value: ModeInfo_MultiAmino;
682
+ }
683
+ /** Multi is the mode info for a multisig public key */
684
+ export interface ModeInfo_MultiSDKType {
685
+ bitarray?: CompactBitArraySDKType;
686
+ mode_infos: ModeInfoSDKType[];
687
+ }
688
+ /**
689
+ * Fee includes the amount of coins paid in fees and the maximum
690
+ * gas to be used by the transaction. The ratio yields an effective "gasprice",
691
+ * which must be above some miminum to be accepted into the mempool.
692
+ */
693
+ export interface Fee {
694
+ /** amount is the amount of coins to be paid as a fee */
695
+ amount: Coin[];
696
+ /**
697
+ * gas_limit is the maximum gas that can be used in transaction processing
698
+ * before an out of gas error occurs
699
+ */
700
+ gasLimit: bigint;
701
+ /**
702
+ * if unset, the first signer is responsible for paying the fees. If set, the
703
+ * specified account must pay the fees. the payer must be a tx signer (and
704
+ * thus have signed this field in AuthInfo). setting this field does *not*
705
+ * change the ordering of required signers for the transaction.
706
+ */
707
+ payer: string;
708
+ /**
709
+ * if set, the fee payer (either the first signer or the value of the payer
710
+ * field) requests that a fee grant be used to pay fees instead of the fee
711
+ * payer's own balance. If an appropriate fee grant does not exist or the
712
+ * chain does not support fee grants, this will fail
713
+ */
714
+ granter: string;
715
+ }
716
+ export interface FeeProtoMsg {
717
+ typeUrl: "/cosmos.tx.v1beta1.Fee";
718
+ value: Uint8Array;
719
+ }
720
+ /**
721
+ * Fee includes the amount of coins paid in fees and the maximum
722
+ * gas to be used by the transaction. The ratio yields an effective "gasprice",
723
+ * which must be above some miminum to be accepted into the mempool.
724
+ * @name FeeAmino
725
+ * @package cosmos.tx.v1beta1
726
+ * @see proto type: cosmos.tx.v1beta1.Fee
727
+ */
728
+ export interface FeeAmino {
729
+ /**
730
+ * amount is the amount of coins to be paid as a fee
731
+ */
732
+ amount: CoinAmino[];
733
+ /**
734
+ * gas_limit is the maximum gas that can be used in transaction processing
735
+ * before an out of gas error occurs
736
+ */
737
+ gas_limit?: string;
738
+ /**
739
+ * if unset, the first signer is responsible for paying the fees. If set, the
740
+ * specified account must pay the fees. the payer must be a tx signer (and
741
+ * thus have signed this field in AuthInfo). setting this field does *not*
742
+ * change the ordering of required signers for the transaction.
743
+ */
744
+ payer?: string;
745
+ /**
746
+ * if set, the fee payer (either the first signer or the value of the payer
747
+ * field) requests that a fee grant be used to pay fees instead of the fee
748
+ * payer's own balance. If an appropriate fee grant does not exist or the
749
+ * chain does not support fee grants, this will fail
750
+ */
751
+ granter?: string;
752
+ }
753
+ export interface FeeAminoMsg {
754
+ type: "cosmos-sdk/Fee";
755
+ value: FeeAmino;
756
+ }
757
+ /**
758
+ * Fee includes the amount of coins paid in fees and the maximum
759
+ * gas to be used by the transaction. The ratio yields an effective "gasprice",
760
+ * which must be above some miminum to be accepted into the mempool.
761
+ */
762
+ export interface FeeSDKType {
763
+ amount: CoinSDKType[];
764
+ gas_limit: bigint;
765
+ payer: string;
766
+ granter: string;
767
+ }
768
+ /** Tip is the tip used for meta-transactions. */
769
+ /** @deprecated */
770
+ export interface Tip {
771
+ /** amount is the amount of the tip */
772
+ amount: Coin[];
773
+ /** tipper is the address of the account paying for the tip */
774
+ tipper: string;
775
+ }
776
+ export interface TipProtoMsg {
777
+ typeUrl: "/cosmos.tx.v1beta1.Tip";
778
+ value: Uint8Array;
779
+ }
780
+ /**
781
+ * Tip is the tip used for meta-transactions.
782
+ * @name TipAmino
783
+ * @package cosmos.tx.v1beta1
784
+ * @see proto type: cosmos.tx.v1beta1.Tip
785
+ * @deprecated
786
+ */
787
+ export interface TipAmino {
788
+ /**
789
+ * amount is the amount of the tip
790
+ */
791
+ amount: CoinAmino[];
792
+ /**
793
+ * tipper is the address of the account paying for the tip
794
+ */
795
+ tipper?: string;
796
+ }
797
+ export interface TipAminoMsg {
798
+ type: "cosmos-sdk/Tip";
799
+ value: TipAmino;
800
+ }
801
+ /** Tip is the tip used for meta-transactions. */
802
+ /** @deprecated */
803
+ export interface TipSDKType {
804
+ amount: CoinSDKType[];
805
+ tipper: string;
806
+ }
807
+ /**
808
+ * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a
809
+ * tipper) builds and sends to the fee payer (who will build and broadcast the
810
+ * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
811
+ * by the node if sent directly as-is.
812
+ */
813
+ export interface AuxSignerData {
814
+ /**
815
+ * address is the bech32-encoded address of the auxiliary signer. If using
816
+ * AuxSignerData across different chains, the bech32 prefix of the target
817
+ * chain (where the final transaction is broadcasted) should be used.
818
+ */
819
+ address: string;
820
+ /**
821
+ * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer
822
+ * signs. Note: we use the same sign doc even if we're signing with
823
+ * LEGACY_AMINO_JSON.
824
+ */
825
+ signDoc?: SignDocDirectAux;
826
+ /** mode is the signing mode of the single signer. */
827
+ mode: SignMode;
828
+ /** sig is the signature of the sign doc. */
829
+ sig: Uint8Array;
830
+ }
831
+ export interface AuxSignerDataProtoMsg {
832
+ typeUrl: "/cosmos.tx.v1beta1.AuxSignerData";
833
+ value: Uint8Array;
834
+ }
835
+ /**
836
+ * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a
837
+ * tipper) builds and sends to the fee payer (who will build and broadcast the
838
+ * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
839
+ * by the node if sent directly as-is.
840
+ * @name AuxSignerDataAmino
841
+ * @package cosmos.tx.v1beta1
842
+ * @see proto type: cosmos.tx.v1beta1.AuxSignerData
843
+ */
844
+ export interface AuxSignerDataAmino {
845
+ /**
846
+ * address is the bech32-encoded address of the auxiliary signer. If using
847
+ * AuxSignerData across different chains, the bech32 prefix of the target
848
+ * chain (where the final transaction is broadcasted) should be used.
849
+ */
850
+ address?: string;
851
+ /**
852
+ * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer
853
+ * signs. Note: we use the same sign doc even if we're signing with
854
+ * LEGACY_AMINO_JSON.
855
+ */
856
+ sign_doc?: SignDocDirectAuxAmino;
857
+ /**
858
+ * mode is the signing mode of the single signer.
859
+ */
860
+ mode?: SignMode;
861
+ /**
862
+ * sig is the signature of the sign doc.
863
+ */
864
+ sig?: string;
865
+ }
866
+ export interface AuxSignerDataAminoMsg {
867
+ type: "cosmos-sdk/AuxSignerData";
868
+ value: AuxSignerDataAmino;
869
+ }
870
+ /**
871
+ * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a
872
+ * tipper) builds and sends to the fee payer (who will build and broadcast the
873
+ * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
874
+ * by the node if sent directly as-is.
875
+ */
876
+ export interface AuxSignerDataSDKType {
877
+ address: string;
878
+ sign_doc?: SignDocDirectAuxSDKType;
879
+ mode: SignMode;
880
+ sig: Uint8Array;
881
+ }
882
+ function createBaseTx(): Tx {
883
+ return {
884
+ body: undefined,
885
+ authInfo: undefined,
886
+ signatures: []
887
+ };
888
+ }
889
+ export const Tx = {
890
+ typeUrl: "/cosmos.tx.v1beta1.Tx",
891
+ encode(message: Tx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
892
+ if (message.body !== undefined) {
893
+ TxBody.encode(message.body, writer.uint32(10).fork()).ldelim();
894
+ }
895
+ if (message.authInfo !== undefined) {
896
+ AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim();
897
+ }
898
+ for (const v of message.signatures) {
899
+ writer.uint32(26).bytes(v!);
900
+ }
901
+ return writer;
902
+ },
903
+ decode(input: BinaryReader | Uint8Array, length?: number): Tx {
904
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
905
+ let end = length === undefined ? reader.len : reader.pos + length;
906
+ const message = createBaseTx();
907
+ while (reader.pos < end) {
908
+ const tag = reader.uint32();
909
+ switch (tag >>> 3) {
910
+ case 1:
911
+ message.body = TxBody.decode(reader, reader.uint32());
912
+ break;
913
+ case 2:
914
+ message.authInfo = AuthInfo.decode(reader, reader.uint32());
915
+ break;
916
+ case 3:
917
+ message.signatures.push(reader.bytes());
918
+ break;
919
+ default:
920
+ reader.skipType(tag & 7);
921
+ break;
922
+ }
923
+ }
924
+ return message;
925
+ },
926
+ fromPartial(object: Partial<Tx>): Tx {
927
+ const message = createBaseTx();
928
+ message.body = object.body !== undefined && object.body !== null ? TxBody.fromPartial(object.body) : undefined;
929
+ message.authInfo = object.authInfo !== undefined && object.authInfo !== null ? AuthInfo.fromPartial(object.authInfo) : undefined;
930
+ message.signatures = object.signatures?.map(e => e) || [];
931
+ return message;
932
+ },
933
+ fromAmino(object: TxAmino): Tx {
934
+ const message = createBaseTx();
935
+ if (object.body !== undefined && object.body !== null) {
936
+ message.body = TxBody.fromAmino(object.body);
937
+ }
938
+ if (object.auth_info !== undefined && object.auth_info !== null) {
939
+ message.authInfo = AuthInfo.fromAmino(object.auth_info);
940
+ }
941
+ message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || [];
942
+ return message;
943
+ },
944
+ toAmino(message: Tx): TxAmino {
945
+ const obj: any = {};
946
+ obj.body = message.body ? TxBody.toAmino(message.body) : undefined;
947
+ obj.auth_info = message.authInfo ? AuthInfo.toAmino(message.authInfo) : undefined;
948
+ if (message.signatures) {
949
+ obj.signatures = message.signatures.map(e => base64FromBytes(e));
950
+ } else {
951
+ obj.signatures = message.signatures;
952
+ }
953
+ return obj;
954
+ },
955
+ fromAminoMsg(object: TxAminoMsg): Tx {
956
+ return Tx.fromAmino(object.value);
957
+ },
958
+ toAminoMsg(message: Tx): TxAminoMsg {
959
+ return {
960
+ type: "cosmos-sdk/Tx",
961
+ value: Tx.toAmino(message)
962
+ };
963
+ },
964
+ fromProtoMsg(message: TxProtoMsg): Tx {
965
+ return Tx.decode(message.value);
966
+ },
967
+ toProto(message: Tx): Uint8Array {
968
+ return Tx.encode(message).finish();
969
+ },
970
+ toProtoMsg(message: Tx): TxProtoMsg {
971
+ return {
972
+ typeUrl: "/cosmos.tx.v1beta1.Tx",
973
+ value: Tx.encode(message).finish()
974
+ };
975
+ }
976
+ };
977
+ function createBaseTxRaw(): TxRaw {
978
+ return {
979
+ bodyBytes: new Uint8Array(),
980
+ authInfoBytes: new Uint8Array(),
981
+ signatures: []
982
+ };
983
+ }
984
+ export const TxRaw = {
985
+ typeUrl: "/cosmos.tx.v1beta1.TxRaw",
986
+ encode(message: TxRaw, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
987
+ if (message.bodyBytes.length !== 0) {
988
+ writer.uint32(10).bytes(message.bodyBytes);
989
+ }
990
+ if (message.authInfoBytes.length !== 0) {
991
+ writer.uint32(18).bytes(message.authInfoBytes);
992
+ }
993
+ for (const v of message.signatures) {
994
+ writer.uint32(26).bytes(v!);
995
+ }
996
+ return writer;
997
+ },
998
+ decode(input: BinaryReader | Uint8Array, length?: number): TxRaw {
999
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1000
+ let end = length === undefined ? reader.len : reader.pos + length;
1001
+ const message = createBaseTxRaw();
1002
+ while (reader.pos < end) {
1003
+ const tag = reader.uint32();
1004
+ switch (tag >>> 3) {
1005
+ case 1:
1006
+ message.bodyBytes = reader.bytes();
1007
+ break;
1008
+ case 2:
1009
+ message.authInfoBytes = reader.bytes();
1010
+ break;
1011
+ case 3:
1012
+ message.signatures.push(reader.bytes());
1013
+ break;
1014
+ default:
1015
+ reader.skipType(tag & 7);
1016
+ break;
1017
+ }
1018
+ }
1019
+ return message;
1020
+ },
1021
+ fromPartial(object: Partial<TxRaw>): TxRaw {
1022
+ const message = createBaseTxRaw();
1023
+ message.bodyBytes = object.bodyBytes ?? new Uint8Array();
1024
+ message.authInfoBytes = object.authInfoBytes ?? new Uint8Array();
1025
+ message.signatures = object.signatures?.map(e => e) || [];
1026
+ return message;
1027
+ },
1028
+ fromAmino(object: TxRawAmino): TxRaw {
1029
+ const message = createBaseTxRaw();
1030
+ if (object.body_bytes !== undefined && object.body_bytes !== null) {
1031
+ message.bodyBytes = bytesFromBase64(object.body_bytes);
1032
+ }
1033
+ if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) {
1034
+ message.authInfoBytes = bytesFromBase64(object.auth_info_bytes);
1035
+ }
1036
+ message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || [];
1037
+ return message;
1038
+ },
1039
+ toAmino(message: TxRaw): TxRawAmino {
1040
+ const obj: any = {};
1041
+ obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined;
1042
+ obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined;
1043
+ if (message.signatures) {
1044
+ obj.signatures = message.signatures.map(e => base64FromBytes(e));
1045
+ } else {
1046
+ obj.signatures = message.signatures;
1047
+ }
1048
+ return obj;
1049
+ },
1050
+ fromAminoMsg(object: TxRawAminoMsg): TxRaw {
1051
+ return TxRaw.fromAmino(object.value);
1052
+ },
1053
+ toAminoMsg(message: TxRaw): TxRawAminoMsg {
1054
+ return {
1055
+ type: "cosmos-sdk/TxRaw",
1056
+ value: TxRaw.toAmino(message)
1057
+ };
1058
+ },
1059
+ fromProtoMsg(message: TxRawProtoMsg): TxRaw {
1060
+ return TxRaw.decode(message.value);
1061
+ },
1062
+ toProto(message: TxRaw): Uint8Array {
1063
+ return TxRaw.encode(message).finish();
1064
+ },
1065
+ toProtoMsg(message: TxRaw): TxRawProtoMsg {
1066
+ return {
1067
+ typeUrl: "/cosmos.tx.v1beta1.TxRaw",
1068
+ value: TxRaw.encode(message).finish()
1069
+ };
1070
+ }
1071
+ };
1072
+ function createBaseSignDoc(): SignDoc {
1073
+ return {
1074
+ bodyBytes: new Uint8Array(),
1075
+ authInfoBytes: new Uint8Array(),
1076
+ chainId: "",
1077
+ accountNumber: BigInt(0)
1078
+ };
1079
+ }
1080
+ export const SignDoc = {
1081
+ typeUrl: "/cosmos.tx.v1beta1.SignDoc",
1082
+ encode(message: SignDoc, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1083
+ if (message.bodyBytes.length !== 0) {
1084
+ writer.uint32(10).bytes(message.bodyBytes);
1085
+ }
1086
+ if (message.authInfoBytes.length !== 0) {
1087
+ writer.uint32(18).bytes(message.authInfoBytes);
1088
+ }
1089
+ if (message.chainId !== "") {
1090
+ writer.uint32(26).string(message.chainId);
1091
+ }
1092
+ if (message.accountNumber !== BigInt(0)) {
1093
+ writer.uint32(32).uint64(message.accountNumber);
1094
+ }
1095
+ return writer;
1096
+ },
1097
+ decode(input: BinaryReader | Uint8Array, length?: number): SignDoc {
1098
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1099
+ let end = length === undefined ? reader.len : reader.pos + length;
1100
+ const message = createBaseSignDoc();
1101
+ while (reader.pos < end) {
1102
+ const tag = reader.uint32();
1103
+ switch (tag >>> 3) {
1104
+ case 1:
1105
+ message.bodyBytes = reader.bytes();
1106
+ break;
1107
+ case 2:
1108
+ message.authInfoBytes = reader.bytes();
1109
+ break;
1110
+ case 3:
1111
+ message.chainId = reader.string();
1112
+ break;
1113
+ case 4:
1114
+ message.accountNumber = reader.uint64();
1115
+ break;
1116
+ default:
1117
+ reader.skipType(tag & 7);
1118
+ break;
1119
+ }
1120
+ }
1121
+ return message;
1122
+ },
1123
+ fromPartial(object: Partial<SignDoc>): SignDoc {
1124
+ const message = createBaseSignDoc();
1125
+ message.bodyBytes = object.bodyBytes ?? new Uint8Array();
1126
+ message.authInfoBytes = object.authInfoBytes ?? new Uint8Array();
1127
+ message.chainId = object.chainId ?? "";
1128
+ message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0);
1129
+ return message;
1130
+ },
1131
+ fromAmino(object: SignDocAmino): SignDoc {
1132
+ const message = createBaseSignDoc();
1133
+ if (object.body_bytes !== undefined && object.body_bytes !== null) {
1134
+ message.bodyBytes = bytesFromBase64(object.body_bytes);
1135
+ }
1136
+ if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) {
1137
+ message.authInfoBytes = bytesFromBase64(object.auth_info_bytes);
1138
+ }
1139
+ if (object.chain_id !== undefined && object.chain_id !== null) {
1140
+ message.chainId = object.chain_id;
1141
+ }
1142
+ if (object.account_number !== undefined && object.account_number !== null) {
1143
+ message.accountNumber = BigInt(object.account_number);
1144
+ }
1145
+ return message;
1146
+ },
1147
+ toAmino(message: SignDoc): SignDocAmino {
1148
+ const obj: any = {};
1149
+ obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined;
1150
+ obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined;
1151
+ obj.chain_id = message.chainId === "" ? undefined : message.chainId;
1152
+ obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber?.toString() : undefined;
1153
+ return obj;
1154
+ },
1155
+ fromAminoMsg(object: SignDocAminoMsg): SignDoc {
1156
+ return SignDoc.fromAmino(object.value);
1157
+ },
1158
+ toAminoMsg(message: SignDoc): SignDocAminoMsg {
1159
+ return {
1160
+ type: "cosmos-sdk/SignDoc",
1161
+ value: SignDoc.toAmino(message)
1162
+ };
1163
+ },
1164
+ fromProtoMsg(message: SignDocProtoMsg): SignDoc {
1165
+ return SignDoc.decode(message.value);
1166
+ },
1167
+ toProto(message: SignDoc): Uint8Array {
1168
+ return SignDoc.encode(message).finish();
1169
+ },
1170
+ toProtoMsg(message: SignDoc): SignDocProtoMsg {
1171
+ return {
1172
+ typeUrl: "/cosmos.tx.v1beta1.SignDoc",
1173
+ value: SignDoc.encode(message).finish()
1174
+ };
1175
+ }
1176
+ };
1177
+ function createBaseSignDocDirectAux(): SignDocDirectAux {
1178
+ return {
1179
+ bodyBytes: new Uint8Array(),
1180
+ publicKey: undefined,
1181
+ chainId: "",
1182
+ accountNumber: BigInt(0),
1183
+ sequence: BigInt(0),
1184
+ tip: undefined
1185
+ };
1186
+ }
1187
+ export const SignDocDirectAux = {
1188
+ typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux",
1189
+ encode(message: SignDocDirectAux, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1190
+ if (message.bodyBytes.length !== 0) {
1191
+ writer.uint32(10).bytes(message.bodyBytes);
1192
+ }
1193
+ if (message.publicKey !== undefined) {
1194
+ Any.encode(message.publicKey, writer.uint32(18).fork()).ldelim();
1195
+ }
1196
+ if (message.chainId !== "") {
1197
+ writer.uint32(26).string(message.chainId);
1198
+ }
1199
+ if (message.accountNumber !== BigInt(0)) {
1200
+ writer.uint32(32).uint64(message.accountNumber);
1201
+ }
1202
+ if (message.sequence !== BigInt(0)) {
1203
+ writer.uint32(40).uint64(message.sequence);
1204
+ }
1205
+ if (message.tip !== undefined) {
1206
+ Tip.encode(message.tip, writer.uint32(50).fork()).ldelim();
1207
+ }
1208
+ return writer;
1209
+ },
1210
+ decode(input: BinaryReader | Uint8Array, length?: number): SignDocDirectAux {
1211
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1212
+ let end = length === undefined ? reader.len : reader.pos + length;
1213
+ const message = createBaseSignDocDirectAux();
1214
+ while (reader.pos < end) {
1215
+ const tag = reader.uint32();
1216
+ switch (tag >>> 3) {
1217
+ case 1:
1218
+ message.bodyBytes = reader.bytes();
1219
+ break;
1220
+ case 2:
1221
+ message.publicKey = Any.decode(reader, reader.uint32());
1222
+ break;
1223
+ case 3:
1224
+ message.chainId = reader.string();
1225
+ break;
1226
+ case 4:
1227
+ message.accountNumber = reader.uint64();
1228
+ break;
1229
+ case 5:
1230
+ message.sequence = reader.uint64();
1231
+ break;
1232
+ case 6:
1233
+ message.tip = Tip.decode(reader, reader.uint32());
1234
+ break;
1235
+ default:
1236
+ reader.skipType(tag & 7);
1237
+ break;
1238
+ }
1239
+ }
1240
+ return message;
1241
+ },
1242
+ fromPartial(object: Partial<SignDocDirectAux>): SignDocDirectAux {
1243
+ const message = createBaseSignDocDirectAux();
1244
+ message.bodyBytes = object.bodyBytes ?? new Uint8Array();
1245
+ message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined;
1246
+ message.chainId = object.chainId ?? "";
1247
+ message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0);
1248
+ message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
1249
+ message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined;
1250
+ return message;
1251
+ },
1252
+ fromAmino(object: SignDocDirectAuxAmino): SignDocDirectAux {
1253
+ const message = createBaseSignDocDirectAux();
1254
+ if (object.body_bytes !== undefined && object.body_bytes !== null) {
1255
+ message.bodyBytes = bytesFromBase64(object.body_bytes);
1256
+ }
1257
+ if (object.public_key !== undefined && object.public_key !== null) {
1258
+ message.publicKey = Any.fromAmino(object.public_key);
1259
+ }
1260
+ if (object.chain_id !== undefined && object.chain_id !== null) {
1261
+ message.chainId = object.chain_id;
1262
+ }
1263
+ if (object.account_number !== undefined && object.account_number !== null) {
1264
+ message.accountNumber = BigInt(object.account_number);
1265
+ }
1266
+ if (object.sequence !== undefined && object.sequence !== null) {
1267
+ message.sequence = BigInt(object.sequence);
1268
+ }
1269
+ if (object.tip !== undefined && object.tip !== null) {
1270
+ message.tip = Tip.fromAmino(object.tip);
1271
+ }
1272
+ return message;
1273
+ },
1274
+ toAmino(message: SignDocDirectAux): SignDocDirectAuxAmino {
1275
+ const obj: any = {};
1276
+ obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined;
1277
+ obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined;
1278
+ obj.chain_id = message.chainId === "" ? undefined : message.chainId;
1279
+ obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber?.toString() : undefined;
1280
+ obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
1281
+ obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined;
1282
+ return obj;
1283
+ },
1284
+ fromAminoMsg(object: SignDocDirectAuxAminoMsg): SignDocDirectAux {
1285
+ return SignDocDirectAux.fromAmino(object.value);
1286
+ },
1287
+ toAminoMsg(message: SignDocDirectAux): SignDocDirectAuxAminoMsg {
1288
+ return {
1289
+ type: "cosmos-sdk/SignDocDirectAux",
1290
+ value: SignDocDirectAux.toAmino(message)
1291
+ };
1292
+ },
1293
+ fromProtoMsg(message: SignDocDirectAuxProtoMsg): SignDocDirectAux {
1294
+ return SignDocDirectAux.decode(message.value);
1295
+ },
1296
+ toProto(message: SignDocDirectAux): Uint8Array {
1297
+ return SignDocDirectAux.encode(message).finish();
1298
+ },
1299
+ toProtoMsg(message: SignDocDirectAux): SignDocDirectAuxProtoMsg {
1300
+ return {
1301
+ typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux",
1302
+ value: SignDocDirectAux.encode(message).finish()
1303
+ };
1304
+ }
1305
+ };
1306
+ function createBaseTxBody(): TxBody {
1307
+ return {
1308
+ messages: [],
1309
+ memo: "",
1310
+ timeoutHeight: BigInt(0),
1311
+ unordered: false,
1312
+ timeoutTimestamp: undefined,
1313
+ extensionOptions: [],
1314
+ nonCriticalExtensionOptions: []
1315
+ };
1316
+ }
1317
+ export const TxBody = {
1318
+ typeUrl: "/cosmos.tx.v1beta1.TxBody",
1319
+ encode(message: TxBody, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1320
+ for (const v of message.messages) {
1321
+ Any.encode(v!, writer.uint32(10).fork()).ldelim();
1322
+ }
1323
+ if (message.memo !== "") {
1324
+ writer.uint32(18).string(message.memo);
1325
+ }
1326
+ if (message.timeoutHeight !== BigInt(0)) {
1327
+ writer.uint32(24).uint64(message.timeoutHeight);
1328
+ }
1329
+ if (message.unordered === true) {
1330
+ writer.uint32(32).bool(message.unordered);
1331
+ }
1332
+ if (message.timeoutTimestamp !== undefined) {
1333
+ Timestamp.encode(toTimestamp(message.timeoutTimestamp), writer.uint32(42).fork()).ldelim();
1334
+ }
1335
+ for (const v of message.extensionOptions) {
1336
+ Any.encode(v!, writer.uint32(8186).fork()).ldelim();
1337
+ }
1338
+ for (const v of message.nonCriticalExtensionOptions) {
1339
+ Any.encode(v!, writer.uint32(16378).fork()).ldelim();
1340
+ }
1341
+ return writer;
1342
+ },
1343
+ decode(input: BinaryReader | Uint8Array, length?: number): TxBody {
1344
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1345
+ let end = length === undefined ? reader.len : reader.pos + length;
1346
+ const message = createBaseTxBody();
1347
+ while (reader.pos < end) {
1348
+ const tag = reader.uint32();
1349
+ switch (tag >>> 3) {
1350
+ case 1:
1351
+ message.messages.push(Any.decode(reader, reader.uint32()));
1352
+ break;
1353
+ case 2:
1354
+ message.memo = reader.string();
1355
+ break;
1356
+ case 3:
1357
+ message.timeoutHeight = reader.uint64();
1358
+ break;
1359
+ case 4:
1360
+ message.unordered = reader.bool();
1361
+ break;
1362
+ case 5:
1363
+ message.timeoutTimestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1364
+ break;
1365
+ case 1023:
1366
+ message.extensionOptions.push(Any.decode(reader, reader.uint32()));
1367
+ break;
1368
+ case 2047:
1369
+ message.nonCriticalExtensionOptions.push(Any.decode(reader, reader.uint32()));
1370
+ break;
1371
+ default:
1372
+ reader.skipType(tag & 7);
1373
+ break;
1374
+ }
1375
+ }
1376
+ return message;
1377
+ },
1378
+ fromPartial(object: Partial<TxBody>): TxBody {
1379
+ const message = createBaseTxBody();
1380
+ message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
1381
+ message.memo = object.memo ?? "";
1382
+ message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? BigInt(object.timeoutHeight.toString()) : BigInt(0);
1383
+ message.unordered = object.unordered ?? false;
1384
+ message.timeoutTimestamp = object.timeoutTimestamp ?? undefined;
1385
+ message.extensionOptions = object.extensionOptions?.map(e => Any.fromPartial(e)) || [];
1386
+ message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map(e => Any.fromPartial(e)) || [];
1387
+ return message;
1388
+ },
1389
+ fromAmino(object: TxBodyAmino): TxBody {
1390
+ const message = createBaseTxBody();
1391
+ message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
1392
+ if (object.memo !== undefined && object.memo !== null) {
1393
+ message.memo = object.memo;
1394
+ }
1395
+ if (object.timeout_height !== undefined && object.timeout_height !== null) {
1396
+ message.timeoutHeight = BigInt(object.timeout_height);
1397
+ }
1398
+ if (object.unordered !== undefined && object.unordered !== null) {
1399
+ message.unordered = object.unordered;
1400
+ }
1401
+ if (object.timeout_timestamp !== undefined && object.timeout_timestamp !== null) {
1402
+ message.timeoutTimestamp = fromTimestamp(Timestamp.fromAmino(object.timeout_timestamp));
1403
+ }
1404
+ message.extensionOptions = object.extension_options?.map(e => Any.fromAmino(e)) || [];
1405
+ message.nonCriticalExtensionOptions = object.non_critical_extension_options?.map(e => Any.fromAmino(e)) || [];
1406
+ return message;
1407
+ },
1408
+ toAmino(message: TxBody): TxBodyAmino {
1409
+ const obj: any = {};
1410
+ if (message.messages) {
1411
+ obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined);
1412
+ } else {
1413
+ obj.messages = message.messages;
1414
+ }
1415
+ obj.memo = message.memo === "" ? undefined : message.memo;
1416
+ obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight?.toString() : undefined;
1417
+ obj.unordered = message.unordered === false ? undefined : message.unordered;
1418
+ obj.timeout_timestamp = message.timeoutTimestamp ? Timestamp.toAmino(toTimestamp(message.timeoutTimestamp)) : undefined;
1419
+ if (message.extensionOptions) {
1420
+ obj.extension_options = message.extensionOptions.map(e => e ? Any.toAmino(e) : undefined);
1421
+ } else {
1422
+ obj.extension_options = message.extensionOptions;
1423
+ }
1424
+ if (message.nonCriticalExtensionOptions) {
1425
+ obj.non_critical_extension_options = message.nonCriticalExtensionOptions.map(e => e ? Any.toAmino(e) : undefined);
1426
+ } else {
1427
+ obj.non_critical_extension_options = message.nonCriticalExtensionOptions;
1428
+ }
1429
+ return obj;
1430
+ },
1431
+ fromAminoMsg(object: TxBodyAminoMsg): TxBody {
1432
+ return TxBody.fromAmino(object.value);
1433
+ },
1434
+ toAminoMsg(message: TxBody): TxBodyAminoMsg {
1435
+ return {
1436
+ type: "cosmos-sdk/TxBody",
1437
+ value: TxBody.toAmino(message)
1438
+ };
1439
+ },
1440
+ fromProtoMsg(message: TxBodyProtoMsg): TxBody {
1441
+ return TxBody.decode(message.value);
1442
+ },
1443
+ toProto(message: TxBody): Uint8Array {
1444
+ return TxBody.encode(message).finish();
1445
+ },
1446
+ toProtoMsg(message: TxBody): TxBodyProtoMsg {
1447
+ return {
1448
+ typeUrl: "/cosmos.tx.v1beta1.TxBody",
1449
+ value: TxBody.encode(message).finish()
1450
+ };
1451
+ }
1452
+ };
1453
+ function createBaseAuthInfo(): AuthInfo {
1454
+ return {
1455
+ signerInfos: [],
1456
+ fee: undefined,
1457
+ tip: undefined
1458
+ };
1459
+ }
1460
+ export const AuthInfo = {
1461
+ typeUrl: "/cosmos.tx.v1beta1.AuthInfo",
1462
+ encode(message: AuthInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1463
+ for (const v of message.signerInfos) {
1464
+ SignerInfo.encode(v!, writer.uint32(10).fork()).ldelim();
1465
+ }
1466
+ if (message.fee !== undefined) {
1467
+ Fee.encode(message.fee, writer.uint32(18).fork()).ldelim();
1468
+ }
1469
+ if (message.tip !== undefined) {
1470
+ Tip.encode(message.tip, writer.uint32(26).fork()).ldelim();
1471
+ }
1472
+ return writer;
1473
+ },
1474
+ decode(input: BinaryReader | Uint8Array, length?: number): AuthInfo {
1475
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1476
+ let end = length === undefined ? reader.len : reader.pos + length;
1477
+ const message = createBaseAuthInfo();
1478
+ while (reader.pos < end) {
1479
+ const tag = reader.uint32();
1480
+ switch (tag >>> 3) {
1481
+ case 1:
1482
+ message.signerInfos.push(SignerInfo.decode(reader, reader.uint32()));
1483
+ break;
1484
+ case 2:
1485
+ message.fee = Fee.decode(reader, reader.uint32());
1486
+ break;
1487
+ case 3:
1488
+ message.tip = Tip.decode(reader, reader.uint32());
1489
+ break;
1490
+ default:
1491
+ reader.skipType(tag & 7);
1492
+ break;
1493
+ }
1494
+ }
1495
+ return message;
1496
+ },
1497
+ fromPartial(object: Partial<AuthInfo>): AuthInfo {
1498
+ const message = createBaseAuthInfo();
1499
+ message.signerInfos = object.signerInfos?.map(e => SignerInfo.fromPartial(e)) || [];
1500
+ message.fee = object.fee !== undefined && object.fee !== null ? Fee.fromPartial(object.fee) : undefined;
1501
+ message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined;
1502
+ return message;
1503
+ },
1504
+ fromAmino(object: AuthInfoAmino): AuthInfo {
1505
+ const message = createBaseAuthInfo();
1506
+ message.signerInfos = object.signer_infos?.map(e => SignerInfo.fromAmino(e)) || [];
1507
+ if (object.fee !== undefined && object.fee !== null) {
1508
+ message.fee = Fee.fromAmino(object.fee);
1509
+ }
1510
+ if (object.tip !== undefined && object.tip !== null) {
1511
+ message.tip = Tip.fromAmino(object.tip);
1512
+ }
1513
+ return message;
1514
+ },
1515
+ toAmino(message: AuthInfo): AuthInfoAmino {
1516
+ const obj: any = {};
1517
+ if (message.signerInfos) {
1518
+ obj.signer_infos = message.signerInfos.map(e => e ? SignerInfo.toAmino(e) : undefined);
1519
+ } else {
1520
+ obj.signer_infos = message.signerInfos;
1521
+ }
1522
+ obj.fee = message.fee ? Fee.toAmino(message.fee) : undefined;
1523
+ obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined;
1524
+ return obj;
1525
+ },
1526
+ fromAminoMsg(object: AuthInfoAminoMsg): AuthInfo {
1527
+ return AuthInfo.fromAmino(object.value);
1528
+ },
1529
+ toAminoMsg(message: AuthInfo): AuthInfoAminoMsg {
1530
+ return {
1531
+ type: "cosmos-sdk/AuthInfo",
1532
+ value: AuthInfo.toAmino(message)
1533
+ };
1534
+ },
1535
+ fromProtoMsg(message: AuthInfoProtoMsg): AuthInfo {
1536
+ return AuthInfo.decode(message.value);
1537
+ },
1538
+ toProto(message: AuthInfo): Uint8Array {
1539
+ return AuthInfo.encode(message).finish();
1540
+ },
1541
+ toProtoMsg(message: AuthInfo): AuthInfoProtoMsg {
1542
+ return {
1543
+ typeUrl: "/cosmos.tx.v1beta1.AuthInfo",
1544
+ value: AuthInfo.encode(message).finish()
1545
+ };
1546
+ }
1547
+ };
1548
+ function createBaseSignerInfo(): SignerInfo {
1549
+ return {
1550
+ publicKey: undefined,
1551
+ modeInfo: undefined,
1552
+ sequence: BigInt(0)
1553
+ };
1554
+ }
1555
+ export const SignerInfo = {
1556
+ typeUrl: "/cosmos.tx.v1beta1.SignerInfo",
1557
+ encode(message: SignerInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1558
+ if (message.publicKey !== undefined) {
1559
+ Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim();
1560
+ }
1561
+ if (message.modeInfo !== undefined) {
1562
+ ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim();
1563
+ }
1564
+ if (message.sequence !== BigInt(0)) {
1565
+ writer.uint32(24).uint64(message.sequence);
1566
+ }
1567
+ return writer;
1568
+ },
1569
+ decode(input: BinaryReader | Uint8Array, length?: number): SignerInfo {
1570
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1571
+ let end = length === undefined ? reader.len : reader.pos + length;
1572
+ const message = createBaseSignerInfo();
1573
+ while (reader.pos < end) {
1574
+ const tag = reader.uint32();
1575
+ switch (tag >>> 3) {
1576
+ case 1:
1577
+ message.publicKey = Any.decode(reader, reader.uint32());
1578
+ break;
1579
+ case 2:
1580
+ message.modeInfo = ModeInfo.decode(reader, reader.uint32());
1581
+ break;
1582
+ case 3:
1583
+ message.sequence = reader.uint64();
1584
+ break;
1585
+ default:
1586
+ reader.skipType(tag & 7);
1587
+ break;
1588
+ }
1589
+ }
1590
+ return message;
1591
+ },
1592
+ fromPartial(object: Partial<SignerInfo>): SignerInfo {
1593
+ const message = createBaseSignerInfo();
1594
+ message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined;
1595
+ message.modeInfo = object.modeInfo !== undefined && object.modeInfo !== null ? ModeInfo.fromPartial(object.modeInfo) : undefined;
1596
+ message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
1597
+ return message;
1598
+ },
1599
+ fromAmino(object: SignerInfoAmino): SignerInfo {
1600
+ const message = createBaseSignerInfo();
1601
+ if (object.public_key !== undefined && object.public_key !== null) {
1602
+ message.publicKey = Any.fromAmino(object.public_key);
1603
+ }
1604
+ if (object.mode_info !== undefined && object.mode_info !== null) {
1605
+ message.modeInfo = ModeInfo.fromAmino(object.mode_info);
1606
+ }
1607
+ if (object.sequence !== undefined && object.sequence !== null) {
1608
+ message.sequence = BigInt(object.sequence);
1609
+ }
1610
+ return message;
1611
+ },
1612
+ toAmino(message: SignerInfo): SignerInfoAmino {
1613
+ const obj: any = {};
1614
+ obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined;
1615
+ obj.mode_info = message.modeInfo ? ModeInfo.toAmino(message.modeInfo) : undefined;
1616
+ obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
1617
+ return obj;
1618
+ },
1619
+ fromAminoMsg(object: SignerInfoAminoMsg): SignerInfo {
1620
+ return SignerInfo.fromAmino(object.value);
1621
+ },
1622
+ toAminoMsg(message: SignerInfo): SignerInfoAminoMsg {
1623
+ return {
1624
+ type: "cosmos-sdk/SignerInfo",
1625
+ value: SignerInfo.toAmino(message)
1626
+ };
1627
+ },
1628
+ fromProtoMsg(message: SignerInfoProtoMsg): SignerInfo {
1629
+ return SignerInfo.decode(message.value);
1630
+ },
1631
+ toProto(message: SignerInfo): Uint8Array {
1632
+ return SignerInfo.encode(message).finish();
1633
+ },
1634
+ toProtoMsg(message: SignerInfo): SignerInfoProtoMsg {
1635
+ return {
1636
+ typeUrl: "/cosmos.tx.v1beta1.SignerInfo",
1637
+ value: SignerInfo.encode(message).finish()
1638
+ };
1639
+ }
1640
+ };
1641
+ function createBaseModeInfo(): ModeInfo {
1642
+ return {
1643
+ single: undefined,
1644
+ multi: undefined
1645
+ };
1646
+ }
1647
+ export const ModeInfo = {
1648
+ typeUrl: "/cosmos.tx.v1beta1.ModeInfo",
1649
+ encode(message: ModeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1650
+ if (message.single !== undefined) {
1651
+ ModeInfo_Single.encode(message.single, writer.uint32(10).fork()).ldelim();
1652
+ }
1653
+ if (message.multi !== undefined) {
1654
+ ModeInfo_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim();
1655
+ }
1656
+ return writer;
1657
+ },
1658
+ decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo {
1659
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1660
+ let end = length === undefined ? reader.len : reader.pos + length;
1661
+ const message = createBaseModeInfo();
1662
+ while (reader.pos < end) {
1663
+ const tag = reader.uint32();
1664
+ switch (tag >>> 3) {
1665
+ case 1:
1666
+ message.single = ModeInfo_Single.decode(reader, reader.uint32());
1667
+ break;
1668
+ case 2:
1669
+ message.multi = ModeInfo_Multi.decode(reader, reader.uint32());
1670
+ break;
1671
+ default:
1672
+ reader.skipType(tag & 7);
1673
+ break;
1674
+ }
1675
+ }
1676
+ return message;
1677
+ },
1678
+ fromPartial(object: Partial<ModeInfo>): ModeInfo {
1679
+ const message = createBaseModeInfo();
1680
+ message.single = object.single !== undefined && object.single !== null ? ModeInfo_Single.fromPartial(object.single) : undefined;
1681
+ message.multi = object.multi !== undefined && object.multi !== null ? ModeInfo_Multi.fromPartial(object.multi) : undefined;
1682
+ return message;
1683
+ },
1684
+ fromAmino(object: ModeInfoAmino): ModeInfo {
1685
+ const message = createBaseModeInfo();
1686
+ if (object.single !== undefined && object.single !== null) {
1687
+ message.single = ModeInfo_Single.fromAmino(object.single);
1688
+ }
1689
+ if (object.multi !== undefined && object.multi !== null) {
1690
+ message.multi = ModeInfo_Multi.fromAmino(object.multi);
1691
+ }
1692
+ return message;
1693
+ },
1694
+ toAmino(message: ModeInfo): ModeInfoAmino {
1695
+ const obj: any = {};
1696
+ obj.single = message.single ? ModeInfo_Single.toAmino(message.single) : undefined;
1697
+ obj.multi = message.multi ? ModeInfo_Multi.toAmino(message.multi) : undefined;
1698
+ return obj;
1699
+ },
1700
+ fromAminoMsg(object: ModeInfoAminoMsg): ModeInfo {
1701
+ return ModeInfo.fromAmino(object.value);
1702
+ },
1703
+ toAminoMsg(message: ModeInfo): ModeInfoAminoMsg {
1704
+ return {
1705
+ type: "cosmos-sdk/ModeInfo",
1706
+ value: ModeInfo.toAmino(message)
1707
+ };
1708
+ },
1709
+ fromProtoMsg(message: ModeInfoProtoMsg): ModeInfo {
1710
+ return ModeInfo.decode(message.value);
1711
+ },
1712
+ toProto(message: ModeInfo): Uint8Array {
1713
+ return ModeInfo.encode(message).finish();
1714
+ },
1715
+ toProtoMsg(message: ModeInfo): ModeInfoProtoMsg {
1716
+ return {
1717
+ typeUrl: "/cosmos.tx.v1beta1.ModeInfo",
1718
+ value: ModeInfo.encode(message).finish()
1719
+ };
1720
+ }
1721
+ };
1722
+ function createBaseModeInfo_Single(): ModeInfo_Single {
1723
+ return {
1724
+ mode: 0
1725
+ };
1726
+ }
1727
+ export const ModeInfo_Single = {
1728
+ typeUrl: "/cosmos.tx.v1beta1.Single",
1729
+ encode(message: ModeInfo_Single, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1730
+ if (message.mode !== 0) {
1731
+ writer.uint32(8).int32(message.mode);
1732
+ }
1733
+ return writer;
1734
+ },
1735
+ decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Single {
1736
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1737
+ let end = length === undefined ? reader.len : reader.pos + length;
1738
+ const message = createBaseModeInfo_Single();
1739
+ while (reader.pos < end) {
1740
+ const tag = reader.uint32();
1741
+ switch (tag >>> 3) {
1742
+ case 1:
1743
+ message.mode = reader.int32() as any;
1744
+ break;
1745
+ default:
1746
+ reader.skipType(tag & 7);
1747
+ break;
1748
+ }
1749
+ }
1750
+ return message;
1751
+ },
1752
+ fromPartial(object: Partial<ModeInfo_Single>): ModeInfo_Single {
1753
+ const message = createBaseModeInfo_Single();
1754
+ message.mode = object.mode ?? 0;
1755
+ return message;
1756
+ },
1757
+ fromAmino(object: ModeInfo_SingleAmino): ModeInfo_Single {
1758
+ const message = createBaseModeInfo_Single();
1759
+ if (object.mode !== undefined && object.mode !== null) {
1760
+ message.mode = object.mode;
1761
+ }
1762
+ return message;
1763
+ },
1764
+ toAmino(message: ModeInfo_Single): ModeInfo_SingleAmino {
1765
+ const obj: any = {};
1766
+ obj.mode = message.mode === 0 ? undefined : message.mode;
1767
+ return obj;
1768
+ },
1769
+ fromAminoMsg(object: ModeInfo_SingleAminoMsg): ModeInfo_Single {
1770
+ return ModeInfo_Single.fromAmino(object.value);
1771
+ },
1772
+ toAminoMsg(message: ModeInfo_Single): ModeInfo_SingleAminoMsg {
1773
+ return {
1774
+ type: "cosmos-sdk/Single",
1775
+ value: ModeInfo_Single.toAmino(message)
1776
+ };
1777
+ },
1778
+ fromProtoMsg(message: ModeInfo_SingleProtoMsg): ModeInfo_Single {
1779
+ return ModeInfo_Single.decode(message.value);
1780
+ },
1781
+ toProto(message: ModeInfo_Single): Uint8Array {
1782
+ return ModeInfo_Single.encode(message).finish();
1783
+ },
1784
+ toProtoMsg(message: ModeInfo_Single): ModeInfo_SingleProtoMsg {
1785
+ return {
1786
+ typeUrl: "/cosmos.tx.v1beta1.Single",
1787
+ value: ModeInfo_Single.encode(message).finish()
1788
+ };
1789
+ }
1790
+ };
1791
+ function createBaseModeInfo_Multi(): ModeInfo_Multi {
1792
+ return {
1793
+ bitarray: undefined,
1794
+ modeInfos: []
1795
+ };
1796
+ }
1797
+ export const ModeInfo_Multi = {
1798
+ typeUrl: "/cosmos.tx.v1beta1.Multi",
1799
+ encode(message: ModeInfo_Multi, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1800
+ if (message.bitarray !== undefined) {
1801
+ CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim();
1802
+ }
1803
+ for (const v of message.modeInfos) {
1804
+ ModeInfo.encode(v!, writer.uint32(18).fork()).ldelim();
1805
+ }
1806
+ return writer;
1807
+ },
1808
+ decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Multi {
1809
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1810
+ let end = length === undefined ? reader.len : reader.pos + length;
1811
+ const message = createBaseModeInfo_Multi();
1812
+ while (reader.pos < end) {
1813
+ const tag = reader.uint32();
1814
+ switch (tag >>> 3) {
1815
+ case 1:
1816
+ message.bitarray = CompactBitArray.decode(reader, reader.uint32());
1817
+ break;
1818
+ case 2:
1819
+ message.modeInfos.push(ModeInfo.decode(reader, reader.uint32()));
1820
+ break;
1821
+ default:
1822
+ reader.skipType(tag & 7);
1823
+ break;
1824
+ }
1825
+ }
1826
+ return message;
1827
+ },
1828
+ fromPartial(object: Partial<ModeInfo_Multi>): ModeInfo_Multi {
1829
+ const message = createBaseModeInfo_Multi();
1830
+ message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined;
1831
+ message.modeInfos = object.modeInfos?.map(e => ModeInfo.fromPartial(e)) || [];
1832
+ return message;
1833
+ },
1834
+ fromAmino(object: ModeInfo_MultiAmino): ModeInfo_Multi {
1835
+ const message = createBaseModeInfo_Multi();
1836
+ if (object.bitarray !== undefined && object.bitarray !== null) {
1837
+ message.bitarray = CompactBitArray.fromAmino(object.bitarray);
1838
+ }
1839
+ message.modeInfos = object.mode_infos?.map(e => ModeInfo.fromAmino(e)) || [];
1840
+ return message;
1841
+ },
1842
+ toAmino(message: ModeInfo_Multi): ModeInfo_MultiAmino {
1843
+ const obj: any = {};
1844
+ obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined;
1845
+ if (message.modeInfos) {
1846
+ obj.mode_infos = message.modeInfos.map(e => e ? ModeInfo.toAmino(e) : undefined);
1847
+ } else {
1848
+ obj.mode_infos = message.modeInfos;
1849
+ }
1850
+ return obj;
1851
+ },
1852
+ fromAminoMsg(object: ModeInfo_MultiAminoMsg): ModeInfo_Multi {
1853
+ return ModeInfo_Multi.fromAmino(object.value);
1854
+ },
1855
+ toAminoMsg(message: ModeInfo_Multi): ModeInfo_MultiAminoMsg {
1856
+ return {
1857
+ type: "cosmos-sdk/Multi",
1858
+ value: ModeInfo_Multi.toAmino(message)
1859
+ };
1860
+ },
1861
+ fromProtoMsg(message: ModeInfo_MultiProtoMsg): ModeInfo_Multi {
1862
+ return ModeInfo_Multi.decode(message.value);
1863
+ },
1864
+ toProto(message: ModeInfo_Multi): Uint8Array {
1865
+ return ModeInfo_Multi.encode(message).finish();
1866
+ },
1867
+ toProtoMsg(message: ModeInfo_Multi): ModeInfo_MultiProtoMsg {
1868
+ return {
1869
+ typeUrl: "/cosmos.tx.v1beta1.Multi",
1870
+ value: ModeInfo_Multi.encode(message).finish()
1871
+ };
1872
+ }
1873
+ };
1874
+ function createBaseFee(): Fee {
1875
+ return {
1876
+ amount: [],
1877
+ gasLimit: BigInt(0),
1878
+ payer: "",
1879
+ granter: ""
1880
+ };
1881
+ }
1882
+ export const Fee = {
1883
+ typeUrl: "/cosmos.tx.v1beta1.Fee",
1884
+ encode(message: Fee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1885
+ for (const v of message.amount) {
1886
+ Coin.encode(v!, writer.uint32(10).fork()).ldelim();
1887
+ }
1888
+ if (message.gasLimit !== BigInt(0)) {
1889
+ writer.uint32(16).uint64(message.gasLimit);
1890
+ }
1891
+ if (message.payer !== "") {
1892
+ writer.uint32(26).string(message.payer);
1893
+ }
1894
+ if (message.granter !== "") {
1895
+ writer.uint32(34).string(message.granter);
1896
+ }
1897
+ return writer;
1898
+ },
1899
+ decode(input: BinaryReader | Uint8Array, length?: number): Fee {
1900
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1901
+ let end = length === undefined ? reader.len : reader.pos + length;
1902
+ const message = createBaseFee();
1903
+ while (reader.pos < end) {
1904
+ const tag = reader.uint32();
1905
+ switch (tag >>> 3) {
1906
+ case 1:
1907
+ message.amount.push(Coin.decode(reader, reader.uint32()));
1908
+ break;
1909
+ case 2:
1910
+ message.gasLimit = reader.uint64();
1911
+ break;
1912
+ case 3:
1913
+ message.payer = reader.string();
1914
+ break;
1915
+ case 4:
1916
+ message.granter = reader.string();
1917
+ break;
1918
+ default:
1919
+ reader.skipType(tag & 7);
1920
+ break;
1921
+ }
1922
+ }
1923
+ return message;
1924
+ },
1925
+ fromPartial(object: Partial<Fee>): Fee {
1926
+ const message = createBaseFee();
1927
+ message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
1928
+ message.gasLimit = object.gasLimit !== undefined && object.gasLimit !== null ? BigInt(object.gasLimit.toString()) : BigInt(0);
1929
+ message.payer = object.payer ?? "";
1930
+ message.granter = object.granter ?? "";
1931
+ return message;
1932
+ },
1933
+ fromAmino(object: FeeAmino): Fee {
1934
+ const message = createBaseFee();
1935
+ message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
1936
+ if (object.gas_limit !== undefined && object.gas_limit !== null) {
1937
+ message.gasLimit = BigInt(object.gas_limit);
1938
+ }
1939
+ if (object.payer !== undefined && object.payer !== null) {
1940
+ message.payer = object.payer;
1941
+ }
1942
+ if (object.granter !== undefined && object.granter !== null) {
1943
+ message.granter = object.granter;
1944
+ }
1945
+ return message;
1946
+ },
1947
+ toAmino(message: Fee): FeeAmino {
1948
+ const obj: any = {};
1949
+ if (message.amount) {
1950
+ obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
1951
+ } else {
1952
+ obj.amount = message.amount;
1953
+ }
1954
+ obj.gas_limit = message.gasLimit !== BigInt(0) ? message.gasLimit?.toString() : undefined;
1955
+ obj.payer = message.payer === "" ? undefined : message.payer;
1956
+ obj.granter = message.granter === "" ? undefined : message.granter;
1957
+ return obj;
1958
+ },
1959
+ fromAminoMsg(object: FeeAminoMsg): Fee {
1960
+ return Fee.fromAmino(object.value);
1961
+ },
1962
+ toAminoMsg(message: Fee): FeeAminoMsg {
1963
+ return {
1964
+ type: "cosmos-sdk/Fee",
1965
+ value: Fee.toAmino(message)
1966
+ };
1967
+ },
1968
+ fromProtoMsg(message: FeeProtoMsg): Fee {
1969
+ return Fee.decode(message.value);
1970
+ },
1971
+ toProto(message: Fee): Uint8Array {
1972
+ return Fee.encode(message).finish();
1973
+ },
1974
+ toProtoMsg(message: Fee): FeeProtoMsg {
1975
+ return {
1976
+ typeUrl: "/cosmos.tx.v1beta1.Fee",
1977
+ value: Fee.encode(message).finish()
1978
+ };
1979
+ }
1980
+ };
1981
+ function createBaseTip(): Tip {
1982
+ return {
1983
+ amount: [],
1984
+ tipper: ""
1985
+ };
1986
+ }
1987
+ export const Tip = {
1988
+ typeUrl: "/cosmos.tx.v1beta1.Tip",
1989
+ encode(message: Tip, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1990
+ for (const v of message.amount) {
1991
+ Coin.encode(v!, writer.uint32(10).fork()).ldelim();
1992
+ }
1993
+ if (message.tipper !== "") {
1994
+ writer.uint32(18).string(message.tipper);
1995
+ }
1996
+ return writer;
1997
+ },
1998
+ decode(input: BinaryReader | Uint8Array, length?: number): Tip {
1999
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2000
+ let end = length === undefined ? reader.len : reader.pos + length;
2001
+ const message = createBaseTip();
2002
+ while (reader.pos < end) {
2003
+ const tag = reader.uint32();
2004
+ switch (tag >>> 3) {
2005
+ case 1:
2006
+ message.amount.push(Coin.decode(reader, reader.uint32()));
2007
+ break;
2008
+ case 2:
2009
+ message.tipper = reader.string();
2010
+ break;
2011
+ default:
2012
+ reader.skipType(tag & 7);
2013
+ break;
2014
+ }
2015
+ }
2016
+ return message;
2017
+ },
2018
+ fromPartial(object: Partial<Tip>): Tip {
2019
+ const message = createBaseTip();
2020
+ message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
2021
+ message.tipper = object.tipper ?? "";
2022
+ return message;
2023
+ },
2024
+ fromAmino(object: TipAmino): Tip {
2025
+ const message = createBaseTip();
2026
+ message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
2027
+ if (object.tipper !== undefined && object.tipper !== null) {
2028
+ message.tipper = object.tipper;
2029
+ }
2030
+ return message;
2031
+ },
2032
+ toAmino(message: Tip): TipAmino {
2033
+ const obj: any = {};
2034
+ if (message.amount) {
2035
+ obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
2036
+ } else {
2037
+ obj.amount = message.amount;
2038
+ }
2039
+ obj.tipper = message.tipper === "" ? undefined : message.tipper;
2040
+ return obj;
2041
+ },
2042
+ fromAminoMsg(object: TipAminoMsg): Tip {
2043
+ return Tip.fromAmino(object.value);
2044
+ },
2045
+ toAminoMsg(message: Tip): TipAminoMsg {
2046
+ return {
2047
+ type: "cosmos-sdk/Tip",
2048
+ value: Tip.toAmino(message)
2049
+ };
2050
+ },
2051
+ fromProtoMsg(message: TipProtoMsg): Tip {
2052
+ return Tip.decode(message.value);
2053
+ },
2054
+ toProto(message: Tip): Uint8Array {
2055
+ return Tip.encode(message).finish();
2056
+ },
2057
+ toProtoMsg(message: Tip): TipProtoMsg {
2058
+ return {
2059
+ typeUrl: "/cosmos.tx.v1beta1.Tip",
2060
+ value: Tip.encode(message).finish()
2061
+ };
2062
+ }
2063
+ };
2064
+ function createBaseAuxSignerData(): AuxSignerData {
2065
+ return {
2066
+ address: "",
2067
+ signDoc: undefined,
2068
+ mode: 0,
2069
+ sig: new Uint8Array()
2070
+ };
2071
+ }
2072
+ export const AuxSignerData = {
2073
+ typeUrl: "/cosmos.tx.v1beta1.AuxSignerData",
2074
+ encode(message: AuxSignerData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2075
+ if (message.address !== "") {
2076
+ writer.uint32(10).string(message.address);
2077
+ }
2078
+ if (message.signDoc !== undefined) {
2079
+ SignDocDirectAux.encode(message.signDoc, writer.uint32(18).fork()).ldelim();
2080
+ }
2081
+ if (message.mode !== 0) {
2082
+ writer.uint32(24).int32(message.mode);
2083
+ }
2084
+ if (message.sig.length !== 0) {
2085
+ writer.uint32(34).bytes(message.sig);
2086
+ }
2087
+ return writer;
2088
+ },
2089
+ decode(input: BinaryReader | Uint8Array, length?: number): AuxSignerData {
2090
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2091
+ let end = length === undefined ? reader.len : reader.pos + length;
2092
+ const message = createBaseAuxSignerData();
2093
+ while (reader.pos < end) {
2094
+ const tag = reader.uint32();
2095
+ switch (tag >>> 3) {
2096
+ case 1:
2097
+ message.address = reader.string();
2098
+ break;
2099
+ case 2:
2100
+ message.signDoc = SignDocDirectAux.decode(reader, reader.uint32());
2101
+ break;
2102
+ case 3:
2103
+ message.mode = reader.int32() as any;
2104
+ break;
2105
+ case 4:
2106
+ message.sig = reader.bytes();
2107
+ break;
2108
+ default:
2109
+ reader.skipType(tag & 7);
2110
+ break;
2111
+ }
2112
+ }
2113
+ return message;
2114
+ },
2115
+ fromPartial(object: Partial<AuxSignerData>): AuxSignerData {
2116
+ const message = createBaseAuxSignerData();
2117
+ message.address = object.address ?? "";
2118
+ message.signDoc = object.signDoc !== undefined && object.signDoc !== null ? SignDocDirectAux.fromPartial(object.signDoc) : undefined;
2119
+ message.mode = object.mode ?? 0;
2120
+ message.sig = object.sig ?? new Uint8Array();
2121
+ return message;
2122
+ },
2123
+ fromAmino(object: AuxSignerDataAmino): AuxSignerData {
2124
+ const message = createBaseAuxSignerData();
2125
+ if (object.address !== undefined && object.address !== null) {
2126
+ message.address = object.address;
2127
+ }
2128
+ if (object.sign_doc !== undefined && object.sign_doc !== null) {
2129
+ message.signDoc = SignDocDirectAux.fromAmino(object.sign_doc);
2130
+ }
2131
+ if (object.mode !== undefined && object.mode !== null) {
2132
+ message.mode = object.mode;
2133
+ }
2134
+ if (object.sig !== undefined && object.sig !== null) {
2135
+ message.sig = bytesFromBase64(object.sig);
2136
+ }
2137
+ return message;
2138
+ },
2139
+ toAmino(message: AuxSignerData): AuxSignerDataAmino {
2140
+ const obj: any = {};
2141
+ obj.address = message.address === "" ? undefined : message.address;
2142
+ obj.sign_doc = message.signDoc ? SignDocDirectAux.toAmino(message.signDoc) : undefined;
2143
+ obj.mode = message.mode === 0 ? undefined : message.mode;
2144
+ obj.sig = message.sig ? base64FromBytes(message.sig) : undefined;
2145
+ return obj;
2146
+ },
2147
+ fromAminoMsg(object: AuxSignerDataAminoMsg): AuxSignerData {
2148
+ return AuxSignerData.fromAmino(object.value);
2149
+ },
2150
+ toAminoMsg(message: AuxSignerData): AuxSignerDataAminoMsg {
2151
+ return {
2152
+ type: "cosmos-sdk/AuxSignerData",
2153
+ value: AuxSignerData.toAmino(message)
2154
+ };
2155
+ },
2156
+ fromProtoMsg(message: AuxSignerDataProtoMsg): AuxSignerData {
2157
+ return AuxSignerData.decode(message.value);
2158
+ },
2159
+ toProto(message: AuxSignerData): Uint8Array {
2160
+ return AuxSignerData.encode(message).finish();
2161
+ },
2162
+ toProtoMsg(message: AuxSignerData): AuxSignerDataProtoMsg {
2163
+ return {
2164
+ typeUrl: "/cosmos.tx.v1beta1.AuxSignerData",
2165
+ value: AuxSignerData.encode(message).finish()
2166
+ };
2167
+ }
2168
+ };