decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.33

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